Dart Documentationorson_chartsDoubleSidedFace

DoubleSidedFace class

A face that is painted on both sides. Effectively the 3D renderer skips the orientation check and paints the face in all cases.

Extends

Face > DoubleSidedFace

Constructors

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

Creates a new double-sided face.

Properties

Color color #

inherited from Face

The color for the face.

int offset #

inherited from Face

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

bool outline #

inherited from Face

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

List<int> vertices #

inherited from Face

The indices for the vertices.

Methods

num calculateAverageZValue(List<Point3D> points) #

inherited from Face

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

Point3D calculateNormal(List<Point3D> points) #

inherited from Face

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

int getVertexIndex(int i) #

inherited from Face

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

bool isFrontFacing(List<Point> projPts) #

inherited from Face

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