Intersection of two shapes

Good afternoon,

I have a question how to find the intersection of two shapes (STL format) and then write their intersection to a file?

Thank you in advance)

Kirill Gavrilov's picture

OCCT implements Boolean operations for B-Rep shapes.
STL format defines triangulation, and so far OCCT has no tools implementing Boolean operations on triangulation data.

Such kind of functionality could be found in OMF (Mesh Framework).
Another approach would be surface reconstruction, but this would overcomplicate problem if result is expected in triangulation form.

disaev06_162335's picture

Спасибо за ответ, подскажите какую именно функцию использовать в OMF (Mesh Framework)? Не могу найти ничего подходящего :(

Or if it's not hard to show an example)))

Thank you in advance)

Kirill Gavrilov's picture

OMF is a commercial component, it is not a part of OCCT.
You may contact Open Cascade in case if you are interested in evaluation of this component or have missed something in its documentation.