opencascade-sys 0.3.0

Rust bindings to the OpenCascade CAD Kernel
pub use inner::*;

#[cxx::bridge]
mod inner {
    unsafe extern "C++" {
        include!("opencascade-sys/include/b_rep_mesh.hxx");

        type TopoDS_Shape = crate::topo_ds::TopoDS_Shape;

        type BRepMesh_IncrementalMesh;
        #[cxx_name = "construct_unique"]
        fn IncrementalMesh_new(
            shape: &TopoDS_Shape,
            deflection: f64,
        ) -> UniquePtr<BRepMesh_IncrementalMesh>;
        fn Shape(self: &BRepMesh_IncrementalMesh) -> &TopoDS_Shape;
        fn IsDone(self: &BRepMesh_IncrementalMesh) -> bool;
    }
}