I have a set of points which forms a closed loop, and I want to perform cutting/clipping a 3D model using this loop. I have used VTK but in some cases, it has a "Cannot follow edges" problem.

Is there any free library I can use to do such operation?

  • What is the representation of your 3D model? Is it a mesh, BRep, NURBS, …? – nicoguaro May 15 at 19:50
  • It is a mesh which is stored in th STL format – minpu May 15 at 23:32
  • 2
    The statement of your requirements is unclear; a 3D volume can be cut by defining a surface, not a curve. – Bill Greene May 17 at 10:38

It is a bit suspicious that VTK (and supposedly Paraview) has troubles with your mesh: there is a slight chance that there are some troubles with it.

One solution would be to try using GMSH. It supports STL input and certainly has clipping capability. Now, with the newest versions, it also supports access to its functionality via API for at least C/C++/Python.

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.