step-examples/12-2b-nurbs/Gn105.stp
Sources
- synthesized — no external source cited
Description
rational-with-coincident-poles IsClosed
Reproducer recipe
Expected kernel behavior
reject-with-diagnostic or heal: a rational curve with two coincident control points that carry different weights is an ambiguous/degenerate encoding -- at that shared position, which weight applies to the local curve shape is not well-defined from the pole positions alone. A closure or coincidence check comparing only positions (and ignoring weight) will treat those two poles as equivalent when they are not; a kernel must either reject the ambiguous encoding with a diagnostic, or resolve/average the weights and record that a repair was made.
Expected validation
occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Gn105: rational curve coincident poles with differing weights; IsClosed ignores weight mismatch */ 3HEADER; 4FILE_DESCRIPTION(('Gn105'),'2;1'); 5FILE_NAME('Gn105.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=CARTESIAN_POINT('',(1.0,0.0,0.0)); 12#3=CARTESIAN_POINT('',(0.0,0.0,0.0)); 13#4=B_SPLINE_CURVE_WITH_KNOTS('rational_closed',2,.F.,(#1,#2,#3),.UNSPECIFIED.,.F.,.F.,(1,1,1),(0.0,1.0),.UNSPECIFIED.,(1.0,1.414213562373095,2.0)); 14#5=VERTEX_POINT('',#1); 15#6=VERTEX_POINT('',#3); 16#7=EDGE_CURVE('',#5,#6,#4,.T.); 17#8=ORIENTED_EDGE('',$,$,#7,.T.); 18#9=EDGE_LOOP('',(#8)); 19#10=FACE_OUTER_BOUND('',#9,.T.); 20#11=CARTESIAN_POINT('',(0.0,0.0,0.0)); 21#12=DIRECTION('',(0.0,0.0,1.0)); 22#13=DIRECTION('',(1.0,0.0,0.0)); 23#14=AXIS2_PLACEMENT_3D('',#11,#12,#13); 24#15=PLANE('',#14); 25#16=ADVANCED_FACE('',(#10),#15,.T.); 26#17=OPEN_SHELL('',(#16)); 27#18=SHELL_BASED_SURFACE_MODEL('',(#17)); 28#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 29#9051=PRODUCT('Gn105','Gn105','',(#9050)); 30#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 31#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 32#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 33#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 34#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 35#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 36#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 37#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 38#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 39#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#18),#9060); 40#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 41ENDSEC; 42END-ISO-10303-21;