book_4_sparkGenerated
code_blocksInput

Description

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.

Usage

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.

Example

// 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();