Class THREE.ConvexGeometry
Defined in: ConvexGeometry.js.
Constructor Attributes | Constructor Name and Description |
---|---|
THREE.ConvexGeometry(vertices)
|
Method Attributes | Method Name and Description |
---|---|
<inner> |
addPoint(vertexId)
|
<inner> |
equalEdge(ea, eb)
Detect whether two edges are equal.
|
<inner> |
normal(va, vb, vc)
Face normal
|
<inner> |
Create a random offset between -1e-6 and 1e-6.
|
<inner> |
vertexUv(vertex)
XXX: Not sure if this is the correct approach.
|
<inner> |
visible(face, vertex)
Whether the face is visible from the vertex
|
Method Detail
<inner>
addPoint(vertexId)
- Parameters:
- vertexId
<inner>
equalEdge(ea, eb)
Detect whether two edges are equal.
Note that when constructing the convex hull, two same edges can only
be of the negative direction.
- Parameters:
- ea
- eb
<inner>
normal(va, vb, vc)
Face normal
- Parameters:
- va
- vb
- vc
<inner>
randomOffset()
Create a random offset between -1e-6 and 1e-6.
<inner>
vertexUv(vertex)
XXX: Not sure if this is the correct approach. Need someone to review.
- Parameters:
- vertex
<inner>
visible(face, vertex)
Whether the face is visible from the vertex
- Parameters:
- face
- vertex