pub struct CircularEdge {
pub frame: DAffine3,
pub center: DVec3,
pub axis: DVec3,
pub radius: f64,
pub ref_dir: DVec3,
pub leaf_segments: Option<usize>,
pub nb2: DVec2,
pub da2: DVec2,
pub db2: DVec2,
pub extent_a: f64,
pub extent_b: f64,
}Expand description
A verified full-circle edge (rim), in frame coordinates.
The meridian frame at any rim point has x = outward radial (away from the
axis) and y = axis. axis is oriented as the planar face’s final
outward normal, so the planar face is always y = 0 with normal +y
in meridian coordinates.
frame is identity for rims that are circles in the evaluation frame.
Rims that are elliptical in the evaluation frame (anisotropically
scaled leaves) resolve in the owning leaf’s local frame, where they are
exact circles; frame maps that frame to the evaluation frame, so the
world curve is the frame image of this circle. All fields (center, axis,
radius, meridian data, extents) are frame-local.
Fields§
§frame: DAffine3Frame the circle lives in (frame → evaluation coordinates).
center: DVec3§axis: DVec3Unit circle-plane normal — the planar face’s final outward normal.
radius: f64§ref_dir: DVec3Angular origin of the curved leaf’s tessellation: its local +X
image (unit, ⊥ axis). Masks anchor their polygon phase here so
their chords coincide with the leaf’s facets in the mesh booleans.
leaf_segments: Option<usize>Segment count of the curved leaf’s render tessellation (None for
spheres, which have no prism phase to match).
nb2: DVec2Final outward normal of the curved face, meridian coords.
da2: DVec2In-face directions away from the rim, meridian coords. Face A is the
planar face (da2.y == 0).
db2: DVec2§extent_a: f64Setback room along da2/db2.
extent_b: f64Implementations§
Trait Implementations§
Source§impl Clone for CircularEdge
impl Clone for CircularEdge
Source§fn clone(&self) -> CircularEdge
fn clone(&self) -> CircularEdge
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CircularEdge
impl Debug for CircularEdge
impl Copy for CircularEdge
Auto Trait Implementations§
impl Freeze for CircularEdge
impl RefUnwindSafe for CircularEdge
impl Send for CircularEdge
impl Sync for CircularEdge
impl Unpin for CircularEdge
impl UnsafeUnpin for CircularEdge
impl UnwindSafe for CircularEdge
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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