step-examples/12-3b-wires/Twi088.stp
Sources
- OCCT BRepLib::BuildCurves3d (uncovered class evidence)
Sender
deduced — OCCT uncovered-class sweep
Description
An edge appears in face wires only via its pcurve representations on adjacent faces; there is no 3D curve attached to the edge itself. The edge is "implicit" (defined only by surface intersection). Bug-reporter language: "edge has only pcurve", "no 3D geometry on edge", "edge derived from surfaces only".
Reproducer recipe
An `EDGE_CURVE` whose `edge_geometry` is null, but `PCURVE`s on two adjacent faces describe the edge in UV.
Expected kernel behavior
Heal and accept: repair / reconstruct the 3D curve by intersecting the two pcurves' host surfaces; report the deviation.
Notes
Common when files are exported from surfacing tools. Synonyms: "edge has only parametric trace no spatial geometry", "implicit edge derived from surface intersection", "no spatial trajectory attached to edge", "topology has parametric trace only".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'pcurve_only_edge')contains(b',$,.T.)')count_entity_def(b'EDGE_CURVE') == 1
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Twi088: GEOMETRIC_CURVE_SET containing EDGE_LOOP 'pcurve_only_edge'; exactly ONE EDGE_CURVE with null 3D geometry (edge_geometry=$); the edge is described only by PCURVE in UV on a PLANE host surface; EDGE_CURVE text: EDGE_CURVE('',#vs,#ve,$,.T.) â null geometry field; BRepLib BuildCurves3d: no 3D curve to use, must reconstruct from pcurves; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty; EDGE_CURVE IS wired into EDGE_LOOP; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi088'),'2;1'); 5FILE_NAME('Twi088.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=VERTEX_POINT('',#6); 17#8=CARTESIAN_POINT('',(1.0,0.0,0.0)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(0.0,0.0)); 20#11=DIRECTION('',(1.0,0.0)); 21#12=VECTOR('',#11,1.0); 22#13=LINE('',#10,#12); 23#14=DEFINITIONAL_REPRESENTATION('',(#13),#?); 24#15=PCURVE('',#5,#14); 25#16=EDGE_CURVE('',#7,#9,$,.T.); 26#17=ORIENTED_EDGE('',*,*,#16,.T.); 27#18=EDGE_LOOP('pcurve_only_edge',(#17)); 28#19=GEOMETRIC_CURVE_SET('',(#18)); 29#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 30#9051=PRODUCT('Twi088','Twi088','',(#9050)); 31#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 32#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 33#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 34#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 35#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 36#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 37#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 38#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 39#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 40#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#19),#9060); 41#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 42ENDSEC; 43END-ISO-10303-21;