Struct truck_polymesh::StructuredMesh [−][src]
structured quadrangle mesh
Implementations
impl StructuredMesh
[src]
pub fn from_surface<S>(bspsurface: &S, tol: f64) -> StructuredMesh where
S: Surface<Point = Point3, Vector = Vector3> + ParameterDivision2D,
[src]
S: Surface<Point = Point3, Vector = Vector3> + ParameterDivision2D,
meshing the bspline surface
Arguments
bspsurface
- bspline surface to meshedtol
- standard tolerance for meshing
impl StructuredMesh
[src]
pub fn from_positions(positions: Vec<Vec<Point3>>) -> StructuredMesh
[src]
Creates a structured polygon without uv_division
and normal
.
pub fn try_from_positions(positions: Vec<Vec<Point3>>) -> Result<StructuredMesh>
[src]
Creates a structured polygon without uv_division
and normal
.
pub fn from_positions_unchecked(positions: Vec<Vec<Point3>>) -> StructuredMesh
[src]
Creates a structured polygon without uv_division
and normal
.
pub fn from_positions_and_uvs(
positions: Vec<Vec<Point3>>,
(u_div, v_div): (Vec<f64>, Vec<f64>)
) -> StructuredMesh
[src]
positions: Vec<Vec<Point3>>,
(u_div, v_div): (Vec<f64>, Vec<f64>)
) -> StructuredMesh
Creates a structured polygon without normals.
pub fn try_from_positions_and_uvs(
positions: Vec<Vec<Point3>>,
(u_div, v_div): (Vec<f64>, Vec<f64>)
) -> Result<StructuredMesh>
[src]
positions: Vec<Vec<Point3>>,
(u_div, v_div): (Vec<f64>, Vec<f64>)
) -> Result<StructuredMesh>
Creates a structured polygon without normals.
pub fn from_positions_and_uvs_unchecked(
positions: Vec<Vec<Point3>>,
uv_divisions: (Vec<f64>, Vec<f64>)
) -> StructuredMesh
[src]
positions: Vec<Vec<Point3>>,
uv_divisions: (Vec<f64>, Vec<f64>)
) -> StructuredMesh
Creates a structured polygon without normals.
pub fn from_positions_and_normals(
positions: Vec<Vec<Point3>>,
normals: Vec<Vec<Vector3>>
) -> StructuredMesh
[src]
positions: Vec<Vec<Point3>>,
normals: Vec<Vec<Vector3>>
) -> StructuredMesh
Creates a structured polygon without uv divisions.
pub fn try_from_positions_and_normals(
positions: Vec<Vec<Point3>>,
normals: Vec<Vec<Vector3>>
) -> Result<StructuredMesh>
[src]
positions: Vec<Vec<Point3>>,
normals: Vec<Vec<Vector3>>
) -> Result<StructuredMesh>
Creates a structured polygon without uv divisions.
pub fn from_positions_and_normals_unchecked(
positions: Vec<Vec<Point3>>,
normals: Vec<Vec<Vector3>>
) -> StructuredMesh
[src]
positions: Vec<Vec<Point3>>,
normals: Vec<Vec<Vector3>>
) -> StructuredMesh
Creates a structured polygon without uv divisions.
pub fn new(
positions: Vec<Vec<Point3>>,
uv_division: (Vec<f64>, Vec<f64>),
normals: Vec<Vec<Vector3>>
) -> StructuredMesh
[src]
positions: Vec<Vec<Point3>>,
uv_division: (Vec<f64>, Vec<f64>),
normals: Vec<Vec<Vector3>>
) -> StructuredMesh
Creates new structured mesh. Checks whether the size of vectors are compatible before creation.
pub fn try_new(
positions: Vec<Vec<Point3>>,
(u_div, v_div): (Vec<f64>, Vec<f64>),
normals: Vec<Vec<Vector3>>
) -> Result<StructuredMesh>
[src]
positions: Vec<Vec<Point3>>,
(u_div, v_div): (Vec<f64>, Vec<f64>),
normals: Vec<Vec<Vector3>>
) -> Result<StructuredMesh>
Creates new structured mesh. Checks whether the size of vectors are compatible before creation.
pub fn new_unchecked(
positions: Vec<Vec<Point3>>,
uv_division: (Vec<f64>, Vec<f64>),
normals: Vec<Vec<Vector3>>
) -> StructuredMesh
[src]
positions: Vec<Vec<Point3>>,
uv_division: (Vec<f64>, Vec<f64>),
normals: Vec<Vec<Vector3>>
) -> StructuredMesh
Creates new structured mesh. Does not check whether the size of vectors are compatible before creation.
pub fn positions(&self) -> &Vec<Vec<Point3>>
[src]
Returns the matrix of all positions.
pub fn positions_mut(&mut self) -> Vec<&mut [Point3]>
[src]
Returns the vector of the mutable references to the rows of the positions matrix.
pub fn uv_division(&self) -> Option<(&Vec<f64>, &Vec<f64>)>
[src]
Returns the divisions of uv coordinates.
pub fn uv_division_mut(&mut self) -> Option<(&mut [f64], &mut [f64])>
[src]
Returns the mutable slice of uv coordinates division.
pub fn normals(&self) -> Option<&Vec<Vec<Vector3>>>
[src]
Returns the matrix of all normals.
pub fn normals_mut(&mut self) -> Option<Vec<&mut [Vector3]>>
[src]
Returns the vector of the mutable references to the rows of the normals matrix.
pub fn destruct(self) -> PolygonMesh
[src]
Creates new polygon mesh by destructing self
.
Trait Implementations
impl Clone for StructuredMesh
[src]
fn clone(&self) -> StructuredMesh
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for StructuredMesh
[src]
impl<'de> Deserialize<'de> for StructuredMesh
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for StructuredMesh
[src]
Auto Trait Implementations
impl RefUnwindSafe for StructuredMesh
impl Send for StructuredMesh
impl Sync for StructuredMesh
impl Unpin for StructuredMesh
impl UnwindSafe for StructuredMesh
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,