Trait truck_rendimpl::CreateInstance [−][src]
Extend trait for Scene
to create instance.
Required methods
fn create_instance<T: IntoInstance>(
&self,
object: &T,
desc: &InstanceDescriptor
) -> T::Instance
[src]
&self,
object: &T,
desc: &InstanceDescriptor
) -> T::Instance
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]
&self,
instance: &mut T::Instance,
object: &T
)
Update the mesh data by original polygon (shape) structures.
Implementations on Foreign Types
impl CreateInstance for Scene
[src]
fn create_instance<T: IntoInstance>(
&self,
object: &T,
desc: &InstanceDescriptor
) -> T::Instance
[src]
&self,
object: &T,
desc: &InstanceDescriptor
) -> T::Instance
fn update_instance<T: IntoInstance>(
&self,
instance: &mut T::Instance,
object: &T
)
[src]
&self,
instance: &mut T::Instance,
object: &T
)