X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FBRepTest%2FBRepTest_ProjectionCommands.cxx;h=72a83082bec89a5d806332e4208f7d34554ab514;hp=9caf045a3141a7693314835538fd46ac7162a317;hb=03cca6f742e2377fff6fa97bf357dfe3e6e832cc;hpb=95f688263d57d9d1a99d065b3bf718065d7701f8 diff --git a/src/BRepTest/BRepTest_ProjectionCommands.cxx b/src/BRepTest/BRepTest_ProjectionCommands.cxx index 9caf045a31..72a83082be 100644 --- a/src/BRepTest/BRepTest_ProjectionCommands.cxx +++ b/src/BRepTest/BRepTest_ProjectionCommands.cxx @@ -26,67 +26,57 @@ #include #include +//======================================================================= +//function : prj +//purpose : Draw command for Conical and Cylindrical projection +//======================================================================= static Standard_Integer prj(Draw_Interpretor& di, Standard_Integer n, const char** a) -{ - char newname[255]; - if (n < 7) return 1; - TopoDS_Shape InpLine = DBRep::Get(a[2]); - TopoDS_Shape InpShape = DBRep::Get(a[3]); - Standard_Real DX=Draw::Atof(a[4]),DY=Draw::Atof(a[5]),DZ=Draw::Atof(a[6]); - gp_Dir TD(DX,DY,DZ); - BRepProj_Projection Prj(InpLine,InpShape,TD); - Standard_Integer i = 1; - char* temp = newname; - - - if (Prj.IsDone()) { - while (Prj.More()) { - Sprintf(newname,"%s_%d",a[1],i); - DBRep::Set(temp,Prj.Current()); - //cout<