Trait truck_rendimpl::CreateInstance[][src]

pub trait CreateInstance {
    fn create_instance<T: IntoInstance>(
        &self,
        object: &T,
        desc: &InstanceDescriptor
    ) -> T::Instance;
fn update_instance<T: IntoInstance>(
        &self,
        instance: &mut T::Instance,
        object: &T
    ); }

Extend trait for Scene to create instance.

Required methods

fn create_instance<T: IntoInstance>(
    &self,
    object: &T,
    desc: &InstanceDescriptor
) -> T::Instance
[src]

Creates PolygonInstance from PolygonMesh and StructuredMesh, and ShapeInstance from Shell and Solid.

fn update_instance<T: IntoInstance>(
    &self,
    instance: &mut T::Instance,
    object: &T
)
[src]

Update the mesh data by original polygon (shape) structures.

Loading content...

Implementations on Foreign Types

impl CreateInstance for Scene[src]

Loading content...

Implementors

Loading content...