pub struct VectorSurface { /* private fields */ }Expand description
Immutable prepared fill silhouette for deterministic area-uniform sampling. Images/strokes are not filled path regions. Paint alpha is not a density; zero-opacity groups are omitted, clips/holes and overlapping fills are honored.
Implementations§
Source§impl VectorSurface
impl VectorSurface
Sourcepub fn triangles(&self) -> &[SurfaceTriangle]
pub fn triangles(&self) -> &[SurfaceTriangle]
Read-only continuous triangles, including clipped/holed decomposition.
Sourcepub fn tolerance(&self) -> f64
pub fn tolerance(&self) -> f64
Requested maximum Wang curve-deviation tolerance in tree coordinates.
Sourcepub fn sample_points(
&self,
count: usize,
seed: u64,
) -> Result<Vec<Point>, ValidationError>
pub fn sample_points( &self, count: usize, seed: u64, ) -> Result<Vec<Point>, ValidationError>
Pure deterministic area selection and barycentric Halton sampling.
Sourcepub fn sample_colored_points(
&self,
count: usize,
seed: u64,
) -> Result<Vec<(Point, [f32; 4])>, ValidationError>
pub fn sample_colored_points( &self, count: usize, seed: u64, ) -> Result<Vec<(Point, [f32; 4])>, ValidationError>
Samples the same geometric points as sample_points and composites their retained fill stacks.
Trait Implementations§
Source§impl Clone for VectorSurface
impl Clone for VectorSurface
Auto Trait Implementations§
impl !RefUnwindSafe for VectorSurface
impl !UnwindSafe for VectorSurface
impl Forget for VectorSurface
impl Freeze for VectorSurface
impl Move for VectorSurface
impl Send for VectorSurface
impl Sync for VectorSurface
impl Unpin for VectorSurface
impl UnsafeUnpin for VectorSurface
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