Class PolygonMeshBuilder
Hierarchy
- PolygonMeshBuilder
Index
Constructors
constructor
-
Creates a PolygonMeshBuilder
Parameters
-
name: string
name of the builder
-
contours: Path2 | Vector2[] | any
Path of the polygon
-
Optional scene: Scene
scene to add to when creating the mesh
-
Optional earcutInjection: any
can be used to inject your own earcut reference
Returns PolygonMeshBuilder
-
Properties
bjs EarcutSearch playground for bjsEarcut
Babylon reference to the earcut plugin.
Methods
add HoleSearch playground for addHole
-
Adds a hole within the polygon
Parameters
-
hole: Vector2[]
Array of points defining the hole
Returns PolygonMeshBuilder
this
-
buildSearch playground for build
-
Creates the polygon
Parameters
-
Optional updatable: boolean
If the mesh should be updatable
-
Optional depth: number
The depth of the mesh created
-
Optional smoothingThreshold: number
Dot product threshold for smoothed normals
Returns Mesh
the created mesh
-
build Vertex DataSearch playground for buildVertexData
-
Creates the polygon
Parameters
-
Optional depth: number
The depth of the mesh created
-
Optional smoothingThreshold: number
Dot product threshold for smoothed normals
Returns VertexData
the created VertexData
-
Builds a polygon
https://doc.babylonjs.com/how_to/polygonmeshbuilder