API

Class PolygonMeshBuilder

Builds a polygon

Index
  • Creates a PolygonMeshBuilder

    Parameters

    • name: string

      name of the builder

    • contours: any

      Path of the polygon

    • Optionalscene: Scene

      scene to add to when creating the mesh

    • earcutInjection: any = earcut

      can be used to inject your own earcut reference

    Returns PolygonMeshBuilder

bjsEarcut: any

Babylon reference to the earcut plugin.

  • Creates the polygon

    Parameters

    • updatable: boolean = false

      If the mesh should be updatable

    • depth: number = 0

      The depth of the mesh created

    • smoothingThreshold: number = 2

      Dot product threshold for smoothed normals

    Returns Mesh

    the created mesh