Description
The Smoothness
property of the SceneLineObject
class determines the level of detail or smoothness of the lines drawn by the object. It is an integer value that affects how the line is rendered, potentially influencing the number of segments used to approximate curves or the quality of anti-aliasing applied to the line.
Usage
To use the Smoothness
property, simply get or set its value on an instance of SceneLineObject
. A higher value typically results in smoother lines but may also increase rendering cost.
Example
// Create a new SceneLineObject
SceneLineObject lineObject = new SceneLineObject();
// Set the smoothness of the line
lineObject.Smoothness = 10;
// Get the current smoothness value
int currentSmoothness = lineObject.Smoothness;
// Use the line object to start drawing a line
lineObject.StartLine();
// Add points to the line
lineObject.AddLinePoint(new Vector3(0, 0, 0), Color.Red, 1.0f);
lineObject.AddLinePoint(new Vector3(1, 1, 0), Color.Blue, 1.0f);
// End the line drawing
lineObject.EndLine();