pub struct ResolvedRefs {
pub profile_center: Option<[f64; 3]>,
pub profile_normal: Option<[f64; 3]>,
pub axis_point: Option<[f64; 3]>,
pub axis_dir: Option<[f64; 3]>,
pub plane_origin: Option<[f64; 3]>,
pub plane_normal: Option<[f64; 3]>,
pub plane_dim_length: Option<f64>,
}Expand description
Resolved scene geometry an annotation builder needs beyond the pure
inputParams — the profile plane (extrude/revolve) and the axis line
(revolve). These are NOT pure params (they resolve scene references), so the
engine resolves them from the run report’s sketch profiles / axes, or from
the resident scene when the reference names a solid face / edge (see
EngineState::feature_dimension_refs), and hands them in. All fields are
optional: a builder that can’t source what it needs returns [] gracefully.
Fields§
§profile_center: Option<[f64; 3]>Extrude/revolve: the profile CENTER (world centroid of the outer loop) — the anchor the distance/angle gizmo hangs off, matching the previous app’s resolved profile-reference-geometry center.
profile_normal: Option<[f64; 3]>Extrude/revolve: the profile plane NORMAL (unit) — the sketch +z basis,
or a face profile’s OUTWARD normal (what the kernel’s face_profile sets
as z_axis) — the authoritative sweep/revolve-orientation direction.
axis_point: Option<[f64; 3]>Revolve: a point on the resolved axis LINE (world).
axis_dir: Option<[f64; 3]>Revolve: the resolved axis line DIRECTION (unit, UNORIENTED — the builder
orients it toward the profile front via the orient_revolve_axis port).
plane_origin: Option<[f64; 3]>Plane (P): the resolved plane frame’s ORIGIN (world) — the plane AFTER its
offset_distance. The offset dim’s un-offset base is origin − normal·offset.
plane_normal: Option<[f64; 3]>Plane (P): the resolved plane frame’s unit NORMAL (its z-axis) — the axis
the signed offset dim runs along.
plane_dim_length: Option<f64>Plane (P): a small world length for the offset dim’s handle stub when the
offset is ~0 (a zero-length leader can’t be dragged). Screen-constant so the
handle is a consistent size; ignored once the offset is non-zero.
Trait Implementations§
Source§impl Clone for ResolvedRefs
impl Clone for ResolvedRefs
Source§fn clone(&self) -> ResolvedRefs
fn clone(&self) -> ResolvedRefs
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 ResolvedRefs
impl Debug for ResolvedRefs
Source§impl Default for ResolvedRefs
impl Default for ResolvedRefs
Source§fn default() -> ResolvedRefs
fn default() -> ResolvedRefs
Auto Trait Implementations§
impl Freeze for ResolvedRefs
impl RefUnwindSafe for ResolvedRefs
impl Send for ResolvedRefs
impl Sync for ResolvedRefs
impl Unpin for ResolvedRefs
impl UnsafeUnpin for ResolvedRefs
impl UnwindSafe for ResolvedRefs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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