// Make a tetrahedron without texture coordinates or smoothing. public static void AddTetrahedron(this MeshGeometry3D mesh, bool centered = true) { // Get the points. Point3D A, B, C, D; G3.TetrahedronPoints(out A, out B, out C, out D, centered); // Make the faces. mesh.AddPolygon(A, B, C); mesh.AddPolygon(A, C, D); mesh.AddPolygon(A, D, B); mesh.AddPolygon(D, C, B); }
public static void VerifyTetrahedron() { // Get the points. Point3D A, B, C, D; G3.TetrahedronPoints(out A, out B, out C, out D, true); // Verify the points. G3.VerifyPoints(A, B, C, D); // Verify the faces. G3.VerifyPolygon(A, B, C); G3.VerifyPolygon(A, C, D); G3.VerifyPolygon(A, D, B); G3.VerifyPolygon(D, C, B); }