pub struct BRep<Curve3, Curve2 = Curve3, Surface = Curve3> { /* private fields */ }Expand description
Owned B-rep. Generic geometry handles avoid a dependency cycle with the model graph that stores exact curves and surfaces.
Implementations§
Source§impl<Curve3, Curve2, Surface> BRep<Curve3, Curve2, Surface>
impl<Curve3, Curve2, Surface> BRep<Curve3, Curve2, Surface>
Sourcepub fn try_reserve(
&mut self,
vertices: usize,
edges: usize,
loops: usize,
faces: usize,
shells: usize,
solids: usize,
) -> Result<(), TryReserveError>
pub fn try_reserve( &mut self, vertices: usize, edges: usize, loops: usize, faces: usize, shells: usize, solids: usize, ) -> Result<(), TryReserveError>
Fallibly reserve append-only arena capacity for bounded construction.
Sourcepub fn add_vertex(&mut self, value: Vertex) -> VertexId
pub fn add_vertex(&mut self, value: Vertex) -> VertexId
Add a vertex and return its typed handle.
Sourcepub fn add_edge(&mut self, value: Edge<Curve3>) -> EdgeId
pub fn add_edge(&mut self, value: Edge<Curve3>) -> EdgeId
Add an edge and return its typed handle.
Sourcepub fn add_loop(&mut self, value: Loop<Curve2>) -> LoopId
pub fn add_loop(&mut self, value: Loop<Curve2>) -> LoopId
Add a loop and return its typed handle.
Sourcepub fn add_face(&mut self, value: Face<Surface>) -> FaceId
pub fn add_face(&mut self, value: Face<Surface>) -> FaceId
Add a face and return its typed handle.
Sourcepub fn edge_id_at(&self, index: usize) -> Option<EdgeId>
pub fn edge_id_at(&self, index: usize) -> Option<EdgeId>
Edge handle at a dense arena index, if present.
Sourcepub fn loop_id_at(&self, index: usize) -> Option<LoopId>
pub fn loop_id_at(&self, index: usize) -> Option<LoopId>
Loop handle at a dense arena index, if present.
Sourcepub fn face_id_at(&self, index: usize) -> Option<FaceId>
pub fn face_id_at(&self, index: usize) -> Option<FaceId>
Face handle at a dense arena index, if present.
Trait Implementations§
Source§impl<Curve3, Curve2, Surface> PartialEq for BRep<Curve3, Curve2, Surface>
impl<Curve3, Curve2, Surface> PartialEq for BRep<Curve3, Curve2, Surface>
impl BuiltInNode for BRep<NodeId>
impl<Curve3, Curve2, Surface> StructuralPartialEq for BRep<Curve3, Curve2, Surface>
Auto Trait Implementations§
impl<Curve3, Curve2, Surface> Freeze for BRep<Curve3, Curve2, Surface>
impl<Curve3, Curve2, Surface> RefUnwindSafe for BRep<Curve3, Curve2, Surface>
impl<Curve3, Curve2, Surface> Send for BRep<Curve3, Curve2, Surface>
impl<Curve3, Curve2, Surface> Sync for BRep<Curve3, Curve2, Surface>
impl<Curve3, Curve2, Surface> Unpin for BRep<Curve3, Curve2, Surface>
impl<Curve3, Curve2, Surface> UnwindSafe for BRep<Curve3, Curve2, Surface>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more