Click or drag to resize
Ab4d.SharpEngine logo

BoxModelNode Properties

The BoxModelNode type exposes the following members.

Properties
 NameDescription
Public propertyPosition Position of the box. By default this represents the center position of the box, but can be changed by PositionType property. Default value is (0, 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 propertyPositionType Type of the Position. Default value is Center. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertySize Size of the box. Default value is (0, 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 propertyUseSharedBoxMesh Gets or sets a Boolean that specifies if a shared mesh with center at (0, 0, 0) and size (1, 1, 1) is used for this box (this uses the same vertex and index buffer for all boxes with shared mesh; this can be used only when XSegmentsCount, YSegmentsCount and ZSegmentsCount are 1). In this case the final position and size is set by using a mesh transformation. When false, then a new mesh instance is created that has the center and size that are specified in this box model. Default value is true.
Public propertyXSegmentsCount Number of segments in the X direction. Default value is 1. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertyYSegmentsCount Number of segments in the Y direction. Default value is 1. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertyZSegmentsCount Number of segments in the Z direction. Default value is 1. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Top
See Also