cutdigital / mcut

A library for detecting and resolving intersections between two surface meshes.
https://cutdigital.github.io/mcut.site
Other
413 stars 76 forks source link

Get triangulation face map #18

Closed brunnerant closed 1 year ago

brunnerant commented 1 year ago

Hello,

Using MC_CONNECTED_COMPONENT_DATA_FACE_MAP, it is possible to map from output faces to the corresponding faces from the input meshes. I was wondering if it is possible to do the same thing with the triangulated faces ? That is, would it be possible to know, for each triangle of the output mesh, from which input face it originates ?

Thanks for your help !

chitalu commented 1 year ago

Hi @brunnerant,

would it be possible to know, for each triangle of the output mesh, from which input face it originates ?

Yes. You can instead use MC_CONNECTED_COMPONENT_DATA_FACE_TRIANGULATION_MAP.

brunnerant commented 1 year ago

On which branch is this feature available ?

chitalu commented 1 year ago

My bad. It is on the dev branch. I will merge the changes into master by next week.

chitalu commented 1 year ago

done.