Closed AlexGrig55 closed 2 weeks ago
target.off is oriented inside-out. It means that it represent the whole space minus the shape. So when calling with close_volume=true
, you intersect the whole space minus the shape with the cube. So you end-up with the cube minus the shape. If not closing the volume, you get only the faces inside the cube. If you can PMP::reverse_face_orientations(target)
you should get what you expect.
CGAL 6.0.1, Windows 10
I am trying to clip the closed mesh with another closed mesh and I get an incorrect result. With CGAL::parameters::default_values().clip_volume(false) the result is correct.
clipper:
target:
result:
correct result:
clipper file: clipper.off.txt
target file: target.off.txt
code: