pub struct BSplineSurface {
pub u_degree: u16,
pub v_degree: u16,
pub control_points: Vec<Vec<Point3>>,
pub u_knots: Vec<Scalar>,
pub u_multiplicities: Vec<u32>,
pub v_knots: Vec<Scalar>,
pub v_multiplicities: Vec<u32>,
pub weights: Option<Vec<Vec<Scalar>>>,
pub u_closed: bool,
pub v_closed: bool,
pub knot_spec: KnotSpec,
pub self_intersect: Option<bool>,
}Expand description
Tensor-product B-spline surface preserving exact knot and weight data.
Fields§
§u_degree: u16Degree along the first parameter axis.
v_degree: u16Degree along the second parameter axis.
control_points: Vec<Vec<Point3>>Rectangular control net, row-major in u then v.
u_knots: Vec<Scalar>Distinct knots along u.
u_multiplicities: Vec<u32>Multiplicities matching u_knots.
v_knots: Vec<Scalar>Distinct knots along v.
v_multiplicities: Vec<u32>Multiplicities matching v_knots.
weights: Option<Vec<Vec<Scalar>>>Optional rational weight net matching the control net shape.
u_closed: boolWhether the surface closes along u.
v_closed: boolWhether the surface closes along v.
knot_spec: KnotSpecSource knot convention.
self_intersect: Option<bool>Whether the source declares self intersection.
Implementations§
Trait Implementations§
Source§impl Clone for BSplineSurface
impl Clone for BSplineSurface
Source§fn clone(&self) -> BSplineSurface
fn clone(&self) -> BSplineSurface
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 Debug for BSplineSurface
impl Debug for BSplineSurface
Source§impl PartialEq for BSplineSurface
impl PartialEq for BSplineSurface
impl StructuralPartialEq for BSplineSurface
Auto Trait Implementations§
impl Freeze for BSplineSurface
impl RefUnwindSafe for BSplineSurface
impl Send for BSplineSurface
impl Sync for BSplineSurface
impl Unpin for BSplineSurface
impl UnwindSafe for BSplineSurface
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