Substract meshes


I have two already constructed meshes and I what to substract one from the other (make a hole in the bigger mesh with the shape of the smaller mesh). Is that possible?


Use the trunc function.

I read a lot about the Trunc function, but I could’t figure it out how give two meshes as parameters. Before asking I tried something like:

mesh Th = trunc(Th0, Sh);

Where Th0 is the bigger mesh and Sh the smaller mesh. I couldn’t make it work.

NOTE: I’m working with 2D meshes

THe problem is not so simple, to remove a part of the mesh inside other mesh.

To day in freefem++, the only way in build a mesh from all the boundary, by hand, and than use trunc of remove some part!