PolygonBuilder
PolygonBuilder class
A helper class to build polygon for Mesh
Methods
constructor
Name | Description |
---|---|
constructor(mesh) | Initializes a new instance of the PolygonBuilder class. |
Parameters:
Name | Type | Description |
---|---|---|
mesh | Mesh | On which mesh to build polygon. |
Result:
begin
Name | Description |
---|---|
begin() | Begins to add a new polygon |
Result:
addVertex
Name | Description |
---|---|
addVertex(index) | Adds a vertex index to the polygon |
Parameters:
Name | Type | Description |
---|---|---|
inde | Number | null |
Result:
end
Name | Description |
---|---|
end() | Finishes the polygon creation |
Result: