pub struct MeltsphereOutput {
pub kv6: Kv6,
pub p: [f32; 3],
pub cw: u32,
}Expand description
Output of meltsphere — a freshly-built kv6 sprite plus the
computed sprite centroid and total solid-voxel count.
Fields§
§kv6: Kv6Freshly-built kv6 with one record per visible (color) voxel
inside the sphere. xpiv/ypiv/zpiv are set to the
centroid offset within the kv6’s local AABB. vis = 63
(all 6 faces) and dir = 0 for every voxel — voxlap’s
meltsphere comment flags both as “FIX THIS!!!” so we mirror.
p: [f32; 3]Centroid in world coordinates. The caller typically
overwrites this with a placement position; voxlap stores it
in vx5sprite.p then expects callers to relocate.
cw: u32Centroid weight = total solid voxels in the sphere region
(both Color and UnexposedSolid). Voxlap’s return value.
Trait Implementations§
Source§impl Clone for MeltsphereOutput
impl Clone for MeltsphereOutput
Source§fn clone(&self) -> MeltsphereOutput
fn clone(&self) -> MeltsphereOutput
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 moreAuto Trait Implementations§
impl Freeze for MeltsphereOutput
impl RefUnwindSafe for MeltsphereOutput
impl Send for MeltsphereOutput
impl Sync for MeltsphereOutput
impl Unpin for MeltsphereOutput
impl UnsafeUnpin for MeltsphereOutput
impl UnwindSafe for MeltsphereOutput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more