alecjacobson / gptoolbox

Matlab toolbox for Geometry Processing.
MIT License
628 stars 166 forks source link

fix slice_triangles. Keep edge to intersected triangle pairing consis… #106

Open pzpzpzp1 opened 3 years ago

pzpzpzp1 commented 3 years ago

slice_triangles returns E, a list of edges that are the set of intersections between a plane and the triangle mesh J, a list of the intersected triangles These should match in number of rows, but didn't because a unique was applied to E and not J. This fixes the issue.