step-examples/12-2b-nurbs/Gn065.stp
Sources
- synthesized — no external source cited
Description
ShapeUpgrade_ConvertSurfaceToBezierBasis BSpline-of-BSpline
Reproducer recipe
Expected kernel behavior
accept: two trimmed B-spline segments nested inside a composite curve is a legal, if verbose, construction (COMPOSITE_CURVE of TRIMMED_CURVEs wrapping B_SPLINE_CURVEs). A kernel resolving composite-curve segments must recurse through the trimmed-curve wrapper to reach the underlying basis curve for each segment without assuming a flat (unwrapped) segment list, or it will misread the segment geometry.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(5) ifc=schema_n/a
Tier-3 assertions
shape_null == Falsen_edges_total == 2n_vertices_total == 4
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Gn065: nested TRIMMED B-spline inside COMPOSITE_CURVE */ 3HEADER; 4FILE_DESCRIPTION(('Gn065'),'2;1'); 5FILE_NAME('Gn065.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=CARTESIAN_POINT('',(1.0,1.0,0.0)); 12#3=CARTESIAN_POINT('',(2.0,0.0,0.0)); 13#4=B_SPLINE_CURVE_WITH_KNOTS('inner1',2,(#1,#2,#3),.UNSPECIFIED.,.F.,.F.,(3,3),(0.0,1.0),.UNSPECIFIED.); 14#5=TRIMMED_CURVE('trim1_wraps_inner1',#4,(PARAMETER_VALUE(0.0)),(PARAMETER_VALUE(1.0)),.T.,.PARAMETER.); 15#6=CARTESIAN_POINT('',(2.0,0.0,0.0)); 16#7=CARTESIAN_POINT('',(3.0,-1.0,0.0)); 17#8=CARTESIAN_POINT('',(4.0,0.0,0.0)); 18#9=B_SPLINE_CURVE_WITH_KNOTS('inner2',2,(#6,#7,#8),.UNSPECIFIED.,.F.,.F.,(3,3),(0.0,1.0),.UNSPECIFIED.); 19#10=TRIMMED_CURVE('trim2_wraps_inner2',#9,(PARAMETER_VALUE(0.0)),(PARAMETER_VALUE(1.0)),.T.,.PARAMETER.); 20#11=COMPOSITE_CURVE_SEGMENT(.CONTINUOUS.,.T.,#5); 21#12=COMPOSITE_CURVE_SEGMENT(.CONTINUOUS.,.T.,#10); 22#13=COMPOSITE_CURVE('nested_recursion',(#11,#12),.F.); 23#14=GEOMETRIC_CURVE_SET('cset',(#13)); 24#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 25#9051=PRODUCT('Gn065','Gn065','',(#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;