pub struct ExactBRepBuilder { /* private fields */ }Expand description
Mutable assembly state that can only yield an ExactBRep after validation.
Implementations§
Source§impl ExactBRepBuilder
impl ExactBRepBuilder
Sourcepub fn try_reserve(
&mut self,
curves3: usize,
curves2: usize,
surfaces: usize,
edge_intervals: usize,
pcurve_intervals: usize,
) -> Result<(), TryReserveError>
pub fn try_reserve( &mut self, curves3: usize, curves2: usize, surfaces: usize, edge_intervals: usize, pcurve_intervals: usize, ) -> Result<(), TryReserveError>
Fallibly reserve owned support and interval catalogs for bounded assembly.
Sourcepub fn add_curve3(&mut self, curve: Curve3) -> Curve3Id
pub fn add_curve3(&mut self, curve: Curve3) -> Curve3Id
Store an exact 3D curve support.
Sourcepub fn add_curve2(&mut self, curve: Curve2) -> Curve2Id
pub fn add_curve2(&mut self, curve: Curve2) -> Curve2Id
Store an exact 2D pcurve support.
Sourcepub fn add_surface(&mut self, surface: Surface) -> SurfaceId
pub fn add_surface(&mut self, surface: Surface) -> SurfaceId
Store an exact surface support.
Sourcepub fn topology_mut(&mut self) -> &mut BRep<Curve3Id, Curve2Id, SurfaceId>
pub fn topology_mut(&mut self) -> &mut BRep<Curve3Id, Curve2Id, SurfaceId>
Mutable typed topology under construction. Self::finish validates it.
Sourcepub fn set_edge_interval(&mut self, edge: EdgeId, interval: Interval)
pub fn set_edge_interval(&mut self, edge: EdgeId, interval: Interval)
State an edge’s finite native curve span.
Sourcepub fn set_pcurve_interval(
&mut self,
loop_id: LoopId,
use_index: usize,
interval: Interval,
)
pub fn set_pcurve_interval( &mut self, loop_id: LoopId, use_index: usize, interval: Interval, )
State an edge use’s finite native pcurve span in its loop traversal order.
Sourcepub fn finish(self) -> Result<ExactBRep, ExactBRepError>
pub fn finish(self) -> Result<ExactBRep, ExactBRepError>
Validate and freeze the exact B-rep result.
Trait Implementations§
Source§impl Clone for ExactBRepBuilder
impl Clone for ExactBRepBuilder
Source§fn clone(&self) -> ExactBRepBuilder
fn clone(&self) -> ExactBRepBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExactBRepBuilder
impl Debug for ExactBRepBuilder
Source§impl Default for ExactBRepBuilder
impl Default for ExactBRepBuilder
Source§fn default() -> ExactBRepBuilder
fn default() -> ExactBRepBuilder
Returns the “default value” for a type. Read more
Source§impl PartialEq for ExactBRepBuilder
impl PartialEq for ExactBRepBuilder
impl StructuralPartialEq for ExactBRepBuilder
Auto Trait Implementations§
impl Freeze for ExactBRepBuilder
impl RefUnwindSafe for ExactBRepBuilder
impl Send for ExactBRepBuilder
impl Sync for ExactBRepBuilder
impl Unpin for ExactBRepBuilder
impl UnsafeUnpin for ExactBRepBuilder
impl UnwindSafe for ExactBRepBuilder
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