bool Wireframe { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Wireframe property of the SceneLineObject class determines whether the line object is rendered in wireframe mode. When set to true, the line will be displayed as a wireframe, which can be useful for debugging or visualizing the underlying structure of the line. When set to false, the line will be rendered normally, with its full texture and shading.

Usage

To use the Wireframe property, simply get or set its value on an instance of SceneLineObject. Setting this property to true will enable wireframe rendering, while setting it to false will disable it.

Example

// Create a new SceneLineObject
SceneLineObject lineObject = new SceneLineObject();

// Enable wireframe mode
lineObject.Wireframe = true;

// 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.Blue, 1.0f);
lineObject.EndLine();

// Disable wireframe mode
lineObject.Wireframe = false;