Struct truck_rendimpl::polymesh::StructuredMesh [−][src]
pub struct StructuredMesh { /* fields omitted */ }Expand description
structured quadrangle mesh
Implementations
pub fn from_surface<S>(
surface: &S,
range: ((f64, f64), (f64, f64)),
tol: f64
) -> StructuredMesh where
S: ParametricSurface3D + ParameterDivision2D,
pub fn from_surface<S>(
surface: &S,
range: ((f64, f64), (f64, f64)),
tol: f64
) -> StructuredMesh where
S: ParametricSurface3D + ParameterDivision2D,
meshing the surface
Arguments
bspsurface- bspline surface to meshedtol- standard tolerance for meshing
Creates a structured polygon without uv_division and normal.
pub fn try_from_positions(
positions: Vec<Vec<Point3<f64>, Global>, Global>
) -> Result<StructuredMesh, Error<StandardVertex>>
pub fn try_from_positions(
positions: Vec<Vec<Point3<f64>, Global>, Global>
) -> Result<StructuredMesh, Error<StandardVertex>>
Creates a structured polygon without uv_division and normal.
pub fn from_positions_unchecked(
positions: Vec<Vec<Point3<f64>, Global>, Global>
) -> StructuredMesh
pub fn from_positions_unchecked(
positions: Vec<Vec<Point3<f64>, Global>, Global>
) -> StructuredMesh
Creates a structured polygon without uv_division and normal.
Creates a structured polygon without normals.
Creates a structured polygon without normals.
Creates a structured polygon without normals.
Creates a structured polygon without uv divisions.
Creates a structured polygon without uv divisions.
Creates a structured polygon without uv divisions.
Creates new structured mesh. Checks whether the size of vectors are compatible before creation.
Creates new structured mesh. Checks whether the size of vectors are compatible before creation.
Creates new structured mesh. Does not check whether the size of vectors are compatible before creation.
Returns the matrix of all positions.
Returns the vector of the mutable references to the rows of the positions matrix.
Returns the divisions of uv coordinates.
Returns the mutable slice of uv coordinates division.
Returns the matrix of all normals.
Returns the vector of the mutable references to the rows of the normals matrix.
Creates new polygon mesh by destructing self.
Trait Implementations
fn buffers(
&self,
vertex_usage: BufferUsages,
index_usage: BufferUsages,
device: &Device
) -> (BufferHandler, BufferHandler)
fn buffers(
&self,
vertex_usage: BufferUsages,
index_usage: BufferUsages,
device: &Device
) -> (BufferHandler, BufferHandler)
Creates buffer handlers of attributes and indices.
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<StructuredMesh, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<StructuredMesh, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
type State = PolygonState
type State = PolygonState
Configuation deacriptor for instance.
fn to_instance(
&self,
handler: &DeviceHandler,
shaders: &PolygonShaders,
state: &PolygonState
) -> PolygonInstance
fn to_instance(
&self,
handler: &DeviceHandler,
shaders: &PolygonShaders,
state: &PolygonState
) -> PolygonInstance
Creates Instance from self.
type State = WireFrameState
type State = WireFrameState
Configuation deacriptor for instance.
Creates Instance from self.
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
Mutably borrows from an owned value. Read more