step-examples/12-3b-wires/Twi047.stp
Sources
- OCCT `ShapeFix_Edge::FixAddCurve3d` (`ShapeFix_Edge.hxx:129`)
Description
An EDGE_CURVE on a face references a SURFACE_CURVE whose representations list contains only a 2D pcurve and lacks the 3D space curve. Length, sampling, sewing across faces, and Boolean operations all need a 3D curve; without one, the edge cannot participate in cross-face topology checks.
Reproducer recipe
An edge of a face whose curve is a PCURVE on the face's surface, with no `Geom_Curve` 3D representation listed.
Expected kernel behavior
synthesize the 3D curve by lifting the pcurve through the host surface, verify that the result is same-parameter, and re-validate vertex coincidence; or reject the edge as malformed.
Notes
Existing entry Gp001 covers the converse (no pcurve, only 3D). This is the symmetric variant. Synonyms: "orphan parametric curve without spatial trace", "kernel cannot run cross-face checks without 3D trace", "edge stored as UV trace only", "implicit edge from surface trim only".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(1) ifc=schema_n/a
Closure intent
sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.
Tier-3 assertions
face[0].surface_type == "plane"
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi047: EDGE_CURVE whose curve is a SURFACE_CURVE with only a pcurve in associated_geometry and no 3D space curve; edge has no Geom_Curve representation; kernel must synthesize 3D curve from pcurve+surface or reject; four such edges bound a square ADVANCED_FACE on a PLANE */ 3HEADER; 4FILE_DESCRIPTION(('Twi047'),'2;1'); 5FILE_NAME('Twi047.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=DIRECTION('',(0.0,0.0,1.0)); 12#3=DIRECTION('',(1.0,0.0,0.0)); 13#4=AXIS2_PLACEMENT_3D('',#1,#2,#3); 14#5=PLANE('',#4); 15#6=CARTESIAN_POINT('',(0.0,0.0,0.0)); 16#7=CARTESIAN_POINT('',(10.0,0.0,0.0)); 17#8=CARTESIAN_POINT('',(10.0,10.0,0.0)); 18#9=CARTESIAN_POINT('',(0.0,10.0,0.0)); 19#10=VERTEX_POINT('',#6); 20#11=VERTEX_POINT('',#7); 21#12=VERTEX_POINT('',#8); 22#13=VERTEX_POINT('',#9); 23#14=CARTESIAN_POINT('',(0.0,0.0,0.0)); 24#15=CARTESIAN_POINT('',(10.0,0.0,0.0)); 25#16=CARTESIAN_POINT('',(10.0,10.0,0.0)); 26#17=CARTESIAN_POINT('',(0.0,10.0,0.0)); 27#18=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('','2D')); 28#19=CARTESIAN_POINT('',(0.0,0.0)); 29#20=DIRECTION('',(1.0,0.0)); 30#21=VECTOR('',#20,10.0); 31#22=LINE('',#19,#21); 32#23=DEFINITIONAL_REPRESENTATION('',( #22),#18); 33#24=PCURVE('',#5,#23); 34#25=SURFACE_CURVE('e_bot',#24,(#24),.PCURVE_S1.); 35#26=EDGE_CURVE('e_bot',#10,#11,#25,.T.); 36#27=CARTESIAN_POINT('',(10.0,0.0)); 37#28=DIRECTION('',(0.0,1.0)); 38#29=VECTOR('',#28,10.0); 39#30=LINE('',#27,#29); 40#31=DEFINITIONAL_REPRESENTATION('',( #30),#18); 41#32=PCURVE('',#5,#31); 42#33=SURFACE_CURVE('e_rgt',#32,(#32),.PCURVE_S1.); 43#34=EDGE_CURVE('e_rgt',#11,#12,#33,.T.); 44#35=CARTESIAN_POINT('',(0.0,10.0)); 45#36=DIRECTION('',(1.0,0.0)); 46#37=VECTOR('',#36,10.0); 47#38=LINE('',#35,#37); 48#39=DEFINITIONAL_REPRESENTATION('',( #38),#18); 49#40=PCURVE('',#5,#39); 50#41=SURFACE_CURVE('e_top',#40,(#40),.PCURVE_S1.); 51#42=EDGE_CURVE('e_top',#13,#12,#41,.T.); 52#43=CARTESIAN_POINT('',(0.0,0.0)); 53#44=DIRECTION('',(0.0,1.0)); 54#45=VECTOR('',#44,10.0); 55#46=LINE('',#43,#45); 56#47=DEFINITIONAL_REPRESENTATION('',( #46),#18); 57#48=PCURVE('',#5,#47); 58#49=SURFACE_CURVE('e_lft',#48,(#48),.PCURVE_S1.); 59#50=EDGE_CURVE('e_lft',#10,#13,#49,.T.); 60#51=ORIENTED_EDGE('',$,$,#26,.T.); 61#52=ORIENTED_EDGE('',$,$,#34,.T.); 62#53=ORIENTED_EDGE('',$,$,#42,.F.); 63#54=ORIENTED_EDGE('',$,$,#50,.F.); 64#55=EDGE_LOOP('',(#51,#52,#53,#54)); 65#56=FACE_OUTER_BOUND('',#55,.T.); 66#57=ADVANCED_FACE('',(#56),#5,.T.); 67#58=OPEN_SHELL('',(#57)); 68#59=SHELL_BASED_SURFACE_MODEL('',(#58)); 69#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 70#9051=PRODUCT('Twi047','Twi047','',(#9050)); 71#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 72#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 73#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 74#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 75#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 76#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 77#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 78#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 79#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 80#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#59),#9060); 81#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 82ENDSEC; 83END-ISO-10303-21;