Struct dae_parser::Geom [−][src]
pub struct Geom<T> {
pub name: Option<String>,
pub material: Option<String>,
pub count: usize,
pub inputs: InputList,
pub data: T,
pub extra: Vec<Extra>,
}Expand description
The common data for the geometry types:
Lines= Geom<LineGeom>LineStrips= Geom<LineStripGeom>Polygons= Geom<PolygonGeom>PolyList= Geom<PolyListGeom>Triangles= Geom<TriangleGeom>TriFans= Geom<TriFanGeom>TriStrips= Geom<TriStripGeom>
Fields
name: Option<String>The text string name of this element.
material: Option<String>Declares a symbol for a material.
This symbol is bound to a material at the time of instantiation;
see Instance<Geometry> and BindMaterial.
If not specified then the lighting and shading results are application defined.
count: usizeThe number of line/triangle/polygon primitives.
inputs: InputListThe vertex attribute access information.
data: TThe specific data for the geometry element.
extra: Vec<Extra>Provides arbitrary additional information about this element.
Implementations
pub fn importer<'a, R: UrlResolver<'a, Source>>(
&'a self,
res: &R,
vimp: VertexImporter<'a>
) -> Result<Importer<'a>, R::Error>
pub fn importer<'a, R: UrlResolver<'a, Source>>(
&'a self,
res: &R,
vimp: VertexImporter<'a>
) -> Result<Importer<'a>, R::Error>
Construct an Importer from a VertexImporter and a UrlResolver.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Geom<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Geom<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more