[−][src]Trait truck_rendimpl::CreateInstance
Extend trait for Scene to create instance.
Required methods
pub 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.
pub 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]
pub fn create_instance<T: IntoInstance>(
&self,
object: &T,
desc: &InstanceDescriptor
) -> T::Instance[src]
&self,
object: &T,
desc: &InstanceDescriptor
) -> T::Instance
pub fn update_instance<T: IntoInstance>(
&self,
instance: &mut T::Instance,
object: &T
)[src]
&self,
instance: &mut T::Instance,
object: &T
)