step-examples/12-3a-shells/Sw003.stp
Sources
- OCCT BRepBuilderAPI_Sewing.hxx:145 (NbDegeneratedShapes) (uncovered class evidence)
Sender
deduced — OCCT uncovered-class sweep
Description
A face whose bounding wire collapses to a curve or a point (zero-area face) is reported by the sewer as "degenerated" but appears unflagged in the source file. Bug-reporter language: "zero-area face", "face is a line", "degenerate face accepted".
Reproducer recipe
An `ADVANCED_FACE` whose `FACE_OUTER_BOUND` `EDGE_LOOP` consists of two `ORIENTED_EDGE`s that are equal-and-reversed (a back-and-forth on one curve), enclosing zero area **and** of sub-tolerance spatial extent (1e-9mm, three orders of magnitude below the model's 1e-7mm UNCERTAINTY_MEASURE_WITH_UNIT) -- so the collapsed wire is negligible by both area and extent, not merely zero-area-but-full-length.
Expected kernel behavior
Detect via signed-area; reject the face, or coerce to a degenerate edge.
Notes
Synonyms: "back-and-forth wire", "fold-line face", "zero-area face accepted", "degenerate face wire collapses to line", "face collapsed to a line or point". OCCT exchange-layer audit (occt-coverage/exchange/) byte-verified the previous 1.0mm-full-length version as NOT demonstrating `sew-degenerate-free-wire-collapse` (extent far above tolerance); fixed by shrinking the wire's extent to 1e-9mm.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(1) ifc=schema_n/a
Byte assertions
count_entity_def(b'ADVANCED_FACE') == 1contains(b'zero_area_face')
Tier-3 assertions
load == "ok"
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Sw003: ADVANCED_FACE with FACE_OUTER_BOUND whose EDGE_LOOP is two ORIENTED_EDGEs going back-and-forth on the same LINE (equal-and-reversed), enclosing zero area AND sub-tolerance extent (1e-9mm, below the 1e-7mm model tolerance); collapsed wire IS wired into the FACE_OUTER_BOUND of the OPEN_SHELL face; sewer flags as degenerated; no upstream rejection */ 3HEADER; 4FILE_DESCRIPTION(('Sw003'),'2;1'); 5FILE_NAME('Sw003.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.0E-09,0.0,0.0)); 12#3=VERTEX_POINT('',#1); 13#4=VERTEX_POINT('',#2); 14#5=DIRECTION('',(1.0,0.0,0.0)); 15#6=VECTOR('',#5,1.0E-09); 16#7=LINE('',#1,#6); 17#8=EDGE_CURVE('',#3,#4,#7,.T.); 18#9=ORIENTED_EDGE('',$,$,#8,.T.); 19#10=ORIENTED_EDGE('',$,$,#8,.F.); 20#11=EDGE_LOOP('zero_area_face',(#9,#10)); 21#12=CARTESIAN_POINT('',(0.0,0.0,0.0)); 22#13=DIRECTION('',(0.0,0.0,1.0)); 23#14=DIRECTION('',(1.0,0.0,0.0)); 24#15=AXIS2_PLACEMENT_3D('',#12,#13,#14); 25#16=PLANE('',#15); 26#17=FACE_OUTER_BOUND('',#11,.T.); 27#18=ADVANCED_FACE('',(#17),#16,.T.); 28#19=OPEN_SHELL('sw003_degenerate_face_shell',(#18)); 29#20=SHELL_BASED_SURFACE_MODEL('',(#19)); 30#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 31#9051=PRODUCT('Sw003','Sw003','',(#9050)); 32#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 33#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 34#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 35#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 36#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 37#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 38#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 39#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 40#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 41#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#20),#9060); 42#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 43ENDSEC; 44END-ISO-10303-21;