UeLine
A simple line mesh class that renders a continuous line strip using provided geometry and material. Useful for drawing lines or wireframes in 3D space.
Constructor​
new UeLine(geometry = undefined, material = undefined, data = {})
Inherits from UeMesh
Parameters​
| Name | Type | Default | Description |
|---|---|---|---|
| geometry | UeGeometry | new UeGeometry() | Geometry defining the line vertices |
| material | UeLineBasicMaterial | new UeLineBasicMaterial() | Material used to render the line |
| data | Object | {} | Additional data passed to base class |
Properties​
| Property | Type | Description |
|---|---|---|
isLine | boolean | Flag identifying this as a line primitive |
primitive | string | Primitive type, here "pr_linestrip" for continuous lines |
geometry | UeGeometry | Geometry data for line vertices |
material | UeLineBasicMaterial | Material used for rendering the line |
Methods​
| Method | Returns | Description |
|---|---|---|
raycast(raycaster, intersects) | self | Tests the ray from raycaster against this line segments and appends hits to intersects. The bounding sphere is checked first for optimization purposes |
toJSON() | struct | Returns an object representing this entity's properties. Not all props may be included |