2
votes

I have get to polygon mesh, namely A and B.

A is a closed mesh, B is an arbitrary surface. What I want to do is to cut off the part of B which located outside A. For example, if A is a polygon sphere and B is a rectangular plain, the result shall be a polygon circular plain.

I want to perform the above operation using CGAL (or may be other library if CGAL cannot do this). Any ideas about this?

1

1 Answers

2
votes

I think you want the "3D Boolean Operations on Nef Polyhedra" library:

http://doc.cgal.org/latest/Nef_3/index.html