Skip to main content

Module spatial

Module spatial 

Source
Expand description

Spatial product adapters over specialized_libs::computer_vision::spatial.

Pure MeshIR / export / quality live in core-db. Image→3D and 10d handoff (semantic digests, detection packing) stay here.

Re-exports§

pub use compile_10d_handoff::detections_to_node_hints;
pub use compile_10d_handoff::pack_geometry_export_for_10d;
pub use compile_10d_handoff::GeometryFor10d;
pub use image_to_3d::image_to_heightfield_mesh;
pub use image_to_3d::ImageTo3dReceipt;

Modules§

compile_10d_handoff
Host handoff notes for sealing vision geometry into .10d.
image_to_3d
Swarm S-V10 — image → heightfield mesh (reference reconstruction).
mesh_ir_to_export
MeshIR → render-ready export (for compile_10d on the host).
print_readiness
Print readiness checks for MeshIR (3D print excellence).

Structs§

BarStretchInput
Closed-form axial stretch of a unit bar: δ = FL / (AE). Returns displacement; fails closed if parameters invalid. Not a mesh FEA solve — vertical slice for Phase 12 assurance notes.
BarStretchResult
MeshCleanupOptions
Options for cleanup_mesh_ir.
MeshIR
Triangle mesh in fixed buffers (zero growth after fill).
MeshQualityReport
Report from quality cleanup.
MeshValidationReport
NodeHint
Hint for future Tensor10D node packing (x,y,z,t,σ) — programme D1/D2.
PrintReadiness
RenderMeshExport
Geometry export matching qualia_core_db::render::assets::Mesh field layout without linking core-db into the vision crate.
TwinEligibility

Enums§

AnalysisDomain
What solver domain a mesh may claim.
MeshValidationStatus

Constants§

MAX_INDICES
Max triangle indices (3 per tri).
MAX_VERTICES
Max vertices in a single vision reconstruction mesh.

Functions§

assess_twin_eligibility
Gate mesh into twin/solver contracts. Soft refuse is honest completeness.
class_hash_to_sigma_base
Map a class hash into a base σ band.
class_id_to_sigma_base
Map a class hash into a base σ band.
class_score_to_sigma
Combine class base σ with detection confidence (score).
cleanup_mesh_ir
Clean a MeshIR in place: weld (optional) then drop degenerate triangles.
closed_form_bar_stretch
Closed-form bar-stretch tensor.
detection_center_to_node_hint
Map a detection-like box centre (normalised 0..1) into a node hint.
detection_to_sigma
σ from a Detection (uses class_hash + score_f32).
mesh_ir_to_export
Convert MeshIR to export (no validation).
mesh_ir_to_export_validated
Validate then export. Fails closed on invalid mesh.
mesh_ir_to_obj
Write a minimal OBJ into out (UTF-8 text). Returns bytes written.
mesh_ir_to_stl_binary
Write binary STL into out. Returns bytes written.
mesh_ir_triangles
Triangle list as [u32; 3] slices (for core Mesh handoff).
print_readiness
envelope_mm max XYZ extents (e.g. printer bed). Mesh positions assumed mm.
promote_elasticity_preview
Promote a validated mesh to elasticity preview (not certified FEA / A4). Software assurance class: A1 closed-form bar stretch check only.
refuse_fea_unless_eligible
Explicit refuse for unsupported FEA claims.
run_elasticity_preview_if_eligible
Run elasticity preview only if eligible; else refuse.
validate_mesh_ir
Validate mesh IR. Does not allocate.