Click or drag to resize
Ab4d.SharpEngine logo

TrapezoidModelNode Class

A 3D trapezoid model.
Inheritance Hierarchy

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public class TrapezoidModelNode : ModelNode

The TrapezoidModelNode type exposes the following members.

Constructors
 NameDescription
Public methodTrapezoidModelNode Create an upright 3D trapezoid model.
Public methodTrapezoidModelNode(String) Create an upright 3D trapezoid model.
Public methodTrapezoidModelNode(Material, String) Create an upright 3D trapezoid model.
Public methodTrapezoidModelNode(Vector3, Vector2, Vector3, Vector2, String) Create an upright 3D trapezoid model with rectangular top/bottom sides.
Public methodTrapezoidModelNode(Vector3, Vector2, Vector3, Vector2, Material, String) Create an upright 3D trapezoid model with rectangular top/bottom sides and specified material.
Public methodTrapezoidModelNode(Vector3, Vector2, Vector3, Vector2, Vector3, Vector3, String) Create a 3D trapezoid with custom-oriented top/bottom sides.
Public methodTrapezoidModelNode(Vector3, Vector2, Vector3, Vector2, Vector3, Vector3, Material, String) Create a 3D trapezoid with custom-oriented top/bottom sides and specified material.
Top
Properties
 NameDescription
Public propertyBottomCenterPosition Position of the bottom-center point. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertyBottomSize Size of the bottom side of the trapezoid. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertySizeXVector The 3D vector representing the direction of the X parameter in bottomSize and topSize. The default value is (1, 0, 0). Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertySizeYVector The 3D vector representing the direction of the Y parameter in bottomSize and topSize. The default value is (0, 0, 1). Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertyTopCenterPosition Position of the top-center point. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertyTopSize Size of the top side of the trapezoid. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Top
Methods
 NameDescription
Protected methodUpdateMesh UpdateMesh method recreates the mesh based on the current object properties. The method should be overriden in the derived class that provides its own mesh generation.
(Overrides ModelNodeUpdateMesh)
Top
See Also