ONE = 2;
}
else {
- di << "gproject wait 2 or 3 arguments" << "\n";
+ di << "gproject wait 2 or 3 arguments\n";
return 1;
}
Projector.GetSurface()->D0(P2d.X(), P2d.Y(), P);
DrawTrSurf::Set(temp, P);
DrawTrSurf::Set(temp1, P2d);
- di<<temp<<" is 3d projected curve"<<"\n";
- di<<temp1<<" is pcurve"<<"\n";
+ di<<temp<<" is 3d projected curve\n";
+ di<<temp1<<" is pcurve\n";
}
else {
Only2d = Only3d = Standard_False;
Handle(Geom_Curve) OutCur = new Geom_TrimmedCurve(GeomAdaptor::MakeCurve(hcur->Curve()), Ufin, Udeb);
DrawTrSurf::Set(temp, OutCur);
DrawTrSurf::Set(temp1, PCur2d);
- di<<temp<<" is 3d projected curve"<<"\n";
- di<<temp1<<" is pcurve"<<"\n";
+ di<<temp<<" is 3d projected curve\n";
+ di<<temp1<<" is pcurve\n";
return 0;
}
else {
DrawTrSurf::Set(temp, appr.Curve3d());
}
DrawTrSurf::Set(temp1, PCur2d);
- di<<temp<<" is 3d projected curve"<<"\n";
- di<<temp1<<" is pcurve"<<"\n";
+ di<<temp<<" is 3d projected curve\n";
+ di<<temp1<<" is pcurve\n";
}
}
}
{
if ( n == 1) {
- di << "project result2d c3d surf [-e p] [-v n] [-t tol]" << "\n";
- di << " -e p : extent the surface of <p>%" << "\n";
- di << " -v n : verify the projection at <n> points." << "\n";
- di << " -t tol : set the tolerance for approximation" << "\n";
+ di << "project result2d c3d surf [-e p] [-v n] [-t tol]\n";
+ di << " -e p : extent the surface of <p>%\n";
+ di << " -v n : verify the projection at <n> points.\n";
+ di << " -t tol : set the tolerance for approximation\n";
return 0;
}
GeomProjLib::Curve2d(GC, GS, U1, U2, V1, V2, tolerance);
if ( G2d.IsNull() ) {
- di << "\n" << "Projection Failed" << "\n";
+ di << "\nProjection Failed\n";
return 1;
}
else {
}
if ( Verif) { // verify the projection on n points
if ( NbPoints <= 0) {
- di << " n must be positive" << "\n";
+ di << " n must be positive\n";
return 0;
}
gp_Pnt P1,P2;
Handle(Geom_Plane) Pl = Handle(Geom_Plane)::DownCast(S);
if ( Pl.IsNull()) {
- di << " The surface must be a plane" << "\n";
+ di << " The surface must be a plane\n";
return 1;
}
}
}
else {
- di << " Bisec has failed !!" << "\n";
+ di << " Bisec has failed !!\n";
return 1;
}
}
}
}
else {
- di << " Bisec has failed !!" << "\n";
+ di << " Bisec has failed !!\n";
return 1;
}
}
}
}
else {
- di << " Bisec has failed !!" << "\n";
+ di << " Bisec has failed !!\n";
return 1;
}
}
}
}
else {
- di << " Bisec has failed !!" << "\n";
+ di << " Bisec has failed !!\n";
return 1;
}
}
else {
- di << " args must be line/circle/point line/circle/point" << "\n";
+ di << " args must be line/circle/point line/circle/point\n";
return 1;
}
}
}
}
else {
- di << " Bisec has failed !!" << "\n";
+ di << " Bisec has failed !!\n";
return 1;
}
}
solution(Bis.ThisSolution(),a[1],0);
}
else {
- di << " Bisec has failed !!" << "\n";
+ di << " Bisec has failed !!\n";
return 1;
}
}
}
else {
- di << " the second arg must be line/circle/point " << "\n";
+ di << " the second arg must be line/circle/point \n";
}
}
else if ( ip1) {
}
}
else {
- di << " Bisec has failed !!" << "\n";
+ di << " Bisec has failed !!\n";
return 1;
}
}
solution(Bis.ThisSolution(),a[1],0);
}
else {
- di << " Bisec has failed !!" << "\n";
+ di << " Bisec has failed !!\n";
return 1;
}
}
DrawTrSurf::Set(a[1],new Geom2d_Line(Bis.ThisSolution()));
}
else {
- di << " Bisec has failed !!" << "\n";
+ di << " Bisec has failed !!\n";
return 1;
}
}
else {
- di << " the second arg must be line/circle/point " << "\n";
+ di << " the second arg must be line/circle/point \n";
return 1;
}
}
else {
- di << " args must be line/circle/point line/circle/point" << "\n";
+ di << " args must be line/circle/point line/circle/point\n";
return 1;
}
if ( NbSol >= 2) {
- di << "There are " << NbSol << " Solutions." << "\n";
+ di << "There are " << NbSol << " Solutions.\n";
}
else {
- di << "There is " << NbSol << " Solution." << "\n";
+ di << "There is " << NbSol << " Solution.\n";
}
return 0;
Draw::Repaint();
}
else {
- di << "Not enought degree of freedom increase degree please" << "\n";
+ di << "Not enought degree of freedom increase degree please\n";
}
GCPnts_QuasiUniformDeflection PntGen(GAC, defl);
if(!PntGen.IsDone()) {
- di << "Points generation failed" << "\n";
+ di << "Points generation failed\n";
return 1;
}
ellip = DrawTrSurf::GetBSplineCurve(a[1]);
if (ellip.IsNull())
{
- di << " BSpline is NULL "<<"\n";
+ di << " BSpline is NULL \n";
return 1;
}*/
ellip = DrawTrSurf::GetCurve(a[1]);
if (ellip.IsNull())
{
- di << " Curve is NULL "<<"\n";
+ di << " Curve is NULL \n";
return 1;
}
catch (Standard_Failure )
{
- di << " Standard Failure " <<"\n";
+ di << " Standard Failure \n";
}
return 0;
}
catch(Standard_Failure)
{
- di << " Standard Failure "<<"\n";
+ di << " Standard Failure \n";
}
try
catch (Standard_Failure )
{
- di << " Standard Failure " <<"\n";
+ di << " Standard Failure \n";
}
return 0;
}
}//else if (n == 8 || n == 9 || n == 12 || n == 13 || n == 16 || n == 17)
else
{
- di<<"incorrect number of arguments"<<"\n";
+ di<<"incorrect number of arguments\n";
return 1;
}
//
if (!Inters.IsDone())
{
- di<<"No intersections found!"<<"\n";
+ di<<"No intersections found!\n";
return 1;
}
//
if (!Inters.IsDone())
{
- di<<"No intersections found!"<<"\n";
+ di<<"No intersections found!\n";
return 1;
}