Gs208 — TRIMMED_CURVE trim given by two same-type selectors violates `trimmed_curve` WR1/WR2; OCCT accepts silently

§12.2c surfaces (sub-class: spec WHERE-rule violation — trim with two same-type selectors, silently accepted)

P3 — cosmetic / metadata-only

spec-violation geometry

Sources

Description

When a `TRIMMED_CURVE` gives a trim endpoint with two selectors, WR1/WR2 require them to be of DIFFERENT types (a `CARTESIAN_POINT` and a `PARAMETER_VALUE`) — never two of the same type. Here the seam edge's 3D curve is `TRIMMED_CURVE('samesel',#line,(PARAMETER_VALUE(0.0),PARAMETER_VALUE(0.0)),(PARAMETER_VALUE(L),PARAMETER_VALUE(L)),.T.,.PARAMETER.)` — each trim gives **two PARAMETER_VALUE** selectors, violating WR1 and WR2. OCCT accepts the file and builds the cone solid (`shape(1)`, non-null) with no diagnostic; `part21_strict` accepts (the bytes are syntactically valid); the structural linter is silent.

Reproducer recipe

a `TRIMMED_CURVE` whose `trim_1` (and/or `trim_2`) is a set of two `PARAMETER_VALUE` selectors — used as the 3D curve of a real `EDGE_CURVE` so it is on the transfer path.

Expected kernel behavior

reject a trim whose two selectors are the same type (WR1/WR2); a redundant/ambiguous same-type trim must not be silently resolved to one of the two.

Notes

RUNTIME-VERIFIED (2026-08-14, OCP/OCCT 7.8.1): `occt=shape(1)/shape(1)`, part21 accepts, structural ok — every oracle silently tolerates the WR1/WR2 violation. Distinct from the corpus's trim-**range** defects (w1/w2 order, out-of-bounds, pcurve trim mismatch — Gp015/Gp028/Gn016/Gs033): this is a structural selector-**type** violation, not a range error. A producer commits it by emitting the trim parameter twice instead of one point + one parameter. gmsh count (shape(7)) is CI-Linux-authoritative if it diverges. Synonyms: "TRIMMED_CURVE two same-type trim", "redundant parameter trim selector", "two PARAMETER_VALUE in one trim", "trimmed_curve WR1 violation". Provenance tier: bytes-sufficient.

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

Gp015, Gp028, Gn016, Gs033

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Gs208: the seam edge's 3D curve is a TRIMMED_CURVE whose trim_1 and trim_2 each give TWO PARAMETER_VALUE selectors (PARAMETER_VALUE(0.0),PARAMETER_VALUE(0.0)), violating ISO 10303-42 trimmed_curve WR1/WR2 (the two selectors of a trim must be of different types — a point and a parameter, not two parameters); OCCT accepts and builds the cone solid shape(1) with no diagnostic, part21 accepts (syntactically valid) and the structural linter is silent, so every oracle tolerates the redundant same-type trim; distinct from the trim-range defects (w1/w2 order, out-of-bounds, pcurve trim mismatch) — this is a structural selector-type violation; spec-driven, mined from the AP242 MIM trimmed_curve WHERE-rules; expected strict behavior: reject a trim whose two selectors are the same type; synonyms: TRIMMED_CURVE two same-type trim, redundant parameter trim selector, two PARAMETER_VALUE in one trim, trimmed_curve WR1 violation; the same-type TRIMMED_CURVE trims are the defect carrier */
3HEADER;
4FILE_DESCRIPTION(('Gs208'),'2;1');
5FILE_NAME('Gs208.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=CONICAL_SURFACE('',#4,1.0,0.4);
15#6=CARTESIAN_POINT('',(1.0,0.0,0.0));
16#7=CARTESIAN_POINT('',(0.577206781262,0.0,1.0));
17#8=VERTEX_POINT('',#6);
18#9=VERTEX_POINT('',#7);
19#10=CARTESIAN_POINT('',(0.0,0.0,0.0));
20#11=DIRECTION('',(0.0,0.0,-1.0));
21#12=DIRECTION('',(1.0,0.0,0.0));
22#13=AXIS2_PLACEMENT_3D('',#10,#11,#12);
23#14=CIRCLE('',#13,1.0);
24#15=EDGE_CURVE('',#8,#8,#14,.T.);
25#16=CARTESIAN_POINT('',(0.0,0.0,1.0));
26#17=DIRECTION('',(0.0,0.0,1.0));
27#18=DIRECTION('',(1.0,0.0,0.0));
28#19=AXIS2_PLACEMENT_3D('',#16,#17,#18);
29#20=CIRCLE('',#19,0.577206781262);
30#21=EDGE_CURVE('',#9,#9,#20,.T.);
31#22=DIRECTION('',(-0.389418342309,0.0,0.921060994003));
32#23=VECTOR('',#22,1.08570442838);
33#24=LINE('',#6,#23);
34#25=TRIMMED_CURVE('samesel',#24,(PARAMETER_VALUE(0.0),PARAMETER_VALUE(0.0)),(PARAMETER_VALUE(1.0857044283832387),PARAMETER_VALUE(1.0857044283832387)),.T.,.PARAMETER.);
35#26=EDGE_CURVE('',#8,#9,#25,.T.);
36#27=ORIENTED_EDGE('',$,$,#26,.T.);
37#28=ORIENTED_EDGE('',$,$,#21,.T.);
38#29=ORIENTED_EDGE('',$,$,#26,.F.);
39#30=ORIENTED_EDGE('',$,$,#15,.F.);
40#31=EDGE_LOOP('',(#27,#28,#29,#30));
41#32=FACE_OUTER_BOUND('',#31,.T.);
42#33=ADVANCED_FACE('',(#32),#5,.T.);
43#34=CLOSED_SHELL('',(#33));
44#35=MANIFOLD_SOLID_BREP('',#34);
45#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
46#9051=PRODUCT('Gs208','Gs208','',(#9050));
47#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
48#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
49#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
50#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
51#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
52#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
53#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
54#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
55#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
56#9061=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#35),#9060);
57#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
58ENDSEC;
59END-ISO-10303-21;