bschwind / opencascade-rs

Rust bindings to the OpenCascade CAD Kernel
GNU Lesser General Public License v2.1
118 stars 22 forks source link

IGES support #184

Open fidoriel opened 1 week ago

fidoriel commented 1 week ago

It would be very nice, if the OCCT iges importer would be supported within the high opencascade api abstraction like step is.

https://dev.opencascade.org/doc/overview/html/occt_user_guides__iges.html

bschwind commented 1 week ago

Yes, this can be added back in now that we have more upload space on crates.io for occt-sys

fidoriel commented 1 week ago

Oh, it was in there but has been removed, so everything is already done? Great.

bschwind commented 1 week ago

Oh, it was in there but has been removed, so everything is already done?

Not quite - The C++ code was excluded via a Cargo.toml exclude path to get the crate size down, but it should now be included.

So the bindings were never there, but it should be straightforward to follow the bindings for STEP and STL import/export in order to add support for IGES.

fidoriel commented 1 week ago

Oh, it was in there but has been removed, so everything is already done?

Not quite - The C++ code was excluded via a Cargo.toml exclude path to get the crate size down, but it should now be included.

So the bindings were never there, but it should be straightforward to follow the bindings for STEP and STL import/export in order to add support for IGES.

Bindings were not difficult. Difficult was to understand which functions to call in the c++ classes. And to figure out why the linker was not working. Spoiler: IGES was not compiled ;)