M162 — Fillet faces re-import as rounded edge (Onshape/Rhino) but as fillet in producer

§12.8 mixed (sub-class: feature-classification / surface category)

P1 — silent data loss

topology

Sources

Sender

FreeCAD PartDesign Fillet on the boolean union of a Box + Cylinder.

Description

A fillet between a planar face and a cylindrical face is emitted as a `B_SPLINE_SURFACE_WITH_KNOTS` cubic patch instead of an analytical `TOROIDAL_SURFACE`. Receivers (Onshape, Rhino) classify the result as "rounded edge" rather than "fillet feature" because they look for the `TOROIDAL_SURFACE` analytic type to recognize fillets as features for downstream chamfer/blend editing. Fusion 360 and FreeCAD itself recognise the geometry visually but lose the feature category.

Reproducer recipe

STEP file where a fillet between a planar face and a cylindrical face is encoded as `B_SPLINE_SURFACE_WITH_KNOTS` instead of `TOROIDAL_SURFACE`.

Expected kernel behavior

Heal and accept: writer prefers the most-specific analytical surface type when geometry permits; receivers should heal feature classification by falling back to feature-recognition heuristics rather than relying on surface-type classification. Warn and accept with W_FEATURE_CLASSIFICATION_LOST when the analytical surface cannot be recovered.

Notes

**See also**: P007. Synonyms: "fillet emitted as B-spline instead of torus", "Onshape sees rounded edge not fillet", "feature category lost on STEP export", "STEP fillet is bspline".

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

P007

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* M162: PLANE + CYLINDER + B-spline-fillet (lost fillet classification) */
3HEADER;
4FILE_DESCRIPTION(('M162'),'2;1');
5FILE_NAME('M162.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=PLANE('',#4);
15#6=CARTESIAN_POINT('',(0.0,0.0,0.0));
16#7=CARTESIAN_POINT('',(5.0,0.0,0.0));
17#8=VERTEX_POINT('',#6);
18#9=VERTEX_POINT('',#7);
19#10=DIRECTION('',(1.0,0.0,0.0));
20#11=VECTOR('',#10,5.0);
21#12=LINE('',#6,#11);
22#13=EDGE_CURVE('',#8,#9,#12,.T.);
23#14=ORIENTED_EDGE('',$,$,#13,.T.);
24#15=EDGE_LOOP('',(#14));
25#16=FACE_OUTER_BOUND('',#15,.T.);
26#17=ADVANCED_FACE('',(#16),#5,.T.);
27#18=CARTESIAN_POINT('',(5.0,0.0,0.0));
28#19=AXIS2_PLACEMENT_3D('',#18,#2,#3);
29#20=CYLINDRICAL_SURFACE('cyl',#19,2.0);
30#21=CARTESIAN_POINT('',(7.0,0.0,0.0));
31#22=VERTEX_POINT('',#21);
32#23=CARTESIAN_POINT('',(7.0,0.0,3.0));
33#24=VERTEX_POINT('',#23);
34#25=DIRECTION('',(0.0,0.0,1.0));
35#26=VECTOR('',#25,3.0);
36#27=CARTESIAN_POINT('',(7.0,0.0,0.0));
37#28=LINE('',#27,#26);
38#29=EDGE_CURVE('',#22,#24,#28,.T.);
39#30=ORIENTED_EDGE('',$,$,#29,.T.);
40#31=EDGE_LOOP('',(#30));
41#32=FACE_OUTER_BOUND('',#31,.T.);
42#33=ADVANCED_FACE('',(#32),#20,.T.);
43#34=CARTESIAN_POINT('',(4.0,0.0,0.0));
44#35=CARTESIAN_POINT('',(4.0,1.0,0.0));
45#36=CARTESIAN_POINT('',(4.0,2.0,0.0));
46#37=CARTESIAN_POINT('',(4.5,0.0,0.3));
47#38=CARTESIAN_POINT('',(4.5,1.0,0.5));
48#39=CARTESIAN_POINT('',(4.5,2.0,0.3));
49#40=CARTESIAN_POINT('',(5.0,0.0,0.5));
50#41=CARTESIAN_POINT('',(5.0,1.0,0.8));
51#42=CARTESIAN_POINT('',(5.0,2.0,0.5));
52#43=CARTESIAN_POINT('',(5.5,0.0,0.0));
53#44=CARTESIAN_POINT('',(5.5,1.0,0.3));
54#45=CARTESIAN_POINT('',(5.5,2.0,0.0));
55#46=B_SPLINE_SURFACE_WITH_KNOTS('bspline_fillet_should_be_torus',3,2,((#34,#35,#36),(#37,#38,#39),(#40,#41,#42),(#43,#44,#45)),.UNSPECIFIED.,.F.,.F.,.F.,(4,4),(3,3),(0.0,1.0),(0.0,1.0),.UNSPECIFIED.);
56#47=CARTESIAN_POINT('',(4.0,0.0,0.0));
57#48=VERTEX_POINT('',#47);
58#49=CARTESIAN_POINT('',(5.5,0.0,0.0));
59#50=VERTEX_POINT('',#49);
60#51=DIRECTION('',(1.0,0.0,0.0));
61#52=VECTOR('',#51,1.5);
62#53=CARTESIAN_POINT('',(4.0,0.0,0.0));
63#54=LINE('',#53,#52);
64#55=EDGE_CURVE('',#48,#50,#54,.T.);
65#56=ORIENTED_EDGE('',$,$,#55,.T.);
66#57=EDGE_LOOP('',(#56));
67#58=FACE_OUTER_BOUND('',#57,.T.);
68#59=ADVANCED_FACE('',(#58),#46,.T.);
69#60=OPEN_SHELL('',(#17,#33,#59));
70#61=SHELL_BASED_SURFACE_MODEL('',(#60));
71#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
72#9051=PRODUCT('M162','M162','',(#9050));
73#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
74#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
75#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
76#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
77#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
78#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
79#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
80#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
81#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
82#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#61),#9060);
83#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
84ENDSEC;
85END-ISO-10303-21;