The following code fragment finds a section of the curve in Figure 49, and Figure 50 shows the section of the curve returned by GetSectionOfCurve.

This code fragment returns the section of the curve that lies between the points defined by parameter values .25 and .75.
TFrameBundle frameBundle( TRGBColor( 0, 0, 0 ), 5.0 );
TGCurve cubicCurve( TGPoint( 25, 125 ),
TGPoint( 45, 200 ),
TGPoint( 95, 175 ),
TGPoint( 70, 150 ) );
TGCurve section;
cubicCurve.GetSectionOfCurve( .25, .75, section );
thePort.Draw( section, franeBundle );