pub struct MeshOptions {
pub build: BuildOptions,
pub bvh_policy: UpdatePolicy,
pub mode: UpdateMode,
pub placement: Placement,
pub defer_bvh: bool,
}Expand description
Options for adding a mesh to a Scene.
Fields§
§build: BuildOptionsHow the mesh’s BVH is built.
bvh_policy: UpdatePolicyWhen the BVH falls back to heavier update strategies.
mode: UpdateModeWhen the BVH is brought up to date.
placement: PlacementWhere the mesh starts out in the world.
defer_bvh: boolBuild the BVH on first use instead of up front. Only Lazy and
Manual meshes defer (Eager builds up front regardless); until the
first build the mesh is not current and Scene::bvh refuses it
with SceneError::StaleBvh, like a stale BVH after an edit. Only
Scene::add_mesh defers; Scene::add_mesh_built finishes the
build it was given.
Trait Implementations§
Source§impl Clone for MeshOptions
impl Clone for MeshOptions
Source§fn clone(&self) -> MeshOptions
fn clone(&self) -> MeshOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MeshOptions
Source§impl Debug for MeshOptions
impl Debug for MeshOptions
Source§impl Default for MeshOptions
impl Default for MeshOptions
Source§fn default() -> MeshOptions
fn default() -> MeshOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for MeshOptions
impl PartialEq for MeshOptions
impl StructuralPartialEq for MeshOptions
Auto Trait Implementations§
impl Freeze for MeshOptions
impl RefUnwindSafe for MeshOptions
impl Send for MeshOptions
impl Sync for MeshOptions
impl Unpin for MeshOptions
impl UnsafeUnpin for MeshOptions
impl UnwindSafe for MeshOptions
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