Dart DocumentationthreeFace3

Face3 class

class Face3 extends Face {

 Face3([int a = 0, int b = 0, int c = 0, normalOrVertexNormals, colorOrVertexColors, materialIndex]) :
   super([a, b, c], normalOrVertexNormals, colorOrVertexColors, materialIndex);

 get a => indices[0];
 set a(int i) { indices[0] = i; }

 get b => indices[1];
 set b(int i) { indices[1] = i; }

 get c => indices[2];
 set c(int i) { indices[2] = i; }

 clone() => new Face3(a, b, c).setFrom(this);

}

Extends

Face > Face3

Constructors

new Face3([int a = 0, int b = 0, int c = 0, normalOrVertexNormals, colorOrVertexColors, materialIndex]) #

normalOrVertexNormals and colorOrVertexColors can be either a Vector3 or a [List]

docs inherited from Face
Face3([int a = 0, int b = 0, int c = 0, normalOrVertexNormals, colorOrVertexColors, materialIndex]) :
 super([a, b, c], normalOrVertexNormals, colorOrVertexColors, materialIndex);

Properties

var a #

get a => indices[0];
set a(int i) { indices[0] = i; }

var b #

get b => indices[1];
set b(int i) { indices[1] = i; }

var c #

get c => indices[2];
set c(int i) { indices[2] = i; }

Vector3 centroid #

inherited from Face
Vector3 centroid

Color color #

inherited from Face
Color color

List<int> indices #

inherited from Face
List<int> indices

int materialIndex #

inherited from Face
int materialIndex

Vector3 normal #

inherited from Face
Vector3 normal

final int size #

inherited from Face
int get size => indices.length;

List vertexColors #

inherited from Face
List vertexNormals, vertexColors

List vertexNormals #

inherited from Face
List vertexNormals

List vertexTangents #

inherited from Face
List vertexNormals, vertexColors, vertexTangents

Methods

dynamic clone() #

clone() => new Face3(a, b, c).setFrom(this);

Face setFrom(Face other) #

inherited from Face
Face setFrom(Face other) {
 normal.setFrom(other.normal);
 color.copy( other.color );
 centroid.setFrom(other.centroid);

 materialIndex = other.materialIndex;

 vertexNormals = other.vertexNormals.map((Vector3 v) => v.clone()).toList();
 vertexColors = other.vertexColors.map((Vector3 v) => v.clone()).toList();
 vertexTangents = other.vertexTangents.map((Vector3 v) => v.clone()).toList();

 return this;
}