#[non_exhaustive]pub enum TrimSelector {
Parameter(Scalar),
Point2(Point2),
Point3(Point3),
ArcLength(Scalar),
}Expand description
One trim selector preserved from a source representation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Parameter(Scalar)
Curve parameter.
Point2(Point2)
Two-dimensional point.
Point3(Point3)
Three-dimensional point.
ArcLength(Scalar)
Arc length along the basis curve.
Selects the basis parameter at which the arc length along the basis,
measured from the basis curve’s parameter 0 in the sense of the
trim, equals the value: in increasing parameter when the trim agrees
with the basis, in decreasing parameter when it does not. A negative
value measures the other way.
The value is exact stored data, and it is a parameter-kind selector:
it names a position by a measure along the curve, not by a point, so
it satisfies TrimmingPreference::Parameter. Most curves have no
closed-form arc length (a cubic parabola’s is elliptic), so an
evaluator resolves the parameter by quadrature and a root find to a
tolerance it states, and a path that cannot refuses by name.
Trait Implementations§
Source§impl Clone for TrimSelector
impl Clone for TrimSelector
Source§fn clone(&self) -> TrimSelector
fn clone(&self) -> TrimSelector
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more