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: String
A 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: usize
The index into inputs
for the Semantic::Position
input (which must exist).
extra: Vec<Extra>
Provides arbitrary additional information about this element.
Implementations§
source§impl 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).
source§impl 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
.