pub struct AnatomyMeshAccumulator {
pub authored_skin: Option<AuthoredSkinBinding>,
pub positions: Vec<[f32; 3]>,
pub normals: Vec<[f32; 3]>,
pub colors: Vec<[f32; 4]>,
pub uvs: Vec<[f32; 2]>,
pub indices: Vec<u32>,
pub layer_tags: Vec<ZoologicalAnatomicalLayer>,
pub joint_indices: Vec<[u16; 4]>,
pub joint_weights: Vec<[f32; 4]>,
}Expand description
High-resolution anatomical mesh accumulator supporting multi-station elliptical lofts, bicondylar long bones, curved costal rib arches, fusiform muscle bellies with tendons, internal viscera, and countershaded integument envelopes.
Fields§
§positions: Vec<[f32; 3]>§normals: Vec<[f32; 3]>§colors: Vec<[f32; 4]>§uvs: Vec<[f32; 2]>§indices: Vec<u32>§joint_indices: Vec<[u16; 4]>§joint_weights: Vec<[f32; 4]>Implementations§
Source§impl AnatomyMeshAccumulator
impl AnatomyMeshAccumulator
pub fn new() -> Self
Sourcepub fn push_countershaded_loft(
&mut self,
stations: &[AnatomicalLoftRing],
radial_segs: usize,
layer: ZoologicalAnatomicalLayer,
cap_ends: bool,
)
pub fn push_countershaded_loft( &mut self, stations: &[AnatomicalLoftRing], radial_segs: usize, layer: ZoologicalAnatomicalLayer, cap_ends: bool, )
Sweeps a multi-station anatomical loft with smooth Bishop-like frames, analytical normals, end caps, and dorsal–flank–ventral countershading.
Sourcepub fn push_long_bone_with_epiphyses(
&mut self,
prox: [f32; 3],
dist: [f32; 3],
shaft_r: f32,
condyle_r: f32,
bow_offset: [f32; 3],
bone_color: [f32; 4],
layer: ZoologicalAnatomicalLayer,
primary_joint: usize,
secondary_joint: usize,
)
pub fn push_long_bone_with_epiphyses( &mut self, prox: [f32; 3], dist: [f32; 3], shaft_r: f32, condyle_r: f32, bow_offset: [f32; 3], bone_color: [f32; 4], layer: ZoologicalAnatomicalLayer, primary_joint: usize, secondary_joint: usize, )
Builds an anatomical long bone with flared proximal/distal epiphyses (condyles), curved cortical diaphysis shaft, and periosteal shading.
Sourcepub fn push_curved_rib_arch(
&mut self,
spine_p: [f32; 3],
sternum_p: [f32; 3],
lateral_span: f32,
rib_r: f32,
bone_color: [f32; 4],
cartilage_color: [f32; 4],
layer: ZoologicalAnatomicalLayer,
primary_joint: usize,
secondary_joint: usize,
)
pub fn push_curved_rib_arch( &mut self, spine_p: [f32; 3], sternum_p: [f32; 3], lateral_span: f32, rib_r: f32, bone_color: [f32; 4], cartilage_color: [f32; 4], layer: ZoologicalAnatomicalLayer, primary_joint: usize, secondary_joint: usize, )
Sweeps an anatomically curved costal rib arch from a thoracic vertebra around the barrel to the ventral sternum, transitioning from dorsal bone to ventral costal cartilage.
Sourcepub fn push_fusiform_muscle(
&mut self,
origin: [f32; 3],
insertion: [f32; 3],
belly_rx: f32,
belly_ry: f32,
belly_bow: [f32; 3],
muscle_color: [f32; 4],
tendon_color: [f32; 4],
layer: ZoologicalAnatomicalLayer,
primary_joint: usize,
secondary_joint: usize,
)
pub fn push_fusiform_muscle( &mut self, origin: [f32; 3], insertion: [f32; 3], belly_rx: f32, belly_ry: f32, belly_bow: [f32; 3], muscle_color: [f32; 4], tendon_color: [f32; 4], layer: ZoologicalAnatomicalLayer, primary_joint: usize, secondary_joint: usize, )
Builds a fusiform skeletal muscle belly with tapered ivory collagen tendon attachments at origin and insertion and a swollen striated crimson belly in the middle.
pub fn push_cylinder( &mut self, p1: [f32; 3], p2: [f32; 3], r1: f32, r2: f32, radial_segs: usize, height_segs: usize, color: [f32; 4], layer: ZoologicalAnatomicalLayer, primary_joint: usize, secondary_joint: usize, primary_weight: f32, )
pub fn push_ellipsoid( &mut self, center: [f32; 3], radii: [f32; 3], u_segs: usize, v_segs: usize, color: [f32; 4], layer: ZoologicalAnatomicalLayer, primary_joint: usize, secondary_joint: usize, primary_weight: f32, )
pub fn push_box( &mut self, min: [f32; 3], max: [f32; 3], color: [f32; 4], layer: ZoologicalAnatomicalLayer, primary_joint: usize, )
Auto Trait Implementations§
impl Freeze for AnatomyMeshAccumulator
impl RefUnwindSafe for AnatomyMeshAccumulator
impl Send for AnatomyMeshAccumulator
impl Sync for AnatomyMeshAccumulator
impl Unpin for AnatomyMeshAccumulator
impl UnsafeUnpin for AnatomyMeshAccumulator
impl UnwindSafe for AnatomyMeshAccumulator
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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