Skip to main content
Version: 0.10.0

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​

NameTypeDefaultDescription
geometryUeGeometrynew UeGeometry()Geometry defining the line vertices
materialUeLineBasicMaterialnew UeLineBasicMaterial()Material used to render the line
dataObject{}Additional data passed to base class

Properties​

PropertyTypeDescription
isLinebooleanFlag identifying this as a line primitive
primitivestringPrimitive type, here "pr_linestrip" for continuous lines
geometryUeGeometryGeometry data for line vertices
materialUeLineBasicMaterialMaterial used for rendering the line

Methods​

MethodReturnsDescription
raycast(raycaster, intersects)selfTests the ray from raycaster against this line segments and appends hits to intersects. The bounding sphere is checked first for optimization purposes
toJSON()structReturns an object representing this entity's properties. Not all props may be included