Let's say I have a Surface(S1
), and I have another surface (S2
) that cuts through it. How to find the polyhedron formed by the intersection of the two, as shown?
In the above example, there should be two polyhedrons returned, one above S2
, another below S1
.
But S1 and S2 are defined by 3D coordinates. Let's say the coordinates for S1 is (P1,P2, P3, P4
) and S2 is P5,P6, P7, P8
, and the intersected points are P9
and P10
. I want a program that returns me two polyhedrons:
P1,P2,P9,P10,P5,P6
and
P3,P4,P10,P9,P7,P8
I am aware that it is possible to get the intersection point of the two surfaces and form polyhedrons, but it would be good if I have a builtin matlab function for this