Expand description
Portable pointcloud-to-surface reconstruction contract, evidence, and conformance suite.
§Why a contract before an implementation
Reconstruction has no single right answer: Poisson, ball pivoting, and alpha shapes all produce different surfaces from identical input, and each is correct for different data. Fixing the seam — request, result, evidence, typed refusal — before any provider lands is what lets those methods be swapped without every consumer rewriting itself.
§The honesty requirement
A reconstruction is an estimate. The contract therefore refuses to let a provider present a guess as a measurement:
- An absent surface is a typed
ReconstructionRefusal, never an empty mesh a caller might read as “the object is not there”. - Surface invented across gaps in the capture is counted in
ReconstructionEvidence::interpolated_triangles. - The sample spacing the data actually resolves is reported, so a caller can tell measured detail from interpolated detail.
require_closedis honoured or refused, never satisfied by fabricating unmeasured surface.
Modules§
- conformance
- Conformance suite every
PointcloudReconstructionprovider must pass.
Structs§
- Backend
Descriptor - Provider identity only. It deliberately contains no operation booleans.
- Backend
Id - Stable provider identifier for logs and explicit selection.
- Execution
Options - Operation policy with explicit tolerance, precision, and cancellation.
- Reconstruction
Evidence - Counters describing one reconstruction.
- Reconstruction
Outcome - A reconstruction and the evidence that produced it.
- Reconstruction
Request - What the caller wants reconstructed.
Enums§
- Cancellation
Granularity - How finely a provider polls its cancellation token.
- Determinism
- Reproducibility requirement.
- Execution
Target - Broad execution target. Specific ISA/device features stay in provider crates.
- Geom
Error - Why a backend-neutral geometry operation failed.
- Operation
- Operation name used for diagnostics only. Implementing an operation trait is the capability proof; this enum never drives capability discovery.
- Reconstruction
- Either a reconstruction or a typed reason there is none.
- Reconstruction
Refusal - Why a reconstruction could not be performed.
- Resolution
- How densely the surface should be reconstructed.
- Scratch
Requirement - Scratch memory an operation needs beyond its inputs and outputs.
Constants§
- CAPABILITY_
ID - Capability this contract describes.
Traits§
- Backend
- Runtime geometry backend metadata.
- Pointcloud
Reconstruction - Pointcloud-to-surface reconstruction provider.
Type Aliases§
- Geom
Result - Result alias for geometry operations.