Hea009 — Convert curves and surfaces of a shape (e.g., FACE_OUTER_BOUND on a degree-2 B_SPLINE_CURVE_WITH_KNOTS) to Bezier representation

§12.3 (sub-class: shape-healing) — representation conversion

P1 — silent data loss

topology

Sources

Description

A shape whose surfaces and curves are mixed analytic (LINE, PLANE, CYLINDRICAL_SURFACE) and B-spline. The convert-to-Bezier pipeline must handle each representation kind, splitting at non-Bezier breaks (C0 knots, kinks) where needed. Typical fixture: an ADVANCED_FACE with a single FACE_OUTER_BOUND whose curve is a B_SPLINE_CURVE_WITH_KNOTS with 5 control points and degree 2; a B-spline that is not yet a single Bezier segment and must be converted. Some receivers (e.g., Bezier-only meshers) require this normalization.

Reproducer recipe

An ADVANCED_FACE on a B-spline surface with C0 knot, or an EDGE_CURVE whose 3D curve is a degree-2 B_SPLINE_CURVE_WITH_KNOTS (not yet Bezier) — both must convert to Bezier.

Expected kernel behavior

Heal and accept: emit a shape whose every curve and surface is a Bezier (single segment) or a sequence of Beziers; preserve geometric fidelity within working precision.

Notes

Search terms: "convert to Bezier", "Bezier-only export", "split B-spline at C0". Synonyms: "convert B-spline to Bezier segments", "split at non-Bezier breaks", "Bezier-only mesher requires conversion", "B-spline with C0 knot needs Bezier split".

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Hea009: ADVANCED_FACE on PLANE with FACE_OUTER_BOUND using degree-2 B_SPLINE_CURVE_WITH_KNOTS (6 ctrl pts, knot-mults (3,3,3) at (0.0,0.5,1.0)); internal C0 knot at u=0.5 (mult=3=degree+1 produces C^-1 break); not a single Bezier segment; must be split by ShapeUpgrade_ShapeConvertToBezier; wrapped in GEOMETRIC_CURVE_SET → TransferRoots yields empty; OCC silently accepts; spec-kernel must heal/reject */
3HEADER;
4FILE_DESCRIPTION(('Hea009'),'2;1');
5FILE_NAME('Hea009.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('',(10.0,0.0,0.0));
17#8=VERTEX_POINT('',#6);
18#9=VERTEX_POINT('',#7);
19#10=CARTESIAN_POINT('',(0.0,0.0,0.0));
20#11=CARTESIAN_POINT('',(2.5,0.5,0.0));
21#12=CARTESIAN_POINT('',(5.0,1.0,0.0));
22#13=CARTESIAN_POINT('',(5.0,1.0,0.0));
23#14=CARTESIAN_POINT('',(7.5,0.5,0.0));
24#15=CARTESIAN_POINT('',(10.0,0.0,0.0));
25#16=B_SPLINE_CURVE_WITH_KNOTS('',2,(#10,#11,#12,#13,#14,#15),.UNSPECIFIED.,.F.,.F.,(3,3,3),(0.0,0.5,1.0),.UNSPECIFIED.);
26#17=EDGE_CURVE('',#8,#9,#16,.T.);
27#18=ORIENTED_EDGE('',$,$,#17,.T.);
28#19=EDGE_LOOP('',(#18));
29#20=FACE_OUTER_BOUND('',#19,.T.);
30#21=ADVANCED_FACE('',(#20),#5,.T.);
31#22=GEOMETRIC_CURVE_SET('',( #21));
32#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
33#9051=PRODUCT('Hea009','Hea009','',(#9050));
34#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
35#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
36#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
37#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
38#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
39#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
40#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
41#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
42#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
43#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#22),#9060);
44#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
45ENDSEC;
46END-ISO-10303-21;