Click or drag to resize
Ab4d.SharpEngine logo

RectangleNode Class

RectangleNode class is used to create a 3D rectangle that is rendered as a single poly-line.
Inheritance Hierarchy

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
public class RectangleNode : PolyLineBaseNode

The RectangleNode type exposes the following members.

Constructors
 NameDescription
Public methodRectangleNode(String)Initializes a new instance of the RectangleNode class
Public methodRectangleNode(IPolyLineMaterial, String)Initializes a new instance of the RectangleNode class
Public methodRectangleNode(Color3, Single, String)Initializes a new instance of the RectangleNode class
Public methodRectangleNode(Color4, Single, String)Initializes a new instance of the RectangleNode class
Public methodRectangleNode(Vector3, PositionTypes, Vector2, Vector3, Vector3, Color4, Single, String)Initializes a new instance of the RectangleNode class
Top
Properties
 NameDescription
Public propertyHeightDirection Direction vector of the height dimension. Default value is (0, 1, 0), i.e., along the Y axis.
Public propertyPosition Position of the rectangle. By default this represents the center position of the rectangle, but can be changed by PositionType property. Default value is (0, 0, 0)
Public propertyPositionType Type of the Position. Default value is Center.
Public propertySize Size of the rectangle (width and height of the 2D shape). Default value is (1, 1)
Public propertyWidthDirection Direction vector of the width dimension. Default value is (1, 0, 0), i.e., along the X axis.
Top
Fields
 NameDescription
Public fieldStatic memberDefaultRectangleMiterLimit Miter limit value that is used for rectangle's Po PolyLineMaterial. By default this value is 4 that is twice the value of the miter limit for other poly-lines. This way the corners remain sharp longer.
Top
See Also