pub struct ControlNet {
pub corner: Vec<Vector3>,
pub edge: HashMap<(usize, usize), Vector3>,
pub interior: Vec<[Vector3; 4]>,
}Expand description
The shared control points of every patch of a subdivided mesh.
Fields§
§corner: Vec<Vector3>Per vertex: its limit position.
edge: HashMap<(usize, usize), Vector3>Per directed edge (v, w): the edge point near v.
interior: Vec<[Vector3; 4]>Per quad, per corner: its interior point.
Implementations§
Source§impl ControlNet
impl ControlNet
Sourcepub fn patch(&self, mesh: &Subdivided, f: usize) -> Patch
pub fn patch(&self, mesh: &Subdivided, f: usize) -> Patch
The patch of quad f, its first side running from its first corner
to the next one.
Trait Implementations§
Source§impl Clone for ControlNet
impl Clone for ControlNet
Source§fn clone(&self) -> ControlNet
fn clone(&self) -> ControlNet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ControlNet
impl RefUnwindSafe for ControlNet
impl Send for ControlNet
impl Sync for ControlNet
impl Unpin for ControlNet
impl UnsafeUnpin for ControlNet
impl UnwindSafe for ControlNet
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