public HullFace(GraphPoint nA, GraphPoint nB, GraphPoint nC) { a = nA; b = nB; c = nC; ab = new HullEdge(a, b); bc = new HullEdge(b, c); ca = new HullEdge(c, a); normal = GetTriangleNormal(a.pos, b.pos, c.pos); center = GetTriangleCenter(a.pos, b.pos, c.pos); points = new List<GraphPoint>(); }
public void Add(HullEdge edge) { _edges.Add(edge); }
public bool Equivalent(HullEdge other) { return (a == other.a && b == other.b) || (b == other.a && a == other.b); }