Struct centerline::LineStringSet3
source · pub struct LineStringSet3<T: GenericVector3> {
pub set: Vec<Vec<T>>,
pub aabb: Aabb3<T>,
}
Expand description
A set of line-strings + an aabb Intended to contain related 3d shapes. E.g. outlines of letters with holes
Fields§
§set: Vec<Vec<T>>
§aabb: Aabb3<T>
Implementations§
source§impl<T: GenericVector3> LineStringSet3<T>
impl<T: GenericVector3> LineStringSet3<T>
pub fn with_capacity(capacity: usize) -> Self
pub fn set(&self) -> &Vec<Vec<T>>
pub fn is_empty(&self) -> bool
pub fn push(&mut self, ls: Vec<T>)
pub fn get_aabb(&self) -> Aabb3<T>
pub fn apply<F: Fn(T) -> T>(&mut self, f: &F)
sourcepub fn copy_to_2d(&self, plane: Plane) -> LineStringSet2<T::Vector2>
pub fn copy_to_2d(&self, plane: Plane) -> LineStringSet2<T::Vector2>
Copy this linestringset3 into a linestringset2, populating the axes defined by ‘plane’ An axis will always try to keep it’s position (e.g. y goes to y if possible). That way the operation is reversible (with regards to axis positions).
Trait Implementations§
source§impl<T: Clone + GenericVector3> Clone for LineStringSet3<T>
impl<T: Clone + GenericVector3> Clone for LineStringSet3<T>
source§fn clone(&self) -> LineStringSet3<T>
fn clone(&self) -> LineStringSet3<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: GenericVector3> Default for LineStringSet3<T>
impl<T: GenericVector3> Default for LineStringSet3<T>
source§impl<T: PartialEq + GenericVector3> PartialEq for LineStringSet3<T>
impl<T: PartialEq + GenericVector3> PartialEq for LineStringSet3<T>
source§fn eq(&self, other: &LineStringSet3<T>) -> bool
fn eq(&self, other: &LineStringSet3<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: GenericVector3> StructuralPartialEq for LineStringSet3<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for LineStringSet3<T>where
T: RefUnwindSafe,
impl<T> Send for LineStringSet3<T>
impl<T> Sync for LineStringSet3<T>
impl<T> Unpin for LineStringSet3<T>where
T: Unpin,
impl<T> UnwindSafe for LineStringSet3<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