Tetra constructor

Tetra(
  1. ShapeConfig config,
  2. Vector3 p1,
  3. Vector3 p2,
  4. Vector3 p3,
  5. Vector3 p4,
)

Tetra shape.

config the configuration of the shape

Implementation

Tetra(ShapeConfig config, Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4 ):super(config){
  type = Shapes.tetra;
  verts = [ p1, p2, p3, p4 ];
  faces = [ mtri(p1, p2, p3), mtri(p2, p3, p4),];
}