Constructor
(protected) new Face(dcel)
Create a new face.
Parameters:
Name | Type | Description |
---|---|---|
dcel |
DCEL | The DCEL instance. |
Members
aabb :AABB
Get the AABB of the face.
Type:
area :number
Get the area of the face.
Type:
- number
areaExceptHoles :number
Get the area of the face except holes.
Type:
- number
external :boolean
Whether this is an external face. (area <= 0)
Type:
- boolean
holes :Array.<Face>
Get the holes of the face.
Type:
- Array.<Face>
(readonly) id :number
Type:
- number
internal :boolean
Whether this is an internal face. (area > 0)
Type:
- boolean
vertexlist :Array.<Vertex>
Get vertex list of the face.
If this face is internal, vertex order is ccw.
If this face is external, vertex order is cw.
Type:
- Array.<Vertex>
Methods
(protected) dirty()
Mark the face as dirty.
(protected) dispose()
Dispose the face.
equals(f) → {boolean}
Whether the face equals the target face.
Parameters:
Name | Type | Description |
---|---|---|
f |
Face | The target face. |
Returns:
- True if the face equals the target face, false otherwise.
- Type
- boolean