int l;
MObjectArray
CurveObject2D
= fn.edge(i,j,k,true);
if (!CurveObject2D.length())
{
}
MFnNurbsCurve
fnCurve( CurveObject2D[0]
);
cout 
<<
"\t\ttrimcurve
{\n"
<<
"\t\t\t2D_ParamCurve\n"
<< "\t\t\tDegree
"
<< fnCurve.degree()
<< "\n\t\t\tKnots
"
<< (fnCurve.numKnots()+2)
<< "\n\t\t\t\t"; 
if(
fnCurve.knot(1)
 fnCurve.knot(0)
< 0.01f )

cout
<<
fnCurve.knot(0)
<< "
"; 
else

cout
<<
( fnCurve.knot(
0 )  1 ) << "
"; 
for(
l=0;l<fnCurve.numKnots();
++l )
{

cout
<<
fnCurve.knot(l)
<< "
";

}
if(
fnCurve.knot(1)
 fnCurve.knot(0)
< 0.01f )

cout
<<
(fnCurve.knot(fnCurve.numKnots()1)
) << "\n"; 
else

cout
<<
(fnCurve.knot(fnCurve.numKnots()1)+1.0f)
<< "\n"; 
cout <<
"\t\t\tCVS
"
<< fnCurve.numCVs()
<< "\n";
MPointArray
pnts;
fnCurve.getCVs(pnts);
for(
l=0; l<pnts.length();
++l )
{

cout 
<<
"\n\t\t\t\t"
<< pnts[l].x <<
"
"
<< pnts[l].y; 
}
cout <<
"\n";
MObjectArray
CurveObject3D = fnSurface.edge(i,j,k,false);
fnCurve.setObject(
CurveObject3D[0] );
cout 
<<
"\t\t\t3D_LocalCurve\n"
<< "\t\t\tDegree
" <<
fnCurve.degree()
<< "\n\t\t\tKnots
" <<
(fnCurve.numKnots()+2)
<< "\n\t\t\t\t"; 
if( fnCurve.knot(1)
 fnCurve.knot(0)
< 0.01f )

cout
<<
fnCurve.knot(0)
<< " "; 
else

cout
<<
( fnCurve.knot(
0 )  1 ) << "
"; 
for(
l=0;l<fnCurve.numKnots();
++l )
{

cout
<<
fnCurve.knot(l)
<< "
";

}
if( fnCurve.knot(1)
 fnCurve.knot(0)
< 0.01f )

cout
<< (fnCurve.knot(fnCurve.numKnots()1)
) << "\n"; 
else
cout <<
(fnCurve.knot(fnCurve.numKnots()1)+1.0f)
<< "\n";
cout <<
"\t\t\tCVS
" << fnCurve.numCVs()
<< "\n";
fnCurve.getCVs(pnts);
for(l=0;l<pnts.length();++l)
{

cout 
<<
"\n\t\t\t\t"
<< pnts[l].x <<
"
"
<< pnts[l].y <<
" "
<< pnts[l].z; 
}
cout <<
"\n";
cout <<
"\t\t}\n"; 