Struct GeometryStateEnvelopeV2
pub struct GeometryStateEnvelopeV2 { /* private fields */ }Description
One accepted current geometry whose origin is explicit and closed.
A continuous state derives mesh velocity from a same-topology predecessor. A remesh state retains the source state and semantic-association identities at the same exact model coordinate and contains no mesh velocity.
Implementations§
§impl GeometryStateEnvelopeV2
impl GeometryStateEnvelopeV2
pub fn continuous(
model: &impl ReplayableCanonicalModelArtifact,
geometry: &GeometryIdentityEnvelopeV1,
correspondence: &GeometryMeshCorrespondenceEnvelopeV1,
reference_mesh: &SimplicialMeshEnvelopeV1,
realization: &(impl CanonicalRealizationArtifact + ?Sized),
step: u64,
time_s: f64,
predecessor: &GeometryStateEnvelopeV2,
solid_displacement: &FieldSnapshotEnvelopeV1,
current_coordinates_m: Vec<Vec<f64>>,
) -> Result<GeometryStateEnvelopeV2, Diagnostic>
pub fn continuous( model: &impl ReplayableCanonicalModelArtifact, geometry: &GeometryIdentityEnvelopeV1, correspondence: &GeometryMeshCorrespondenceEnvelopeV1, reference_mesh: &SimplicialMeshEnvelopeV1, realization: &(impl CanonicalRealizationArtifact + ?Sized), step: u64, time_s: f64, predecessor: &GeometryStateEnvelopeV2, solid_displacement: &FieldSnapshotEnvelopeV1, current_coordinates_m: Vec<Vec<f64>>, ) -> Result<GeometryStateEnvelopeV2, Diagnostic>
Construct a positive-duration continuation on one reference topology.
§Errors
Returns EQ0901 for stale resources, a non-adjacent predecessor,
invalid geometry, driver drift, or failed path-quality replay.
pub fn remesh<M>(
source: &ValidatedRemeshGeometrySourceV2<'_, M>,
target_model: &impl ReplayableCanonicalModelArtifact,
target_geometry: &GeometryIdentityEnvelopeV1,
target_correspondence: &GeometryMeshCorrespondenceEnvelopeV1,
target_reference_mesh: &SimplicialMeshEnvelopeV1,
target_realization: &(impl CanonicalRealizationArtifact + ?Sized),
target_solid_displacement: &FieldSnapshotEnvelopeV1,
target_current_coordinates_m: Vec<Vec<f64>>,
) -> Result<GeometryStateEnvelopeV2, Diagnostic>where
M: ReplayableCanonicalModelArtifact,
pub fn remesh<M>(
source: &ValidatedRemeshGeometrySourceV2<'_, M>,
target_model: &impl ReplayableCanonicalModelArtifact,
target_geometry: &GeometryIdentityEnvelopeV1,
target_correspondence: &GeometryMeshCorrespondenceEnvelopeV1,
target_reference_mesh: &SimplicialMeshEnvelopeV1,
target_realization: &(impl CanonicalRealizationArtifact + ?Sized),
target_solid_displacement: &FieldSnapshotEnvelopeV1,
target_current_coordinates_m: Vec<Vec<f64>>,
) -> Result<GeometryStateEnvelopeV2, Diagnostic>where
M: ReplayableCanonicalModelArtifact,
Construct a zero-duration remesh origin at the source state coordinate.
The target reference mesh must differ from the source mesh. Semantic retention is independently replayed, and no mesh velocity is created.
§Errors
Returns EQ0901 for stale/crossed resources, changed model time,
identical mesh revisions, invalid target geometry, or a non-bijective
semantic association. Typed association failures are flattened only at
this artifact boundary.
pub fn from_json(
bytes: &[u8],
limits: MeshDecoderLimits,
) -> Result<GeometryStateEnvelopeV2, Diagnostic>
pub fn from_json( bytes: &[u8], limits: MeshDecoderLimits, ) -> Result<GeometryStateEnvelopeV2, Diagnostic>
Decode bounded wire data without resolving referenced artifacts.
§Errors
Returns EQ0901 for malformed, oversized, unknown, or noncanonical
data, including any origin outside the closed grammar.
pub fn canonical_json(&self) -> Result<Vec<u8>, Diagnostic>
pub fn canonical_json(&self) -> Result<Vec<u8>, Diagnostic>
pub fn digest(&self) -> Result<ArtifactDigest, Diagnostic>
pub fn digest(&self) -> Result<ArtifactDigest, Diagnostic>
Domain-separated identity of the complete state and origin evidence.
§Errors
Returns EQ0901 if canonical serialization fails.
pub const fn origin(&self) -> GeometryStateOriginKindV2
pub const fn origin(&self) -> GeometryStateOriginKindV2
Closed origin kind.
pub fn model_artifact(&self) -> ArtifactDigest
pub fn model_artifact(&self) -> ArtifactDigest
Exact Model artifact.
pub const fn semantic_revision(&self) -> u64
pub const fn semantic_revision(&self) -> u64
Exact semantic revision.
pub fn reference_geometry_artifact(&self) -> ArtifactDigest
pub fn reference_geometry_artifact(&self) -> ArtifactDigest
Exact target Geometry Identity.
pub fn reference_correspondence_artifact(&self) -> ArtifactDigest
pub fn reference_correspondence_artifact(&self) -> ArtifactDigest
Exact target geometry-to-mesh correspondence.
pub fn reference_mesh_artifact(&self) -> ArtifactDigest
pub fn reference_mesh_artifact(&self) -> ArtifactDigest
Exact target reference mesh.
pub fn realization_artifact(&self) -> ArtifactDigest
pub fn realization_artifact(&self) -> ArtifactDigest
Exact target Realization.
pub fn solid_displacement_snapshot(&self) -> ArtifactDigest
pub fn solid_displacement_snapshot(&self) -> ArtifactDigest
Exact target solid-displacement snapshot.
pub fn current_coordinates_m(&self) -> &[Vec<f64>]
pub fn current_coordinates_m(&self) -> &[Vec<f64>]
Current coordinates in target reference-vertex order.
pub fn mesh_velocity_m_per_s(&self) -> Option<&[Vec<f64>]>
pub fn mesh_velocity_m_per_s(&self) -> Option<&[Vec<f64>]>
Derived mesh velocity, present only for continuous origins.
pub fn predecessor(&self) -> Option<ArtifactDigest>
pub fn predecessor(&self) -> Option<ArtifactDigest>
Same-topology predecessor, when this is a continuous origin.
pub fn remesh_source_spatial_state(&self) -> Option<ArtifactDigest>
pub fn remesh_source_spatial_state(&self) -> Option<ArtifactDigest>
Source moving state, when this is a remesh origin.
pub fn remesh_source_geometry_state(&self) -> Option<ArtifactDigest>
pub fn remesh_source_geometry_state(&self) -> Option<ArtifactDigest>
Source geometry state, when this is a remesh origin.
pub fn remesh_semantic_association(&self) -> Option<ArtifactDigest>
pub fn remesh_semantic_association(&self) -> Option<ArtifactDigest>
Semantic association, when this is a remesh origin.
pub const fn minimum_mean_ratio(&self) -> f64
pub const fn minimum_mean_ratio(&self) -> f64
Minimum current-cell mean-ratio quality.
pub const fn minimum_signed_measure_scale(&self) -> f64
pub const fn minimum_signed_measure_scale(&self) -> f64
Minimum current signed measure scale.
pub fn validate_against_continuous(
&self,
model: &impl ReplayableCanonicalModelArtifact,
geometry: &GeometryIdentityEnvelopeV1,
correspondence: &GeometryMeshCorrespondenceEnvelopeV1,
reference_mesh: &SimplicialMeshEnvelopeV1,
realization: &(impl CanonicalRealizationArtifact + ?Sized),
predecessor: &GeometryStateEnvelopeV2,
solid_displacement: &FieldSnapshotEnvelopeV1,
) -> Result<(), Diagnostic>
pub fn validate_against_continuous( &self, model: &impl ReplayableCanonicalModelArtifact, geometry: &GeometryIdentityEnvelopeV1, correspondence: &GeometryMeshCorrespondenceEnvelopeV1, reference_mesh: &SimplicialMeshEnvelopeV1, realization: &(impl CanonicalRealizationArtifact + ?Sized), predecessor: &GeometryStateEnvelopeV2, solid_displacement: &FieldSnapshotEnvelopeV1, ) -> Result<(), Diagnostic>
Rebuild and compare a continuous-origin state.
§Errors
Returns EQ0901 for any dependency or replay drift.
pub fn validate_against_remesh<M>(
&self,
source: &ValidatedRemeshGeometrySourceV2<'_, M>,
target_model: &impl ReplayableCanonicalModelArtifact,
target_geometry: &GeometryIdentityEnvelopeV1,
target_correspondence: &GeometryMeshCorrespondenceEnvelopeV1,
target_reference_mesh: &SimplicialMeshEnvelopeV1,
target_realization: &(impl CanonicalRealizationArtifact + ?Sized),
target_solid_displacement: &FieldSnapshotEnvelopeV1,
) -> Result<(), Diagnostic>where
M: ReplayableCanonicalModelArtifact,
pub fn validate_against_remesh<M>(
&self,
source: &ValidatedRemeshGeometrySourceV2<'_, M>,
target_model: &impl ReplayableCanonicalModelArtifact,
target_geometry: &GeometryIdentityEnvelopeV1,
target_correspondence: &GeometryMeshCorrespondenceEnvelopeV1,
target_reference_mesh: &SimplicialMeshEnvelopeV1,
target_realization: &(impl CanonicalRealizationArtifact + ?Sized),
target_solid_displacement: &FieldSnapshotEnvelopeV1,
) -> Result<(), Diagnostic>where
M: ReplayableCanonicalModelArtifact,
Rebuild and compare a remesh-origin state.
§Errors
Returns EQ0901 for any dependency or replay drift.
Trait Implementations§
§impl Clone for GeometryStateEnvelopeV2
impl Clone for GeometryStateEnvelopeV2
§impl Debug for GeometryStateEnvelopeV2
impl Debug for GeometryStateEnvelopeV2
§impl PartialEq for GeometryStateEnvelopeV2
impl PartialEq for GeometryStateEnvelopeV2
§fn eq(&self, other: &GeometryStateEnvelopeV2) -> bool
fn eq(&self, other: &GeometryStateEnvelopeV2) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GeometryStateEnvelopeV2
Auto Trait Implementations§
impl Freeze for GeometryStateEnvelopeV2
impl RefUnwindSafe for GeometryStateEnvelopeV2
impl Send for GeometryStateEnvelopeV2
impl Sync for GeometryStateEnvelopeV2
impl Unpin for GeometryStateEnvelopeV2
impl UnsafeUnpin for GeometryStateEnvelopeV2
impl UnwindSafe for GeometryStateEnvelopeV2
Blanket Implementations§
Source§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Source§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
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, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
§fn approx(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
§impl<T> ConvUtil for T
impl<T> ConvUtil for T
§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
§fn into_as<Dst>(self) -> Dstwhere
Self: Sized + Into<Dst>,
fn into_as<Dst>(self) -> Dstwhere
Self: Sized + Into<Dst>,
§fn try_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + TryInto<Dst>,
fn try_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + TryInto<Dst>,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
Source§impl<T> From<T> for T
impl<T> From<T> for T
Source§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
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>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where
F: FnOnce(&Self) -> bool,
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§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Same for T
impl<T> Same for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.