← Back to Docs
  • index.html
  • Clayground
  • Clayground.Canvas3D
  • LineBatchGeometry
  • Clayground 2026.2
  • LineBatchGeometry QML Type

    Base quad geometry for the instanced LineBatch3D renderer. More...

    Import Statement: import Clayground.Canvas3D

    Properties

    Detailed Description

    LineBatchGeometry provides the static per-instance base mesh used by LineBatch3D: a single unit quad whose vertices carry a segment parameter t (0 at the start, 1 at the end of a segment) and a side factor (-1 or +1) in the x/y channels of the position attribute. The vertex shader expands this quad into a camera-facing ribbon per line segment.

    The quad itself never changes, but its bounds are updated to cover the whole batch extent (via boundsMin / boundsMax) so that frustum culling and picking use the real world-space extent of the instanced lines rather than the tiny unit quad.

    This type is used internally by LineBatch3D and normally does not need to be instantiated directly.

    See also LineBatch3D and LineBatchInstancing.

    Property Documentation

    boundsMax : vector3d

    Maximum corner of the axis-aligned bounding box covering all lines.

    Set this to the maximum of all line endpoints so that instanced frustum culling keeps the batch visible.


    boundsMin : vector3d

    Minimum corner of the axis-aligned bounding box covering all lines.

    Set this to the minimum of all line endpoints so that instanced frustum culling keeps the batch visible.