pub enum PolyCurveSegment<'a> {
Line(&'a [usize]),
Arc([usize; 3]),
}Expand description
One member of an IfcSegmentIndexSelect.
Indices are given 0-based here and written 1-based, matching the tessellation writers: the schema counts from one, the API does not, and the conversion happens in exactly one place.
Variants§
Line(&'a [usize])
IfcLineIndex: two or more points joined by straight segments.
Arc([usize; 3])
IfcArcIndex: exactly three points – start, on-arc, end.
Trait Implementations§
Source§impl<'a> Clone for PolyCurveSegment<'a>
impl<'a> Clone for PolyCurveSegment<'a>
impl<'a> Copy for PolyCurveSegment<'a>
Auto Trait Implementations§
impl<'a> Freeze for PolyCurveSegment<'a>
impl<'a> RefUnwindSafe for PolyCurveSegment<'a>
impl<'a> Send for PolyCurveSegment<'a>
impl<'a> Sync for PolyCurveSegment<'a>
impl<'a> Unpin for PolyCurveSegment<'a>
impl<'a> UnsafeUnpin for PolyCurveSegment<'a>
impl<'a> UnwindSafe for PolyCurveSegment<'a>
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