Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
32758df23This file is pinned to the selected release. Download the original to open it in your design tool.
pub use inner::*;
#[cxx::bridge]
mod inner {
unsafe extern "C++" {
include!("opencascade-sys/include/b_rep_prim_api.hxx");
type gp_Pnt = crate::gp::gp_Pnt;
type gp_Vec = crate::gp::gp_Vec;
type gp_Ax1 = crate::gp::gp_Ax1;
type gp_Ax2 = crate::gp::gp_Ax2;
type TopoDS_Shape = crate::topo_ds::TopoDS_Shape;
type Message_ProgressRange = crate::message::Message_ProgressRange;
type BRepPrimAPI_MakePrism;
#[cxx_name = "construct_unique"]
pub fn BRepPrimAPI_MakePrism_new(
shape: &TopoDS_Shape,
vec: &gp_Vec,
copy: bool,
canonize: bool,
) -> UniquePtr<BRepPrimAPI_MakePrism>;
pub fn Shape(self: Pin<&mut BRepPrimAPI_MakePrism>) -> &TopoDS_Shape;
pub fn Build(self: Pin<&mut BRepPrimAPI_MakePrism>, progress: &Message_ProgressRange);
pub fn IsDone(self: &BRepPrimAPI_MakePrism) -> bool;
type BRepPrimAPI_MakeRevol;
#[cxx_name = "construct_unique"]
pub fn BRepPrimAPI_MakeRevol_new(
shape: &TopoDS_Shape,
axis: &gp_Ax1,
angle: f64,
copy: bool,
) -> UniquePtr<BRepPrimAPI_MakeRevol>;
pub fn Shape(self: Pin<&mut BRepPrimAPI_MakeRevol>) -> &TopoDS_Shape;
pub fn Build(self: Pin<&mut BRepPrimAPI_MakeRevol>, progress: &Message_ProgressRange);
pub fn IsDone(self: &BRepPrimAPI_MakeRevol) -> bool;
type BRepPrimAPI_MakeCylinder;
#[cxx_name = "construct_unique"]
pub fn BRepPrimAPI_MakeCylinder_new(
coord_system: &gp_Ax2,
radius: f64,
height: f64,
) -> UniquePtr<BRepPrimAPI_MakeCylinder>;
pub fn Shape(self: Pin<&mut BRepPrimAPI_MakeCylinder>) -> &TopoDS_Shape;
pub fn Build(self: Pin<&mut BRepPrimAPI_MakeCylinder>, progress: &Message_ProgressRange);
pub fn IsDone(self: &BRepPrimAPI_MakeCylinder) -> bool;
type BRepPrimAPI_MakeBox;
#[cxx_name = "construct_unique"]
pub fn BRepPrimAPI_MakeBox_new(
point: &gp_Pnt,
dx: f64,
dy: f64,
dz: f64,
) -> UniquePtr<BRepPrimAPI_MakeBox>;
pub fn Shape(self: Pin<&mut BRepPrimAPI_MakeBox>) -> &TopoDS_Shape;
pub fn Build(self: Pin<&mut BRepPrimAPI_MakeBox>, progress: &Message_ProgressRange);
pub fn IsDone(self: &BRepPrimAPI_MakeBox) -> bool;
type BRepPrimAPI_MakeSphere;
#[cxx_name = "construct_unique"]
pub fn BRepPrimAPI_MakeSphere_new(
axis: &gp_Ax2,
r: f64,
angle_1: f64,
) -> UniquePtr<BRepPrimAPI_MakeSphere>;
pub fn Shape(self: Pin<&mut BRepPrimAPI_MakeSphere>) -> &TopoDS_Shape;
pub fn Build(self: Pin<&mut BRepPrimAPI_MakeSphere>, progress: &Message_ProgressRange);
pub fn IsDone(self: &BRepPrimAPI_MakeSphere) -> bool;
type BRepPrimAPI_MakeCone;
#[cxx_name = "construct_unique"]
pub fn BRepPrimAPI_MakeCone_new(
axis: &gp_Ax2,
r1: f64,
r2: f64,
h: f64,
angle: f64,
) -> UniquePtr<BRepPrimAPI_MakeCone>;
pub fn Shape(self: Pin<&mut BRepPrimAPI_MakeCone>) -> &TopoDS_Shape;
pub fn Build(self: Pin<&mut BRepPrimAPI_MakeCone>, progress: &Message_ProgressRange);
pub fn IsDone(self: &BRepPrimAPI_MakeCone) -> bool;
type BRepPrimAPI_MakeTorus;
#[cxx_name = "construct_unique"]
pub fn BRepPrimAPI_MakeTorus_new(
axis: &gp_Ax2,
r1: f64,
r2: f64,
angle_1: f64,
angle_2: f64,
angle_3: f64,
) -> UniquePtr<BRepPrimAPI_MakeTorus>;
pub fn Shape(self: Pin<&mut BRepPrimAPI_MakeTorus>) -> &TopoDS_Shape;
pub fn Build(self: Pin<&mut BRepPrimAPI_MakeTorus>, progress: &Message_ProgressRange);
pub fn IsDone(self: &BRepPrimAPI_MakeTorus) -> bool;
}
}