pub struct BondChunkPlacement {
pub id: ChunkPlacementId,
pub ticket: ResidencyTicket,
pub model_to_world: Mat4,
pub radius: f32,
pub color: Rgba8,
}Expand description
Declarative analytic rendering of one resident provider bond chunk.
Fields§
§id: ChunkPlacementIdStable placement identity in the shared bounded placement table.
ticket: ResidencyTicketExact resident bond generation to draw.
model_to_world: Mat4Atom-dataset coordinates to world space.
radius: f32Analytic cylinder radius in local coordinate units.
color: Rgba8Uniform packed display color.
Implementations§
Source§impl BondChunkPlacement
impl BondChunkPlacement
Sourcepub fn licorice(
id: ChunkPlacementId,
ticket: ResidencyTicket,
model_to_world: Mat4,
radius: f32,
color: Rgba8,
) -> Result<Self, ChunkPlacementError>
pub fn licorice( id: ChunkPlacementId, ticket: ResidencyTicket, model_to_world: Mat4, radius: f32, color: Rgba8, ) -> Result<Self, ChunkPlacementError>
Creates a licorice-style analytic cylinder placement.
Ball-and-stick is composed by declaring this placement together with space-filling atom placements; both reference the same coordinate arena.
§Errors
Rejects a non-finite transform or a non-positive/non-finite radius.
Trait Implementations§
Source§impl Clone for BondChunkPlacement
impl Clone for BondChunkPlacement
impl Copy for BondChunkPlacement
Source§impl Debug for BondChunkPlacement
impl Debug for BondChunkPlacement
Source§impl PartialEq for BondChunkPlacement
impl PartialEq for BondChunkPlacement
impl StructuralPartialEq for BondChunkPlacement
Auto Trait Implementations§
impl Freeze for BondChunkPlacement
impl RefUnwindSafe for BondChunkPlacement
impl Send for BondChunkPlacement
impl Sync for BondChunkPlacement
impl Unpin for BondChunkPlacement
impl UnsafeUnpin for BondChunkPlacement
impl UnwindSafe for BondChunkPlacement
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