egi_from_vectors

compas_3gs.algorithms.egi_from_vectors(vectordict, origin, tol=0.001)[source]

Construct an egi from a set of vectors.

Parameters
  • vectordict (dict) – A dectionary of key-vector pairs.

  • origin (list) – The coordinates of the centroid.

  • tol (float, optional) – Tolerance for evaluating antipodal.

Returns

egi (mesh) – A mesh object representing the egi.

Raises

Exception – If there are less than four vectors.

Notes

This algorithm is dependent on Rhinoceros objects; the adjacency arcs are implemented using Rhino.Geometry.Arc, and the cross-adjacencies (arc-arc intersections) are computed using Rhino.Geometry.Intersect.Intersection.CurveCurve.

Warning

  • This algorithm does not address scenarios where multiple parallel (collinear) vectors are present.

References

  • Horn, B.K.P. (1984). Extended Gaussian images.

  • Moni, S. (1990, June). *A closed-form solution for the reconstruction

of a convex polyhedron from its extended gaussian image.* - Lee, J., T. Van Mele, and P. Block (2018). Disjointed force polyhedra.