I am trying to make some perforations (circular) on an existing 2D meshes that I have previously built. For information, I can consider this mesh or only the triangular domain (without the elements inside).
For this, I have tried to make the summation of this mesh with a disc and then truncate the given mesh with an indicator function, but it does not work.
Is it possible to cut a mesh or a domain according to a curve for example ?
Basically I am looking for a function “MakeCut”, which for example works like this:
mesh TH=MakeCut(TH, x^2-y^2 < R^2) and returns the mesh TH cut by a circle.
Thank you for you reply,
Yes sure, I know this method, but I was looking for the same kind of thing for the isoline method that you proposed, since I want to consider more general case for example when the borders of the 2 meshes considered are crossing.
Originally I wanted to apply a kind of patch to an existing mesh to create a mesh with perforations. But I think this method is not suitable for my case.
I will find another solution to this (computing the intersection or use another tool for the mesh such as mmg).
it is not so hard to add an angle criteria in isoline to and separate the isoline plugin by add
un curer (border if the angle is not good, like corner).
=> no optimisation of the curve at this points
and change the array be in isoline
Pierre Jolivet @prj proposes another method with the use of mmg2d to adapt the mesh to the isoline solution before truncating the mesh according to the isoline with FreeFEM. My new perforated mesh is given by :