Struct ExactBRep

Source
pub struct ExactBRep { /* private fields */ }
Expand description

Owned, analytic boundary representation.

Every edge and pcurve use has a finite, non-zero native parameter span. An interval is deliberately owned here rather than inferred from endpoints: periodic supports, reversed pcurves, and parameter re-mapping are not recoverable from coordinates. The result may be an open sheet; an eventual exact-solid contract will additionally require a selected closed shell.

Implementations§

Source§

impl ExactBRep

Source

pub fn face_name(&self, face: FaceId) -> Option<&FaceName>

Persistent structural name for a face, when the producer supplied one.

Absence means the producing operation did not track provenance, not that the face is invalid. Callers that require a name should treat None as a refusal rather than substituting an index.

Source

pub fn edge_name(&self, edge: EdgeId) -> Option<&EdgeName>

Persistent structural name for an edge, when the producer supplied one.

Source

pub fn face_by_name(&self, name: &FaceName) -> Option<FaceId>

Find the face carrying name.

This is the lookup that makes names useful across operations: a caller holding a name from before an edit resolves it against the new result instead of hoping an arena index still points at the same face.

Source

pub fn edge_by_name(&self, name: &EdgeName) -> Option<EdgeId>

Find the edge carrying name.

Source

pub fn name_caps(&mut self, start: Option<FaceName>, end: Option<FaceName>)

Name the two cap faces of a swept solid after assembly.

The caps are identified by construction order – a sweep adds the start cap then the end cap before any wall – rather than by geometry, because a cap that shares a plane with a wall would be ambiguous geometrically. Passing None leaves that cap unnamed.

Source

pub fn topology(&self) -> &ExactTopology

Structural topology with typed support handles.

Source

pub fn curves3(&self) -> &[Curve3]

Owned exact 3D curve supports.

Source

pub fn curves2(&self) -> &[Curve2]

Owned exact 2D trim-curve supports.

Source

pub fn surfaces(&self) -> &[Surface]

Owned exact support surfaces.

Source

pub fn edge_interval(&self, edge: EdgeId) -> Option<Interval>

Native parameter span oriented from an edge’s start vertex to its end.

Source

pub fn pcurve_interval( &self, loop_id: LoopId, use_index: usize, ) -> Option<Interval>

Native parameter span for an edge use’s pcurve in loop traversal order.

Trait Implementations§

Source§

impl Clone for ExactBRep

Source§

fn clone(&self) -> ExactBRep

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ExactBRep

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for ExactBRep

Source§

fn eq(&self, other: &ExactBRep) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for ExactBRep

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.