(private) new GeometryCreator(numfaces)
Helper class for geometry creation
- Source:
Parameters:
Name | Type | Description |
---|---|---|
numfaces |
number of faces |
Methods
addFace3()
Add face with 3 vertices
- Source:
addFace4()
Add face with 4 vertices
- Description:
From four vertices one normally creates two faces (1,2,3) and (1,3,4) if (reduce === 1), first face is reduced if (reduce === 2), second face is reduced
- Source:
calcNormal()
Calculate normal
- Source:
create()
Create geometry
- Source:
recalcZ()
Recalculate Z with provided func
- Source:
setNormal()
Set normal
- Source:
setNormal4()
Specify normal for face with 4 vertices
- Description:
same as addFace4, assign normals for each individual vertex reduce has same meaning and should be the same
- Source:
setNormal_12_34()
Set normal
- Description:
special shortcut, when same normals can be applied for 1-2 point and 3-4 point
- Source:
startPolygon()
Start polygon
- Source:
stopPolygon()
Stop polygon
- Source: