Dart Documentationorson_chartsCBFace

CBFace class

Extends

Face > CBFace

Constructors

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

Creates a new face instance.

docs inherited from 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.

List<TickData> xTicksA #

Info about the x-axis ticks on edge A.

List<TickData> xTicksB #

Info about the x-axis ticks on edge B.

List<TickData> yTicksA #

Info about the y-axis ticks on edge A.

List<TickData> yTicksB #

Info about the y-axis ticks on edge B.

List<TickData> zTicksA #

Info about the z-axis ticks on edge A.

List<TickData> zTicksB #

Info about the z-axis ticks on edge B.

Methods

void addXTicks(TickData a, TickData b) #

void addYTicks(TickData a, TickData b) #

void addZTicks(TickData a, TickData b) #

num calculateAverageZValue(List<Point3D> points) #

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

docs inherited from Face

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.