Skip to main content

Module measure

Module measure 

Source

Modules§

exact
Mass properties of an exact B-rep, without tessellating it.
exact_bodies
Certified boundary distance and Hausdorff distance between bodies made of several exact solids (#229).
exact_distance
Certified distance between the boundaries of two exact B-reps (#125, C18).
exact_hausdorff
Certified Hausdorff distance between the boundaries of two exact B-reps (#224).
frechet
Fréchet distance between polylines (#147).
measure
Open measurement capability.
mesh
Deterministic raw triangle-mesh measures.
mesh_faces
Faces of a triangle mesh selected by their normal (#417).
mesh_hausdorff
Certified Hausdorff distance between two triangle meshes (#148, D15).
mesh_measure
The reference Measure provider for triangle meshes.
mesh_proximity
Mesh-level proximity: distance with witnesses, and proximity components.
polyline_hausdorff
Hausdorff distance between polylines, and a certified Fréchet decision (#147, ledger row H4).
properties
Measurement result values.
proximity
Deterministic metric proximity queries for 3D primitives.
winding
Generalized winding-number accumulation over validated triangle views.

Structs§

BodyDistance
A certified distance between two bodies and the items its witnesses lie on.
BodyHausdorff
The two-sided Hausdorff distance between the boundaries of two bodies and both one-sided ones.
BodyHausdorffBounds
A certified one-sided Hausdorff distance between two bodies and the items its witnesses lie on.
BoundaryHausdorff
The two-sided Hausdorff distance between two exact boundaries and both one-sided ones.
ClosestPoints3
Two witnesses, ordered to match the first and second inputs.
DistanceBounds
An interval certain to contain the distance between two boundaries, and two witnesses. point_a and point_b are computed points, each within its evaluation rounding of a point of its boundary (POINT eps W, see “Rounding” in the module docs), and upper is at least the distance between those two boundary points (#439): the computed |point_a - point_b| plus that rounding, never less. In plan, an overlap shown by two planar faces reports [0, 0].
FaceDomain
Which parameters of one exact face lie inside it, decided with a certificate or not at all.
FaceSelection
Triangles chosen by select_by_normal.
HausdorffBounds
An interval certain to contain a Hausdorff distance, with its witness.
MassProperties
Surface/solid mass properties in local coordinates.
MeshDistance
The separation between two meshes and the witness pair realising it.
MeshHausdorff
The two-sided Hausdorff distance and both one-sided ones.
MeshMeasure
Reference mass-property provider for triangle meshes.
NormalCone
A direction and an angular reach about it.
PlacedBody
A body: its items in the body’s own frame, and one rigid placement that puts them in the world (#229).
ProximityComponent
A region where two meshes approach within a threshold.
SurfaceProperties
VolumeProperties
WindingMesh
A read-only, structurally prepared mesh for repeated winding queries.
WindingNumber
Raw winding accumulation for one query point.

Enums§

BodyMeasureError
Why two bodies of exact solids could not be measured.
BodyPlanOverlap
Whether the plan projections of two bodies overlap, and which items show it.
BodySide
Which argument of a body query a refusal is about.
Clearance
How a certified distance compares with a limit.
CycleVolumeError
What cycle_volume_properties refuses.
ExactMeasureError
Why an exact B-rep could not be measured.
FaceSelectionError
Why a selection or an extent was refused.
FrechetDecision
A certified answer to the Fréchet decision problem: whether the continuous Fréchet distance is at most eps.
FrechetError
Why a Fréchet query was refused.
HausdorffError
Why a Hausdorff query could not be answered.
MeshMeasureError
MeshProximityError
Why a mesh proximity query could not be answered.
PlanOverlap
Whether the plan projections of two bodies overlap.
ProximityError
Metric-input failure for primitive proximity queries.
WindingError
Failure to prepare or evaluate a winding query.

Traits§

Measure
Compute mass properties for one representation type.

Functions§

body_boundary_clearance
body_boundary_distance refined only until it clears limit.
body_boundary_distance
Distance between the boundaries of two bodies of exact solids, to within accuracy (#229): the least over item pairs, by one shared search.
body_boundary_hausdorff_distance
Two-sided Hausdorff distance between the boundaries of the unions of two bodies’ items, to within accuracy (#229).
body_plan_boundary_clearance
body_plan_boundary_distance refined only until it clears limit.
body_plan_boundary_distance
Plan distance between two bodies of exact solids – between their shadows on the XY plane – to within accuracy (#237): the least over item pairs, by one shared search.
body_plan_overlap
Whether the plan projections of two bodies overlap over a patch of positive area – an item of one over an item of the other – are certainly apart, or neither could be shown (#237).
boundary_clearance
Refine the distance only until it clears limit.
boundary_distance
Distance between the boundaries of a and b, to within accuracy.
boundary_hausdorff_distance
Two-sided Hausdorff distance between the boundaries of a and b, to within accuracy (#224).
closest_point_on_triangle
Closest point on a non-degenerate triangle.
closest_points_on_segments
Closest witnesses on two finite segments.
closest_points_on_triangles
Deterministic metric witnesses on two non-degenerate triangles.
cycle_volume_properties
Signed volume and centroid of a mesh whose triangles form a closed oriented cycle, the weaker input volume_properties does not accept.
discrete_frechet_distance
Discrete Fréchet distance between the vertex sequences of a and b.
discrete_frechet_distance_2d
discrete_frechet_distance in the plane.
exact_properties
Mass properties of an exact B-rep.
extent_along
Extent of the listed triangles along along: the least and greatest of p . u over every corner, u = along / |along|, as start and end.
frechet_at_most
Whether the continuous Fréchet distance between a and b is at most eps.
frechet_at_most_2d
frechet_at_most in the plane.
frechet_decide_certified
A certified decision for whether the continuous Fréchet distance between a and b is at most eps, unlike frechet_at_most (cheaper, but its module docs say plainly it is not certified).
frechet_decide_certified_2d
frechet_decide_certified in the plane.
frechet_distance
Continuous Fréchet distance between the polylines a and b.
frechet_distance_2d
frechet_distance in the plane.
hausdorff_distance
Two-sided Hausdorff distance between a and b, to within accuracy.
mesh_distance
Distance between two meshes, with the witness pair realising it.
one_sided_body_boundary_hausdorff
One-sided Hausdorff distance from the boundary of the union of from’s items to that of to’s, to within accuracy (#229).
one_sided_body_boundary_hausdorff_with_budget
one_sided_body_boundary_hausdorff with the caller’s cap on the splits, as crate::one_sided_boundary_hausdorff_with_budget.
one_sided_boundary_hausdorff
One-sided Hausdorff distance h(from, to) between two exact boundaries, to within accuracy (#224).
one_sided_boundary_hausdorff_with_budget
one_sided_boundary_hausdorff with the caller’s refinement budget: at most max_splits splits of from’s face patches and edge spans (#227).
one_sided_hausdorff
One-sided Hausdorff distance h(from, to), to within accuracy.
one_sided_polyline_hausdorff_distance
The supremum, over every point of polyline a, of that point’s distance to the nearest point of polyline b. Both curves are treated as continuous piecewise-linear point sets, not just their vertices.
one_sided_polyline_hausdorff_distance_2d
one_sided_polyline_hausdorff_distance in the plane.
plan_boundary_clearance
plan_boundary_distance refined only until it clears limit.
plan_boundary_distance
Distance between the plan projections of a and b – their shadows on the XY plane – to within accuracy (#217).
plan_overlap
Whether the plan projections of a and b overlap over a patch of positive area, are certainly apart, or neither could be shown (#217).
polyline_hausdorff_distance
The symmetric Hausdorff distance between polylines a and b: the larger of the two one-sided distances (see one_sided_polyline_hausdorff_distance).
polyline_hausdorff_distance_2d
polyline_hausdorff_distance in the plane.
proximity_components
Disjoint regions where two meshes approach within threshold.
second_moments
Second moments of the enclosed solid about the origin.
select_by_normal
Select the triangles whose normal lies within cone.
surface_properties
volume_properties