Reconstruct a solid CAD model from a scanned mesh.
harbor run -t au12321ua/mesh2cad--case_39ab405006951c2dharbor download au12321ua/mesh2cad--case_39ab405006951c2dReconstruct the mechanical part in /workspace/input/mesh.ply as a solid CAD model.
The mesh contains scan noise and missing surfaces. Infer a clean, complete part.
Coordinates are fixed; units are millimetres. Preserve position, orientation and scale.
The environment provides CadQuery, OCP, NumPy, SciPy, Trimesh and VTK.
Use mesh2cad info /workspace/input/mesh.ply to measure the mesh and
mesh2cad render /workspace/input/mesh.ply --output /workspace/mesh.png for four views.
The same commands accept STEP. A small CadQuery example is at /opt/mesh2cad/example.py.
You may choose any installed modeling library.
Write these two files into /workspace/output/:
model.py: a self-contained Python program, accepting --output <path.step>.model.step: the STEP exported by that program.The final program must build the CAD model without reading the input mesh, external files, precomputed BREP/STEP data, or the network. Use explicit dimensions and modeling operations. Do not submit a triangulated wrapper around the scan. Run the program successfully and inspect its output before finishing. Keep the program within 32 MiB and STEP within 64 MiB. Rebuilding has a 180-second limit.
After the agent stops, an isolated environment with no reference geometry reruns
python model.py --output <fresh.step>. A separate verifier scores that fresh STEP.
Geometry equality is measured by bidirectional material differences, each below
max(1e-6 mm^3, 0.001 * reference_volume), without fuzzy Booleans.
Topology comparison is a soft gate: it is reported but does not change reward.
Exact geometry-labelled topology can differ when equivalent surfaces are split differently.
An independent continuous diagnostic reports symmetric mean point-to-triangle-surface
Chamfer distance in mm, with 50,000 area-weighted samples per side and seed 0.
It uses fixed object coordinates with no alignment or scale normalization; it does not
change reward. Both surfaces use chord clip(0.001 * GT bbox diagonal, 0.005, 0.5) mm
and angular deflection 0.5 rad, uniformly across all cases.
Every case uses the same geometry and topology criteria. Geometry is always a hard
gate; failed or unavailable reference qualification never downgrades that gate.