Line
Line ⟵ Object3D
A geometry class for rendering line segments using BufferGeometry.
Line creates a line geometry that renders connected vertices as line
segments. This is useful for wireframes, paths, and other line-based
rendering.
Methods
Line()
Default constructor - creates empty line object
Line(BufferGeometry* geometry, Material* material)
Constructor with geometry and material
| geometry | BufferGeometry containing vertex positions | nullptr |
| material | Material for the line | nullptr |
virtual Object3D* clone(bool recursive = true) const override
Creates a copy of this object
| recursive | Whether to clone children |
virtual void copy(const Object3D& object, bool recursive = true) override
Copies properties from another object
| object | Source | |
| recursive | Copy children too |
void setGeometry(BufferGeometry* geometry)
Sets the geometry for this line object
| geometry | BufferGeometry containing vertex positions |
BufferGeometry* getGeometry() const
Gets the geometry of this line object
void render()
Renders this line object
void setMaterial(Material* material)
Sets the material for this line object
| material | Material to use for rendering |
Material* getMaterial() const
Gets the material of this line object
Properties
| enabled | bool | Active/inactive |
| id | u32 | Unique identifier |
| isLine | bool | Read-only tag |
| lineAdjust | u8 | Line width adjustment mode (GX_TO_ZERO, GX_TO_ONE) |
| lineWidth | u8 | Width of lines in pixels |
| name | std::string | Optional display name |
| uuid | std::string | UUID string |
| version | u32 | Bumps on change |