Struct cavalier_contours::polyline::BooleanPlineSlice
source · pub struct BooleanPlineSlice<T = f64> {
pub view_data: PlineViewData<T>,
pub source_is_pline1: bool,
pub overlapping: bool,
}
Expand description
Open polyline slice created in the process of performing a polyline boolean operation.
Fields§
§view_data: PlineViewData<T>
View data for the slice, can be used with source polyline to form a view of the vertexes for the slice.
source_is_pline1: bool
If true then the source polyline for this slice is pline1 from the boolean operation otherwise it is pline2.
overlapping: bool
Whether the slice is an overlapping slice or not (both polylines in the boolean operation overlapped along this slice).
Implementations§
source§impl<T> BooleanPlineSlice<T>where
T: Real,
impl<T> BooleanPlineSlice<T>where
T: Real,
pub fn from_open_pline_slice( data: &PlineViewData<T>, source_is_pline1: bool, inverted: bool ) -> Self
pub fn from_overlapping<P>(
source: &P,
overlapping_slice: &OverlappingSlice<T>,
inverted: bool
) -> Selfwhere
P: PlineSource<Num = T> + ?Sized,
pub fn view<'a, P>(&self, source: &'a P) -> PlineView<'a, P>where
P: PlineSource<Num = T> + ?Sized,
Trait Implementations§
source§impl<T: Clone> Clone for BooleanPlineSlice<T>
impl<T: Clone> Clone for BooleanPlineSlice<T>
source§fn clone(&self) -> BooleanPlineSlice<T>
fn clone(&self) -> BooleanPlineSlice<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for BooleanPlineSlice<T>
impl<T: Debug> Debug for BooleanPlineSlice<T>
impl<T: Copy> Copy for BooleanPlineSlice<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for BooleanPlineSlice<T>where
T: RefUnwindSafe,
impl<T> Send for BooleanPlineSlice<T>where
T: Send,
impl<T> Sync for BooleanPlineSlice<T>where
T: Sync,
impl<T> Unpin for BooleanPlineSlice<T>where
T: Unpin,
impl<T> UnwindSafe for BooleanPlineSlice<T>where
T: UnwindSafe,
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