step-examples/12-3a-shells/Tsh180.stp
Sources
- synthesized — no external source cited
Description
ShapeAnalysis_Shell.CheckOrientedShells single-face zero-area
Reproducer recipe
Expected kernel behavior
The CLOSED_SHELL's single face has three collinear vertices — (0,0,0), (1,0,0), (2,0,0) all on the x-axis — so its cross-product-based normal is the zero vector, undefined for classification. Detect zero-area faces (collinear or coincident vertices) before attempting a normal-based orientation test, and report the degenerate face explicitly with a diagnostic rather than letting an undefined normal flow into and silently produce an unexplained negative or false classification result.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(5) ifc=schema_n/a
Tier-3 assertions
load == "ok"
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Tsh180: ONE ADVANCED_FACE with THREE COLLINEAR VERTICES (all on X-axis) IS the zero-area face; pa=(0,0,0), pb=(1,0,0), pc=(2,0,0) â collinear, zero cross-product â IS the defect trigger; CLOSED_SHELL with single zero-area face IS what CheckOrientedShells receives; normal computation yields zero vector â IS the NaN/inf source; CheckOrientedShells returns false instead of exception-free classification â IS the defect; fix: CheckOrientedShells must detect zero-area faces and skip normal test gracefully; emit E_CHECK_ORIENTED_ZERO_AREA when zero-area face detected in shell */ 3HEADER; 4FILE_DESCRIPTION(('Tsh180'),'2;1'); 5FILE_NAME('Tsh180.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#9000=APPLICATION_CONTEXT('mechanical design'); 10#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 11#2=CARTESIAN_POINT('',(1.0,0.0,0.0)); 12#3=CARTESIAN_POINT('',(2.0,0.0,0.0)); 13#4=VERTEX_POINT('',#1); 14#5=VERTEX_POINT('',#2); 15#6=VERTEX_POINT('',#3); 16#7=DIRECTION('',(1.0,0.0,0.0)); 17#8=VECTOR('',#7,1.0); 18#9=LINE('',#1,#8); 19#10=EDGE_CURVE('',#4,#5,#9,.T.); 20#11=DIRECTION('',(1.0,0.0,0.0)); 21#12=VECTOR('',#11,1.0); 22#13=LINE('',#2,#12); 23#14=EDGE_CURVE('',#5,#6,#13,.T.); 24#15=DIRECTION('',(-1.0,0.0,0.0)); 25#16=VECTOR('',#15,1.0); 26#17=LINE('',#3,#16); 27#18=EDGE_CURVE('',#6,#4,#17,.T.); 28#19=ORIENTED_EDGE('',$,$,#10,.T.); 29#20=ORIENTED_EDGE('',$,$,#14,.T.); 30#21=ORIENTED_EDGE('',$,$,#18,.T.); 31#22=EDGE_LOOP('',(#19,#20,#21)); 32#23=DIRECTION('',(0.0,0.0,1.0)); 33#24=DIRECTION('',(1.0,0.0,0.0)); 34#25=AXIS2_PLACEMENT_3D('',#1,#23,#24); 35#26=PLANE('',#25); 36#27=FACE_OUTER_BOUND('',#22,.T.); 37#28=ADVANCED_FACE('',(#27),#26,.T.); 38#29=CLOSED_SHELL('',(#28)); 39#30=SHELL_BASED_SURFACE_MODEL('',(#29)); 40#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 41#9051=PRODUCT('Tsh180','Tsh180','',(#9050)); 42#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 43#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 44#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 45#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 46#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 47#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 48#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 49#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 50#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 51#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#30),#9060); 52#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 53ENDSEC; 54END-ISO-10303-21;