step-examples/12-3c-faces/Hea017.stp
Sources
- FreeCAD #23694
- bug-reporter language: "Extrude of 2D Offset of Sketch won't export properly as STEP", "the contents are invalid/empty", "Orca slicer says it's non-manifold", "STL is fine".
Sender
FreeCAD Part Workbench 2D-Offset feature applied to a sketch path that has self-intersecting offset traces (non-manifold offset).
Description
A Pad whose profile is a 2D Offset of an open path emits a STEP whose extruded sweep has a discontinuity in the side-wall shell where the offset trace self-intersected. The on-disk symptom is a `MANIFOLD_SOLID_BREP` whose side-wall sweep contains two `ADVANCED_FACE`s that share an edge whose `EDGE_CURVE` has a discontinuous parametric trace; at one point the curve doubles back on itself.
Reproducer recipe
STEP body with an `ADVANCED_FACE` whose `EDGE_LOOP` contains an `ORIENTED_EDGE` whose underlying `EDGE_CURVE` is a `B_SPLINE_CURVE_WITH_KNOTS` whose first and last control point are the same but with opposite tangents — a degenerate-loop edge.
Expected kernel behavior
writer detects self-intersecting offset traces and rejects with clear diagnostic; receivers should report non-manifold edges.
Notes
Synonyms: "Extrude of 2D Offset fails STEP export", "self-intersecting offset trace produces non-manifold", "step from 2d offset is invalid", "orca says offset extrude is non-manifold".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(3) ifc=schema_n/a
Byte assertions
contains(b'B_SPLINE_CURVE_WITH_KNOTS')contains(b'EDGE_LOOP')
Tier-3 assertions
n_faces_total == 1
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Hea017: MANIFOLD_SOLID_BREP (CLOSED_SHELL) with ONE ADVANCED_FACE on PLANE; face outer EDGE_LOOP: single degenerate-loop B_SPLINE_CURVE_WITH_KNOTS (degree 3, cp0=(0,0,0), cp1=(1,1,0), cp2=(1,-1,0), cp3=(0,0,0)); first==last ctrl pt with opposite tangents (doubles back); edge start==end vertex (closed degenerate loop); FreeCAD #23694: self-intersecting 2D offset extrude sweep */ 3HEADER; 4FILE_DESCRIPTION(('Hea017'),'2;1'); 5FILE_NAME('Hea017.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('cp0',(0.0,0.0,0.0)); 11#2=CARTESIAN_POINT('cp1',(1.0,1.0,0.0)); 12#3=CARTESIAN_POINT('cp2',(1.0,-1.0,0.0)); 13#4=CARTESIAN_POINT('cp3',(0.0,0.0,0.0)); 14#5=B_SPLINE_CURVE_WITH_KNOTS('degenerate_loop',3,(#1,#2,#3,#4),.UNSPECIFIED.,.F.,.F.,(4,4),(0.0,1.0),.UNSPECIFIED.); 15#6=VERTEX_POINT('',#1); 16#7=EDGE_CURVE('',#6,#6,#5,.T.); 17#8=ORIENTED_EDGE('',$,$,#7,.T.); 18#9=EDGE_LOOP('degenerate_edge_loop',(#8)); 19#10=CARTESIAN_POINT('',(0.0,0.0,0.0)); 20#11=DIRECTION('',(0.0,0.0,1.0)); 21#12=DIRECTION('',(1.0,0.0,0.0)); 22#13=AXIS2_PLACEMENT_3D('',#10,#11,#12); 23#14=PLANE('',#13); 24#15=FACE_OUTER_BOUND('',#9,.T.); 25#16=ADVANCED_FACE('side_wall',(#15),#14,.T.); 26#17=CLOSED_SHELL('',(#16)); 27#18=MANIFOLD_SOLID_BREP('Hea017_body',#17); 28#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 29#9051=PRODUCT('Hea017','Hea017','',(#9050)); 30#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 31#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 32#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 33#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 34#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 35#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 36#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 37#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 38#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 39#9061=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#18),#9060); 40#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 41ENDSEC; 42END-ISO-10303-21;