/// Add a triangle to this triangle mesh, by specifying a ChTriangle public override void addTriangle(ChTriangle atriangle) { int base_v = (int)m_vertices.Count; m_vertices.Add(atriangle.p1); m_vertices.Add(atriangle.p2); m_vertices.Add(atriangle.p3); m_face_v_indices.Add(new ChVector(base_v, base_v + 1, base_v + 2)); }
/// Add a triangle to this triangle mesh, by specifying a ChTriangle public abstract void addTriangle(ChTriangle atriangle);
public ChTriangle(ChTriangle source) { p1 = source.p1; p2 = source.p2; p3 = source.p3; }