step-examples/12-2c-surfaces/Gs186.stp
Sources
- https://docs.techsoft3d.com/exchange/2023_SP2_U1/fixed_bugs.html (SDHE-12051: incorrect UV curves on spherical face from STEP). B4 wave-4 DEF-F (LGPL-clean — pattern only, no bytes copied).
Description
STEP file with a SPHERICAL_SURFACE ADVANCED_FACE containing a PCURVE whose DEFINITIONAL_REPRESENTATION uses a V-range of [0, π] instead of the STEP-defined [-π/2, +π/2] per ISO 10303-42 §4.4.32. Under the standard, V=0 maps to the equator; the defect V=0 should correspond to the south pole (V=-π/2 in standard coords). The V-origin is offset by +π/2, mapping the wrong parametric half of the sphere and causing incorrect UV curves in receivers that enforce the standard. The PCURVE is wired into the face's seam EDGE_CURVE on the SPHERICAL_SURFACE face.
Reproducer recipe
SPHERICAL_SURFACE radius 5 at origin; PCURVE for seam edge with DEFINITIONAL_REPRESENTATION LINE starting at (U=0, V=0) (wrong) instead of (U=0, V=-π/2) (correct), spanning V range [0, π] instead of [-π/2, +π/2]; SURFACE_CURVE on seam EDGE_CURVE carries this PCURVE; OPEN_SHELL wraps one face. OCCT heals (tolerance widens to ~5.0) and produces shape(1).
Expected kernel behavior
receivers enforcing ISO 10303-42 §4.4.32 should diagnose V-origin mismatch and either reject or recompute pcurves; pre-fix HOOPS Exchange (SDHE-12051) produced incorrect UV tessellation.
Notes
Synonyms: "SPHERICAL_SURFACE wrong V parametrization", "sphere pcurve V-range offset", "STEP sphere UV incorrect", "SDHE-12051 sphere pcurve", "incorrect UV curves spherical face STEP". OCCT healing widens tolerance to ~5 units to recover.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(7) ifc=schema_n/a
Byte assertions
contains(b'SPHERICAL_SURFACE')contains(b'PCURVE')
Tier-3 assertions
n_faces_total == 1faces[0].surface_type == "sphere"face[0].surface_type == "sphere"face[0].quadric.radius == 5.0edge[3].curve_type == "circle"edge[3].analytic.radius == 5.0
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Gs186: SPHERICAL_SURFACE (radius 5) IS ADVANCED_FACE.face_geometry; PCURVE on seam edge uses V-range [0, pi] instead of ISO-10303-42 §4.4.32 standard [-pi/2, +pi/2] â V-origin offset by +pi/2; wrong V-parametrization maps UV strip to wrong hemisphere (SDHE-12051); shape_null or shape(1) depending on healing */ 3HEADER; 4FILE_DESCRIPTION(('Gs186'),'2;1'); 5FILE_NAME('Gs186.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=SPHERICAL_SURFACE('',#4,5.0); 15#6=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D')); 16#7=CARTESIAN_POINT('',(0.0,0.0,-5.0)); 17#8=CARTESIAN_POINT('',(0.0,0.0,5.0)); 18#9=VERTEX_POINT('',#7); 19#10=VERTEX_POINT('',#8); 20#11=DIRECTION('',(0.0,0.0,1.0)); 21#12=VECTOR('',#11,10.0); 22#13=LINE('',#7,#12); 23#14=CARTESIAN_POINT('',(0.0,0.0)); 24#15=DIRECTION('',(0.0,1.0)); 25#16=VECTOR('',#15,3.14159265359); 26#17=LINE('',#14,#16); 27#18=DEFINITIONAL_REPRESENTATION('gs186_seam_pcdef',(#17),#6); 28#19=PCURVE('gs186_seam_pc',#5,#18); 29#20=SURFACE_CURVE('gs186_seam_sc',#13,(#19),.PCURVE_S1.); 30#21=EDGE_CURVE('gs186_seam',#9,#10,#20,.T.); 31#22=CARTESIAN_POINT('',(0.0,0.0,0.0)); 32#23=DIRECTION('',(0.0,1.0,0.0)); 33#24=DIRECTION('',(1.0,0.0,0.0)); 34#25=AXIS2_PLACEMENT_3D('',#22,#23,#24); 35#26=CIRCLE('gs186_eq_arc',#25,5.0); 36#27=CARTESIAN_POINT('',(3.14159265359,0.0)); 37#28=DIRECTION('',(0.0,1.0)); 38#29=VECTOR('',#28,3.14159265359); 39#30=LINE('',#27,#29); 40#31=DEFINITIONAL_REPRESENTATION('gs186_eq_pcdef',(#30),#6); 41#32=PCURVE('gs186_eq_pc',#5,#31); 42#33=SURFACE_CURVE('gs186_eq_sc',#26,(#32),.PCURVE_S1.); 43#34=EDGE_CURVE('gs186_eq',#9,#10,#33,.T.); 44#35=ORIENTED_EDGE('',$,$,#21,.T.); 45#36=ORIENTED_EDGE('',$,$,#34,.F.); 46#37=EDGE_LOOP('',(#35,#36)); 47#38=FACE_OUTER_BOUND('',#37,.T.); 48#39=ADVANCED_FACE('',(#38),#5,.T.); 49#40=OPEN_SHELL('',(#39)); 50#41=SHELL_BASED_SURFACE_MODEL('',(#40)); 51#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 52#9051=PRODUCT('Gs186','Gs186','',(#9050)); 53#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 54#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 55#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 56#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 57#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 58#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 59#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 60#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 61#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 62#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#41),#9060); 63#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 64ENDSEC; 65END-ISO-10303-21;