Gs066 — ShapeAnalysis_Surface.SortSingularities cone vs cylinder differing singularities

§12.2c

geometry

Sources

Description

ShapeAnalysis_Surface.SortSingularities cone vs cylinder differing singularities

Reproducer recipe

Expected kernel behavior

Accept: two independent surface entities -- a genuine SPHERICAL_SURFACE (radius 5.0, two poles) and an unrelated B_SPLINE_SURFACE_WITH_KNOTS carrying the surface_form token .CONICAL_FORM. -- sit side by side in one GEOMETRIC_CURVE_SET with no face wiring between them. .CONICAL_FORM. is not a legal b_spline_surface_form enumeration literal, so it is not a valid hint at all; a kernel must derive each entity's own singularities from its actual geometric type (sphere: two poles) and must never let one entity's stray or invalid form tag describe a separate, unrelated entity.

Expected validation

occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Gs066: SPHERICAL_SURFACE (radius=5.0, form=.CONICAL_FORM.) IS inside GEOMETRIC_CURVE_SET; sphere entity has 2 pole singularities but form hint says conical (1 apex) IS the mismatch; SortSingularities reads form hint instead of IsKind() check IS the defect; misclassification discards one sphere pole; shape_null */
3HEADER;
4FILE_DESCRIPTION(('Gs066'),'2;1');
5FILE_NAME('Gs066.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('gs066_sph_ax',#1,#2,#3);
14#5=SPHERICAL_SURFACE('gs066_sphere',#4,5.0);
15#6=CARTESIAN_POINT('',(0.0,0.0,5.0));
16#7=CARTESIAN_POINT('',(0.0,0.0,-5.0));
17#8=CARTESIAN_POINT('',(5.0,0.0,0.0));
18#9=CARTESIAN_POINT('',(0.0,0.0,0.0));
19#10=CARTESIAN_POINT('',(5.0,0.0,0.0));
20#11=CARTESIAN_POINT('',(0.0,5.0,0.0));
21#12=CARTESIAN_POINT('',(5.0,5.0,0.0));
22#13=B_SPLINE_SURFACE_WITH_KNOTS('gs066_cone_hint',1,1,((#9,#10),(#11,#12)),.CONICAL_FORM.,.F.,.F.,.F.,(2,2),(2,2),(0.0,1.0),(0.0,1.0),.UNSPECIFIED.);
23#14=GEOMETRIC_CURVE_SET('gs066_gcs',(#5,#13,#6,#7,#8));
24#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
25#9051=PRODUCT('Gs066','Gs066','',(#9050));
26#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
27#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
28#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
29#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
30#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
31#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
32#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
33#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
34#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
35#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#14),#9060);
36#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
37ENDSEC;
38END-ISO-10303-21;