step-examples/12-2a-pcurves/Gp005.stp
Sources
- 05-occt-shapefix.md F012, F065
- 11-translator-vendors.md W018
- 08-occt-gitlog.md G079
Sender
ProSTEP `r0501-ug.stp #182180` (cone apex); PRO/E PRO9234, PRO18206, PRO7226
Description
Projecting a 3D curve through the singular pole of a sphere or apex of a cone produces an indeterminate UV path; the parametric domain has a degenerate row where the surface map becomes non-injective. Surface-surface intersection and face translation routines misbehave near these singularities, and any wire that touches the singular point lacks a definitive UV image.
Reproducer recipe
`CONICAL_SURFACE` with semi-angle 30°; an `ADVANCED_FACE` whose outer loop touches the cone apex (`vertex_point` at apex) without an explicit degenerate edge.
Expected kernel behavior
insert a degenerate edge bridging the singular row in UV (zero length in 3D); clamp or wrap parameter ranges in intersection/projection routines; or reject as malformed. Apex-singularity handling is distinct from seam-on-periodic handling.
Notes
**See also**: Twi021. **OCC behavior**: accepts and loads shape(1); the built single-edge cone face is BRepCheck-invalid because of its minimal toy topology (an off-apex edge is equally invalid), not because of the declared apex singularity. The declared apex-singularity defect changes neither shape-counts nor BRepCheck validity, so the shape-count oracle cannot distinguish it from a clean cone-apex face; shape(1) does not witness a kernel bug. Synonyms: "pcurve at sphere pole has indeterminate UV", "wire touches cone apex without degenerate edge", "singular pole on sphere/cone breaks pcurve", "indeterminate UV at sphere pole", "face touches cone apex no degenerate edge inserted".
Expected validation
occt=shape(1)/shape(1) gmsh=reject 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 == 1n_vertices_total == 2face[0].surface_type == "cone"
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/* Gp005: pcurve with single-pole apex on cone singularity */ 3HEADER; 4FILE_DESCRIPTION(('Gp005'),'2;1'); 5FILE_NAME('Gp005.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=CONICAL_SURFACE('cone',#4,0.0,0.5235987756); 15#6=CARTESIAN_POINT('',(0.0,0.0,0.0)); 16#7=VERTEX_POINT('',#6); 17#8=CARTESIAN_POINT('',(2.5,0.0,4.330127)); 18#9=VERTEX_POINT('',#8); 19#10=DIRECTION('',(0.5,0.0,0.866025)); 20#11=VECTOR('',#10,5.0); 21#12=LINE('',#6,#11); 22#13=CARTESIAN_POINT('',(0.0,0.0)); 23#14=DIRECTION('',(0.0,1.0)); 24#15=VECTOR('',#14,5.0); 25#16=LINE('',#13,#15); 26#17=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('','2D')); 27#18=DEFINITIONAL_REPRESENTATION('',(#16),#17); 28#19=PCURVE('',#5,#18); 29#20=SURFACE_CURVE('',#12,(#19),.PCURVE_S1.); 30#21=EDGE_CURVE('',#7,#9,#20,.T.); 31#22=ORIENTED_EDGE('',$,$,#21,.T.); 32#23=EDGE_LOOP('',(#22)); 33#24=FACE_OUTER_BOUND('',#23,.T.); 34#25=ADVANCED_FACE('',(#24),#5,.T.); 35#26=OPEN_SHELL('',(#25)); 36#27=SHELL_BASED_SURFACE_MODEL('',(#26)); 37#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 38#9051=PRODUCT('Gp005','Gp005','',(#9050)); 39#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 40#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 41#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 42#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 43#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 44#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 45#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 46#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 47#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 48#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#27),#9060); 49#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 50ENDSEC; 51END-ISO-10303-21;