gcode-preview - v3.0.0-alpha.3
    Preparing search index...

    A geometry class for extruding 3D paths into volumetric shapes

    Hierarchy

    • BufferGeometry
      • ExtrusionGeometry
    Index

    Constructors

    Properties

    Constructors

    • Creates a new ExtrusionGeometry

      Parameters

      • points: Vector3[] = ...

        Array of points defining the path (default: single point at origin)

      • lineWidth: number = 0.6

        Width of the extruded shape (default: 0.6)

      • lineHeight: number = 0.2

        Height of the extruded shape (default: 0.2)

      • radialSegments: number = 8

        Number of segments around the circumference (default: 8)

      Returns ExtrusionGeometry

    Properties

    parameters: {
        closed: boolean;
        lineHeight: number;
        lineWidth: number;
        points: Vector3[];
        radialSegments: number;
    }

    Parameters used to create this geometry

    Type declaration

    • closed: boolean

      Whether the path is closed

    • lineHeight: number

      Height of the extruded shape

    • lineWidth: number

      Width of the extruded shape

    • points: Vector3[]

      Array of points defining the path

    • radialSegments: number

      Number of segments around the circumference

    type: string

    The geometry type