step-examples/12-4-tolerance/N041.stp
Sources
- 09-healing-menus H043, H044 (Manifold elalish library)
Description
Manifold tracks an ε (the maximum vertex-perturbation that would suffice to make the mesh strictly non-overlapping). Cumulative transform / Boolean error inflates ε beyond the input scale. Subsequent Booleans become unstable. User must either rebuild from cleaner data or call `SetTolerance` to widen and `Simplify`.
Reproducer recipe
Apply a chain of 50 Boolean operations to a Manifold mesh; query `GetEpsilon()` between operations; observe monotone growth.
Expected kernel behavior
heal; track per-mesh ε explicitly; expose to caller; refuse Boolean when ε exceeds a fraction of model size.
Notes
**See also**: Pf021, Pf023. Synonyms: "epsilon grows past input scale", "Manifold validity epsilon balloons", "cumulative transform error inflates epsilon", "boolean unstable after epsilon grew".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
count_entity_def(b'EDGE_CURVE') == 4contains(b'1.0E-7') and contains(b'4.2E-3')
Tier-3 assertions
shape_null == True
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* N041: Manifold epsilon: input tol 1.0E-7; post-Boolean inflated epsilon 4.2E-3; 4 EDGE_CURVEs; inter-pair gap = inflated epsilon; Boolean becomes unstable; GEOMETRIC_CURVE_SET â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('N041'),'2;1'); 5FILE_NAME('N041.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#1=CARTESIAN_POINT('pa0',(0.0,0.0,0.0)); 10#2=CARTESIAN_POINT('pa1',(1.0,0.0,0.0)); 11#3=CARTESIAN_POINT('pa2',(0.5,1.0,0.0)); 12#4=VERTEX_POINT('va0',#1); 13#5=VERTEX_POINT('va1',#2); 14#6=VERTEX_POINT('va2',#3); 15#7=DIRECTION('',(1.0,0.0,0.0)); 16#8=VECTOR('',#7,1.0); 17#9=LINE('',#1,#8); 18#10=EDGE_CURVE('eA1',#4,#5,#9,.T.); 19#11=DIRECTION('',(-0.5,1.0,0.0)); 20#12=VECTOR('',#11,1.118); 21#13=LINE('',#2,#12); 22#14=EDGE_CURVE('eA2',#5,#6,#13,.T.); 23#15=CARTESIAN_POINT('pb0_eps_offset',(0.0042,0.0,0.0)); 24#16=CARTESIAN_POINT('pb1',(1.0042,0.0,0.0)); 25#17=CARTESIAN_POINT('pb2',(0.5042,1.0,0.0)); 26#18=VERTEX_POINT('vb0',#15); 27#19=VERTEX_POINT('vb1',#16); 28#20=VERTEX_POINT('vb2',#17); 29#21=DIRECTION('',(1.0,0.0,0.0)); 30#22=VECTOR('',#21,1.0); 31#23=LINE('',#15,#22); 32#24=EDGE_CURVE('eB1',#18,#19,#23,.T.); 33#25=DIRECTION('',(-0.5,1.0,0.0)); 34#26=VECTOR('',#25,1.118); 35#27=LINE('',#16,#26); 36#28=EDGE_CURVE('eB2',#19,#20,#27,.T.); 37#29=GEOMETRIC_CURVE_SET('manifold_eps',(#10,#14,#24,#28)); 38#30=APPLICATION_CONTEXT('automotive_design'); 39#31=PRODUCT_CONTEXT('',#30,'mechanical'); 40#32=PRODUCT('N041','N041','',(#31)); 41#33=PRODUCT_DEFINITION_FORMATION('','',#32); 42#34=PRODUCT_DEFINITION_CONTEXT('part definition',#30,'design'); 43#35=PRODUCT_DEFINITION('','',#33,#34); 44#36=PRODUCT_DEFINITION_SHAPE('','',#35); 45#37=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 46#38=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 47#39=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 48#40=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#37,'distance_accuracy_value','input_model_precision'); 49#41=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(4.2E-3),#37,'distance_accuracy_value','post_boolean_inflated_epsilon'); 50#42=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#40,#41))GLOBAL_UNIT_ASSIGNED_CONTEXT((#37,#38,#39))REPRESENTATION_CONTEXT('ctx','3D')); 51#43=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#29),#42); 52#44=SHAPE_DEFINITION_REPRESENTATION(#36,#43); 53ENDSEC; 54END-ISO-10303-21;