Gn043 — ShapeAnalysis_Curve.GetSamplePoints rational curve 4x amplification

§12.2b

crash geometry

Sources

Description

ShapeAnalysis_Curve.GetSamplePoints rational curve 4x amplification

Reproducer recipe

Expected kernel behavior

heal: a rational curve with alternating weights (1.0, 2.0) is a valid input, but naive sample-count logic that scales with the rational denominator can over-sample by a large factor relative to a non-rational curve of the same pole count. A kernel's sampling density should be bounded by curvature/parametric criteria, not driven unboundedly by the weight magnitude, so the same curve does not silently cost 4x the expected work.

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/* Gn043 - ShapeAnalysis_Curve.GetSamplePoints rational B-spline 4x amplification
3   Defect: a rational B_SPLINE_CURVE_WITH_KNOTS with non-uniform weights causes
4   the sample point generation to amplify the sample count by a factor of 4x.
5   The denominator pre-image expansion in rational curves is not properly
6   accounted for, leading to excessive sampling overhead and potential numerical
7   instability during healing operations. */
8HEADER;
9FILE_DESCRIPTION(('Gn043 - Rational BSpline 4x sample amplification'',''2;1'',''2;1'),'2;1');
10FILE_NAME('Gn043.stp','2026-06-16T00:00:00',('auto-generated'),(''),
11  'auto-generated','','');
12FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
13ENDSEC;
14DATA;
15/* Rational cubic B-spline with 5 control points and non-uniform weights.
16   The weight array [1.0, 2.0, 1.0, 2.0, 1.0] has large variation (2.0 vs 1.0)
17   that amplifies the denominator variation, causing sample-count amplification. */
18#10=CARTESIAN_POINT('p1',(0.0,0.0,0.0));
19#11=CARTESIAN_POINT('p2',(1.0,2.0,0.0));
20#12=CARTESIAN_POINT('p3',(2.0,1.0,0.0));
21#13=CARTESIAN_POINT('p4',(3.0,2.0,0.0));
22#14=CARTESIAN_POINT('p5',(4.0,0.0,0.0));
23/* Defect: non-uniform weights cause denominator pre-image expansion.
24   GetSamplePoints applies a 4x amplification factor to account for
25   weight variation, causing 4x more samples than necessary. */
26#100=B_SPLINE_CURVE_WITH_KNOTS('rational_amplify',3,
27  (#10,#11,#12,#13,#14),
28  .UNSPECIFIED.,.F.,.F.,
29  (4,1,4),
30  (0.0,0.5,1.0),
31  .UNSPECIFIED.,
32  (1.0,2.0,1.0,2.0,1.0));
33/* PRODUCT chain wrapping wireframe. */
34#9990=APPLICATION_CONTEXT('automotive_design');
35#9000=PRODUCT_CONTEXT('',#9990,'mechanical');
36#9001=PRODUCT('Gn043','Gn043','',(#9000));
37#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
38#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#9990,'design');
39#9004=PRODUCT_DEFINITION('','',#9002,#9003);
40#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
41#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
42#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
43#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
44#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
45#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
46#9020=GEOMETRIC_CURVE_SET('wire_set',(#100));
47#9021=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#9020),#9010);
48#9022=SHAPE_DEFINITION_REPRESENTATION(#9005,#9021);
49ENDSEC;
50END-ISO-10303-21;