MeshGeometry3D
struct · ferroui-media3d · v0.5.0
struct MeshGeometry3D
WPF's MeshGeometry3D: Positions, Normals, TextureCoordinates and
TriangleIndices.
When TriangleIndices is empty the positions are taken three at a time; a triangle with an
index out of range is left out; normals are generated from the faces when there is not one
per position, as WPF does.
Members
TYPEto_refpositions_propertynormals_propertytexture_coordinates_propertytriangle_indices_propertyconstructnewidversionpositionsset_positionsnormalsset_normalstexture_coordinatesset_texture_coordinatestriangle_indicesset_triangle_indicesmesh_data
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<MeshGeometry3D>
Returns a strong reference to this object.
positions_property
fn positions_property() -> &'static StyledProperty<Option<Point3DCollection>>
normals_property
fn normals_property() -> &'static StyledProperty<Option<Vector3DCollection>>
texture_coordinates_property
fn texture_coordinates_property() -> &'static StyledProperty<Option<Points>>
triangle_indices_property
fn triangle_indices_property() -> &'static StyledProperty<Option<Int32Collection>>
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
An empty mesh.
id
fn id(self: &Self) -> u64
The identity of the mesh, unique in the process.
version
fn version(self: &Self) -> u64
The version of the content of the mesh: bumped by every change of a collection or of a property.
positions
fn positions(self: &Self) -> Point3DCollection
The positions of the vertices. Panics if the property has been cleared.
set_positions
fn set_positions(self: &Self, value: Point3DCollection)
normals
fn normals(self: &Self) -> Vector3DCollection
The normals of the vertices. Panics if the property has been cleared.
set_normals
fn set_normals(self: &Self, value: Vector3DCollection)
texture_coordinates
fn texture_coordinates(self: &Self) -> Points
The texture coordinates of the vertices. Panics if the property has been cleared.
set_texture_coordinates
fn set_texture_coordinates(self: &Self, value: Points)
triangle_indices
fn triangle_indices(self: &Self) -> Int32Collection
The indices of the vertices of the triangles, three per triangle. Panics if the property has been cleared.
set_triangle_indices
fn set_triangle_indices(self: &Self, value: Int32Collection)
mesh_data
fn mesh_data(self: &Self) -> Arc<MeshData>
The triangles in single precision, made once per version and shared.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeGeometry3DImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<MeshGeometry3D>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplGeometry3DImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.