The EndCap
property of the SceneLineObject
class specifies the style of the cap at the end of a line. This property allows you to define how the end of the line should be rendered, providing options for different visual styles.
The EndCap
property of the SceneLineObject
class specifies the style of the cap at the end of a line. This property allows you to define how the end of the line should be rendered, providing options for different visual styles.
To use the EndCap
property, you need to have an instance of the SceneLineObject
. You can set this property to one of the values defined in the CapStyle
enumeration, which may include styles such as None
, Round
, or Square
.
// Create a new SceneLineObject SceneLineObject lineObject = new SceneLineObject(); // Set the end cap style to Round lineObject.EndCap = SceneLineObject.CapStyle.Round; // Add points to the line lineObject.StartLine(); lineObject.AddLinePoint(new Vector3(0, 0, 0), Color.Red, 1.0f); lineObject.AddLinePoint(new Vector3(1, 1, 1), Color.Red, 1.0f); lineObject.EndLine();