opencascade-sys 0.3.0

Rust bindings to the OpenCascade CAD Kernel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub use inner::*;

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

        type gp_Trsf = crate::gp::gp_Trsf;

        type TopLoc_Location;
        #[cxx_name = "construct_unique"]
        fn Location_new() -> UniquePtr<TopLoc_Location>;
        #[cxx_name = "construct_unique"]
        fn Location_from_transform(transform: &gp_Trsf) -> UniquePtr<TopLoc_Location>;
        fn TopLoc_Location_Transformation(location: &TopLoc_Location) -> UniquePtr<gp_Trsf>;
    }
}