FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<MeshGeometry3D>
    

    Returns a strong reference to this object.

    Source

    positions_property

    fn positions_property() -> &'static StyledProperty<Option<Point3DCollection>>
    

    Source

    normals_property

    fn normals_property() -> &'static StyledProperty<Option<Vector3DCollection>>
    

    Source

    texture_coordinates_property

    fn texture_coordinates_property() -> &'static StyledProperty<Option<Points>>
    

    Source

    triangle_indices_property

    fn triangle_indices_property() -> &'static StyledProperty<Option<Int32Collection>>
    

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    An empty mesh.

    Source

    id

    fn id(self: &Self) -> u64
    

    The identity of the mesh, unique in the process.

    Source

    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.

    Source

    positions

    fn positions(self: &Self) -> Point3DCollection
    

    The positions of the vertices. Panics if the property has been cleared.

    Source

    set_positions

    fn set_positions(self: &Self, value: Point3DCollection)
    

    Source

    normals

    fn normals(self: &Self) -> Vector3DCollection
    

    The normals of the vertices. Panics if the property has been cleared.

    Source

    set_normals

    fn set_normals(self: &Self, value: Vector3DCollection)
    

    Source

    texture_coordinates

    fn texture_coordinates(self: &Self) -> Points
    

    The texture coordinates of the vertices. Panics if the property has been cleared.

    Source

    set_texture_coordinates

    fn set_texture_coordinates(self: &Self, value: Points)
    

    Source

    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.

    Source

    set_triangle_indices

    fn set_triangle_indices(self: &Self, value: Int32Collection)
    

    Source

    mesh_data

    fn mesh_data(self: &Self) -> Arc<MeshData>
    

    The triangles in single precision, made once per version and shared.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.