PolygonMeshBuilder

Hierarchy

  • PolygonMeshBuilder

Index

Constructors

Methods

Constructors

constructor

Find examples in Playground
  • Creates a PolygonMeshBuilder

    Parameters

    • name: string

      name of the builder

    • contours: Path2 | Vector2[] | any

      Path of the polygon

    • scene: Scene

      scene to add to

    Returns PolygonMeshBuilder

Methods

addHole

Find examples in Playground
  • Adds a whole within the polygon

    Parameters

    • hole: Vector2[]

      Array of points defining the hole

    Returns PolygonMeshBuilder

    this

build

Find examples in Playground
  • build(updatable?: boolean, depth?: number): Mesh
  • Creates the polygon

    Parameters

    • Optional updatable: boolean

      If the mesh should be updatable

    • Optional depth: number

      The depth of the mesh created

    Returns Mesh

    the created mesh

Generated using TypeDoc