Struct truck_rendimpl::polymesh::StructuredMesh [−][src]
structured quadrangle mesh
Fields
positions: Vec<Vec<Point3<f64>, Global>, Global>
positions of each lattice points
uv_division: (Vec<f64, Global>, Vec<f64, Global>)
uv coordinates
normals: Vec<Vec<Vector3<f64>, Global>, Global>
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<f64>, Vector = Vector3<f64>> + ParameterDivision2D,
[src]
S: Surface<Point = Point3<f64>, Vector = Vector3<f64>> + ParameterDivision2D,
meshing the bspline surface
Arguments
bspsurface
- bspline surface to meshedtol
- standard tolerance for meshing
impl StructuredMesh
[src]
pub fn new(
positions: Vec<Vec<Point3<f64>, Global>, Global>,
(Vec<f64, Global>, Vec<f64, Global>),
normals: Vec<Vec<Vector3<f64>, Global>, Global>
) -> StructuredMesh
[src]
positions: Vec<Vec<Point3<f64>, Global>, Global>,
(Vec<f64, Global>, Vec<f64, Global>),
normals: Vec<Vec<Vector3<f64>, Global>, Global>
) -> StructuredMesh
Creates new structured mesh. Checks whether the size of vectors are compatible before creation.
pub fn new_unchecked(
positions: Vec<Vec<Point3<f64>, Global>, Global>,
(Vec<f64, Global>, Vec<f64, Global>),
normals: Vec<Vec<Vector3<f64>, Global>, Global>
) -> StructuredMesh
[src]
positions: Vec<Vec<Point3<f64>, Global>, Global>,
(Vec<f64, Global>, Vec<f64, Global>),
normals: Vec<Vec<Vector3<f64>, Global>, Global>
) -> StructuredMesh
Creates new structured mesh. Does not check whether the size of vectors are compatible before creation.
pub fn by_positions(
positions: Vec<Vec<Point3<f64>, Global>, Global>
) -> StructuredMesh
[src]
positions: Vec<Vec<Point3<f64>, Global>, Global>
) -> StructuredMesh
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]
pub fn clone(&self) -> StructuredMesh
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for StructuredMesh
[src]
impl IntoInstance for StructuredMesh
[src]
type Instance = PolygonInstance
the type of instance
fn into_instance(
&self,
device: &Device,
desc: InstanceDescriptor
) -> Self::Instance
[src]
&self,
device: &Device,
desc: InstanceDescriptor
) -> Self::Instance
fn update_instance(&self, device: &Device, instance: &mut Self::Instance)
[src]
Auto Trait Implementations
impl RefUnwindSafe for StructuredMesh
[src]
impl Send for StructuredMesh
[src]
impl Sync for StructuredMesh
[src]
impl Unpin for StructuredMesh
[src]
impl UnwindSafe for StructuredMesh
[src]
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> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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>,