Hello,
I am new to V-REP, and I looked at the Milling Robot video about the "cutting" functionality of V-REP, does the "cutting" use the mesh 'cutting" functions inside V-REP? I looked at the CMeshManip class inside the V-REP source code, but could not find which functions
does the "Boolean" operation, could someone explain or pointer something about how the "cutting" was implemented for the cutting simulation?
cutting simulation
Re: cutting simulation
Hello Jeffer,
have a look at following files:
That's just a very rough overview.
Cheers
have a look at following files:
- v_rep/sourceCode/3dObjects/Mill.cpp
- v_rep/sourceCode/3dObjects/millObjectRelated/CuttingRoutine.cpp
- v_rep/sourceCode/interfaces/collDistInterface.cpp
- meshCalculationPlugin/sourceCode/collDistAlgos/collDistAlgos.cpp
That's just a very rough overview.
Cheers
Re: cutting simulation
Hello Coppelia,
I am wondering if it is possible to visualize and export the mesh which originates from the cutting algorithm. I performed some milling on a mesh with all edges visible, but I could not see the edges of the new triangles created during the cutting simulation. I would really need to export the mesh model produced after the milling, ideally as an STL file. Is that possible to access/export the mesh triangles contained in the Oriented-Bounding-Box hierarchy described in the answer above?
Hope to hear from you soon.
Kind regards,
Carmelo
I am wondering if it is possible to visualize and export the mesh which originates from the cutting algorithm. I performed some milling on a mesh with all edges visible, but I could not see the edges of the new triangles created during the cutting simulation. I would really need to export the mesh model produced after the milling, ideally as an STL file. Is that possible to access/export the mesh triangles contained in the Oriented-Bounding-Box hierarchy described in the answer above?
Hope to hear from you soon.
Kind regards,
Carmelo
Re: cutting simulation
Hello Carmelo,
the cutting algorithm is far from perfect and might be taken out of V-REP in future.
But normally you can call sim.applyMilling on the shape to make the change permanent. Then you should be able to access the modified data.
Cheers
the cutting algorithm is far from perfect and might be taken out of V-REP in future.
But normally you can call sim.applyMilling on the shape to make the change permanent. Then you should be able to access the modified data.
Cheers