step-examples/12-2c-surfaces/Gs131.stp
Sources
- OCCT/ShapeAnalysis (see fixture)
Description
ShapeAnalysis_Surface.NextValueOfUV implements Newton iteration to find UV coordinates on a surface for a given 3D point. When the previous iterate is very close to the target (within Confusion tolerance), the algorithm declares convergence prematurely without verifying that the.
Reproducer recipe
Expected kernel behavior
Accept: a TOROIDAL_SURFACE (major_radius=1.0, minor_radius=0.3) wired into the face with edges at the torus's own analytic radii (0.3 and 1.3). A kernel doing point-inversion (finding the UV for a 3D point) on an analytic quadric like a torus should use the surface's closed-form inverse rather than an iterative Newton scheme that could declare premature convergence near the seam; the torus itself, seam included, is ordinary valid geometry.
Notes
synthesized from earlier wave; backfilled from fixture comment
Expected validation
occt=shape(1)/shape(1) gmsh=shape(4) ifc=schema_n/a
Tier-3 assertions
load == "ok"face[0].surface_type == "torus"face[0].quadric.major_radius == 1.0face[0].quadric.minor_radius == 0.3edge[0].curve_type == "circle"edge[0].analytic.radius == 0.3edge[1].curve_type == "circle"edge[1].analytic.radius == 1.3edge[2].curve_type == "circle"edge[2].analytic.radius == 0.3edge[3].curve_type == "circle"edge[3].analytic.radius == 1.3
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Gs131: TOROIDAL_SURFACE IS ADVANCED_FACE.face_geometry; face edge 3D curve placed within Confusion tolerance of u=2Ï seam causing premature Newton convergence to wrong UV IS the mechanism wired into face topology; NextValueOfUV residual-verification absence IS the defect; shape_null */ 3HEADER; 4FILE_DESCRIPTION(('Gs131'),'2;1'); 5FILE_NAME('Gs131.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('gs131_torus_ax',#1,#2,#3); 14#5=TOROIDAL_SURFACE('gs131_torus',#4,1.0,0.3); 15#6=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D')); 16#7=CARTESIAN_POINT('',(1.3,-1.30000002394E-08,0.0)); 17#8=CARTESIAN_POINT('',(1.3,1.3E-08,0.0)); 18#9=CARTESIAN_POINT('',(1.26327476857,1.26327476857E-08,0.143827661581)); 19#10=CARTESIAN_POINT('',(1.26327476857,-1.26327479183E-08,0.143827661581)); 20#11=VERTEX_POINT('',#7); 21#12=VERTEX_POINT('',#8); 22#13=VERTEX_POINT('',#9); 23#14=VERTEX_POINT('',#10); 24#15=CARTESIAN_POINT('',(1.3,-1.30000002394E-08,0.0)); 25#16=DIRECTION('',(0.0,2.60000002394E-08,0.0)); 26#17=VECTOR('',#16,2.0E-08); 27#18=LINE('',#15,#17); 28#19=CARTESIAN_POINT('',(6.28318529718,0.0)); 29#20=DIRECTION('',(1.0,0.0)); 30#21=VECTOR('',#20,2.0E-08); 31#22=LINE('',#19,#21); 32#23=DEFINITIONAL_REPRESENTATION('pcdef',(#22),#6); 33#24=PCURVE('pc',#5,#23); 34#25=SURFACE_CURVE('sc',#18,(#24),.PCURVE_S1.); 35#26=EDGE_CURVE('ec',#11,#12,#25,.T.); 36#27=CARTESIAN_POINT('',(1.3,1.3E-08,0.0)); 37#28=DIRECTION('',(-0.0367252314329,-3.67252314329E-10,0.143827661581)); 38#29=VECTOR('',#28,0.5); 39#30=LINE('',#27,#29); 40#31=CARTESIAN_POINT('',(1.0E-08,0.0)); 41#32=DIRECTION('',(0.0,1.0)); 42#33=VECTOR('',#32,0.5); 43#34=LINE('',#31,#33); 44#35=DEFINITIONAL_REPRESENTATION('pcdef',(#34),#6); 45#36=PCURVE('pc',#5,#35); 46#37=SURFACE_CURVE('sc',#30,(#36),.PCURVE_S1.); 47#38=EDGE_CURVE('ec',#12,#13,#37,.T.); 48#39=CARTESIAN_POINT('',(1.26327476857,1.26327476857E-08,0.143827661581)); 49#40=DIRECTION('',(0.0,-2.5265495604E-08,0.0)); 50#41=VECTOR('',#40,2.0E-08); 51#42=LINE('',#39,#41); 52#43=CARTESIAN_POINT('',(1.0E-08,0.5)); 53#44=DIRECTION('',(-1.0,0.0)); 54#45=VECTOR('',#44,2.0E-08); 55#46=LINE('',#43,#45); 56#47=DEFINITIONAL_REPRESENTATION('pcdef',(#46),#6); 57#48=PCURVE('pc',#5,#47); 58#49=SURFACE_CURVE('sc',#42,(#48),.PCURVE_S1.); 59#50=EDGE_CURVE('ec',#13,#14,#49,.T.); 60#51=CARTESIAN_POINT('',(1.26327476857,-1.26327479183E-08,0.143827661581)); 61#52=DIRECTION('',(0.0367252314329,-3.67252321092E-10,-0.143827661581)); 62#53=VECTOR('',#52,0.5); 63#54=LINE('',#51,#53); 64#55=CARTESIAN_POINT('',(6.28318529718,0.5)); 65#56=DIRECTION('',(0.0,-1.0)); 66#57=VECTOR('',#56,0.5); 67#58=LINE('',#55,#57); 68#59=DEFINITIONAL_REPRESENTATION('pcdef',(#58),#6); 69#60=PCURVE('pc',#5,#59); 70#61=SURFACE_CURVE('sc',#54,(#60),.PCURVE_S1.); 71#62=EDGE_CURVE('ec',#14,#11,#61,.T.); 72#63=ORIENTED_EDGE('',$,$,#26,.T.); 73#64=ORIENTED_EDGE('',$,$,#38,.T.); 74#65=ORIENTED_EDGE('',$,$,#50,.T.); 75#66=ORIENTED_EDGE('',$,$,#62,.T.); 76#67=EDGE_LOOP('',(#63,#64,#65,#66)); 77#68=FACE_OUTER_BOUND('',#67,.T.); 78#69=ADVANCED_FACE('',(#68),#5,.T.); 79#70=OPEN_SHELL('',(#69)); 80#71=SHELL_BASED_SURFACE_MODEL('',(#70)); 81#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 82#9051=PRODUCT('Gs131','Gs131','',(#9050)); 83#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 84#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 85#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 86#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 87#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 88#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 89#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 90#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 91#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 92#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#71),#9060); 93#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 94ENDSEC; 95END-ISO-10303-21;