Polyhedron.from_planes
- classmethod Polyhedron.from_planes(planes)
Construct a polyhedron from intersecting planes.
- Parameters
planes (list[[point, normal] |
compas.geometry.Plane
])- Returns
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])