← Back to Docs
  • index.html
  • Clayground
  • Clayground.Canvas3D
  • Line3D
  • Clayground 2025.2
  • Line3D QML Type

    A simple 3D line connecting multiple points. More...

    Import Statement: import Clayground.Canvas3D

    Properties

    Detailed Description

    Line3D provides an easy way to draw a single connected line through a series of 3D points. It wraps MultiLine3D for convenience when only a single line path is needed.

    Example usage:

    import Clayground.Canvas3D
    
    Line3D {
        coords: [
            Qt.vector3d(0, 0, 0),
            Qt.vector3d(100, 50, 0),
            Qt.vector3d(200, 0, 0)
        ]
        color: "blue"
        width: 2.0
    }

    See also MultiLine3D and BoxLine3D.

    Property Documentation

    color : color

    The color of the line.

    Defaults to black.


    coords : vector3d

    List of 3D points defining the line path.


    width : real

    The width of the line in world units.

    Defaults to 1.