Face3D class

A face - triangle with direction. The face is defined by three points. Faces not facing the camera are not drawn.

Implemented types
Mixed in types

Constructors

Face3D(Triangle triangle, {Color? color})
Creates a face with the given points.
Face3D.fromVertices(Vector3 a, Vector3 b, Vector3 c, {Color? color})
Creates a face from vertices.
factory

Properties

color Color?
Face color. Defaults to DiTreDiConfig setting.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
triangle → Triangle
Points of the face.
final

Methods

clone() Face3D
Makes a copy of this model.
override
copyWith({Triangle? triangle, Color? color}) Face3D
Copies the face.
getBounds() → Aabb3
Gets bounds of a model (min and max coordinates).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(DiTreDiConfig config, DiTreDiController controller, PaintViewPort viewPort, Face3D model, Matrix4 matrix, int vertexIndex, Float32List zIndices, Int32List colors, Float32List vertices) → void
Fills the buffer with the Model3D data.
inherited
toLines() List<Line3D>
Converts model to a List of Line3D.
override
toPoints() List<Point3D>
Converts model to a List of Point3D.
override
toString() String
A string representation of this object.
inherited
verticesCount() int
Returns number of vertices.
override

Operators

operator ==(Object other) bool
The equality operator.
override