pub struct ConvSegmentator<VS> { /* private fields */ }Expand description
Subdivides line segments of a vertex source for better curve approximation.
Port of C++ conv_segmentator<VertexSource>.
Thin wrapper around ConvAdaptorVpgen<VS, VpgenSegmentator>.
Implementations§
Source§impl<VS: VertexSource> ConvSegmentator<VS>
impl<VS: VertexSource> ConvSegmentator<VS>
pub fn new(source: VS) -> Self
pub fn approximation_scale(&self) -> f64
pub fn set_approximation_scale(&mut self, s: f64)
pub fn source(&self) -> &VS
pub fn source_mut(&mut self) -> &mut VS
Trait Implementations§
Source§impl<VS: VertexSource> VertexSource for ConvSegmentator<VS>
impl<VS: VertexSource> VertexSource for ConvSegmentator<VS>
Auto Trait Implementations§
impl<VS> Freeze for ConvSegmentator<VS>where
VS: Freeze,
impl<VS> RefUnwindSafe for ConvSegmentator<VS>where
VS: RefUnwindSafe,
impl<VS> Send for ConvSegmentator<VS>where
VS: Send,
impl<VS> Sync for ConvSegmentator<VS>where
VS: Sync,
impl<VS> Unpin for ConvSegmentator<VS>where
VS: Unpin,
impl<VS> UnsafeUnpin for ConvSegmentator<VS>where
VS: UnsafeUnpin,
impl<VS> UnwindSafe for ConvSegmentator<VS>where
VS: 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