Struct dae_parser::Vertices
source · [−]pub struct Vertices {
pub id: String,
pub name: Option<String>,
pub inputs: Vec<Input>,
pub position: usize,
pub extra: Vec<Extra>,
}Expand description
Declares the attributes and identity of mesh-vertices.
Fields
id: StringA text string containing the unique identifier of the element. This value must be unique within the document.
name: Option<String>The text string name of this element.
inputs: Vec<Input>The list of inputs.
position: usizeThe index into inputs for the Semantic::Position input (which must exist).
extra: Vec<Extra>Provides arbitrary additional information about this element.
Implementations
sourceimpl Vertices
impl Vertices
sourcepub fn importer<'a, R: UrlResolver<'a, Source>>(
&'a self,
res: &R
) -> Result<VertexImporter<'a>, R::Error>
pub fn importer<'a, R: UrlResolver<'a, Source>>(
&'a self,
res: &R
) -> Result<VertexImporter<'a>, R::Error>
Construct a VertexImporter from the Vertices data. It requires a UrlResolver
to find the source arrays (which are usually but not always stored in the Mesh itself).
sourceimpl Vertices
impl Vertices
sourcepub fn new(id: impl Into<String>, inputs: Vec<Input>) -> Self
pub fn new(id: impl Into<String>, inputs: Vec<Input>) -> Self
Construct a new Vertices object with the given inputs.
- One of the inputs must have
Semantic::Position.
sourcepub fn position_input(&self) -> &Input
pub fn position_input(&self) -> &Input
The input with Semantic::Position.
Trait Implementations
sourceimpl HasId for Vertices
impl HasId for Vertices
sourcefn get_local_map<'a, 'b>(
maps: &'b LocalMaps<'a>
) -> &'b Option<LocalMap<'a, Self>>
fn get_local_map<'a, 'b>(
maps: &'b LocalMaps<'a>
) -> &'b Option<LocalMap<'a, Self>>
Extract the relevant LocalMap field from a LocalMaps.
sourcefn get_local_map_mut<'a, 'b>(
maps: &'b mut LocalMaps<'a>
) -> &'b mut Option<LocalMap<'a, Self>>
fn get_local_map_mut<'a, 'b>(
maps: &'b mut LocalMaps<'a>
) -> &'b mut Option<LocalMap<'a, Self>>
Extract the relevant LocalMap field from a LocalMaps.
Auto Trait Implementations
impl RefUnwindSafe for Vertices
impl Send for Vertices
impl Sync for Vertices
impl Unpin for Vertices
impl UnwindSafe for Vertices
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more