pub struct GeometryInstanceView<'a, VR: VertexRef> { /* private fields */ }Expand description
Read view over the GeometryInstance fields of a geometry.
A GeometryInstance references a template geometry and places it at a point
in the model’s vertex pool using a 4×4 transformation matrix.
Use CityModel::resolve_geometry
to get a view of the effective (resolved) geometry type.
Implementations§
Source§impl<VR: VertexRef> GeometryInstanceView<'_, VR>
impl<VR: VertexRef> GeometryInstanceView<'_, VR>
pub fn template(&self) -> GeometryTemplateHandle
pub fn reference_point(&self) -> VertexIndex<VR>
pub fn transformation(&self) -> AffineTransform3D
Trait Implementations§
Source§impl<'a, VR: Clone + VertexRef> Clone for GeometryInstanceView<'a, VR>
impl<'a, VR: Clone + VertexRef> Clone for GeometryInstanceView<'a, VR>
Source§fn clone(&self) -> GeometryInstanceView<'a, VR>
fn clone(&self) -> GeometryInstanceView<'a, VR>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a, VR: Copy + VertexRef> Copy for GeometryInstanceView<'a, VR>
Auto Trait Implementations§
impl<'a, VR> Freeze for GeometryInstanceView<'a, VR>
impl<'a, VR> RefUnwindSafe for GeometryInstanceView<'a, VR>where
VR: RefUnwindSafe,
impl<'a, VR> Send for GeometryInstanceView<'a, VR>where
VR: Sync,
impl<'a, VR> Sync for GeometryInstanceView<'a, VR>where
VR: Sync,
impl<'a, VR> Unpin for GeometryInstanceView<'a, VR>
impl<'a, VR> UnsafeUnpin for GeometryInstanceView<'a, VR>
impl<'a, VR> UnwindSafe for GeometryInstanceView<'a, VR>where
VR: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more