When exporting a 3D model using the ColladaLoader, each Mesh generates a Geometry object with multiple Faces.
I have successfully managed to select faces in order to change colors and textures, but now I need to calculate the area of each "Face." Faces are made up of Triangles instances of Face3. I have attempted to loop through each related face and sum the a, b, and c values as shown below, but have not been successful.
var sAB = Math.abs(face.a - face.b);
var sBC = Math.abs(face.b - face.c);
var sCA = Math.abs(face.c - face.a);
var s = sAB + sBC + sCA;
var a = Math.sqrt(s*(s-sAB)*(s-sBC)*(s-sCA));
How can I correctly calculate the area of a Face3 triangle object?