Polyhedron.from_planes

classmethod Polyhedron.from_planes(planes)[source]

Construct a polyhedron from intersecting planes.

Parameters:
planeslist[[point, normal] | compas.geometry.Plane]
Returns:
compas.geometry.Polyhedron

Examples

>>> from compas.geometry import Plane
>>> left = Plane([-1, 0, 0], [-1, 0, 0])
>>> right = Plane([+1, 0, 0], [+1, 0, 0])
>>> top = Plane([0, 0, +1], [0, 0, +1])
>>> bottom = Plane([0, 0, -1], [0, 0, -1])
>>> front = Plane([0, -1, 0], [0, -1, 0])
>>> back = Plane([0, +1, 0], [0, +1, 0])
>>> p = Polyhedron.from_planes([left, right, top, bottom, front, back])