Dart Documentationorson_chartsFace

Face class

A face for an object (specifies the vertices by index, plus the color of the face).

Subclasses

CBFace, DoubleSidedFace

Constructors

new Face(List<int> vertices, Color color, bool outline) #

Creates a new face instance.

Properties

Color color #

The color for the face.

int offset #

The offset into the list of all vertices in the world.

bool outline #

Draw the outline of the face as well as filling it?

List<int> vertices #

The indices for the vertices.

Methods

num calculateAverageZValue(List<Point3D> points) #

Calculates the average z-value for the face based on the supplied world points (which may have been transformed).

Point3D calculateNormal(List<Point3D> points) #

Calculates the normal for this face based on the supplied world points (which may have been transformed).

int getVertexIndex(int i) #

Returns the index (including offset) for the specified vertex.

bool isFrontFacing(List<Point> projPts) #

Returns true if the face is front facing given the supplied projected points, and false otherwise.