[name]

Represents a section bounded by a specific amount of half-edges. The current implementation assumes that a face always consist of three edges.

Constructor

[name]()

Creates a new instance of [name].

Properties

.normal : Vector3

The normal vector of the face. Default is a [page:Vector3] at (0, 0, 0).

.midpoint : Vector3

The midpoint or centroid of the face. Default is a [page:Vector3] at (0, 0, 0).

.area : Float

The area of the face. Default is 0.

.constant : Float

Signed distance from face to the origin. Default is 0.

.outside : VertexNode

Reference to a vertex in a vertex list this face can see. Default is null.

.mark : Integer

Marks if a face is visible or deleted. Default is 'Visible'.

.edge : HalfEdge

Reference to the base edge of a face. To retrieve all edges, you can use the 'next' reference of the current edge. Default is null.

Methods

.create ( [param:VertexNode a], [param:VertexNode b], [param:VertexNode c] ) : Face

[page:VertexNode a] - First vertex of the face.
[page:VertexNode b] - Second vertex of the face.
[page:VertexNode c] - Third vertex of the face.

Creates a face.

.getEdge ( [param:Integer i] ) : HalfEdge

[page:Integer i] - The index of the edge.

Returns an edge by the given index.

.compute () : this

Computes all properties of the face.

.distanceToPoint ( [param:Vector3 point] ) : Float

[page:Vector3 point] - Any point in 3D space.

Returns the signed distance from a given point to the plane representation of this face.

Source

[link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/math/ConvexHull.js examples/jsm/math/ConvexHull.js]

Face Face Face Face

Face Face Face Face