Struct truck_rendimpl::InstanceCreator [−][src]
Constroctor for instances
Implementations
impl InstanceCreator[src]
pub fn create_polygon_instance<P: Polygon>(
&self,
object: &P,
desc: &PolygonInstanceDescriptor
) -> PolygonInstance[src]
&self,
object: &P,
desc: &PolygonInstanceDescriptor
) -> PolygonInstance
Creates PolygonInstance from PolygonMesh and StructuredMesh.
pub fn try_create_shape_instance<S: Shape>(
&self,
object: &S,
desc: &ShapeInstanceDescriptor
) -> Option<ShapeInstance>[src]
&self,
object: &S,
desc: &ShapeInstanceDescriptor
) -> Option<ShapeInstance>
Tries to create ShapeInstance from Shell and Solid.
Failure
Failure occurs when the polylined boundary cannot be converted to the polyline in the surface parameter space. This may be due to the following reasons.
- A boundary curve is not contained within the surface.
- The surface is not injective, or is too complecated.
- The surface is not regular: non-degenerate and differentiable.
pub fn create_shape_instance<S: Shape>(
&self,
object: &S,
desc: &ShapeInstanceDescriptor
) -> ShapeInstance[src]
&self,
object: &S,
desc: &ShapeInstanceDescriptor
) -> ShapeInstance
Creates ShapeInstance from Shell and Solid.
Panics
Panic occurs when the polylined boundary cannot be converted to the polyline in the surface parameter space. This may be due to the following reasons.
- A boundary curve is not contained within the surface.
- The surface is not injective, or is too complecated.
- The surface is not regular: non-degenerate and differentiable.
pub fn create_wire_frame_instance<S: Shape>(
&self,
object: &S,
desc: &WireFrameInstanceDescriptor
) -> WireFrameInstance[src]
&self,
object: &S,
desc: &WireFrameInstanceDescriptor
) -> WireFrameInstance
Creates WireFrameInstance from Shell and Solid.
pub fn create_texture(&self, image: &DynamicImage) -> Arc<Texture>[src]
Creates Texture for attaching faces.
Trait Implementations
impl Clone for InstanceCreator[src]
fn clone(&self) -> InstanceCreator[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for InstanceCreator[src]
Auto Trait Implementations
impl !RefUnwindSafe for InstanceCreator[src]
impl Send for InstanceCreator[src]
impl Sync for InstanceCreator[src]
impl Unpin for InstanceCreator[src]
impl !UnwindSafe for InstanceCreator[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,