step-examples/12-2a-pcurves/Gp030.stp
Sources
- 05-occt-shapefix.md F061 (`ShapeFix_Wire.cxx`)
Sender
PRO/E (`PRO7978.igs`, `PRO10107.stp`)
Description
PRO/E exports (identifiable by `originating_system` 'PRO/Engineer …' in `FILE_NAME`) contain pcurves with sharp bends, typically authored as degree-1 `B_SPLINE_CURVE_WITH_KNOTS` in `.POLYLINE_FORM.` with vendor-specific interior knot multiplicities. These vendor-shaped B-spline pcurves must be protected from generic intersection-fix routines that would otherwise corrupt them. A specialized "bend-pcurve" pass holds the pcurve fixed while neighbors are adjusted.
Reproducer recipe
PRO/E STEP file with a face whose pcurve has a sharp bend; run generic ShapeFix wire intersection healing; observe pcurve corruption.
Expected kernel behavior
heal; recognize PRO/E sender and route bent pcurves through the protective branch.
Notes
**OCC behavior**: accepts and loads shape(1); OCC's STEP reader recomputes the pcurve from the 3D curve on transfer (per Gp193), so the declared 2D/pcurve defect does not survive into the built shape. Perturbing the declared defect from clean to grossly exaggerated leaves the built shape unchanged in both shape-counts and BRepCheck validity (heal_on and heal_off), so the shape-count oracle cannot distinguish it from a clean input; shape(1) does not witness a kernel bug. Synonyms: "PRO/E polyline-form pcurve gets corrupted by intersection healer", "bent B-spline pcurve from PRO/Engineer", "pcurve sharp bend killed by generic ShapeFix", "polyline pcurve degree-1 with vendor multiplicities", "wire intersection fix damages PRO/E pcurve".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(7) ifc=schema_n/a
Byte assertions
contains(b'SURFACE_CURVE')contains(b'EDGE_CURVE')count_entity_def(b'PCURVE') >= 1
Tier-3 assertions
shape_null == Falsen_faces_total == 1n_edges_total == 4n_vertices_total == 8face[0].surface_type == "cylinder"face[0].quadric.radius == 1.0edge[0].curve_type == "circle"edge[0].analytic.radius == 1.0edge[2].curve_type == "circle"edge[2].analytic.radius == 1.0
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Gp030: PRO/E STEP: seam edge pcurve is degree-1 B_SPLINE_CURVE_WITH_KNOTS in .POLYLINE_FORM. with 3 control points forming an L-bend in UV; interior knot multiplicity=2=degree makes it C-1 (true breakpoint); generic ShapeFix_Wire intersection-fix would corrupt this vendor pcurve */ 3HEADER; 4FILE_DESCRIPTION(('Gp030'),'2;1'); 5FILE_NAME('Gp030.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','Pro/ENGINEER',''); 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=CYLINDRICAL_SURFACE('',#4,1.0); 15#6=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D')); 16#7=CARTESIAN_POINT('',(1.0,0.0,0.0)); 17#8=CARTESIAN_POINT('',(1.0,0.0,1.0)); 18#9=VERTEX_POINT('',#7); 19#10=VERTEX_POINT('',#8); 20#11=DIRECTION('',(0.0,0.0,1.0)); 21#12=VECTOR('',#11,1.0); 22#13=LINE('',#7,#12); 23#14=CARTESIAN_POINT('',(0.0,0.0)); 24#15=CARTESIAN_POINT('',(0.3,0.5)); 25#16=CARTESIAN_POINT('',(0.0,1.0)); 26#17=B_SPLINE_CURVE_WITH_KNOTS('proe_polyline',1,(#14,#15,#16),.POLYLINE_FORM.,.F.,.F.,(2,2,2),(0.0,0.5,1.0),.UNSPECIFIED.); 27#18=DEFINITIONAL_REPRESENTATION('pc_left_bend',(#17),#6); 28#19=PCURVE('proe_bent_pcurve',#5,#18); 29#20=SURFACE_CURVE('left_seam',#13,(#19),.PCURVE_S1.); 30#21=EDGE_CURVE('left_seam',#9,#10,#20,.T.); 31#22=LINE('',#7,#12); 32#23=CARTESIAN_POINT('',(6.28318530718,0.0)); 33#24=DIRECTION('',(0.0,1.0)); 34#25=VECTOR('',#24,1.0); 35#26=LINE('',#23,#25); 36#27=DEFINITIONAL_REPRESENTATION('pc_right',(#26),#6); 37#28=PCURVE('right_seam',#5,#27); 38#29=SURFACE_CURVE('right_seam',#22,(#28),.PCURVE_S1.); 39#30=EDGE_CURVE('right_seam',#9,#10,#29,.T.); 40#31=CARTESIAN_POINT('',(0.0,0.0,0.0)); 41#32=DIRECTION('',(0.0,0.0,1.0)); 42#33=DIRECTION('',(1.0,0.0,0.0)); 43#34=AXIS2_PLACEMENT_3D('',#31,#32,#33); 44#35=CIRCLE('',#34,1.0); 45#36=CARTESIAN_POINT('',(0.0,0.0)); 46#37=DIRECTION('',(1.0,0.0)); 47#38=VECTOR('',#37,6.28318530718); 48#39=LINE('',#36,#38); 49#40=DEFINITIONAL_REPRESENTATION('pc_bot',(#39),#6); 50#41=PCURVE('bot_arc',#5,#40); 51#42=SURFACE_CURVE('bot_arc',#35,(#41),.PCURVE_S1.); 52#43=EDGE_CURVE('bot_arc',#9,#9,#42,.T.); 53#44=CARTESIAN_POINT('',(0.0,0.0,1.0)); 54#45=AXIS2_PLACEMENT_3D('',#44,#32,#33); 55#46=CIRCLE('',#45,1.0); 56#47=CARTESIAN_POINT('',(0.0,1.0)); 57#48=DIRECTION('',(1.0,0.0)); 58#49=VECTOR('',#48,6.28318530718); 59#50=LINE('',#47,#49); 60#51=DEFINITIONAL_REPRESENTATION('pc_top',(#50),#6); 61#52=PCURVE('top_arc',#5,#51); 62#53=SURFACE_CURVE('top_arc',#46,(#52),.PCURVE_S1.); 63#54=EDGE_CURVE('top_arc',#10,#10,#53,.T.); 64#55=ORIENTED_EDGE('',$,$,#43,.T.); 65#56=ORIENTED_EDGE('',$,$,#30,.T.); 66#57=ORIENTED_EDGE('',$,$,#54,.F.); 67#58=ORIENTED_EDGE('',$,$,#21,.F.); 68#59=EDGE_LOOP('',(#55,#56,#57,#58)); 69#60=FACE_OUTER_BOUND('',#59,.T.); 70#61=ADVANCED_FACE('',(#60),#5,.T.); 71#62=OPEN_SHELL('',(#61)); 72#63=SHELL_BASED_SURFACE_MODEL('',(#62)); 73#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 74#9051=PRODUCT('Gp030','Gp030','',(#9050)); 75#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 76#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 77#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 78#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 79#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 80#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 81#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 82#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 83#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 84#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#63),#9060); 85#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 86ENDSEC; 87END-ISO-10303-21;