[][src]Struct truck_polymesh::StructuredMesh

pub struct StructuredMesh {
    pub positions: Vec<Vec<Point3>>,
    pub uv_division: (Vec<f64>, Vec<f64>),
    pub normals: Vec<Vec<Vector3>>,
}

structured quadrangle mesh

Fields

positions: Vec<Vec<Point3>>

positions of each lattice points

uv_division: (Vec<f64>, Vec<f64>)

uv coordinates

normals: Vec<Vec<Vector3>>

normal vectors of each lattice points

Implementations

impl StructuredMesh[src]

pub fn from_surface<S>(bspsurface: &S, tol: f64) -> StructuredMesh where
    S: Surface<Point = Point3, Vector = Vector3> + ParameterDivision2D
[src]

meshing the bspline surface

Arguments

  • bspsurface - bspline surface to meshed
  • tol - standard tolerance for meshing

impl StructuredMesh[src]

pub fn new(
    positions: Vec<Vec<Point3>>,
    (u_div, v_div): (Vec<f64>, Vec<f64>),
    normals: Vec<Vec<Vector3>>
) -> StructuredMesh
[src]

Creates new structured mesh. Checks whether the size of vectors are compatible before creation.

pub fn new_unchecked(
    positions: Vec<Vec<Point3>>,
    (u_div, v_div): (Vec<f64>, Vec<f64>),
    normals: Vec<Vec<Vector3>>
) -> StructuredMesh
[src]

Creates new structured mesh. Does not check whether the size of vectors are compatible before creation.

pub fn by_positions(positions: Vec<Vec<Point3>>) -> StructuredMesh[src]

Creates structured polygon without uv_division and normal.

pub fn destruct(self) -> PolygonMesh[src]

Creates new polygon by destructing self.

Trait Implementations

impl Clone for StructuredMesh[src]

impl Debug for StructuredMesh[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.