Click or drag to resize
AB4D logo

ModelDecoratorVisual3D Properties

The ModelDecoratorVisual3D type exposes the following members.

Properties
 NameDescription
Public propertyBoundingBoxLineColor Gets or sets the color of the lines that show the bounding box. Default values is Red.
Public propertyBoundingBoxLineThickness Gets or sets the thickness of the lines that show the bounding box. Default values is 2.
Public propertyCalculateBoundingBoxFromPositions Gets or sets a boolean that specifies if bounding box is calculated from transforming all the positions in the TargetModel3D so that the bounding box will exactly fit the model even when it is rotated (when value is true). When CalculateBoundingBoxFromPositions is false, then bounding box is calculated by transforming the Model3D bounding box. This is much faster, but not as accurate (bounding box can be bigger than the actually transformed model). Default value is false.
Public propertyNormalsLineColor Gets or sets the color of the lines that show the normals. Default values is Green.
Public propertyNormalsLineLength Gets or sets the length of the normal lines. When set to NaN (by default) the normals length is calculated from the size of the TargetModel3D.
Public propertyNormalsLineThickness Gets or sets the thickness of the lines that show the model normals. Default values is 1.
Public propertyRootModelVisual3D Gets or sets a ModelVisual3D that is a parent ModelVisual3D for TargetModel3D.
Public propertyShowBoundingBox Gets or sets a boolean that specifies if a wire box that encloses the TargetModel3D is shown.
Public propertyShowNormalLineArrow Gets or sets a nullable Boolean that specifies if normal lines are shown with arrows. If this property is set to null (by default), then arrows are shown when mesh has less then 1000 positions. When using Ab3d.DXEngine and this class is used on a model with a lot of triangles then showing arrows may be very slow (lines with arrows are not hardware accelerated).
Public propertyShowNormals Gets or sets a boolean that specifies if normals of the TargetModel3D are shown. The TargetModel3D must be GeometryModel3D and not Model3DGroup.
Public propertyShowTriangles Gets or sets a boolean that specifies if triangles of the TargetModel3D are shown. The TargetModel3D must be GeometryModel3D and not Model3DGroup.
Public propertyTargetModel3D Gets or sets Model3D for witch bounding box, normals or triangles will be shown with this ModelDecoratorVisual3D.
Public propertyTrianglesLineColor Gets or sets the color of the lines that show the triangles. Default values is Blue.
Public propertyTrianglesLineThickness Gets or sets the thickness of the lines that show the triangles. Default values is 1.
Top
See Also