The function minkowski_sum_3 computes the Minkowski sum of two given 3D Nef polyhedra N0 and N1. Note that the function runs in O(n3m3) time in the worst case, where n and m are the complexities of the two input polyhedra (the complexity of a Nef_polyhedron_3 is the sum of its Vertices, Halfedges and SHalfedges).
Nef_polyhedron_3 | minkowski_sum_3 ( Nef_polyhedron_3 N0, Nef_polyhedron_3 N1) |
Precondition
An input polyhedron may consist of:
Taking a different viewpoint, the implementation is restricted as follows:
Postcondition
If either of the input polyhedra is non-convex, it is modified during the computation, i.e., it is decomposed into convex pieces.