]> OCCT Git - occt-copy.git/commitdiff
0026922: Huge performance issue writing data to the output stream
authormgn <mgn@opencascade.com>
Wed, 2 Dec 2015 13:39:55 +0000 (16:39 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 4 Dec 2015 10:03:41 +0000 (13:03 +0300)
Test case for issue CR26922

Correction of literal (char to string)

183 files changed:
src/BOPTest/BOPTest_CheckCommands.cxx
src/BRepTest/BRepTest_BasicCommands.cxx
src/BRepTest/BRepTest_ChamferCommands.cxx
src/BRepTest/BRepTest_CheckCommands.cxx
src/BRepTest/BRepTest_CurveCommands.cxx
src/BRepTest/BRepTest_DraftAngleCommands.cxx
src/BRepTest/BRepTest_ExtremaCommands.cxx
src/BRepTest/BRepTest_FeatureCommands.cxx
src/BRepTest/BRepTest_FilletCommands.cxx
src/BRepTest/BRepTest_FillingCommands.cxx
src/BRepTest/BRepTest_GPropCommands.cxx
src/BRepTest/BRepTest_OtherCommands.cxx
src/BRepTest/BRepTest_SurfaceCommands.cxx
src/BRepTest/BRepTest_SweepCommands.cxx
src/BRepTest/BRepTest_TopologyCommands.cxx
src/BRepTools/BRepTools_ShapeSet.cxx
src/BinTools/BinTools_LocationSet.cxx
src/BinTools/BinTools_ShapeSet.cxx
src/CDM/CDM_Document.cxx
src/DBRep/DBRep.cxx
src/DDF/DDF_BasicCommands.cxx
src/DDF/DDF_DataCommands.cxx
src/DDF/DDF_TransactionCommands.cxx
src/DDataStd/DDataStd_BasicCommands.cxx
src/DDataStd/DDataStd_ConstraintCommands.cxx
src/DDataStd/DDataStd_DatumCommands.cxx
src/DDataStd/DDataStd_DrawDisplayCommands.cxx
src/DDataStd/DDataStd_NameCommands.cxx
src/DDataStd/DDataStd_NamedShapeCommands.cxx
src/DDataStd/DDataStd_ObjectCommands.cxx
src/DDataStd/DDataStd_TreeCommands.cxx
src/DDocStd/DDocStd_ApplicationCommands.cxx
src/DDocStd/DDocStd_DocumentCommands.cxx
src/DDocStd/DDocStd_MTMCommands.cxx
src/DDocStd/DDocStd_ToolsCommands.cxx
src/DNaming/DNaming_BasicCommands.cxx
src/DNaming/DNaming_ModelingCommands.cxx
src/DNaming/DNaming_SelectionCommands.cxx
src/DNaming/DNaming_ToolsCommands.cxx
src/DPrsStd/DPrsStd_AISPresentationCommands.cxx
src/DPrsStd/DPrsStd_AISViewerCommands.cxx
src/Draw/Draw_BasicCommands.cxx
src/Draw/Draw_GraphicCommands.cxx
src/Draw/Draw_UnitCommands.cxx
src/DrawDim/DrawDim_PlanarDimensionCommands.cxx
src/DrawTrSurf/DrawTrSurf.cxx
src/FairCurve/FairCurve_Batten.cxx
src/FairCurve/FairCurve_MinimalVariation.cxx
src/GeometryTest/GeometryTest_APICommands.cxx
src/GeometryTest/GeometryTest_ConstraintCommands.cxx
src/GeometryTest/GeometryTest_CurveCommands.cxx
src/GeometryTest/GeometryTest_FairCurveCommands.cxx
src/GeometryTest/GeometryTest_SurfaceCommands.cxx
src/GeometryTest/GeometryTest_TestProjCommands.cxx
src/GeomliteTest/GeomliteTest_ApproxCommands.cxx
src/GeomliteTest/GeomliteTest_CurveCommands.cxx
src/GeomliteTest/GeomliteTest_SurfaceCommands.cxx
src/HLRTest/HLRTest.cxx
src/IFSelect/IFSelect_WorkSession.cxx
src/IGESAppli/IGESAppli_ToolDrilledHole.cxx
src/IGESData/IGESData_IGESDumper.cxx
src/IGESData/IGESData_IGESModel.cxx
src/IGESDefs/IGESDefs_ToolGenericData.cxx
src/IGESGeom/IGESGeom_ToolBSplineCurve.cxx
src/IGESGeom/IGESGeom_ToolSplineSurface.cxx
src/IntRes2d/IntRes2d_Intersection.cxx
src/MeshTest/MeshTest.cxx
src/MeshTest/MeshTest_CheckTopology.cxx
src/MeshTest/MeshTest_PluginCommands.cxx
src/Message/Message_Msg.hxx
src/QABugs/QABugs_1.cxx
src/QABugs/QABugs_10.cxx
src/QABugs/QABugs_11.cxx
src/QABugs/QABugs_12.cxx
src/QABugs/QABugs_13.cxx
src/QABugs/QABugs_14.cxx
src/QABugs/QABugs_15.cxx
src/QABugs/QABugs_16.cxx
src/QABugs/QABugs_17.cxx
src/QABugs/QABugs_18.cxx
src/QABugs/QABugs_19.cxx
src/QABugs/QABugs_2.cxx
src/QABugs/QABugs_3.cxx
src/QABugs/QABugs_5.cxx
src/QABugs/QABugs_6.cxx
src/QABugs/QABugs_7.cxx
src/QABugs/QABugs_8.cxx
src/QABugs/QABugs_9.cxx
src/QADNaming/QADNaming_BasicCommands.cxx
src/QADNaming/QADNaming_BuilderCommands.cxx
src/QADNaming/QADNaming_IteratorsCommands.cxx
src/QADNaming/QADNaming_SelectionCommands.cxx
src/QADNaming/QADNaming_ToolsCommands.cxx
src/QADraw/QADraw.cxx
src/QANCollection/QANCollection_Perf.cxx
src/QANCollection/QANCollection_Stl.cxx
src/QANCollection/QANCollection_Test.cxx
src/QANewDBRepNaming/QANewDBRepNaming.cxx
src/QANewDBRepNaming/QANewDBRepNaming_FeatureCommands.cxx
src/SWDRAW/SWDRAW.cxx
src/SWDRAW/SWDRAW_ShapeAnalysis.cxx
src/SWDRAW/SWDRAW_ShapeCustom.cxx
src/SWDRAW/SWDRAW_ShapeExtend.cxx
src/SWDRAW/SWDRAW_ShapeFix.cxx
src/SWDRAW/SWDRAW_ShapeProcess.cxx
src/SWDRAW/SWDRAW_ShapeProcessAPI.cxx
src/SWDRAW/SWDRAW_ShapeTool.cxx
src/SWDRAW/SWDRAW_ShapeUpgrade.cxx
src/ShapeUpgrade/ShapeUpgrade_SplitSurfaceContinuity.cxx
src/TNaming/TNaming_Name.cxx
src/TNaming/TNaming_Selector.cxx
src/TObjDRAW/TObjDRAW.cxx
src/TestTopOpe/TestTopOpe_BOOPCommands.cxx
src/TestTopOpe/TestTopOpe_CORCommands.cxx
src/TestTopOpe/TestTopOpe_HDSCommands.cxx
src/TestTopOpe/TestTopOpe_MesureCommands.cxx
src/TestTopOpe/TestTopOpe_OtherCommands.cxx
src/TestTopOpe/TestTopOpe_VarsTopo.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Builder.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Grid.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_WireEdgeSet.cxx
src/TopOpeBRepDS/TopOpeBRepDS_Check.cxx
src/TopOpeBRepDS/TopOpeBRepDS_Dumper.cxx
src/TopOpeBRepDS/TopOpeBRepDS_EdgeVertexInterference.cxx
src/TopOpeBRepDS/TopOpeBRepDS_ShapeShapeInterference.cxx
src/TopOpeBRepTool/TopOpeBRepTool_REGUS.cxx
src/TopOpeBRepTool/TopOpeBRepTool_REGUW.cxx
src/TopTools/TopTools_ShapeSet.cxx
src/ViewerTest/ViewerTest.cxx
src/ViewerTest/ViewerTest_ObjectCommands.cxx
src/ViewerTest/ViewerTest_RelationCommands.cxx
src/ViewerTest/ViewerTest_ViewerCommands.cxx
src/Vrml/Vrml.cxx
src/Vrml/Vrml_AsciiText.cxx
src/Vrml/Vrml_Cone.cxx
src/Vrml/Vrml_Coordinate3.cxx
src/Vrml/Vrml_Cube.cxx
src/Vrml/Vrml_Cylinder.cxx
src/Vrml/Vrml_DirectionalLight.cxx
src/Vrml/Vrml_FontStyle.cxx
src/Vrml/Vrml_Group.cxx
src/Vrml/Vrml_IndexedFaceSet.cxx
src/Vrml/Vrml_IndexedLineSet.cxx
src/Vrml/Vrml_Info.cxx
src/Vrml/Vrml_Instancing.cxx
src/Vrml/Vrml_LOD.cxx
src/Vrml/Vrml_Material.cxx
src/Vrml/Vrml_MaterialBinding.cxx
src/Vrml/Vrml_MatrixTransform.cxx
src/Vrml/Vrml_Normal.cxx
src/Vrml/Vrml_NormalBinding.cxx
src/Vrml/Vrml_OrthographicCamera.cxx
src/Vrml/Vrml_PerspectiveCamera.cxx
src/Vrml/Vrml_PointLight.cxx
src/Vrml/Vrml_PointSet.cxx
src/Vrml/Vrml_Rotation.cxx
src/Vrml/Vrml_Scale.cxx
src/Vrml/Vrml_Separator.cxx
src/Vrml/Vrml_ShapeHints.cxx
src/Vrml/Vrml_Sphere.cxx
src/Vrml/Vrml_SpotLight.cxx
src/Vrml/Vrml_Switch.cxx
src/Vrml/Vrml_Texture2.cxx
src/Vrml/Vrml_Texture2Transform.cxx
src/Vrml/Vrml_TextureCoordinate2.cxx
src/Vrml/Vrml_Transform.cxx
src/Vrml/Vrml_TransformSeparator.cxx
src/Vrml/Vrml_Translation.cxx
src/Vrml/Vrml_WWWAnchor.cxx
src/Vrml/Vrml_WWWInline.cxx
src/VrmlData/VrmlData_Scene.cxx
src/XDEDRAW/XDEDRAW.cxx
src/XDEDRAW/XDEDRAW_Colors.cxx
src/XDEDRAW/XDEDRAW_Common.cxx
src/XDEDRAW/XDEDRAW_GDTs.cxx
src/XDEDRAW/XDEDRAW_Layers.cxx
src/XDEDRAW/XDEDRAW_Props.cxx
src/XDEDRAW/XDEDRAW_Shapes.cxx
src/XSControl/XSControl_Functions.cxx
src/XSDRAWIGES/XSDRAWIGES.cxx
src/XSDRAWSTEP/XSDRAWSTEP.cxx
src/XSDRAWSTLVRML/XSDRAWSTLVRML.cxx
tests/bugs/fclasses/bug26922 [new file with mode: 0755]

index 9c70043ccbf173684d3a1be9d1cf3451d5d4808c..f9780a06a04f3c5d3982f3494954ce95373de871 100644 (file)
@@ -300,11 +300,11 @@ Standard_Integer bopcheck (Draw_Interpretor& di,
   //
   if (iErr) {
     di << "There were errors during the operation, ";
-    di << "so the list may be incomplete." << "\n";
+    di << "so the list may be incomplete.\n";
   }
   //
   if (!iCnt) {
-    di << " This shape seems to be OK." << "\n";
+    di << " This shape seems to be OK.\n";
   }
   if (bShowTime)
   {
@@ -325,48 +325,48 @@ Standard_Integer bopargcheck (Draw_Interpretor& di,
     di << "\n";
     di << " Use >bopargcheck Shape1 [[Shape2] ";
     di << "[-F/O/C/T/S/U] [/R|F|T|V|E|I|P|C|S]] [#BF]\n\n";
-    di << " -<Boolean Operation>" << "\n";
-    di << " F (fuse)" << "\n";
-    di << " O (common)" << "\n";
-    di << " C (cut)" << "\n";
-    di << " T (cut21)" << "\n";
-    di << " S (section)" << "\n";
-    di << " U (unknown)" << "\n";
+    di << " -<Boolean Operation>\n";
+    di << " F (fuse)\n";
+    di << " O (common)\n";
+    di << " C (cut)\n";
+    di << " T (cut21)\n";
+    di << " S (section)\n";
+    di << " U (unknown)\n";
     di << " For example: \"bopargcheck s1 s2 -F\" enables" ;
-    di << " checking for Fuse operation" << "\n";
-    di << " default - section" << "\n" << "\n";
-    di << " /<Test Options>" << "\n";
-    di << " R (disable small edges (shrank range) test)" << "\n";
-    di << " F (disable faces verification test)" << "\n";
-    di << " T (disable tangent faces searching test)" << "\n";
-    di << " V (disable test possibility to merge vertices)" << "\n";
-    di << " E (disable test possibility to merge edges)" << "\n";
-    di << " I (disable self-interference test)" << "\n";
-    di << " P (disable shape type test)" << "\n";
-    di << " C (disable test for shape continuity)" << "\n";
-    di << " S (disable curve on surface check)" << "\n";
+    di << " checking for Fuse operation\n";
+    di << " default - section\n\n";
+    di << " /<Test Options>\n";
+    di << " R (disable small edges (shrank range) test)\n";
+    di << " F (disable faces verification test)\n";
+    di << " T (disable tangent faces searching test)\n";
+    di << " V (disable test possibility to merge vertices)\n";
+    di << " E (disable test possibility to merge edges)\n";
+    di << " I (disable self-interference test)\n";
+    di << " P (disable shape type test)\n";
+    di << " C (disable test for shape continuity)\n";
+    di << " S (disable curve on surface check)\n";
     di << " For example: \"bopargcheck s1 s2 /RI\" disables ";
-    di << "small edge detection and self-intersection detection" << "\n";
-    di << " default - all options are enabled" << "\n" << "\n";
-    di << " #<Additional Test Options>" << "\n";
-    di << " B (stop test on first faulty found); default OFF" << "\n";
+    di << "small edge detection and self-intersection detection\n";
+    di << " default - all options are enabled\n\n";
+    di << " #<Additional Test Options>\n";
+    di << " B (stop test on first faulty found); default OFF\n";
     di << " F (full output for faulty shapes); default - output ";
-    di << "in a short format" << "\n" << "\n";
+    di << "in a short format\n\n";
     di << " NOTE: <Boolean Operation> and <Test Options> are ";
-    di <<  "used only for couple" << "\n";
+    di <<  "used only for couple\n";
     di << "       of argument shapes, except I and P options ";
-    di << "that are always used for" << "\n";
+    di << "that are always used for\n";
     di << "       couple of shapes as well as for ";
-    di <<"single shape test." << "\n";
+    di <<"single shape test.\n";
     return 1;
   }
 
   TopoDS_Shape aS1 = DBRep::Get(a[1]);
 
   if(aS1.IsNull()) {
-    di << "Error: null shape not allowed!" << "\n";
+    di << "Error: null shape not allowed!\n";
     di << "Type bopargcheck without arguments for more ";
-    di <<"information" << "\n";
+    di <<"information\n";
     return 1;
   }
 
@@ -410,15 +410,15 @@ Standard_Integer bopargcheck (Draw_Interpretor& di,
   TopoDS_Shape aS22, aS2;
   if(isS2) {
     if(indxS2 != 2) {
-      di << "Error: second shape should follow the first one!" << "\n";
-      di << "Type bopargcheck without arguments for more information" << "\n";
+      di << "Error: second shape should follow the first one!\n";
+      di << "Type bopargcheck without arguments for more information\n";
       return 1;
     }
     else {
       aS22 = DBRep::Get(a[2]);
       if(aS22.IsNull()) {
-        di << "Error: second shape is null!" << "\n";
-        di << "Type bopargcheck without arguments for more information" << "\n";
+        di << "Error: second shape is null!\n";
+        di << "Type bopargcheck without arguments for more information\n";
         return 1;
       }
     }
@@ -463,8 +463,8 @@ Standard_Integer bopargcheck (Draw_Interpretor& di,
         aChecker.OperationType() = BOPAlgo_UNKNOWN;
       }
       else {
-        di << "Error: invalid boolean operation type!" << "\n";
-        di << "Type bopargcheck without arguments for more information" << "\n";
+        di << "Error: invalid boolean operation type!\n";
+        di << "Type bopargcheck without arguments for more information\n";
         return 1;
       }
     }
@@ -508,8 +508,8 @@ Standard_Integer bopargcheck (Draw_Interpretor& di,
         aChecker.CurveOnSurfaceMode() = Standard_False;
       }
       else {
-        di << "Error: invalid test option(s)!" << "\n";
-        di << "Type bopargcheck without arguments for more information" << "\n";
+        di << "Error: invalid test option(s)!\n";
+        di << "Type bopargcheck without arguments for more information\n";
         return 1;
       }
       ind++;
@@ -528,8 +528,8 @@ Standard_Integer bopargcheck (Draw_Interpretor& di,
         fullOutput = Standard_True;
       }
       else {
-        di << "Error: invalid additional test option(s)!" << "\n";
-        di << "Type bopargcheck without arguments for more information" << "\n";
+        di << "Error: invalid additional test option(s)!\n";
+        di << "Type bopargcheck without arguments for more information\n";
         return 1;
       }
       ind++;
@@ -545,7 +545,7 @@ Standard_Integer bopargcheck (Draw_Interpretor& di,
   }
   else {
     if(!fullOutput) {
-      di << "Faulties, that can not be treated by BOP, are detected." << "\n"; 
+      di << "Faulties, that can not be treated by BOP, are detected.\n"; 
     }
     else {
       const BOPAlgo_ListOfCheckResult& aResultList = aChecker.GetCheckResult();
@@ -720,7 +720,7 @@ Standard_Integer bopargcheck (Draw_Interpretor& di,
       // output for first shape
       di << "Faulties for FIRST  shape found : " << FS1 << "\n";
       if(FS1 != 0) {
-        di << "---------------------------------" << "\n";
+        di << "---------------------------------\n";
         Standard_CString CString1;
         if (S1_BadType != 0)
           CString1="YES";
@@ -734,7 +734,7 @@ Standard_Integer bopargcheck (Draw_Interpretor& di,
           CString2=aChecker.SelfInterMode() ? "NO" : "DISABLED";
         di << "Self-Intersections              : " << CString2;
         if(S1_SelfInt != 0)
-          di << "  Cases(" << S1_SelfInt << ")  Total shapes(" << S1_SelfIntAll << ")" << "\n";
+          di << "  Cases(" << S1_SelfInt << ")  Total shapes(" << S1_SelfIntAll << ")\n";
         else
           di << "\n";
         Standard_CString CString13;
@@ -750,7 +750,7 @@ Standard_Integer bopargcheck (Draw_Interpretor& di,
           CString3=aChecker.SmallEdgeMode() ? "NO" : "DISABLED";
         di << "Too small edges                 : " << CString3;
         if(S1_SmalE != 0)
-          di << "  Cases(" << S1_SmalE << ")  Total shapes(" << S1_SmalEAll << ")" << "\n";
+          di << "  Cases(" << S1_SmalE << ")  Total shapes(" << S1_SmalEAll << ")\n";
         else
           di << "\n";
         Standard_CString CString4;
@@ -760,7 +760,7 @@ Standard_Integer bopargcheck (Draw_Interpretor& di,
           CString4=aChecker.RebuildFaceMode() ? "NO" : "DISABLED";
         di << "Bad faces                       : " << CString4;
         if(S1_BadF != 0)
-          di << "  Cases(" << S1_BadF << ")  Total shapes(" << S1_BadFAll << ")" << "\n";
+          di << "  Cases(" << S1_BadF << ")  Total shapes(" << S1_BadFAll << ")\n";
         else
           di << "\n";
         Standard_CString CString5;
@@ -770,7 +770,7 @@ Standard_Integer bopargcheck (Draw_Interpretor& di,
           CString5=aChecker.MergeVertexMode() ? "NO" : "DISABLED";
         di << "Too close vertices              : " << CString5;
         if(S1_BadV != 0)
-          di << "  Cases(" << S1_BadV << ")  Total shapes(" << S1_BadVAll << ")" << "\n";
+          di << "  Cases(" << S1_BadV << ")  Total shapes(" << S1_BadVAll << ")\n";
         else
           di << "\n";
         Standard_CString CString6;
@@ -780,7 +780,7 @@ Standard_Integer bopargcheck (Draw_Interpretor& di,
           CString6=aChecker.MergeEdgeMode() ? "NO" : "DISABLED";
         di << "Too close edges                 : " << CString6;
         if(S1_BadE != 0)
-          di << "  Cases(" << S1_BadE << ")  Total shapes(" << S1_BadEAll << ")" << "\n";
+          di << "  Cases(" << S1_BadE << ")  Total shapes(" << S1_BadEAll << ")\n";
         else
           di << "\n";
         Standard_CString CString15;
@@ -790,7 +790,7 @@ Standard_Integer bopargcheck (Draw_Interpretor& di,
           CString15=aChecker.ContinuityMode() ? "NO" : "DISABLED";
         di << "Shapes with Continuity C0       : " << CString15;
         if(S1_C0 != 0)
-          di << "  Cases(" << S1_C0 << ")  Total shapes(" << S1_C0All << ")" << "\n";
+          di << "  Cases(" << S1_C0 << ")  Total shapes(" << S1_C0All << ")\n";
         else
           di << "\n";
 
@@ -801,7 +801,7 @@ Standard_Integer bopargcheck (Draw_Interpretor& di,
           CString17=aChecker.CurveOnSurfaceMode() ? "NO" : "DISABLED";
         di << "Invalid Curve on Surface        : " << CString17;
         if(S1_COnS != 0)
-          di << "  Cases(" << S1_COnS << ")  Total shapes(" << S1_COnSAll << ")" << "\n";
+          di << "  Cases(" << S1_COnS << ")  Total shapes(" << S1_COnSAll << ")\n";
         else
           di << "\n";
       }
@@ -810,7 +810,7 @@ Standard_Integer bopargcheck (Draw_Interpretor& di,
       di << "\n";
       di << "Faulties for SECOND  shape found : " << FS2 << "\n";
       if(FS2 != 0) {
-        di << "---------------------------------" << "\n";
+        di << "---------------------------------\n";
         Standard_CString CString7;
         if (S2_BadType != 0)
           CString7="YES";
@@ -824,7 +824,7 @@ Standard_Integer bopargcheck (Draw_Interpretor& di,
           CString8=aChecker.SelfInterMode() ? "NO" : "DISABLED";
         di << "Self-Intersections              : " << CString8;
         if(S2_SelfInt != 0)
-          di << "  Cases(" << S2_SelfInt << ")  Total shapes(" << S2_SelfIntAll << ")" << "\n";
+          di << "  Cases(" << S2_SelfInt << ")  Total shapes(" << S2_SelfIntAll << ")\n";
         else
           di << "\n";
 
@@ -841,7 +841,7 @@ Standard_Integer bopargcheck (Draw_Interpretor& di,
           CString9=aChecker.SmallEdgeMode() ? "NO" : "DISABLED";
         di << "Too small edges                 : " << CString9;
         if(S2_SmalE != 0)
-          di << "  Cases(" << S2_SmalE << ")  Total shapes(" << S2_SmalEAll << ")" << "\n";
+          di << "  Cases(" << S2_SmalE << ")  Total shapes(" << S2_SmalEAll << ")\n";
         else
           di << "\n";
         Standard_CString CString10;
@@ -851,7 +851,7 @@ Standard_Integer bopargcheck (Draw_Interpretor& di,
           CString10=aChecker.RebuildFaceMode() ? "NO" : "DISABLED";
         di << "Bad faces                       : " << CString10;
         if(S2_BadF != 0)
-          di << "  Cases(" << S2_BadF << ")  Total shapes(" << S2_BadFAll << ")" << "\n";
+          di << "  Cases(" << S2_BadF << ")  Total shapes(" << S2_BadFAll << ")\n";
         else
           di << "\n";
         Standard_CString CString11;
@@ -861,7 +861,7 @@ Standard_Integer bopargcheck (Draw_Interpretor& di,
           CString11=aChecker.MergeVertexMode() ? "NO" : "DISABLED";
         di << "Too close vertices              : " << CString11;
         if(S2_BadV != 0)
-          di << "  Cases(" << S2_BadV << ")  Total shapes(" << S2_BadVAll << ")" << "\n";
+          di << "  Cases(" << S2_BadV << ")  Total shapes(" << S2_BadVAll << ")\n";
         else
           di << "\n";
         Standard_CString CString12;
@@ -871,7 +871,7 @@ Standard_Integer bopargcheck (Draw_Interpretor& di,
           CString12=aChecker.MergeEdgeMode() ? "NO" : "DISABLED";
         di << "Too close edges                 : " << CString12;
         if(S2_BadE != 0)
-          di << "  Cases(" << S2_BadE << ")  Total shapes(" << S2_BadEAll << ")" << "\n";
+          di << "  Cases(" << S2_BadE << ")  Total shapes(" << S2_BadEAll << ")\n";
         else
           di << "\n";
         Standard_CString CString16;
@@ -881,7 +881,7 @@ Standard_Integer bopargcheck (Draw_Interpretor& di,
           CString16=aChecker.ContinuityMode() ? "NO" : "DISABLED";
         di << "Shapes with Continuity C0       : " << CString16;
         if(S2_C0 != 0)
-          di << "  Cases(" << S2_C0 << ")  Total shapes(" << S2_C0All << ")" << "\n";
+          di << "  Cases(" << S2_C0 << ")  Total shapes(" << S2_C0All << ")\n";
         else
           di << "\n";
 
@@ -892,14 +892,14 @@ Standard_Integer bopargcheck (Draw_Interpretor& di,
           CString18=aChecker.CurveOnSurfaceMode() ? "NO" : "DISABLED";
         di << "Invalid Curve on Surface        : " << CString18;
         if(S2_COnS != 0)
-          di << "  Cases(" << S2_COnS << ")  Total shapes(" << S2_COnSAll << ")" << "\n";
+          di << "  Cases(" << S2_COnS << ")  Total shapes(" << S2_COnSAll << ")\n";
         else
           di << "\n";
       }
       // warning
       if(hasUnknown) {
         di << "\n";
-        di << "WARNING: The unexpected test break occurs!" << "\n";
+        di << "WARNING: The unexpected test break occurs!\n";
       }
     } // full output
   } // has faulties
index 579ebae19b21dc9057266fede358312beb883881..6f1d9afa6d61c306a01acc449f3fc3d87d777957 100644 (file)
@@ -189,7 +189,7 @@ static Standard_Integer deform(Draw_Interpretor& di,Standard_Integer n,const cha
   TopoDS_Shape S = DBRep::Get(a[2]);    
   if (S.IsNull()) {
     //cout << a[2] << " is not a valid shape" << endl;
-    di << a[2] << " is not a valid shape" << "\n";
+    di << a[2] << " is not a valid shape\n";
   }
   else {
     gtrf.Perform(S);
@@ -264,7 +264,7 @@ static Standard_Integer nurbsconvert(Draw_Interpretor& di,Standard_Integer n,con
     TopoDS_Shape S = DBRep::Get(a[2*i+2]);
     if (S.IsNull()) {
       //cout << a[2*i+2] << " is not a valid shape" << endl;
-      di << a[2*i+2] << " is not a valid shape" << "\n";
+      di << a[2*i+2] << " is not a valid shape\n";
     }
     else {
       nbscv.Perform(S);
@@ -495,7 +495,7 @@ static Standard_Integer reperageshape(Draw_Interpretor& di, Standard_Integer nar
   TopoDS_Shape TheShape1 = DBRep::Get(id1);
   
   //cout << "Pick positions with button "<<endl;
-  di << "Pick positions with button "<< "\n";
+  di << "Pick positions with button \n";
   Standard_Integer id,X,Y,b;
   gp_Trsf T;
   gp_Pnt P1,P2;
@@ -636,7 +636,7 @@ static Standard_Integer maxtolerance(Draw_Interpretor& theCommands,
 
 static Standard_Integer vecdc(Draw_Interpretor& di,Standard_Integer ,const char** ) {
   //cout << "Pick positions with button "<<endl;
-  di << "Pick positions with button "<< "\n";
+  di << "Pick positions with button \n";
 
   Standard_Integer id,X,Y,b;
   gp_Trsf T;
@@ -774,7 +774,7 @@ static Standard_Integer vecdc(Draw_Interpretor& di,Standard_Integer ,const char*
   Standard_Boolean IsWire=OrtProj.BuildWire(Wire);
   if (IsWire) {
     //cout << " BuildWire OK " << endl;
-    di << " BuildWire OK " << "\n";
+    di << " BuildWire OK \n";
   }
   DBRep::Set(a[1], OrtProj.Shape());
   return 0;  
index e53de8a766062a10128191255bc02fae0f476203..81fce19a2519d9101842adc7c822ac552d0d9b30 100644 (file)
@@ -46,10 +46,10 @@ static Standard_Integer chamfer(Draw_Interpretor& di,
     //cout <<"   Construction by equal distances from edge          :  chamf newname shape edge face S dist"<< endl;
     //cout <<"   Construction by two distances from edge            :  chamf newname shape edge face dist1 dist2"<< endl;
     //cout <<"   Construction by distance from edge and given angle :  chamf newname shape edge face A dist angle"<< endl;
-    di <<" help for chamf : "<< "\n";
-    di <<"   Construction by equal distances from edge          :  chamf newname shape edge face S dist"<< "\n";
-    di <<"   Construction by two distances from edge            :  chamf newname shape edge face dist1 dist2"<< "\n";
-    di <<"   Construction by distance from edge and given angle :  chamf newname shape edge face A dist angle"<< "\n";
+    di <<" help for chamf : \n";
+    di <<"   Construction by equal distances from edge          :  chamf newname shape edge face S dist\n";
+    di <<"   Construction by two distances from edge            :  chamf newname shape edge face dist1 dist2\n";
+    di <<"   Construction by distance from edge and given angle :  chamf newname shape edge face A dist angle\n";
   }
   else {
     if (narg < 7) return 1;
@@ -135,7 +135,7 @@ static Standard_Integer chamfer(Draw_Interpretor& di,
     if (aMCh.NbContours() == 0 )
       {
        //cout<<"No suitable edges to chamfer"<<endl;
-       di<<"No suitable edges to chamfer"<<"\n";
+       di<<"No suitable edges to chamfer\n";
        return 1;
       }
     else aMCh.Build();
@@ -146,7 +146,7 @@ static Standard_Integer chamfer(Draw_Interpretor& di,
     }
     else {
       //cout<<"compute of chamfer failed"<<endl;
-      di<<"compute of chamfer failed"<<"\n";
+      di<<"compute of chamfer failed\n";
       return 1;
     }
   }
index dd85a7025517b610b249eace6880b04d5567a1cc..100cfd46f4ce094712f41e7c50adc942c567fa52 100644 (file)
@@ -255,7 +255,7 @@ static Standard_Integer computetolerance(Draw_Interpretor& di,
 {
   if (narg < 2) {
     //cout << "Usage: computetolerance shape" << endl;
-    di << "Usage: computetolerance shape" << "\n";
+    di << "Usage: computetolerance shape\n";
     return 1;
   }
   TopoDS_Shape S = DBRep::Get(a[1]);
@@ -383,10 +383,10 @@ static Standard_Integer checkdiff(Draw_Interpretor& di,
 
   if (BRepAlgo::IsValid(lesArgs, resu, closedSolid, geomCtrl)) {
     //cout << "Difference is Valid." << endl;
-    di << "Difference is Valid." << "\n";
+    di << "Difference is Valid.\n";
   } else {
     //cout << "error : Difference is Not Valid !" << endl;
-    di << "error : Difference is Not Valid !" << "\n";
+    di << "error : Difference is Not Valid !\n";
   }
 
   return 0;
@@ -609,9 +609,9 @@ void StructuralDump(Draw_Interpretor& theCommands,
   //cout << " -- The Shape " << ShName << " has problems :"<<endl;
   //cout<<"  Check                                    Count"<<endl;
   //cout<<" ------------------------------------------------"<<endl;
-  theCommands << " -- The Shape " << ShName << " has problems :"<<"\n";
-  theCommands<<"  Check                                    Count"<<"\n";
-  theCommands<<" ------------------------------------------------"<<"\n";
+  theCommands << " -- The Shape " << ShName << " has problems :\n";
+  theCommands<<"  Check                                    Count\n";
+  theCommands<<" ------------------------------------------------\n";
 
   Handle(TColStd_HArray1OfInteger) NbProblems = new 
                               TColStd_HArray1OfInteger(1,NumberOfStatus);
@@ -768,7 +768,7 @@ void StructuralDump(Draw_Interpretor& theCommands,
 
 
 
-  theCommands<<" ------------------------------------------------"<<"\n";
+  theCommands<<" ------------------------------------------------\n";
   theCommands<<"*** Shapes with problems : "<<sl->Length()<<"\n";
 
   slv = new TopTools_HSequenceOfShape();
@@ -802,11 +802,11 @@ void StructuralDump(Draw_Interpretor& theCommands,
     char aName[20];
     Sprintf(aName,"%s_v",Pref);
     DBRep::Set(aName,comp);
-    //cout<<"VERTEX"<<"        : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<endl;
+    //cout<<"VERTEX    : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<endl;
     if (nb > 9)
-      theCommands<<"VERTEX"<<" : "<<""<<nb<<" Items -> compound named "<<aName<<"\n";
+      theCommands<<"VERTEX     : "<<nb<<" Items -> compound named "<<aName<<"\n";
     else
-      theCommands<<"VERTEX"<<" : "<<" "<<nb<<" Items -> compound named "<<aName<<"\n";
+      theCommands<<"VERTEX     :  "<<nb<<" Items -> compound named "<<aName<<"\n";
   }
   if(sle->Length()>0) {
     TopoDS_Compound comp;
@@ -817,11 +817,11 @@ void StructuralDump(Draw_Interpretor& theCommands,
     char aName[20];
     Sprintf(aName,"%s_e",Pref);
     DBRep::Set(aName,comp);
-    //cout<<"EDGE"<<"  : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<endl;
+    //cout<<"EDGE      : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<endl;
     if (nb > 9)
-      theCommands<<"EDGE"<<"   : "<<""<<nb<<" Items -> compound named "<<aName<<"\n";
+      theCommands<<"EDGE       : "<<nb<<" Items -> compound named "<<aName<<"\n";
     else
-      theCommands<<"EDGE"<<"   : "<<" "<<nb<<" Items -> compound named "<<aName<<"\n";
+      theCommands<<"EDGE       :  "<<nb<<" Items -> compound named "<<aName<<"\n";
   }
   if(slw->Length()>0) {
     TopoDS_Compound comp;
@@ -832,11 +832,11 @@ void StructuralDump(Draw_Interpretor& theCommands,
     char aName[20];
     Sprintf(aName,"%s_w",Pref);
     DBRep::Set(aName,comp);
-    //cout<<"WIRE"<<"  : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<endl;
+    //cout<<"WIRE      : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<endl;
     if (nb > 9)
-      theCommands<<"WIRE"<<"   : "<<""<<nb<<" Items -> compound named "<<aName<<"\n";
+      theCommands<<"WIRE       : "<<nb<<" Items -> compound named "<<aName<<"\n";
     else
-      theCommands<<"WIRE"<<"   : "<<" "<<nb<<" Items -> compound named "<<aName<<"\n";
+      theCommands<<"WIRE       :  "<<nb<<" Items -> compound named "<<aName<<"\n";
   }
   if(slf->Length()>0) {
     TopoDS_Compound comp;
@@ -847,11 +847,11 @@ void StructuralDump(Draw_Interpretor& theCommands,
     char aName[20];
     Sprintf(aName,"%s_f",Pref);
     DBRep::Set(aName,comp);
-    //cout<<"FACE"<<"  : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<endl;
+    //cout<<"FACE      : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<endl;
     if (nb > 9)
-      theCommands<<"FACE"<<"   : "<<""<<nb<<" Items -> compound named "<<aName<<"\n";
+      theCommands<<"FACE       : "<<nb<<" Items -> compound named "<<aName<<"\n";
     else
-      theCommands<<"FACE"<<"   : "<<" "<<nb<<" Items -> compound named "<<aName<<"\n";
+      theCommands<<"FACE       :  "<<nb<<" Items -> compound named "<<aName<<"\n";
   }
   if(sls->Length()>0) {
     TopoDS_Compound comp;
@@ -862,11 +862,11 @@ void StructuralDump(Draw_Interpretor& theCommands,
     char aName[20];
     Sprintf(aName,"%s_s",Pref);
     DBRep::Set(aName,comp);
-    //cout<<"SHELL"<<" : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<endl;
+    //cout<<"SHELL     : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<endl;
     if (nb > 9)
-      theCommands<<"SHELL"<<"  : "<<""<<nb<<" Items -> compound named "<<aName<<"\n";
+      theCommands<<"SHELL      : "<<nb<<" Items -> compound named "<<aName<<"\n";
     else
-      theCommands<<"SHELL"<<"  : "<<" "<<nb<<" Items -> compound named "<<aName<<"\n";
+      theCommands<<"SHELL      :  "<<nb<<" Items -> compound named "<<aName<<"\n";
   }
   if(slo->Length()>0) {
     TopoDS_Compound comp;
@@ -877,11 +877,11 @@ void StructuralDump(Draw_Interpretor& theCommands,
     char aName[20];
     Sprintf(aName,"%s_o",Pref);
     DBRep::Set(aName,comp);
-    //cout<<"SOLID"<<" : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<endl;
+    //cout<<"SOLID     : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<endl;
     if (nb > 9)
-      theCommands<<"SOLID"<<"  : "<<""<<nb<<" Items -> compound named "<<aName<<"\n";
+      theCommands<<"SOLID      : "<<nb<<" Items -> compound named "<<aName<<"\n";
     else
-      theCommands<<"SOLID"<<"  : "<<" "<<nb<<" Items -> compound named "<<aName<<"\n";
+      theCommands<<"SOLID      :  "<<nb<<" Items -> compound named "<<aName<<"\n";
   }
 }
 
@@ -904,14 +904,14 @@ static Standard_Integer checkshape(Draw_Interpretor& theCommands,
     //cout << "            output style will be used. Otherwise - contextual one." << endl;
     //cout << "   -short - short description of check." << endl;
     theCommands << "\n";
-    theCommands << "Usage : checkshape [-top] shape [result] [-short]" << "\n";
+    theCommands << "Usage : checkshape [-top] shape [result] [-short]\n";
     theCommands << "\n";
-    theCommands << "Where :" << "\n";
-    theCommands << "   -top   - check topology only." << "\n";
-    theCommands << "   shape  - the name of the shape to test." << "\n";
-    theCommands << "   result - the prefix of the output shape names. If it is used, structural" << "\n";
-    theCommands << "            output style will be used. Otherwise - contextual one." << "\n";
-    theCommands << "   -short - short description of check." << "\n";
+    theCommands << "Where :\n";
+    theCommands << "   -top   - check topology only.\n";
+    theCommands << "   shape  - the name of the shape to test.\n";
+    theCommands << "   result - the prefix of the output shape names. If it is used, structural\n";
+    theCommands << "            output style will be used. Otherwise - contextual one.\n";
+    theCommands << "   -short - short description of check.\n";
 
     return 0;
   }
@@ -919,8 +919,8 @@ static Standard_Integer checkshape(Draw_Interpretor& theCommands,
   if (narg > 5) {
     //cout << "Invalid number of args!!!" << endl;
     //cout << "No args to have help." << endl;
-    theCommands << "Invalid number of args!!!" << "\n";
-    theCommands << "No args to have help." << "\n";
+    theCommands << "Invalid number of args!!!\n";
+    theCommands << "No args to have help.\n";
 
     return 1;
   }
@@ -936,8 +936,8 @@ static Standard_Integer checkshape(Draw_Interpretor& theCommands,
   if (aCurInd > narg - 1) {
     //cout << "Invalid number of args!!!" << endl;
     //cout << "No args to have help." << endl;
-    theCommands << "Invalid number of args!!!" << "\n";
-    theCommands << "No args to have help." << "\n";
+    theCommands << "Invalid number of args!!!\n";
+    theCommands << "No args to have help.\n";
 
     return 1;
   }
@@ -947,7 +947,7 @@ static Standard_Integer checkshape(Draw_Interpretor& theCommands,
 
   if (aShape.IsNull()) {
     //cout << a[aCurInd] << " is not a topological shape!!!" << endl;
-    theCommands << a[aCurInd] << " is not a topological shape!!!" << "\n";
+    theCommands << a[aCurInd] << " is not a topological shape!!!\n";
 
     return 1;
   }
@@ -966,8 +966,8 @@ static Standard_Integer checkshape(Draw_Interpretor& theCommands,
   if (aCurInd < aBackInd - 1) {
     //cout << "Invalid number of args!!!" << endl;
     //cout << "No args to have help." << endl;
-    theCommands << "Invalid number of args!!!" << "\n";
-    theCommands << "No args to have help." << "\n";
+    theCommands << "Invalid number of args!!!\n";
+    theCommands << "No args to have help.\n";
 
     return 1;
   } else if (aCurInd < aBackInd) {
@@ -1139,10 +1139,10 @@ static Standard_Integer shapeG1continuity (Draw_Interpretor& di, Standard_Intege
   //else { cout<<" the continuity is not G1  "<<endl;}
   //cout<<"MaxG0Value :"<< MaxG0Value << endl;
   //cout<<"MaxG1Angle:"<<  MaxG1Angle << endl;
-  if (!isdone)  { di<<" Problem in computation "<<"\n"; return 1;}
+  if (!isdone)  { di<<" Problem in computation \n"; return 1;}
   if (ISG1) 
-      {di<<" the continuity is G1 "<<"\n";}
-  else { di<<" the continuity is not G1  "<<"\n";}
+      {di<<" the continuity is G1 \n";}
+  else { di<<" the continuity is not G1  \n";}
   di<<"MaxG0Value :"<< MaxG0Value << "\n";
   di<<"MaxG1Angle:"<<  MaxG1Angle << "\n";
   return 0;
@@ -1260,11 +1260,11 @@ static Standard_Integer shapeG0continuity (Draw_Interpretor& di, Standard_Intege
 
   //else { cout<<" the continuity is not G0  "<<endl;}
   //cout<<"MaxG0Value :"<< MaxG0Value << endl;
-  if (!isdone)  { di<<" Problem in computation "<<"\n"; return 1;}
+  if (!isdone)  { di<<" Problem in computation \n"; return 1;}
   if (ISG0) 
-      {di<<" the continuity is G0 "<<"\n";}
+      {di<<" the continuity is G0 \n";}
 
-  else { di<<" the continuity is not G0  "<<"\n";}
+  else { di<<" the continuity is not G0  \n";}
   di<<"MaxG0Value :"<< MaxG0Value << "\n";
   return 0;
 }
@@ -1395,10 +1395,10 @@ static Standard_Integer shapeG2continuity (Draw_Interpretor& di, Standard_Intege
   //cout<<"MaxG0Value :"<< MaxG0Value << endl;
   //cout<<"MaxG1Angle:"<<  MaxG1Angle << endl;
   //cout<<"MaxG2Curvature:"<<MaxG2Curvature<<endl;
-  if (!isdone)  { di<<" Problem in computation "<<"\n"; return 1;}
+  if (!isdone)  { di<<" Problem in computation \n"; return 1;}
   if (ISG2) 
-  di<<" the continuity is G2 "<<"\n";
-  else di<<" the continuity is not G2  "<<"\n";
+  di<<" the continuity is G2 \n";
+  else di<<" the continuity is not G2  \n";
   di<<"MaxG0Value :"<< MaxG0Value << "\n";
   di<<"MaxG1Angle:"<<  MaxG1Angle << "\n";
   di<<"MaxG2Curvature:"<<MaxG2Curvature<<"\n";
@@ -1417,7 +1417,7 @@ static Standard_Integer clintedge(Draw_Interpretor& di,
 
   if (narg < 2) {
     //cout << "Usage: clintedge shape" << endl;
-    di << "Usage: clintedge shape" << "\n";
+    di << "Usage: clintedge shape\n";
     return 1;
   }
   TopoDS_Shape S = DBRep::Get(a[1]);
@@ -1428,7 +1428,7 @@ static Standard_Integer clintedge(Draw_Interpretor& di,
   if (nbedges > 0)
   {
     //cout<<nbedges<<" internal (or external) edges to be removed"<<endl;
-    di<<nbedges<<" internal (or external) edges to be removed"<<"\n";
+    di<<nbedges<<" internal (or external) edges to be removed\n";
 
     Standard_Integer i = 1;
     char* temp = newname;
@@ -1442,7 +1442,7 @@ static Standard_Integer clintedge(Draw_Interpretor& di,
     di<<"\n";
   }
   else
-    di << "no internal (or external) edges"<<"\n";
+    di << "no internal (or external) edges\n";
     //cout << "no internal (or external) edges"<<endl;
 
   return 0;
@@ -1460,7 +1460,7 @@ static Standard_Integer facintedge(Draw_Interpretor& di,
 
   if (narg < 2) {
     //cout << "Usage: facintedge shape" << endl;
-    di << "Usage: facintedge shape" << "\n";
+    di << "Usage: facintedge shape\n";
     return 1;
   }
   TopoDS_Shape S = DBRep::Get(a[1]);
@@ -1498,7 +1498,7 @@ static Standard_Integer fuseedge(Draw_Interpretor& di,
 
   if (narg < 2) {
     //cout << "Usage: fuseedge shape" << endl;
-    di << "Usage: fuseedge shape" << "\n";
+    di << "Usage: fuseedge shape\n";
     return 1;
   }
   TopoDS_Shape S = DBRep::Get(a[1]);
@@ -1513,7 +1513,7 @@ static Standard_Integer fuseedge(Draw_Interpretor& di,
   if (nbvertices > 0) {
 
     //cout<<nbvertices<<" vertices to be removed"<<endl;
-    di<<nbvertices<<" vertices to be removed"<<"\n";
+    di<<nbvertices<<" vertices to be removed\n";
 
     Standard_Integer i = 1;
     char* temp = newname;
@@ -1527,7 +1527,7 @@ static Standard_Integer fuseedge(Draw_Interpretor& di,
     di<<"\n";
   }
   else
-    di << "no vertices to remove"<<"\n";
+    di << "no vertices to remove\n";
     //cout << "no vertices to remove"<<endl;
 
   return 0;
@@ -1545,7 +1545,7 @@ static Standard_Integer listfuseedge(Draw_Interpretor& di,
 
   if (narg < 2) {
     //cout << "Usage: listfuseedge shape" << endl;
-    di << "Usage: listfuseedge shape" << "\n";
+    di << "Usage: listfuseedge shape\n";
     return 1;
   }
   TopoDS_Shape S = DBRep::Get(a[1]);
index 2b974fe236d4101517422ecb173062bede4cb8cf..05834ea03d0ae7dae85e4edbf0971d7e9a7cec39 100644 (file)
@@ -171,7 +171,7 @@ static Standard_Integer trim(Draw_Interpretor& di, Standard_Integer n, const cha
   }
   else {
     //cout <<"Error creating edge"<<endl;
-    di <<"Error creating edge"<<"\n";
+    di <<"Error creating edge\n";
   }
   return 0;
 }
@@ -236,7 +236,7 @@ static Standard_Integer wire(Draw_Interpretor& di, Standard_Integer n, const cha
   }
   if (!MW.IsDone()) {
     //cout << "Wire not done" << endl;
-    di << "Wire not done" << "\n";
+    di << "Wire not done\n";
     return 0;
   }
   DBRep::Set(a[1],MW);
@@ -255,7 +255,7 @@ static Standard_Integer mkedge(Draw_Interpretor& di, Standard_Integer n, const c
   Handle(Geom2d_Curve) C2d = DrawTrSurf::GetCurve2d(a[2]);
   if (C.IsNull() && C2d.IsNull()) {
     //cout << a[2] << " is not a curve" << endl;
-    di << a[2] << " is not a curve" << "\n";
+    di << a[2] << " is not a curve\n";
     return 1;
   }
 
@@ -336,7 +336,7 @@ static Standard_Integer mkcurve(Draw_Interpretor& di, Standard_Integer n, const
   Handle(Geom_Curve) C = BRep_Tool::Curve(TopoDS::Edge(S),L,f,l);
   if (C.IsNull()) {
     //cout << a[2] << " has no 3d curve" << endl;
-    di << a[2] << " has no 3d curve" << "\n";
+    di << a[2] << " has no 3d curve\n";
     return 1;
   }
   C = new Geom_TrimmedCurve(C,f,l);
@@ -1544,7 +1544,7 @@ Standard_Integer mkoffset(Draw_Interpretor& di,
 
     if ( !Paral.IsDone())
     {
-      di << " Error: Offset is not done." << "\n";
+      di << " Error: Offset is not done.\n";
       return 1;
     }
     else
@@ -1604,7 +1604,7 @@ Standard_Integer openoffset(Draw_Interpretor& di,
 
     if ( !Paral.IsDone())
     {
-      di << " Error: Offset is not done." << "\n";
+      di << " Error: Offset is not done.\n";
       return 1;
     }
     else
@@ -1672,7 +1672,7 @@ Standard_Integer edgeintersector(Draw_Interpretor& di,
 
   if (EInter.IsEmpty()) {
     //cout << " No intersection found" << endl;
-    di << " No intersection found" << "\n";
+    di << " No intersection found\n";
     return 0;
   }
 
@@ -1715,10 +1715,10 @@ Standard_Integer edgeintersector(Draw_Interpretor& di,
       di << " Orientation of vertex " << NbV << " on " << a[i+1] << ": ";
       if (OO == TopAbs_FORWARD) {
         //cout << "FORWARD" << endl;
-        di << "FORWARD" << "\n";
+        di << "FORWARD\n";
       } else {
         //cout << "REVERSED" << endl;
-        di << "REVERSED" << "\n";
+        di << "REVERSED\n";
       }
     }
   }
@@ -1787,7 +1787,7 @@ Standard_Integer  build3d(Draw_Interpretor& di,
 
   if ( (n <2) || (n>3) ) {
     //cout << " 1 or 2 arguments expected" << endl;
-    di << " 1 or 2 arguments expected" << "\n";
+    di << " 1 or 2 arguments expected\n";
     return 1;
   }
 
@@ -1798,7 +1798,7 @@ Standard_Integer  build3d(Draw_Interpretor& di,
   if (n==2) { Ok = BRepLib::BuildCurves3d(S); }
   else      { Ok = BRepLib::BuildCurves3d(S,Draw::Atof(a[2])); }
   //if (!Ok) {cout << " one of the computation failed" << endl;}
-  if (!Ok) {di << " one of the computation failed" << "\n";}
+  if (!Ok) {di << " one of the computation failed\n";}
 
   return 0;
 }
@@ -1819,7 +1819,7 @@ Standard_Integer reducepcurves(Draw_Interpretor& di,
     TopoDS_Shape aShape = DBRep::Get(a[i]);
     if (aShape.IsNull())
       //cout << a[i] << " is not a valid shape" << endl;
-      di << a[i] << " is not a valid shape" << "\n";
+      di << a[i] << " is not a valid shape\n";
     else
       BRepTools::RemoveUnusedPCurves(aShape);
   }
index af9cabbc51e6df295b1fde800b60328fc0ebb269..a5f7c5e197dc8098dbffbaf5a2ca0ab4581bb499 100644 (file)
@@ -103,7 +103,7 @@ static Standard_Integer NDEP(Draw_Interpretor& theCommands,
   TopoDS_Shape V = DBRep::Get(a[2]);
   if ( V.IsNull()) {
     //cout << a[2] << " is not a Shape" << endl;
-    theCommands << a[2] << " is not a Shape" << "\n";
+    theCommands << a[2] << " is not a Shape\n";
     return 1;
   }
 
@@ -123,7 +123,7 @@ static Standard_Integer NDEP(Draw_Interpretor& theCommands,
 
     if ( F.IsNull()) {
       //cout << a[9*ii+6] << " is not a face" << endl;
-      theCommands << a[9*ii+6] << " is not a face" << "\n";
+      theCommands << a[9*ii+6] << " is not a face\n";
       return 1;
     }
 
@@ -211,11 +211,11 @@ static Standard_Integer draft (Draw_Interpretor& di,
 
   if (Internal) {
     MkDraft.SetDraft(Internal);
-    di << "Internal Draft : " << "\n";
+    di << "Internal Draft : \n";
     //cout << "Internal Draft : " << endl;
   }
   else
-    di << "External Draft : " << "\n";
+    di << "External Draft : \n";
     //cout << "External Draft : " << endl;
 
   TopoDS_Shape Stop = DBRep::Get(a[7]);//shape d'arret 
index bddb92657aa82c122d863e686562c999de8c1303..9c2f9dbe3385c377b11425c896a0e4105f1d15fa 100644 (file)
@@ -135,7 +135,7 @@ static Standard_Integer distmini(Draw_Interpretor& di, Standard_Integer n, const
 
   }
   
-  else di << "probleme"<< "\n";
+  else di << "probleme\n";
   //else cout << "probleme"<< endl;
   return 0;
 }
index b4f715c388886eb2110f81e6ec8b3e4e738ab8be..ee9bf68062b0f87bbc046ab2205965d044cfa1ed 100644 (file)
@@ -544,7 +544,7 @@ static Standard_Integer PRW(Draw_Interpretor& theCommands,
     else {
       // il faudrait inverser V et appeler PerfomFromEnd...
       //cout << "Not Implemented" << endl;
-      theCommands << "Not Implemented" << "\n";
+      theCommands << "Not Implemented\n";
     }
   }
   if (!thePFace.IsDone()) {
@@ -709,7 +709,7 @@ static Standard_Integer PRF(Draw_Interpretor& theCommands,
     else { //FUntil.IsNull()
       // il faudrait inverser V et appeler PerfomFromEnd...
       //cout << "Not Implemented" << endl;
-      theCommands << "Not Implemented" << "\n";
+      theCommands << "Not Implemented\n";
     }
   }
   if (!thePFace.IsDone()) {
@@ -949,8 +949,8 @@ Standard_Integer offsetparameter(Draw_Interpretor& di,
                                  Standard_Integer n, const char** a)
 {
   if ( n == 1 ) { 
-    di << " OffsetParameter Tol Inter(c/p) JoinType(a/i/t) [RemoveInternalEdges(r/k) RemoveInvalidFaces(r/k)]" << "\n";
-    di << " Current Values" << "\n";
+    di << " OffsetParameter Tol Inter(c/p) JoinType(a/i/t) [RemoveInternalEdges(r/k) RemoveInvalidFaces(r/k)]\n";
+    di << " Current Values\n";
     di << "   --> Tolerance : " << TheTolerance << "\n";
     di << "   --> TheInter  : ";
     if ( TheInter) {
@@ -958,7 +958,7 @@ Standard_Integer offsetparameter(Draw_Interpretor& di,
     } else {
       di << "Partial";
     }
-    di << "\n" << "   --> TheJoin   : ";
+    di << "\n   --> TheJoin   : ";
     
     switch (TheJoin) {
     case GeomAbs_Arc:          di << "Arc";          break;
@@ -967,7 +967,7 @@ Standard_Integer offsetparameter(Draw_Interpretor& di,
       break ;
     }
     //
-    di << "\n" << "   --> Internal Edges : ";
+    di << "\n   --> Internal Edges : ";
     if (RemoveIntEdges) {
       di << "Remove";
     }
@@ -975,7 +975,7 @@ Standard_Integer offsetparameter(Draw_Interpretor& di,
       di << "Keep";
     }
     //
-    di << "\n" << "   --> Invalid Faces : ";
+    di << "\n   --> Invalid Faces : ";
     if (RemoveInvalidFaces) {
       di << "Remove";
     }
index f8cb060fb4de639fc1bf07d11a98fc98997e5699..8d6f15d6123c8804c0adbf9ed350d6745f1056da 100644 (file)
@@ -80,15 +80,15 @@ static Standard_Integer contblend(Draw_Interpretor& di, Standard_Integer narg, c
     switch (blend_cont) {
       case GeomAbs_C0:
          //cout << ""<<endl;
-         di << "C0"<<"\n";
+         di << "C0\n";
         break;
       case GeomAbs_C1:
          //cout << "C1"<<endl;
-         di << "C1"<<"\n";
+         di << "C1\n";
         break;
       case GeomAbs_C2:
          //cout << "C2"<<endl;
-         di << "C2"<<"\n";
+         di << "C2\n";
         break;
        default:
         break;
@@ -215,12 +215,12 @@ static Standard_Integer CheckHist(Draw_Interpretor& di,
 {
   if(Rakk == 0) {
     //cout<<"No active Builder"<<endl;
-    di<<"No active Builder"<<"\n";
+    di<<"No active Builder\n";
     return 1;
   }
   if(!Rakk->IsDone()) {
     //cout<<"Active Builder Not Done"<<endl;
-    di<<"Active Builder Not Done"<<"\n";
+    di<<"Active Builder Not Done\n";
     return 1;
   }
   Standard_Integer nbc = Rakk->NbContours();
@@ -242,7 +242,7 @@ static Standard_Integer CheckHist(Draw_Interpretor& di,
     PrintHist(curshape,It,nbgen);
   }
   //cout<<"foreach g [lsort [dir gen*]] { wclick; puts [dname $g]; donl $g; }"<<endl;
-  di<<"foreach g [lsort [dir gen*]] { wclick; puts [dname $g]; donl $g; }"<<"\n";
+  di<<"foreach g [lsort [dir gen*]] { wclick; puts [dname $g]; donl $g; }\n";
   return 0;
 }
 
@@ -277,7 +277,7 @@ static Standard_Integer UPDATEVOL(Draw_Interpretor& di,
 {
   if(Rake == 0){
     //cout << "MakeFillet not initialized"<<endl;
-    di << "MakeFillet not initialized"<<"\n";
+    di << "MakeFillet not initialized\n";
     return 1 ;
   }
   if(narg%2 != 0 || narg < 4) return 1;
@@ -301,7 +301,7 @@ static Standard_Integer BUILDEVOL(Draw_Interpretor& di,
 {
   if(Rake == 0){
     //cout << "MakeFillet not initialized"<<endl;
-    di << "MakeFillet not initialized"<<"\n";
+    di << "MakeFillet not initialized\n";
     return 1 ;
   }
   Rake->Build();
@@ -528,16 +528,16 @@ static Standard_Integer blend1(Draw_Interpretor& di, Standard_Integer narg, cons
   //  if (Rakk.IsDone()==FilletSurf_IsPartial) cout <<"resultat partiel"<<endl; 
   if (aRakk.IsDone()==FilletSurf_IsNotOk)
    { FilletSurf_ErrorTypeStatus err=aRakk.StatusError();
-     if (err==FilletSurf_EmptyList) di<< "StatusError=EmptyList"<<"\n";
-     else if (err==FilletSurf_EdgeNotG1) di<< "StatusError=NotG1"<<"\n";
-     else if (err==FilletSurf_FacesNotG1) di<< "StatusError=facesNotG1"<<"\n";
+     if (err==FilletSurf_EmptyList) di<< "StatusError=EmptyList\n";
+     else if (err==FilletSurf_EdgeNotG1) di<< "StatusError=NotG1\n";
+     else if (err==FilletSurf_FacesNotG1) di<< "StatusError=facesNotG1\n";
      else if (err==FilletSurf_EdgeNotOnShape)
-     di<< "StatusError=edgenotonshape"<<"\n";
-     else if (err==FilletSurf_NotSharpEdge ) di<< "StatusError=notsharpedge"<<"\n";
-     else if (err==FilletSurf_PbFilletCompute) di <<"StatusError=PBFillet"<<"\n";
+     di<< "StatusError=edgenotonshape\n";
+     else if (err==FilletSurf_NotSharpEdge ) di<< "StatusError=notsharpedge\n";
+     else if (err==FilletSurf_PbFilletCompute) di <<"StatusError=PBFillet\n";
    }
    else {
-    if (aRakk.IsDone()==FilletSurf_IsPartial) di <<"partial result"<<"\n";
+    if (aRakk.IsDone()==FilletSurf_IsPartial) di <<"partial result\n";
  
     nb=aRakk.NbSurface();
     char localname [100];
@@ -554,11 +554,11 @@ static Standard_Integer blend1(Draw_Interpretor& di, Standard_Integer narg, cons
     //else if (Rakk.StartSectionStatus()==FilletSurf_TwoExtremityOnEdge)
     //  {cout<<" type deb conges = WLBLEND"<<endl;}
     if (aRakk.StartSectionStatus()==FilletSurf_NoExtremityOnEdge)
-      {di<<" type start fillets = WLBLOUT"<<"\n";}
+      {di<<" type start fillets = WLBLOUT\n";}
     else if (aRakk.StartSectionStatus()==FilletSurf_OneExtremityOnEdge)
-      { di<<" type start fillets = WLBLSTOP"<<"\n";}
+      { di<<" type start fillets = WLBLSTOP\n";}
     else if (aRakk.StartSectionStatus()==FilletSurf_TwoExtremityOnEdge)
-      {di<<" type start fillets = WLBLEND"<<"\n";}
+      {di<<" type start fillets = WLBLEND\n";}
     
     //if (Rakk.EndSectionStatus()==FilletSurf_NoExtremityOnEdge) 
     //  {cout<<" type fin  conges = WLBLOUT"<<endl;}
@@ -567,11 +567,11 @@ static Standard_Integer blend1(Draw_Interpretor& di, Standard_Integer narg, cons
     //else if (Rakk.EndSectionStatus()==FilletSurf_TwoExtremityOnEdge) 
     //  { cout<<" type fin  conges = WLBLEND"<<endl;}
     if (aRakk.EndSectionStatus()==FilletSurf_NoExtremityOnEdge)
-      {di<<" type end fillets = WLBLOUT"<<"\n";}
+      {di<<" type end fillets = WLBLOUT\n";}
     else if (aRakk.EndSectionStatus()==FilletSurf_OneExtremityOnEdge)
-      {di<<" type end fillets = WLBLSTOP"<<"\n";}
+      {di<<" type end fillets = WLBLSTOP\n";}
     else if (aRakk.EndSectionStatus()==FilletSurf_TwoExtremityOnEdge)
-      { di<<" type end fillets = WLBLEND"<<"\n";}
+      { di<<" type end fillets = WLBLEND\n";}
     Standard_Real f,l;
     f = aRakk.FirstParameter();
     l = aRakk.LastParameter();
@@ -679,7 +679,7 @@ Standard_Integer rollingball(Draw_Interpretor& di, Standard_Integer n, const cha
 //      TopoDS_Face F1 = TopoDS::Face(DBRep::Get(a[i],TopAbs_FACE));
       if ( F1.IsNull()) {
        //cout << " Stop face not referenced." << endl;
-       di << " Stop face not referenced." << "\n";
+       di << " Stop face not referenced.\n";
        return 1;
       }
       Roll.SetStoppingFace(F1);
@@ -691,7 +691,7 @@ Standard_Integer rollingball(Draw_Interpretor& di, Standard_Integer n, const cha
       i++;
       if ( !strcmp(a[i],"@")) {
        //cout << " Even number of ball support faces is required " << endl;
-       di << " Even number of ball support faces is required " << "\n";
+       di << " Even number of ball support faces is required \n";
        return 1;
       }
       aLocalFace = DBRep::Get(a[i],TopAbs_FACE);
@@ -699,7 +699,7 @@ Standard_Integer rollingball(Draw_Interpretor& di, Standard_Integer n, const cha
 //      TopoDS_Face F2 = TopoDS::Face(DBRep::Get(a[i],TopAbs_FACE));
       if ( F1.IsNull() || F2.IsNull()) {
        //cout << " Support face not referenced." << endl;
-       di << " Support face not referenced." << "\n";
+       di << " Support face not referenced.\n";
        return 1;
       }
       Roll.SetFaces(F1,F2);
@@ -710,7 +710,7 @@ Standard_Integer rollingball(Draw_Interpretor& di, Standard_Integer n, const cha
 //      TopoDS_Edge E = TopoDS::Edge(DBRep::Get(a[i],TopAbs_EDGE));
       if ( E.IsNull()) {
        //cout << " Edge not referenced." << endl;
-       di << " Edge not referenced." << "\n";
+       di << " Edge not referenced.\n";
        return 1;
       }
       Roll.SetEdge(E);
index 638d888c48a084bcd21065aa58f9e7b62d720966..36aea66b072064d742a01f74b095d85158c219ef 100644 (file)
@@ -508,7 +508,7 @@ static Standard_Integer filling( Draw_Interpretor & di, Standard_Integer n, cons
          if (F.IsNull())
            {
              //cout<<endl<<"Wrong parameters"<<endl<<endl;
-             di<<"\n"<<"Wrong parameters"<<"\n"<<"\n";
+             di<<"\nWrong parameters\n\n";
              return 1;
            }
          else
@@ -527,7 +527,7 @@ static Standard_Integer filling( Draw_Interpretor & di, Standard_Integer n, cons
       if (E.IsNull())
        {
          //cout<<"Wrong parameters"<<endl;
-         di<<"Wrong parameters"<<"\n";
+         di<<"Wrong parameters\n";
          return 1;
        }
       //TopoDS_Shape alocalFace(DBRep::Get( a[i], TopAbs_FACE ) );
@@ -559,7 +559,7 @@ static Standard_Integer filling( Draw_Interpretor & di, Standard_Integer n, cons
          if (F.IsNull()) 
            {
              //cout<<"Wrong parameters"<<endl;
-             di<<"Wrong parameters"<<"\n";
+             di<<"Wrong parameters\n";
              return 1;
            }
          Order = Draw::Atoi( a[i++] );
@@ -572,7 +572,7 @@ static Standard_Integer filling( Draw_Interpretor & di, Standard_Integer n, cons
   if (! MakeFilling.IsDone())
     {
       //cout<<"filling failed"<<endl;
-      di<<"filling failed"<<"\n";
+      di<<"filling failed\n";
       return 0;
     }
 
@@ -591,7 +591,7 @@ static Standard_Integer filling( Draw_Interpretor & di, Standard_Integer n, cons
   Chrono.Show(Tps);
   //cout<<"*** FIN DE FILLING ***"<<endl;
   //cout<<"Temps de calcul  : "<<Tps<<endl;
-  di<<"*** FIN DE FILLING ***"<<"\n";
+  di<<"*** FIN DE FILLING ***\n";
   di<<"Temps de calcul  : "<<Tps<<"\n";
 #endif
 
@@ -609,11 +609,11 @@ static Standard_Integer fillingparam( Draw_Interpretor & di, Standard_Integer n,
     //cout << "-c t2d t3d tang tcur : to set tolerances" << endl;
     //cout << "-a maxdeg maxseg : Approximation option" << endl;
     di << "fillingparam : options are"  <<"\n";
-    di << "-l : to list current values" << "\n";
+    di << "-l : to list current values\n";
     di << "-i : to set default values"   << "\n";
-    di << "-r deg nbPonC nbIt anis : to set filling options" <<"\n";
-    di << "-c t2d t3d tang tcur : to set tolerances" << "\n";
-    di << "-a maxdeg maxseg : Approximation option" << "\n";
+    di << "-r deg nbPonC nbIt anis : to set filling options\n";
+    di << "-c t2d t3d tang tcur : to set tolerances\n";
+    di << "-a maxdeg maxseg : Approximation option\n";
   }
   else if (n > 1)
     {
@@ -639,15 +639,15 @@ static Standard_Integer fillingparam( Draw_Interpretor & di, Standard_Integer n,
          di<<"Degree = "<<Degree<<"\n";
          di<<"NbPtsOnCur = "<<NbPtsOnCur<<"\n";
          di<<"NbIter = "<<NbIter<<"\n";
-         di<<"Anisotropie = "<< (Standard_Integer) Anisotropie<<"\n"<<"\n";
+         di<<"Anisotropie = "<< (Standard_Integer) Anisotropie<<"\n\n";
          
          di<<"Tol2d = "<<Tol2d<<"\n";
          di<<"Tol3d = "<<Tol3d<<"\n";
          di<<"TolAng = "<<TolAng<<"\n";
-         di<<"TolCurv = "<<TolCurv<<"\n"<<"\n";
+         di<<"TolCurv = "<<TolCurv<<"\n\n";
          
          di<<"MaxDeg = "<<MaxDeg<<"\n";
-         di<<"MaxSegments = "<<MaxSegments<<"\n"<<"\n";
+         di<<"MaxSegments = "<<MaxSegments<<"\n\n";
        }
       else if (strcmp( flag, "-i" ) == 0 && n == 2)
        {
@@ -686,7 +686,7 @@ static Standard_Integer fillingparam( Draw_Interpretor & di, Standard_Integer n,
       else
        {
          //cout<<"Wrong parameters"<<endl;
-         di<<"Wrong parameters"<<"\n";
+         di<<"Wrong parameters\n";
          return 1;
        }
     }
index 2e2bc52b386d81e59040eca854f3d58d0c71f541..669227cc44613d697bbf4bbe78d380afc2972c6c 100644 (file)
@@ -41,10 +41,10 @@ Standard_IMPORT Draw_Viewer dout;
 Standard_Integer props(Draw_Interpretor& di, Standard_Integer n, const char** a)
 {
   if (n < 2) {
-    di << "Use: " << a[0] << " shape [epsilon] [c[losed]] [x y z] [-full]" << "\n";
-    di << "Compute properties of the shape" << "\n";
-    di << "The epsilon, if given, defines relative precision of computation" << "\n";
-    di << "The \"closed\" flag, if present, do computation only closed shells of the shape" << "\n";
+    di << "Use: " << a[0] << " shape [epsilon] [c[losed]] [x y z] [-full]\n";
+    di << "Compute properties of the shape\n";
+    di << "The epsilon, if given, defines relative precision of computation\n";
+    di << "The \"closed\" flag, if present, do computation only closed shells of the shape\n";
     di << "The centroid coordinates will be put to DRAW variables x y z (if given)\n";
     di << "All values are outputted with the full precision in the full mode.\n\n";
     return 1;
@@ -104,8 +104,8 @@ Standard_Integer props(Draw_Interpretor& di, Standard_Integer n, const char** a)
   {
     Standard_SStream aSStream1;
     aSStream1 << "\n\n";
-    aSStream1 << "Mass : " << setw(15) << G.Mass() << "\n" << "\n";
-    if(witheps && *a[0] != 'l') aSStream1 << "Relative error of mass computation : " <<  setw(15) << eps <<  "\n" << "\n";
+    aSStream1 << "Mass : " << setw(15) << G.Mass() << "\n\n";
+    if(witheps && *a[0] != 'l') aSStream1 << "Relative error of mass computation : " <<  setw(15) << eps <<  "\n\n";
   
     aSStream1 << "Center of gravity : \n";
     aSStream1 << "X = " << setw(15) << P.X() << "\n";
@@ -174,21 +174,21 @@ Standard_Integer props(Draw_Interpretor& di, Standard_Integer n, const char** a)
 Standard_Integer vpropsgk(Draw_Interpretor& di, Standard_Integer n, const char** a)
 {
   if (n < 2) {
-    di << "Use: " << a[0] << " shape epsilon closed span mode [x y z]" << "\n";
-    di << "Compute properties of the shape" << "\n";
-    di << "The epsilon defines relative precision of computation" << "\n";
-    di << "The \"closed\" flag, if equal 1, causes computation only closed shells of the shape" << "\n";
-    di << "The \"span\" flag, if equal 1, says that computation is performed on spans" << "\n";
-    di << "      This option makes effect only for BSpline surfaces." << "\n";
-    di << "mode can be 0 - only volume calculations" << "\n";
-    di << "            1 - volume and gravity center" << "\n";
-    di << "            2 - volume, gravity center and matrix of inertia" << "\n";
-    di << "The centroid coordinates will be put to DRAW variables x y z (if given)\n" << "\n";
+    di << "Use: " << a[0] << " shape epsilon closed span mode [x y z]\n";
+    di << "Compute properties of the shape\n";
+    di << "The epsilon defines relative precision of computation\n";
+    di << "The \"closed\" flag, if equal 1, causes computation only closed shells of the shape\n";
+    di << "The \"span\" flag, if equal 1, says that computation is performed on spans\n";
+    di << "      This option makes effect only for BSpline surfaces.\n";
+    di << "mode can be 0 - only volume calculations\n";
+    di << "            1 - volume and gravity center\n";
+    di << "            2 - volume, gravity center and matrix of inertia\n";
+    di << "The centroid coordinates will be put to DRAW variables x y z (if given)\n\n";
     return 1;
   }
 
   if ( n > 2 && n < 6) {
-    di << "Wrong arguments" << "\n";
+    di << "Wrong arguments\n";
     return 1;
   }
 
@@ -227,8 +227,8 @@ Standard_Integer vpropsgk(Draw_Interpretor& di, Standard_Integer n, const char**
 
   aSStream0.precision(15);
   aSStream0 << "\n\n";
-  aSStream0 << "Mass : " << setw(anOutWidth) << G.Mass() << "\n" << "\n";
-  aSStream0 << "Relative error of mass computation : " <<  setw(anOutWidth) << eps <<  "\n" << "\n";
+  aSStream0 << "Mass : " << setw(anOutWidth) << G.Mass() << "\n\n";
+  aSStream0 << "Relative error of mass computation : " <<  setw(anOutWidth) << eps <<  "\n\n";
   aSStream0 << ends;
   di << aSStream0;
 
index 3583817c6ea50e50347116c4ad7f349d8e418a6f..8ba26a7e72931e93a3f7bb54453a95540470239d 100644 (file)
@@ -351,7 +351,7 @@ Standard_Integer brepintcs(Draw_Interpretor& di, Standard_Integer n, const char*
     }
   }
   if(!nbpi)
-    di<<"Points of intersections are not found"<<"\n";
+    di<<"Points of intersections are not found\n";
   if(indshape < n-1)
     DBRep::Set(a[n-1], aComp);
   //POP pour NT
@@ -424,7 +424,7 @@ Standard_Integer MakeShell(Draw_Interpretor& , Standard_Integer , const char** a
 Standard_Integer xbounds(Draw_Interpretor& di, Standard_Integer n, const char** a)
 {
   if (n<2) {
-    di << "Usage : " << a[0] << " face" << "\n";
+    di << "Usage : " << a[0] << " face\n";
     return 0;
   }
   //
index d3efa41d2194e013af90d345da45f700d5ca41a3..d4c792ec2c285708654fb04d1110be8646fb6515 100644 (file)
@@ -328,7 +328,7 @@ static Standard_Integer sewing (Draw_Interpretor& theDi,
             }
             else
             {
-              theDi << "Error! min tolerance can't possess the null value" << "\n";
+              theDi << "Error! min tolerance can't possess the null value\n";
               return (1);
             }
           }
@@ -338,7 +338,7 @@ static Standard_Integer sewing (Draw_Interpretor& theDi,
               aMaxTol = Draw::Atof (theArgv[++i]);
             else
             {
-              theDi << "Error! max tolerance can't possess the null value" << "\n";
+              theDi << "Error! max tolerance can't possess the null value\n";
               return (1);
             }
           }
@@ -371,22 +371,22 @@ static Standard_Integer sewing (Draw_Interpretor& theDi,
    
   if (aPar < 2)
   {
-    theDi << "Use: " << theArgv[0] << " result [tolerance] shape1 shape2 ... [min tolerance] [max tolerance] [switches]" << "\n";
-    theDi << "To set user's value of min/max tolerances the following syntax is used: +<parameter> <value>" << "\n";
-    theDi << "- parameters are identified by letters:" << "\n";
-    theDi << "  mint - min tolerance" << "\n";
-    theDi << "  maxt - max tolerance" << "\n";
-    theDi << "Switches allow to tune other parameters of Sewing" << "\n";
-    theDi << "The following syntax is used: <symbol><parameter>" << "\n";
-    theDi << "- symbol may be - to set parameter off, + to set on" << "\n";
-    theDi << "- parameters are identified by letters:" << "\n";
-    theDi << "  s - mode for creating sewed shape" << "\n";
-    theDi << "  a - mode for analysis of input shapes" << "\n";
-    theDi << "  c - mode for cutting of free edges" << "\n";
-    theDi << "  n - mode for non manifold processing" << "\n";
-    theDi << "  p - mode for same parameter processing for edges" << "\n";
-    theDi << "  e - mode for sewing floating edges" << "\n";
-    theDi << "  f - mode for sewing faces" << "\n";
+    theDi << "Use: " << theArgv[0] << " result [tolerance] shape1 shape2 ... [min tolerance] [max tolerance] [switches]\n";
+    theDi << "To set user's value of min/max tolerances the following syntax is used: +<parameter> <value>\n";
+    theDi << "- parameters are identified by letters:\n";
+    theDi << "  mint - min tolerance\n";
+    theDi << "  maxt - max tolerance\n";
+    theDi << "Switches allow to tune other parameters of Sewing\n";
+    theDi << "The following syntax is used: <symbol><parameter>\n";
+    theDi << "- symbol may be - to set parameter off, + to set on\n";
+    theDi << "- parameters are identified by letters:\n";
+    theDi << "  s - mode for creating sewed shape\n";
+    theDi << "  a - mode for analysis of input shapes\n";
+    theDi << "  c - mode for cutting of free edges\n";
+    theDi << "  n - mode for non manifold processing\n";
+    theDi << "  p - mode for same parameter processing for edges\n";
+    theDi << "  e - mode for sewing floating edges\n";
+    theDi << "  f - mode for sewing faces\n";
     return (1);
   }
     
@@ -398,12 +398,12 @@ static Standard_Integer sewing (Draw_Interpretor& theDi,
     aMinTol = Precision::Confusion();
   if (aMinTol > aTol)
   {
-    theDi << "Error! min tolerance can't exceed working tolerance" << "\n";
+    theDi << "Error! min tolerance can't exceed working tolerance\n";
     return (1);
   }
   if (aMaxTol < aTol)
   {
-    theDi << "Error! max tolerance can't be less than working tolerance" << "\n";
+    theDi << "Error! max tolerance can't be less than working tolerance\n";
     return (1);
   }
 
index 4c1203b8b51d9d7292309c7dcdbbe71a84e689f7..a50255bc6bb67dfe11d67bf4f56358eb4742937e 100644 (file)
@@ -130,11 +130,11 @@ static Standard_Integer pipe(Draw_Interpretor& di,
 {
   if (n == 1)
   {
-    di << "pipe result Wire_spine Profile [Mode [Approx]]" << "\n";
-    di << "Mode = 0 - CorrectedFrenet," << "\n";
-    di << "     = 1 - Frenet," << "\n";
-    di << "     = 2 - DiscreteTrihedron" << "\n";
-    di << "Approx - force C1-approximation if result is C0" << "\n";
+    di << "pipe result Wire_spine Profile [Mode [Approx]]\n";
+    di << "Mode = 0 - CorrectedFrenet,\n";
+    di << "     = 1 - Frenet,\n";
+    di << "     = 2 - DiscreteTrihedron\n";
+    di << "Approx - force C1-approximation if result is C0\n";
     return 0;
   }
   
@@ -221,11 +221,11 @@ Standard_Integer evolved(Draw_Interpretor& di, Standard_Integer n, const char**
     //cout << "        is given in the referencial axis. " << endl;
     //cout << " 2) evolved result base profil o : "<< endl;
     //cout << "        This position is automatically computed." << endl;
-    di << " 1) evolved result base profil : "<< "\n";
-    di << "        The relative position of the profil on the base" << "\n";
-    di << "        is given in the referencial axis. " << "\n";
-    di << " 2) evolved result base profil o : "<< "\n";
-    di << "        This position is automatically computed." << "\n";
+    di << " 1) evolved result base profil : \n";
+    di << "        The relative position of the profil on the base\n";
+    di << "        is given in the referencial axis. \n";
+    di << " 2) evolved result base profil o : \n";
+    di << "        This position is automatically computed.\n";
     return 0;
   }
 
@@ -450,22 +450,22 @@ static Standard_Integer setsweep(Draw_Interpretor& di,
     //cout << "   -CN dx dy dz : BiNormal is given by dx dy dz" << endl;
     //cout << "   -FX Tx Ty TZ [Nx Ny Nz] : Tangent and Normal are fixed" <<endl;
     //cout << "   -G guide  0|1(ACR|Plan)  0|1(contact|no contact) : with guide"<<endl;
-    di << "setsweep options [arg1 [arg2 [...]]] : options are :" << "\n";
-    di << "   -FR : Tangent and Normal are given by Frenet trihedron" <<"\n";
-    di << "   -CF : Tangente is given by Frenet," << "\n";
-    di << "         the Normal is computed to minimize the torsion " << "\n";
-    di << "   -DT : discrete trihedron" << "\n";
-    di << "   -DX Surf : Tangent and Normal are given by Darboux trihedron," <<"\n";     
-    di << "       Surf have to be a shell or a face" <<"\n";
-    di << "   -CN dx dy dz : BiNormal is given by dx dy dz" << "\n";
-    di << "   -FX Tx Ty TZ [Nx Ny Nz] : Tangent and Normal are fixed" <<"\n";
-    di << "   -G guide  0|1(Plan|ACR)  0|1|2(no contact|contact|contact on border) : with guide"<<"\n";
+    di << "setsweep options [arg1 [arg2 [...]]] : options are :\n";
+    di << "   -FR : Tangent and Normal are given by Frenet trihedron\n";
+    di << "   -CF : Tangente is given by Frenet,\n";
+    di << "         the Normal is computed to minimize the torsion \n";
+    di << "   -DT : discrete trihedron\n";
+    di << "   -DX Surf : Tangent and Normal are given by Darboux trihedron,\n";     
+    di << "       Surf have to be a shell or a face\n";
+    di << "   -CN dx dy dz : BiNormal is given by dx dy dz\n";
+    di << "   -FX Tx Ty TZ [Nx Ny Nz] : Tangent and Normal are fixed\n";
+    di << "   -G guide  0|1(Plan|ACR)  0|1|2(no contact|contact|contact on border) : with guide\n";
     return 0;
   }
 
    if (Sweep ==0) {
      //cout << "You have forgotten the <<mksweep>> command  !"<< endl;
-     di << "You have forgotten the <<mksweep>> command  !"<< "\n";
+     di << "You have forgotten the <<mksweep>> command  !\n";
      return 1;
    }
   if (!strcmp(a[1],"-FR")) {
@@ -480,14 +480,14 @@ static Standard_Integer setsweep(Draw_Interpretor& di,
   else if (!strcmp(a[1],"-DX")) {
     if (n!=3) {
       //cout << "bad arguments !" << endl;
-      di << "bad arguments !" << "\n";
+      di << "bad arguments !\n";
       return 1;
     }
     TopoDS_Shape Surf;
     Surf = DBRep::Get(a[2],TopAbs_SHAPE);
     if (Surf.IsNull()) {
        //cout << a[2] <<"is not a shape !" << endl;
-       di << a[2] <<"is not a shape !" << "\n";
+       di << a[2] <<"is not a shape !\n";
       return 1;
     }
     Sweep->SetMode(Surf);
@@ -495,7 +495,7 @@ static Standard_Integer setsweep(Draw_Interpretor& di,
   else if (!strcmp(a[1],"-CN")) {
     if (n!=5) {
       //cout << "bad arguments !" << endl;
-      di << "bad arguments !" << "\n";
+      di << "bad arguments !\n";
       return 1;
     }
     gp_Dir D(Draw::Atof(a[2]), Draw::Atof(a[3]), Draw::Atof(a[4]));
@@ -504,7 +504,7 @@ static Standard_Integer setsweep(Draw_Interpretor& di,
   else if (!strcmp(a[1],"-FX")) {
     if ((n!=5)&&(n!=8)) {
       //cout << "bad arguments !" << endl;
-      di << "bad arguments !" << "\n";
+      di << "bad arguments !\n";
       return 1;
     }
     gp_Dir D(Draw::Atof(a[2]), Draw::Atof(a[3]), Draw::Atof(a[4]));
@@ -523,7 +523,7 @@ static Standard_Integer setsweep(Draw_Interpretor& di,
      if (n != 5)
        {
         //cout << "bad arguments !" << endl;
-        di << "bad arguments !" << "\n";
+        di << "bad arguments !\n";
         return 1; 
        }
      else
@@ -539,7 +539,7 @@ static Standard_Integer setsweep(Draw_Interpretor& di,
  
   else {
     //cout << "The option "<< a[1] << " is unknown !" << endl;
-    di << "The option "<< a[1] << " is unknown !" << "\n";
+    di << "The option "<< a[1] << " is unknown !\n";
     return 1;
   }
   return 0;
@@ -558,17 +558,17 @@ static Standard_Integer addsweep(Draw_Interpretor& di,
     //cout << "        with the spine" <<endl;
     //cout << "   -R : the wire have to be rotated to assume orthogonality"<<endl;
     //cout << "        with the spine's tangent" << endl;
-    di << "addsweep wire/vertex [Vertex] [-T] [-R] [u0 v0 u1 v1 [...[uN vN]]] : options are :" << "\n";
-    di << "   -T : the wire/vertex have to be translated to assume contact"<< "\n";
-    di << "        with the spine" <<"\n";
-    di << "   -R : the wire have to be rotated to assume orthogonality"<<"\n";
-    di << "        with the spine's tangent" << "\n";
+    di << "addsweep wire/vertex [Vertex] [-T] [-R] [u0 v0 u1 v1 [...[uN vN]]] : options are :\n";
+    di << "   -T : the wire/vertex have to be translated to assume contact\n";
+    di << "        with the spine\n";
+    di << "   -R : the wire have to be rotated to assume orthogonality\n";
+    di << "        with the spine's tangent\n";
     return 0;
   }
 
   if (Sweep ==0) {
     //cout << "You have forgotten the <<mksweep>> command  !"<< endl;
-    di << "You have forgotten the <<mksweep>> command  !"<< "\n";
+    di << "You have forgotten the <<mksweep>> command  !\n";
     return 1;
   }
 
@@ -581,7 +581,7 @@ static Standard_Integer addsweep(Draw_Interpretor& di,
       Section.ShapeType() != TopAbs_VERTEX)
     {
       //cout << a[1] <<"is not a wire and is not a vertex!" << endl;
-      di << a[1] <<"is not a wire and is not a vertex!" << "\n";
+      di << a[1] <<"is not a wire and is not a vertex!\n";
       return 1;
     }
 
@@ -659,7 +659,7 @@ static Standard_Integer deletesweep(Draw_Interpretor& di,
 //  Section = TopoDS::Wire(DBRep::Get(a[1],TopAbs_SHAPE));
   if (Section.IsNull()) {
     //cout << a[1] <<"is not a wire !" << endl;
-    di << a[1] <<"is not a wire !" << "\n";
+    di << a[1] <<"is not a wire !\n";
     return 1;
   }  
 
@@ -683,27 +683,27 @@ static Standard_Integer buildsweep(Draw_Interpretor& di,
     //cout << "   -R : Discontinuities are treated like Round Corner" << endl;
     //cout << "        Treatement is Intersect and Fill" << endl;
     //cout << "   -S : To build a Solid" << endl;
-    di << "build sweep result [-M/-C/-R] [-S] [tol] : options are" << "\n";
-    di << "   -M : Discontinuities are treated by Modfication of"<< "\n"; 
-    di << "        the sweeping mode : it is the default" <<"\n";
-    di << "   -C : Discontinuities are treated like Right Corner" << "\n";
-    di << "        Treatement is Extent && Intersect" << "\n";
-    di << "   -R : Discontinuities are treated like Round Corner" << "\n";
-    di << "        Treatement is Intersect and Fill" << "\n";
-    di << "   -S : To build a Solid" << "\n";
+    di << "build sweep result [-M/-C/-R] [-S] [tol] : options are\n";
+    di << "   -M : Discontinuities are treated by Modfication of\n"; 
+    di << "        the sweeping mode : it is the default\n";
+    di << "   -C : Discontinuities are treated like Right Corner\n";
+    di << "        Treatement is Extent && Intersect\n";
+    di << "   -R : Discontinuities are treated like Round Corner\n";
+    di << "        Treatement is Intersect and Fill\n";
+    di << "   -S : To build a Solid\n";
     return 0;
   }
 
   Standard_Boolean mksolid = Standard_False;
   if (Sweep ==0) {
     //cout << "You have forgotten the <<mksweep>> command  !"<< endl;
-    di << "You have forgotten the <<mksweep>> command  !"<< "\n";
+    di << "You have forgotten the <<mksweep>> command  !\n";
     return 1;
   }
 
   if (!Sweep->IsReady()) {
     //cout << "You have forgotten the <<addsweep>> command  !"<< endl;
-    di << "You have forgotten the <<addsweep>> command  !"<< "\n";
+    di << "You have forgotten the <<addsweep>> command  !\n";
     return 1;
   }
 
@@ -730,15 +730,15 @@ static Standard_Integer buildsweep(Draw_Interpretor& di,
   Sweep->Build();
   if (!Sweep->IsDone()) {
     //cout << "Buildsweep : Not Done" << endl;
-    di << "Buildsweep : Not Done" << "\n";
+    di << "Buildsweep : Not Done\n";
     BRepBuilderAPI_PipeError Stat = Sweep->GetStatus(); 
     if (Stat == BRepBuilderAPI_PlaneNotIntersectGuide) {
       //cout << "Buildsweep : One Plane not intersect the guide" << endl;
-      di << "Buildsweep : One Plane not intersect the guide" << "\n";
+      di << "Buildsweep : One Plane not intersect the guide\n";
     }
     if (Stat == BRepBuilderAPI_ImpossibleContact) {
       //cout << "BuildSweep : One section can not be in contact with the guide" << endl;
-      di << "BuildSweep : One section can not be in contact with the guide" << "\n";
+      di << "BuildSweep : One section can not be in contact with the guide\n";
     }
     return 1;
   }
@@ -747,7 +747,7 @@ static Standard_Integer buildsweep(Draw_Interpretor& di,
       Standard_Boolean B;
       B = Sweep->MakeSolid();
       //if (!B) cout << " BuildSweep : It is impossible to make a solid !" << endl;
-      if (!B) di << " BuildSweep : It is impossible to make a solid !" << "\n";
+      if (!B) di << " BuildSweep : It is impossible to make a solid !\n";
     }
     result = Sweep->Shape();
     DBRep::Set(a[1],result);
@@ -766,13 +766,13 @@ static Standard_Integer simulsweep(Draw_Interpretor& di,
   
   if (Sweep ==0) {
     //cout << "You have forgotten the <<mksweep>> command  !"<< endl;
-    di << "You have forgotten the <<mksweep>> command  !"<< "\n";
+    di << "You have forgotten the <<mksweep>> command  !\n";
     return 1;
   }
   
   if (!Sweep->IsReady()) {
     //cout << "You have forgotten the <<addsweep>> command  !"<< endl;
-    di << "You have forgotten the <<addsweep>> command  !"<< "\n";
+    di << "You have forgotten the <<addsweep>> command  !\n";
     return 1;
   }
   
index b153e72055ba91a26cb4df55bd7cd0b6917c9bc5..d3a8355aa08a9abad952b6838c93f34676d015b2 100644 (file)
@@ -168,7 +168,7 @@ static Standard_Integer halfspace(Draw_Interpretor& di,
     TopoDS_Shape Shell  = DBRep::Get(a[2],TopAbs_SHELL);
     if (Shell.IsNull()) {
       //cout << a[2] << " must be a face or a shell" << endl;
-      di << a[2] << " must be a face or a shell" << "\n";
+      di << a[2] << " must be a face or a shell\n";
       return 1;
     }
     else {
@@ -178,7 +178,7 @@ static Standard_Integer halfspace(Draw_Interpretor& di,
       }
       else {
        //cout << " HalfSpace NotDone" << endl;
-       di << " HalfSpace NotDone" << "\n";
+       di << " HalfSpace NotDone\n";
        return 1;
       }
     }
@@ -190,7 +190,7 @@ static Standard_Integer halfspace(Draw_Interpretor& di,
     }
     else {
       //cout << " HalfSpace NotDone" << endl;
-      di << " HalfSpace NotDone" << "\n";
+      di << " HalfSpace NotDone\n";
       return 1;
     }
   }
index 526c021b07faf33c0a6f59a4b49ed89847575ea4..a89ebf538a25c844155897abc146712befa7c0cf 100644 (file)
@@ -543,7 +543,7 @@ void  BRepTools_ShapeSet::DumpGeometry(const TopoDS_Shape& S,
         OS << " on triangulation " << myTriangulations.FindIndex(CR->Triangulation());
         if (!CR->Location().IsIdentity())
           OS << " location "<<Locations().Index(CR->Location());
-        OS << endl;
+        OS << "\n";
       }
       itrc.Next();
     }
@@ -1240,7 +1240,7 @@ void BRepTools_ShapeSet::WritePolygonOnTriangulation(Standard_OStream&      OS,
   Handle(Message_ProgressIndicator) progress = GetProgress();
   Message_ProgressSentry PS(progress, "Polygons On Triangulation", 0, nbpOntri, 1);
   if (Compact)
-    OS << "PolygonOnTriangulations " << nbpOntri << endl;
+    OS << "PolygonOnTriangulations " << nbpOntri << "\n";
   else {
     OS << " -------\n";
     OS <<"Dump of " << nbpOntri << " PolygonOnTriangulations\n";
@@ -1271,7 +1271,7 @@ void BRepTools_ShapeSet::WritePolygonOnTriangulation(Standard_OStream&      OS,
     
     if (!Param.IsNull()) {
       if (!Compact) {
-        OS << "  "<< "Parameters :";
+        OS << "  Parameters :";
       }
       else OS << "1 " ;
       if (!Compact) OS <<"  ";
@@ -1360,7 +1360,7 @@ void BRepTools_ShapeSet::WritePolygon3D(Standard_OStream&      OS,
   Message_ProgressSentry PS(progress, "3D Poligons", 0, nbpol, 1);
 
   if (Compact)
-    OS << "Polygon3D " << nbpol << endl;
+    OS << "Polygon3D " << nbpol << "\n";
   else {
     OS << " -------\n";
     OS <<"Dump of " << nbpol << " Polygon3Ds\n";
@@ -1484,7 +1484,7 @@ void BRepTools_ShapeSet::WriteTriangulation(Standard_OStream&      OS,
   Message_ProgressSentry PS(progress, "Triangulations", 0, nbtri, 1);
 
   if (Compact)
-    OS << "Triangulations " << nbtri << endl;
+    OS << "Triangulations " << nbtri << "\n";
   else {
     OS << " -------\n";
     OS <<"Dump of " << nbtri << " Triangulations\n";
index f20f890944d32f09011fb77838663e1bddf808b3..326357cf7f90291b5d8ee67931c63222b5173783 100644 (file)
@@ -164,7 +164,7 @@ void  BinTools_LocationSet::Write(Standard_OStream& OS) const
 {
   
   Standard_Integer i, nbLoc = myMap.Extent();
-  OS << "Locations "<< nbLoc <<endl; 
+  OS << "Locations "<< nbLoc << "\n";
   try {
     OCC_CATCH_SIGNALS
     for (i = 1; i <= nbLoc; i++) {
index 250e821b41f4a85fdb13953f77815bd2a2b65aca..5e98faf1d2b0f637bddc839b34d20613feabd05e 100644 (file)
@@ -321,11 +321,11 @@ void  BinTools_ShapeSet::Write(Standard_OStream& OS)const
 
   // write the copyright
   if (myFormatNb == 3)
-    OS << "\n" << Version_3 << endl;
+    OS << "\n" << Version_3 << "\n";
   else if (myFormatNb == 2)
-    OS << "\n" << Version_2 << endl;
+    OS << "\n" << Version_2 << "\n";
   else
-    OS << "\n" << Version_1 << endl;
+    OS << "\n" << Version_1 << "\n";
 
   //-----------------------------------------
   // write the locations
@@ -1194,7 +1194,7 @@ void BinTools_ShapeSet::WritePolygonOnTriangulation(Standard_OStream& OS) const
 {
   Standard_Integer i, j, nbpOntri = myNodes.Extent();
 
-  OS << "PolygonOnTriangulations " << nbpOntri << endl;
+  OS << "PolygonOnTriangulations " << nbpOntri << "\n";
   Handle(Poly_PolygonOnTriangulation) Poly;
   Handle(TColStd_HArray1OfReal) Param;
   try {
@@ -1293,7 +1293,7 @@ void BinTools_ShapeSet::ReadPolygonOnTriangulation(Standard_IStream& IS)
 void BinTools_ShapeSet::WritePolygon3D(Standard_OStream& OS)const
 {
   Standard_Integer i, j, nbpol = myPolygons3D.Extent();
-  OS << "Polygon3D " << nbpol << endl;
+  OS << "Polygon3D " << nbpol << "\n";
   Handle(Poly_Polygon3D) P;
   try {
     OCC_CATCH_SIGNALS
@@ -1396,7 +1396,7 @@ void BinTools_ShapeSet::WriteTriangulation(Standard_OStream& OS) const
 {
   Standard_Integer i, j, nbNodes, nbtri = myTriangulations.Extent();
   Standard_Integer nbTriangles = 0, n1, n2, n3;
-    OS << "Triangulations " << nbtri << endl;
+    OS << "Triangulations " << nbtri << "\n";
   Handle(Poly_Triangulation) T;
   try {
     OCC_CATCH_SIGNALS
index ae3ed16a54c546b8a6d624a46dae8e0ec0517ddf..a6dc2e0364aeb58bcba9d53c557e34286c252706 100644 (file)
@@ -1203,7 +1203,7 @@ void CDM_Document::LoadResources()
     }
     myResourcesAreLoaded=Standard_True;
     
-//    cout << "resource Loaded: " << "Format: " << theFormat << ", FileExtension:" << myFileExtension << ", DataType:" <<  myDataType << ", VersionDataType:" << myVersionDataType << ", Description:" << myDescription << ", Domain:" << myDomain << endl;
+//    cout << "resource Loaded: Format: " << theFormat << ", FileExtension:" << myFileExtension << ", DataType:" <<  myDataType << ", VersionDataType:" << myVersionDataType << ", Description:" << myDescription << ", Domain:" << myDomain << endl;
   }
   return;
 }
index 08465d74845edf0c4cae7f325fa03c30fbf706d9..a39484fe6f8c06909778f372d24efbe4de6948d1 100644 (file)
@@ -177,7 +177,7 @@ static Standard_Integer hlr (Draw_Interpretor& di,
       di << "\n";
       if (withHLR) {
        di << "Angle of discretization : ";
-       di << anglHLR * 180 / M_PI << " degrees" << "\n";
+       di << anglHLR * 180 / M_PI << " degrees\n";
       }
     }
     else di << " wireframe";
@@ -212,7 +212,7 @@ static Standard_Integer hlr (Draw_Interpretor& di,
     }
     else if (!strcasecmp(a[1],"ang"  )) {
       di << "Angle de discretisation : ";
-      di << anglHLR * 180 / M_PI << " degres" << "\n";
+      di << anglHLR * 180 / M_PI << " degres\n";
     }
     else return 1;
   }
@@ -228,7 +228,7 @@ static Standard_Integer hlr (Draw_Interpretor& di,
       if (anglHLR > HAngMax) anglHLR = HAngMax;
     }
     di << "Angle of discretization : ";
-    di << anglHLR * 180 / M_PI << " degrees" << "\n";
+    di << anglHLR * 180 / M_PI << " degrees\n";
   }
 
   if (n >= nFirst + 1) {
@@ -636,7 +636,7 @@ static Standard_Integer nexplode(Draw_Interpretor& di,
   // Check of equality of MidXYZ
   for (Index=1; Index < MaxShapes; Index++) {
     if (MidXYZ(OrderInd(Index+1)) == MidXYZ(OrderInd(Index)))
-      di<<"Warning! For this shape the results may be incorrect."<<"\n";
+      di<<"Warning! For this shape the results may be incorrect.\n";
   }
   
   for (Index=1 ;Index <= MaxShapes; Index++) {
@@ -1155,7 +1155,7 @@ static Standard_Integer normals(Draw_Interpretor& di,
       V.Multiply(l/x);
     else {
       V.SetCoord(l/2.,0,0);
-      di << "Null normal"<< "\n";
+      di << "Null normal\n";
     }
 
     P2 = P1;
index 820fbed5199e41c8ddf3f760b407cc4a9957b93d..f1c9084da8604c15a7678786714332d2588c1c6d 100644 (file)
@@ -220,7 +220,7 @@ static Standard_Integer DDF_SetTagger (Draw_Interpretor& di,
     TDF_TagSource::Set(L); 
     return 0;
   }
-  di << "DDF_SetTagger : Error" << "\n";
+  di << "DDF_SetTagger : Error\n";
   return 1;
 }
 
@@ -243,7 +243,7 @@ static Standard_Integer DDF_NewTag (Draw_Interpretor& di,
     di << A->NewTag ();
     return 0;
   }
-  di << "DDF_NewTag : Error" << "\n";
+  di << "DDF_NewTag : Error\n";
   return 1;
 }
 
@@ -273,7 +273,7 @@ static Standard_Integer DDF_NewChild (Draw_Interpretor& di,
       return 0;
     }
   }
-  di << "DDF_NewChild : Error" << "\n";
+  di << "DDF_NewChild : Error\n";
   return 1;
 }
 
@@ -290,13 +290,13 @@ static Standard_Integer DDF_Label (Draw_Interpretor& di,Standard_Integer n, cons
     TDF_Label L;
     if (!DDF::FindLabel(DF,a[2],L,Standard_False)) { 
       DDF::AddLabel(DF,a[2],L);  
-      //di << "Label : " << a[2] << " created" << "\n";
+      //di << "Label : " << a[2] << " created\n";
     }
-    //else di << "Label : " << a[2] << " retrieved" << "\n";
+    //else di << "Label : " << a[2] << " retrieved\n";
     DDF::ReturnLabel(di,L);
     return 0;
   }
-  di << "DDF_Label : Error" << "\n";
+  di << "DDF_Label : Error\n";
   return 1; 
 }
 
index a1d00aace594b71bd2725c46bacf21ff9453fb34..254bb982805e542aa2147484da8e0599c7c4b312 100644 (file)
@@ -66,7 +66,7 @@ static Standard_Integer MakeDF (Draw_Interpretor& di,
   if (!D.IsNull ()) {
     NewDDF = Handle(DDF_Data)::DownCast (D);
     if (!NewDDF.IsNull ()) {
-      di<<"DDF_BasicCommands::MakeDF - Sorry, this Data Framework already exists"<<"\n";
+      di<<"DDF_BasicCommands::MakeDF - Sorry, this Data Framework already exists\n";
       return 0;
     }
   }
@@ -108,7 +108,7 @@ static Standard_Integer ClearDF (Draw_Interpretor& di,
     }
   }
 
-  di<<"DDF_BasicCommands::MakeDF - Sorry, this Data Framework doesn't exist"<<"\n";
+  di<<"DDF_BasicCommands::MakeDF - Sorry, this Data Framework doesn't exist\n";
 
   return 0;
 }
@@ -182,18 +182,18 @@ static Standard_Integer MiniDumpDF (Draw_Interpretor& di,
   D = Draw::Get(a[1]);
 
   if (D.IsNull ()) {
-    di<<"DDF_BasicCommands : Sorry this Data Framework doesn't exist"<<"\n";
+    di<<"DDF_BasicCommands : Sorry this Data Framework doesn't exist\n";
     return Standard_False;
   }
 
   DDF = Handle(DDF_Data)::DownCast (D);
 
   if (DDF.IsNull ()) {
-    di<<"DDF_BasicCommands : Sorry this Data Framework doesn't exist"<<"\n";
+    di<<"DDF_BasicCommands : Sorry this Data Framework doesn't exist\n";
     return Standard_False;
   }
 
-  di<<"*********** Dump of "<<a[1]<<" ***********"<<"\n";
+  di<<"*********** Dump of "<<a[1]<<" ***********\n";
 
   //DDF->DataFramework()->Dump(cout);
   Standard_SStream aSStream;
@@ -220,18 +220,18 @@ static Standard_Integer XDumpDF (Draw_Interpretor& di,
   D = Draw::Get(a[1]);
 
   if (D.IsNull ()) {
-    di<<"DDF_BasicCommands : Sorry this Data Framework doesn't exist"<<"\n";
+    di<<"DDF_BasicCommands : Sorry this Data Framework doesn't exist\n";
     return Standard_False;
   }
 
   DDF = Handle(DDF_Data)::DownCast (D);
 
   if (DDF.IsNull ()) {
-    di<<"DDF_BasicCommands : Sorry this Data Framework doesn't exist"<<"\n";
+    di<<"DDF_BasicCommands : Sorry this Data Framework doesn't exist\n";
     return Standard_False;
   }
 
-  di<<"*********** Dump of "<<a[1]<<" ***********"<<"\n";
+  di<<"*********** Dump of "<<a[1]<<" ***********\n";
 
   TDF_IDFilter filter(Standard_False);
   //TDF_Tool::ExtendedDeepDump(cout,DDF->DataFramework(),filter);
@@ -257,7 +257,7 @@ static Standard_Integer CopyLabel_SCopy (Draw_Interpretor& di,Standard_Integer n
     if(!DDF::GetDF(a[1], DF)) return 1;
     if (!DDF::FindLabel(DF,a[2],SOURCE)) return 1;   
     if (DDF::FindLabel(DF,a[3],TARGET)) {
-      di << " target label is already setted "<< "\n";
+      di << " target label is already setted \n";
       return 1;
     }
     DDF::AddLabel(DF,a[3],TARGET);
@@ -265,10 +265,10 @@ static Standard_Integer CopyLabel_SCopy (Draw_Interpretor& di,Standard_Integer n
     cop.Load(SOURCE, TARGET);
     cop.Perform();
     if (!cop.IsDone()) 
-      di << "copy not done" << "\n";
+      di << "copy not done\n";
     return 0;
   }
-  di << "DDF_CopyLabel : Error" << "\n";
+  di << "DDF_CopyLabel : Error\n";
   return 1;  
 }
 
@@ -327,10 +327,10 @@ static Standard_Integer  DDF_CheckAttrs (Draw_Interpretor& di,Standard_Integer n
       ds1->Clear();
     }
     if(!Shar) 
-      di << "Shareable attributes not found" << "\n";
+      di << "Shareable attributes not found\n";
     return 0;
   }
-  di << "DDF_CheckAttrs : Error" << "\n";
+  di << "DDF_CheckAttrs : Error\n";
   return 1;    
 }
 
@@ -367,7 +367,7 @@ static Standard_Integer  DDF_CheckLabel (Draw_Interpretor& di,Standard_Integer n
 
     return 0;
   }
-  di << "DDF_ChecLabel : Error" << "\n";
+  di << "DDF_ChecLabel : Error\n";
   return 1;    
 }
 
index 281f0f295eefb4b765e5fd8ca473efd011b65880..1b1cd0bc0734c186cf1ebda79b2a342ea7a97fb5 100644 (file)
@@ -84,7 +84,7 @@ static Standard_Integer AbortTran (Draw_Interpretor& di,
       DDF_TStack.RemoveFirst();
     }
     else {
-      di<<"DDF_BasicCommands::AbortTran - No more transaction to abort"<<"\n";
+      di<<"DDF_BasicCommands::AbortTran - No more transaction to abort\n";
     }
   }
   return 0;
@@ -113,7 +113,7 @@ static Standard_Integer CommitTran (Draw_Interpretor& di,
       DDF_TStack.RemoveFirst();
     }
     else {
-      di<<"DDF_BasicCommands::CommitTran - No more transaction to commit"<<"\n";
+      di<<"DDF_BasicCommands::CommitTran - No more transaction to commit\n";
     }
   }
   return 0;
@@ -172,17 +172,17 @@ static Standard_Integer Undo (Draw_Interpretor& di,
        DDF_LastDelta = tmp;
       }
       else {
-       di<<"Undo not applicable HERE and NOW."<<"\n";
+       di<<"Undo not applicable HERE and NOW.\n";
        return 1;
       }
     }
     else {
-      di<<"No undo to apply."<<"\n";
+      di<<"No undo to apply.\n";
       return 1;
     }
   }
   else {
-    di<<"Unknown DF."<<"\n";
+    di<<"Unknown DF.\n";
     return 1;
   }
   return 0;
index 19b0bfe66255aacdd1049721376d99f8dd85adcd..f4dc8f8a8ee4aed2615ec0291363ccaf80f39a71 100644 (file)
@@ -116,7 +116,7 @@ static Standard_Integer DDataStd_SetInteger (Draw_Interpretor& di,
     TDataStd_Integer::Set(L,Draw::Atoi(arg[3]));  
     return 0;
   }
-  di << "DDataStd_SetInteger : Error" << "\n";
+  di << "DDataStd_SetInteger : Error\n";
   return 1;
 }
 
@@ -137,7 +137,7 @@ static Standard_Integer DDataStd_SetReal (Draw_Interpretor& di,
     TDataStd_Real::Set(L,Draw::Atof(arg[3]));  
     return 0;
   } 
-  di << "DDataStd_SetReal : Error" << "\n";
+  di << "DDataStd_SetReal : Error\n";
   return 1;
 }
 
@@ -162,7 +162,7 @@ static Standard_Integer DDataStd_SetReference (Draw_Interpretor& di,
     TDF_Reference::Set(L,LREF);  
     return 0;
   } 
-  di << "DDataStd_SetReference : Error" << "\n";
+  di << "DDataStd_SetReference : Error\n";
   return 1;
 }
 
@@ -184,7 +184,7 @@ static Standard_Integer DDataStd_SetComment (Draw_Interpretor& di,
     TDataStd_Comment::Set(L,TCollection_ExtendedString(arg[3],Standard_True));  
     return 0;
   }
-  di << "DDataStd_SetComment : Error" << "\n";
+  di << "DDataStd_SetComment : Error\n";
   return 1;
 }
 
@@ -209,7 +209,7 @@ static Standard_Integer DDataStd_GetInteger (Draw_Interpretor& di,
     di << A->Get();
     return 0;
   }
-  di << "DDataStd_GetInteger : Error" << "\n";
+  di << "DDataStd_GetInteger : Error\n";
   return 1;
 }
 
@@ -232,7 +232,7 @@ static Standard_Integer DDataStd_GetReal (Draw_Interpretor& di,
     di << A->Get();
     return 0;
   }
-  di << "DDataStd_GetReal : Error" << "\n";
+  di << "DDataStd_GetReal : Error\n";
   return 1;
 }
 
@@ -255,7 +255,7 @@ static Standard_Integer DDataStd_GetReference (Draw_Interpretor& di,
     di << entry.ToCString();
     return 0;
   }
-  di << "DDataStd_GetReference : Error" << "\n";
+  di << "DDataStd_GetReference : Error\n";
   return 1;
 }
 
@@ -277,7 +277,7 @@ static Standard_Integer DDataStd_GetComment (Draw_Interpretor& di,
     di << A->Get().ToExtString();
     return 0;
   }
-  di << "DDataStd_GetComment : Error" << "\n";
+  di << "DDataStd_GetComment : Error\n";
   return 1;
 }
 
@@ -306,7 +306,7 @@ static Standard_Integer DDataStd_Self (Draw_Interpretor& di,
 //    }
     return 0;
   } 
-  di << "Self : Error" << "\n";
+  di << "Self : Error\n";
   return 0;
 }
 
@@ -543,7 +543,7 @@ static Standard_Integer DDataStd_GetIntArrayValue (Draw_Interpretor& di,
   
   Standard_Integer index = Draw::Atoi(arg[3]);
   if (index < A->Lower() || index > A->Upper()) {
-    di << "Index is out of range" << "\n";
+    di << "Index is out of range\n";
     return 1;
   } else {
     di << A->Value(index) << "\n";
@@ -605,7 +605,7 @@ static Standard_Integer DDataStd_ChangeIntArray (Draw_Interpretor& di,
     }
     return 0;
   }
-  di << "DDataStd_ChangeIntArray: Error" << "\n";
+  di << "DDataStd_ChangeIntArray: Error\n";
   return 0; 
 } 
 
@@ -758,7 +758,7 @@ static Standard_Integer DDataStd_GetRealArrayValue (Draw_Interpretor& di,
   
   Standard_Integer index = Draw::Atoi(arg[3]);
   if (index < A->Lower() || index > A->Upper()) {
-    di << "Index is out of range" << "\n";
+    di << "Index is out of range\n";
     return 1;
   } else {
     di << A->Value(index) << "\n";
@@ -820,7 +820,7 @@ static Standard_Integer DDataStd_ChangeRealArray (Draw_Interpretor& di,
     }
     return 0;
   }
-  di << "DDataStd_ChangeRealArray: Error" << "\n";
+  di << "DDataStd_ChangeRealArray: Error\n";
   return 0; 
 } 
 
@@ -847,7 +847,7 @@ static Standard_Integer DDataStd_SetVariable (Draw_Interpretor& di,
     return 0; 
   }
 
-  di << "Wrong arguments" << "\n";  
+  di << "Wrong arguments\n";  
   return 1; 
 } 
 
@@ -868,7 +868,7 @@ static Standard_Integer DDataStd_GetVariable (Draw_Interpretor& di,
     Handle(TDataStd_Variable) aV;
     if (!label.FindAttribute(TDataStd_Variable::GetID(), aV))
     {
-      di << "TDataStd_Variable: no such attribute" << "\n";
+      di << "TDataStd_Variable: no such attribute\n";
     }
 
     Draw::Set(arg[3],TCollection_AsciiString(Standard_Integer(aV->IsConstant())).ToCString());
@@ -876,7 +876,7 @@ static Standard_Integer DDataStd_GetVariable (Draw_Interpretor& di,
     return 0; 
   }
 
-  di << "Wrong arguments" << "\n";  
+  di << "Wrong arguments\n";  
   return 1; 
 } 
 
@@ -909,14 +909,14 @@ static Standard_Integer DDataStd_SetRelation (Draw_Interpretor& di,
       }
       if (!label.FindAttribute(TDataStd_Variable::GetID(), aV))
       {
-        di << "No TDataStd_Variable Attribute on label" << "\n";
+        di << "No TDataStd_Variable Attribute on label\n";
         return 1;
       }
       aR->GetVariables().Append(aV);
     }
     return 0;
   }
-  di << "Usage: SetRelation (DF, entry, expression, var1[, var2, ...])" << "\n";
+  di << "Usage: SetRelation (DF, entry, expression, var1[, var2, ...])\n";
   return 1;
 }
 
@@ -964,7 +964,7 @@ static Standard_Integer DDataStd_DumpRelation (Draw_Interpretor& di,
     di << ")";
     return 0;
   }
-  di << "Usage: DumpRelation (DF, entry)" << "\n";
+  di << "Usage: DumpRelation (DF, entry)\n";
   return 1;
 }
 
@@ -1015,7 +1015,7 @@ static Standard_Integer DDataStd_GetFunction (Draw_Interpretor& di,
     Handle(TFunction_Function) aF;    
     if (!label.FindAttribute(TFunction_Function::GetID(), aF))
     {
-      di << "No TFunction_Function Attribute on label" << "\n";
+      di << "No TFunction_Function Attribute on label\n";
     }
     else
     {
@@ -1149,7 +1149,7 @@ static Standard_Integer DDataStd_GetExtStringArrayValue (Draw_Interpretor& di,
   
   Standard_Integer index = Draw::Atoi(arg[3]);
   if (index < A->Lower() || index > A->Upper()) {
-    di << "Index is out of range" << "\n";
+    di << "Index is out of range\n";
     return 1;
   } else {
     const TCollection_ExtendedString& value = A->Value(index);
@@ -1212,7 +1212,7 @@ static Standard_Integer DDataStd_ChangeExtStrArray (Draw_Interpretor& di,
     }    
     return 0;
   }
-  di << "DDataStd_ChangeExtStringArray: Error" << "\n";
+  di << "DDataStd_ChangeExtStringArray: Error\n";
   return 0; 
 } 
 
@@ -1259,7 +1259,7 @@ static Standard_Integer DDataStd_KeepUTF (Draw_Interpretor& di,
     }
     return 0;
   }
-  di << "SetUTFName : String is not kept in DF" << "\n";
+  di << "SetUTFName : String is not kept in DF\n";
   return 1;
 }
 
@@ -1324,7 +1324,7 @@ static Standard_Integer DDataStd_GetUTFtoFile (Draw_Interpretor& di,
     anOS.close();
     return 0;
   }
-  di << "GetUTF : Data is not extracted to the specified file " <<"\n";
+  di << "GetUTF : Data is not extracted to the specified file \n";
   return 1;
 }
 
@@ -1359,7 +1359,7 @@ static Standard_Integer DDataStd_SetByteArray (Draw_Interpretor& di,
     }
     return 0; 
   }
-  di << "DDataStd_SetByteArray: Error" << "\n";
+  di << "DDataStd_SetByteArray: Error\n";
   return 1; 
 } 
 
@@ -1436,7 +1436,7 @@ static Standard_Integer DDataStd_SetBooleanArray (Draw_Interpretor& di,
     }
     return 0; 
   }
-  di << "DDataStd_SetBooleanArray: Error" << "\n";
+  di << "DDataStd_SetBooleanArray: Error\n";
   return 1; 
 } 
 
@@ -1463,7 +1463,7 @@ static Standard_Integer DDataStd_SetBooleanArrayValue (Draw_Interpretor& di,
 
   // Check the value.
   if (value != 0 && value != 1) {
-    di << "DDataStd_SetBooleanArrayValue: Error! The value should be either 0 or 1." << "\n";
+    di << "DDataStd_SetBooleanArrayValue: Error! The value should be either 0 or 1.\n";
     return 1;
   }
 
@@ -1501,7 +1501,7 @@ static Standard_Integer DDataStd_SetExtStringList (Draw_Interpretor& di,
     }
     return 0; 
   }
-  di << "DDataStd_SetExtStringList: Error" << "\n";
+  di << "DDataStd_SetExtStringList: Error\n";
   return 1; 
 } 
 //
@@ -1532,7 +1532,7 @@ static Standard_Integer DDataStd_SetReferenceList (Draw_Interpretor& di,
       return 0; 
     }
   }
-  di << "DDataStd_SetReferenceList: Error" << "\n";
+  di << "DDataStd_SetReferenceList: Error\n";
   return 1; 
 } 
 
@@ -1565,7 +1565,7 @@ static Standard_Integer DDataStd_SetBooleanList (Draw_Interpretor& di,
     }
     return 0; 
   }
-  di << "DDataStd_SetBooleanList: Error" << "\n";
+  di << "DDataStd_SetBooleanList: Error\n";
   return 1; 
 } 
 
@@ -1592,7 +1592,7 @@ static Standard_Integer DDataStd_SetIntegerList (Draw_Interpretor& di,
     }
     return 0; 
   }
-  di << "DDataStd_SetIntegerList: Error" << "\n";
+  di << "DDataStd_SetIntegerList: Error\n";
   return 1; 
 } 
 
@@ -1619,7 +1619,7 @@ static Standard_Integer DDataStd_SetRealList (Draw_Interpretor& di,
     }
     return 0; 
   }
-  di << "DDataStd_SetRealList: Error" << "\n";
+  di << "DDataStd_SetRealList: Error\n";
   return 1; 
 } 
 
@@ -1681,7 +1681,7 @@ static Standard_Integer DDataStd_GetByteArrayValue (Draw_Interpretor& di,
   
   Standard_Integer index = Draw::Atoi(arg[3]);
   if (index < A->Lower() || index > A->Upper()) {
-    di << "Index is out of range" << "\n";
+    di << "Index is out of range\n";
     return 1;
   } else {
     di << A->Value(index) << "\n";
@@ -1750,7 +1750,7 @@ static Standard_Integer DDataStd_GetBooleanArrayValue (Draw_Interpretor& di,
   
   Standard_Integer index = Draw::Atoi(arg[3]);
   if (index < A->Lower() || index > A->Upper()) {
-    di << "Index is out of range" << "\n";
+    di << "Index is out of range\n";
     return 1;
   } else {
     di << ((A->Value(index) == Standard_True) ? "True" : "False") << "\n";
@@ -1816,7 +1816,7 @@ static Standard_Integer DDataStd_ChangeByteArray (Draw_Interpretor& di,
     }
     return 0;
   }
-  di << "DDataStd_ChangeByteArray: Error" << "\n";
+  di << "DDataStd_ChangeByteArray: Error\n";
   return 1; 
 }
 
@@ -1856,10 +1856,10 @@ static Standard_Integer DDataStd_GetBooleanList (Draw_Interpretor& di,
       }
       di << "\n";
     } else 
-       di << "List is empty" << "\n";
+       di << "List is empty\n";
     return 0; 
   }
-  di << "DDataStd_GetBooleanList: Error" << "\n";
+  di << "DDataStd_GetBooleanList: Error\n";
   return 1; 
 }
 
@@ -1899,11 +1899,11 @@ static Standard_Integer DDataStd_GetIntegerList (Draw_Interpretor& di,
       }
       di << "\n";
     } else 
-      di << "List is empty" << "\n";
+      di << "List is empty\n";
 
     return 0; 
   }
-  di << "DDataStd_GetIntegerList: Error" << "\n";
+  di << "DDataStd_GetIntegerList: Error\n";
   return 1; 
 }
 
@@ -1943,10 +1943,10 @@ static Standard_Integer DDataStd_GetRealList (Draw_Interpretor& di,
       }
       di << "\n";
     } else
-      di << "List is empty" << "\n";
+      di << "List is empty\n";
     return 0; 
   }
-  di << "DDataStd_GetRealList: Error" << "\n";
+  di << "DDataStd_GetRealList: Error\n";
   return 1; 
 }
 
@@ -1989,11 +1989,11 @@ static Standard_Integer DDataStd_GetExtStringList (Draw_Interpretor& di,
       di << "\n";
     }
     else {
-      di << "List is empty" << "\n";
+      di << "List is empty\n";
     }
     return 0; 
   }
-  di << "DDataStd_GetExtStringList: Error" << "\n";
+  di << "DDataStd_GetExtStringList: Error\n";
   return 1; 
 } 
 
@@ -2039,10 +2039,10 @@ static Standard_Integer DDataStd_GetReferenceList (Draw_Interpretor& di,
       }
       di << "\n";
     } else 
-      di << "List is empty" << "\n";
+      di << "List is empty\n";
     return 0;
   }
-  di << "DDataStd_GetReferenceList: Error" << "\n";
+  di << "DDataStd_GetReferenceList: Error\n";
   return 1; 
 } 
 //
@@ -2080,7 +2080,7 @@ static Standard_Integer DDataStd_SetIntPackedMap (Draw_Interpretor& di,
     cout << "Map extent = " << anAtt->Extent()<<endl;
     return 0; 
   }
-  di << "DDataStd_SetIntPackedMap : Error" << "\n";
+  di << "DDataStd_SetIntPackedMap : Error\n";
   return 1;
 } 
 
@@ -2111,7 +2111,7 @@ static Standard_Integer DDataStd_GetIntPackedMap (Draw_Interpretor& di,
       }
     return 0; 
   }
-  di << "DDataStd_GetIntPackedMap : Error" << "\n";
+  di << "DDataStd_GetIntPackedMap : Error\n";
   return 1;
 } 
 
@@ -2154,7 +2154,7 @@ static Standard_Integer DDataStd_ChangeIntPackedMap_Add (Draw_Interpretor& di,
     }
     return 0;
   }
-  di << "DDataStd_ChangeIntPackedMap_Add: Error" << "\n";
+  di << "DDataStd_ChangeIntPackedMap_Add: Error\n";
   return 0; 
 }
 
@@ -2197,7 +2197,7 @@ static Standard_Integer DDataStd_ChangeIntPackedMap_Rem (Draw_Interpretor& di,
     }
     return 0;
   }
-  di << "DDataStd_ChangeIntPackedMap_Rem: Error" << "\n";
+  di << "DDataStd_ChangeIntPackedMap_Rem: Error\n";
   return 0; 
 }
 
@@ -2242,7 +2242,7 @@ static Standard_Integer DDataStd_ChangeIntPackedMap_AddRem (Draw_Interpretor& di
     }
     return 0;
   }
-  di << "DDataStd_ChangeIntPackedMap_AddRem: Error" << "\n";
+  di << "DDataStd_ChangeIntPackedMap_AddRem: Error\n";
   return 0; 
 }
 
@@ -2278,7 +2278,7 @@ static Standard_Integer DDataStd_SetIntPHugeMap (Draw_Interpretor& di,
     cout << "Map extent = " << anAtt->Extent()<<endl;
     return 0; 
   }
-  di << "DDataStd_SetIntPHugeMap : Error" << "\n";
+  di << "DDataStd_SetIntPHugeMap : Error\n";
   return 1;
 }
 
@@ -2314,7 +2314,7 @@ static Standard_Integer DDataStd_SetNDataIntegers2 (Draw_Interpretor& di,
     }    
     return 0; 
   }
-  di << "DDataStd_SetNDataIntegers2 : Error" << "\n";
+  di << "DDataStd_SetNDataIntegers2 : Error\n";
   return 1;
 } 
 //================
@@ -2354,7 +2354,7 @@ static Standard_Integer DDataStd_SetNDataIntAr2 (Draw_Interpretor& di,
     anAtt->SetArrayOfIntegers(aKey, anArr); 
     return 0; 
   }
-  di << "DDataStd_SetNDataIntArrays2 : Error" << "\n";
+  di << "DDataStd_SetNDataIntArrays2 : Error\n";
   return 1;
 } 
 
@@ -2385,7 +2385,7 @@ static Standard_Integer DDataStd_SetAsciiString (Draw_Interpretor& di,
     cout << "String = " << anAtt->Get().ToCString() << " is kept in DF" << endl;
     return 0; 
   }
-  di << "DDataStd_SetAsciiString : Error" << "\n";
+  di << "DDataStd_SetAsciiString : Error\n";
   return 1;
 } 
 //
@@ -2411,7 +2411,7 @@ static Standard_Integer DDataStd_GetAsciiString (Draw_Interpretor& di,
     cout << "String = " <<anAtt->Get().ToCString()  << endl;
     return 0; 
   }
-  di << "DDataStd_GetAsciiString : Error" << "\n";
+  di << "DDataStd_GetAsciiString : Error\n";
   return 1;
 } 
 
@@ -2456,7 +2456,7 @@ static Standard_Integer DDataStd_SetNDataIntegers (Draw_Interpretor& di,
     }    
     return 0; 
   }
-  di << "DDataStd_SetNDataIntegers : Error" << "\n";
+  di << "DDataStd_SetNDataIntegers : Error\n";
   return 1;
 } 
 
@@ -2493,7 +2493,7 @@ static Standard_Integer DDataStd_GetNDIntegers (Draw_Interpretor& di,
 
     return 0; 
   }
-  di << "DDataStd_GetNDIntegers : Error" << "\n";
+  di << "DDataStd_GetNDIntegers : Error\n";
   return 1;
 } 
 
@@ -2529,7 +2529,7 @@ static Standard_Integer DDataStd_GetNDInteger (Draw_Interpretor& di,
       return 0; 
     }
   }
-  di << "DDataStd_SetNDataIntegers : Error" << "\n";
+  di << "DDataStd_SetNDataIntegers : Error\n";
   return 1;
 } 
 
@@ -2566,7 +2566,7 @@ static Standard_Integer DDataStd_SetNDataReals (Draw_Interpretor& di,
     }    
     return 0; 
   }
-  di << "DDataStd_SetNDataReals : Error" << "\n";
+  di << "DDataStd_SetNDataReals : Error\n";
   return 1;
 } 
 
@@ -2601,7 +2601,7 @@ static Standard_Integer DDataStd_GetNDReals (Draw_Interpretor& di,
       }
     return 0; 
   }
-  di << "DDataStd_GetNDReals : Error" << "\n";
+  di << "DDataStd_GetNDReals : Error\n";
   return 1;
 } 
 
@@ -2637,7 +2637,7 @@ static Standard_Integer DDataStd_GetNDReal (Draw_Interpretor& di,
       return 0; 
     }
   }
-  di << "DDataStd_GetNDReal : Error" << "\n";
+  di << "DDataStd_GetNDReal : Error\n";
   return 1;
 } 
 
@@ -2674,7 +2674,7 @@ static Standard_Integer DDataStd_SetNDataStrings (Draw_Interpretor& di,
     }    
     return 0; 
   }
-  di << "DDataStd_SetNDataStrings : Error" << "\n";
+  di << "DDataStd_SetNDataStrings : Error\n";
   return 1;
 } 
 
@@ -2710,7 +2710,7 @@ static Standard_Integer DDataStd_GetNDStrings (Draw_Interpretor& di,
       }
     return 0; 
   }
-  di << "DDataStd_GetNDStrings : Error" << "\n";
+  di << "DDataStd_GetNDStrings : Error\n";
   return 1;
 } 
 
@@ -2747,7 +2747,7 @@ static Standard_Integer DDataStd_GetNDString (Draw_Interpretor& di,
       return 0; 
     }
   }
-  di << "DDataStd_GetNDString : Error" << "\n";
+  di << "DDataStd_GetNDString : Error\n";
   return 1;
 } 
 
@@ -2784,7 +2784,7 @@ static Standard_Integer DDataStd_SetNDataBytes (Draw_Interpretor& di,
     }    
     return 0; 
   }
-  di << "DDataStd_SetNDataBytes : Error" << "\n";
+  di << "DDataStd_SetNDataBytes : Error\n";
   return 1;
 } 
 
@@ -2819,7 +2819,7 @@ static Standard_Integer DDataStd_GetNDBytes (Draw_Interpretor& di,
       }
     return 0; 
   }
-  di << "DDataStd_GetNDBytes : Error" << "\n";
+  di << "DDataStd_GetNDBytes : Error\n";
   return 1;
 } 
 
@@ -2855,7 +2855,7 @@ static Standard_Integer DDataStd_GetNDByte (Draw_Interpretor& di,
       return 0; 
     }
   }
-  di << "DDataStd_GetNDByte : Error" << "\n";
+  di << "DDataStd_GetNDByte : Error\n";
   return 1;
 } 
 //======================== IntArrays ====================================
@@ -2895,7 +2895,7 @@ static Standard_Integer DDataStd_SetNDataIntAr (Draw_Interpretor& di,
     anAtt->SetArrayOfIntegers(aKey, anArr); 
     return 0; 
   }
-  di << "DDataStd_SetNDataIntArrays : Error" << "\n";
+  di << "DDataStd_SetNDataIntArrays : Error\n";
   return 1;
 } 
 
@@ -2933,14 +2933,14 @@ static Standard_Integer DDataStd_GetNDIntArrays (Draw_Interpretor& di,
        Standard_Integer upper = anArrValue->Upper();
        for(Standard_Integer i = lower; i<=upper;i++) {
          Standard_Integer aValue = anArrValue->Value(i);
-         cout << "\tValue("<<i<<")"<<" = " <<aValue<<endl;
+         cout << "\tValue("<<i<<") = " <<aValue<<endl;
        }
       } else 
         cout << "\tthe specified array is Null "<<endl;
     }
     return 0; 
   }
-  di << "DDataStd_GetNDIntArrays : Error" << "\n";
+  di << "DDataStd_GetNDIntArrays : Error\n";
   return 1;
 } 
 
@@ -2978,14 +2978,14 @@ static Standard_Integer DDataStd_GetNDIntArray (Draw_Interpretor& di,
        Standard_Integer upper = anArrValue->Upper();
        for(Standard_Integer i = lower; i<=upper;i++) {
          Standard_Integer aValue = anArrValue->Value(i);
-         cout << "\tValue("<<i<<")"<<" = " <<aValue<<endl;
+         cout << "\tValue("<<i<<") = " <<aValue<<endl;
        }
       } else 
        cout << "\tthe specified array is Null or not found"<<endl;
       return 0; 
     }
   }
-  di << "DDataStd_SetNDataIntArray : Error" << "\n";
+  di << "DDataStd_SetNDataIntArray : Error\n";
   return 1;
 } 
 //============================= RealArrays ==============================
@@ -3025,7 +3025,7 @@ static Standard_Integer DDataStd_SetNDataRealAr (Draw_Interpretor& di,
     anAtt->SetArrayOfReals(aKey, anArr); 
     return 0; 
   }
-  di << "DDataStd_SetNDataRealArrays : Error" << "\n";
+  di << "DDataStd_SetNDataRealArrays : Error\n";
   return 1;
 } 
 
@@ -3063,14 +3063,14 @@ static Standard_Integer DDataStd_GetNDRealArrays (Draw_Interpretor& di,
        Standard_Integer upper = anArrValue->Upper();
        for(Standard_Integer i = lower; i<=upper;i++) {
          Standard_Real aValue = anArrValue->Value(i);
-         cout << "\tValue("<<i<<")"<<" = " <<aValue<<endl;
+         cout << "\tValue("<<i<<") = " <<aValue<<endl;
        }
       } else 
         cout << "\tthe specified array is Null "<<endl;
     }
     return 0; 
   }
-  di << "DDataStd_GetNDRealArrays : Error" << "\n";
+  di << "DDataStd_GetNDRealArrays : Error\n";
   return 1;
 } 
 
@@ -3108,14 +3108,14 @@ static Standard_Integer DDataStd_GetNDRealArray (Draw_Interpretor& di,
        Standard_Integer upper = anArrValue->Upper();
        for(Standard_Integer i = lower; i<=upper;i++) {
          Standard_Real aValue = anArrValue->Value(i);
-         cout << "\tValue("<<i<<")"<<" = " <<aValue<<endl;
+         cout << "\tValue("<<i<<") = " <<aValue<<endl;
        }
       } else 
        cout << "\tthe specified array is Null or not found"<<endl;
       return 0; 
     }
   }
-  di << "DDataStd_SetNDataRealArray : Error" << "\n";
+  di << "DDataStd_SetNDataRealArray : Error\n";
   return 1;
 }
 
@@ -3240,7 +3240,7 @@ static Standard_Integer DDataStd_GetRefArrayValue (Draw_Interpretor& di,
   
   Standard_Integer index = Draw::Atoi(arg[3]);
   if (index < A->Lower() || index > A->Upper()) {
-    di << "Index is out of range" << "\n";
+    di << "Index is out of range\n";
     return 1;
   } else {
     const TDF_Label& value = A->Value(index);
index b63a75bde5b1db9fc7be7715075270e6b0c64b3e..87d139ecd0fc84748baace230e04b875716e52f0 100644 (file)
@@ -47,9 +47,9 @@ static Standard_Integer DDataStd_SetConstraint (Draw_Interpretor& di,
 {   
   if (nb < 5)
   {
-    di << "usage: SetConstraint DF entry keyword geometrie [geometrie ...]" << "\n";
-    di << "or SetConstraint DF entry \"plane\" geometrie - to set plane for existing constraint" << "\n";
-    di << "or SetConstraint DF entry \"value\" value - to set value for existing constraint" << "\n";
+    di << "usage: SetConstraint DF entry keyword geometrie [geometrie ...]\n";
+    di << "or SetConstraint DF entry \"plane\" geometrie - to set plane for existing constraint\n";
+    di << "or SetConstraint DF entry \"value\" value - to set value for existing constraint\n";
     return 1;
   }
 
@@ -122,10 +122,10 @@ static Standard_Integer DDataStd_SetConstraint (Draw_Interpretor& di,
     else if (strcmp(aT,"offset") == 0) aCT = TDataXtd_OFFSET;
     else
     {
-      di << "DDataStd_SetConstraint : unknown type, must be one of:" << "\n";
-      di << "rad/dia/minr/majr/tan/par/perp/concentric/equal/dist/angle/eqrad/symm/midp/" << "\n";
-      di << "eqdist/fix/rigid or from/axis/mate/alignf/aligna/axesa/facesa/round/offset" << "\n";
-      di << "or plane/value" << "\n";
+      di << "DDataStd_SetConstraint : unknown type, must be one of:\n";
+      di << "rad/dia/minr/majr/tan/par/perp/concentric/equal/dist/angle/eqrad/symm/midp/\n";
+      di << "eqdist/fix/rigid or from/axis/mate/alignf/aligna/axesa/facesa/round/offset\n";
+      di << "or plane/value\n";
       return 1;
     }
 
@@ -186,7 +186,7 @@ static Standard_Integer DDataStd_GetConstraint (Draw_Interpretor& di,
     }
     return 0;
   }
-  di << "DDataStd_GetConstraint : Error : not done" << "\n";
+  di << "DDataStd_GetConstraint : Error : not done\n";
   return 1;
 }
 
@@ -200,7 +200,7 @@ static Standard_Integer DDataStd_SetPattern (Draw_Interpretor& di,
 {   
   if (nb < 5)
   {
-    di << "usage: SetPattern (DF,entry,signature,NSentry[realEntry,intEntry[,NSentry,realEntry,intEntry]])" << "\n";
+    di << "usage: SetPattern (DF,entry,signature,NSentry[realEntry,intEntry[,NSentry,realEntry,intEntry]])\n";
     return 1;
   }
 
@@ -226,9 +226,9 @@ static Standard_Integer DDataStd_SetPattern (Draw_Interpretor& di,
   {
     if (nb < 7)
     {
-      di<<"usage:"<<"\n";
-      di<<"SetPattern (DF,entry,signature<=2,NSentry,realEntry,intEntry)"<<"\n";
-      di<<"SetPattern (DF,entry,2<signature<5,NSentry,realEntry,intEntry,NSentry,realEntry,intEntry)"<<"\n";
+      di<<"usage:\n";
+      di<<"SetPattern (DF,entry,signature<=2,NSentry,realEntry,intEntry)\n";
+      di<<"SetPattern (DF,entry,2<signature<5,NSentry,realEntry,intEntry,NSentry,realEntry,intEntry)\n";
       return 1;
     }
 
@@ -257,8 +257,8 @@ static Standard_Integer DDataStd_SetPattern (Draw_Interpretor& di,
     {
       if (nb < 10)
       {
-        di<<"usage:"<<"\n";
-        di<<"SetPattern (DF,entry,2<signature<5,NSentry,realEntry,intEntry,NSentry,realEntry,intEntry)"<<"\n";
+        di<<"usage:\n";
+        di<<"SetPattern (DF,entry,2<signature<5,NSentry,realEntry,intEntry,NSentry,realEntry,intEntry)\n";
         return 1;
       }
 
@@ -288,7 +288,7 @@ static Standard_Integer DDataStd_SetPattern (Draw_Interpretor& di,
   {
     if (nb > 5)
     {
-      di<<"usage: SetPattern (DF,entry,signature>=5,NSentry)"<<"\n";
+      di<<"usage: SetPattern (DF,entry,signature>=5,NSentry)\n";
       return 1;
     }
 
@@ -387,7 +387,7 @@ static Standard_Integer DDataStd_DumpPattern (Draw_Interpretor& di,
     }
     return 0;
   }
-  di << "DDataStd_DumpPattern : Error : not done" << "\n";
+  di << "DDataStd_DumpPattern : Error : not done\n";
   return 1;
 }
 
@@ -411,7 +411,7 @@ static Standard_Integer DDataStd_SetPosition (Draw_Interpretor& di,
     TDataXtd_Position::Set(L,aPos);  
     return 0;
   }
-  di << "Usage: SetPosition (DF, entry, X, Y, Z)" << "\n";
+  di << "Usage: SetPosition (DF, entry, X, Y, Z)\n";
   return 1;
 }
 
@@ -432,7 +432,7 @@ static Standard_Integer DDataStd_GetPosition (Draw_Interpretor& di,
     gp_Pnt aPos;
     if (!TDataXtd_Position::Get(L, aPos))
     {
-      di << "There is no TDataStd_Position attribute on this label" << "\n";
+      di << "There is no TDataStd_Position attribute on this label\n";
       return -1;
     }
 
@@ -441,7 +441,7 @@ static Standard_Integer DDataStd_GetPosition (Draw_Interpretor& di,
     Draw::Set(arg[5],TCollection_AsciiString(aPos.Z()).ToCString());
     return 0;
   }
-  di << "Usage: GetPosition (DF, entry, X(out), Y(out), Z(out))" << "\n";
+  di << "Usage: GetPosition (DF, entry, X(out), Y(out), Z(out))\n";
   return 1;
 }
 
index 8b49ebb5081e2e17bbd0056ba0425ffc9708687d..407ba64564c4f4e67a8ecfdc725566218ee3ef9d 100644 (file)
@@ -75,7 +75,7 @@ static Standard_Integer DDataStd_SetPoint (Draw_Interpretor& di,
       TDataXtd_Point::Set (L,p);
     }
     else {
-      di << "DDataStd_SetPoint : not a point" << "\n";
+      di << "DDataStd_SetPoint : not a point\n";
       return 1;
     }
   }  
@@ -104,7 +104,7 @@ static Standard_Integer DDataStd_SetAxis (Draw_Interpretor& di,
   else if (nb == 4) { 
     Handle(Geom_Line) LINE =  Handle(Geom_Line)::DownCast(DrawTrSurf::Get (arg[3]));
     if (LINE.IsNull()) {
-      di << "DDataStd_SetAxis : not a line" << "\n";
+      di << "DDataStd_SetAxis : not a line\n";
       return 1;
     }
     TDataXtd_Axis::Set (L,LINE->Lin()); 
@@ -135,7 +135,7 @@ static Standard_Integer DDataStd_SetPlane (Draw_Interpretor& di,
   else if (nb == 4) {
     Handle(Geom_Plane) PLANE =  Handle(Geom_Plane)::DownCast(DrawTrSurf::Get (arg[3]));
     if (PLANE.IsNull()) {
-      di << "DDataStd_SetPlane : not a plane" << "\n";
+      di << "DDataStd_SetPlane : not a plane\n";
       return 1;
     }
     TDataXtd_Plane::Set (L,PLANE->Pln()); 
@@ -237,7 +237,7 @@ static Standard_Integer DDataStd_SetGeometry (Draw_Interpretor& di,
   {
     // set NS attribute
     TopoDS_Shape s = DBRep::Get(arg[4]);  
-    if (s.IsNull()) { di <<"shape not found"<< "\n"; return 1;}  
+    if (s.IsNull()) { di <<"shape not found\n"; return 1;}  
     TNaming_Builder SI (L);
     SI.Generated(s);
   }
@@ -260,8 +260,8 @@ static Standard_Integer DDataStd_SetGeometry (Draw_Interpretor& di,
     else if (strcmp(aT,"cyl") == 0) aType = TDataXtd_CYLINDER;
     else
     {
-      di << "DDataStd_SetGeometry : unknown type, must be one of:" << "\n";
-      di << "any/pnt/lin/cir/ell/spl/pln/cyl" << "\n";
+      di << "DDataStd_SetGeometry : unknown type, must be one of:\n";
+      di << "any/pnt/lin/cir/ell/spl/pln/cyl\n";
       return 1;
     }
   }
@@ -295,7 +295,7 @@ static Standard_Integer DDataStd_GetGeometryType (Draw_Interpretor& di,
   Handle(TDataXtd_Geometry) aGA;
   if (!L.FindAttribute(TDataXtd_Geometry::GetID(),aGA))
   {
-    di << "TDataStd_Geometry : attribute not found" << "\n";
+    di << "TDataStd_Geometry : attribute not found\n";
     return 1;
   }
 
@@ -313,7 +313,7 @@ static Standard_Integer DDataStd_GetGeometryType (Draw_Interpretor& di,
   case TDataXtd_CYLINDER:  di <<"cyl"; break;
   default:
     {
-      di << "DDataStd_GetGeometry : unknown type" << "\n";
+      di << "DDataStd_GetGeometry : unknown type\n";
       return 1;
     }
   }
index 518d5b392208f9f98bd537b85f06cae9989c0daf..c0f718cbc63d20a238b6bf437e14351298b6261b 100644 (file)
@@ -77,7 +77,7 @@ static Standard_Integer DDataStd_PNT (Draw_Interpretor& di,
     TDataXtd_Point::Set (L,gp_Pnt(x,y,z));
     return 0;
   }  
-  di << "DDataStd_PNT : Error : not done" << "\n";
+  di << "DDataStd_PNT : Error : not done\n";
   return 1;
 }
  
@@ -96,7 +96,7 @@ static Standard_Integer DDataStd_Rmdraw (Draw_Interpretor& di,
     if (!D3D.IsNull()) dout.RemoveDrawable(D3D); 
     return 0;
   }
-  di << "DDataStd_Rmdraw : Error : not done" << "\n";
+  di << "DDataStd_Rmdraw : Error : not done\n";
   return 1;
 }
 
@@ -125,7 +125,7 @@ static Standard_Integer DDataStd_DrawOwner (Draw_Interpretor& di,
     else di << 0;
     return 0;
   }
-  di << "DDataStd_DrawOwner : Error" << "\n";
+  di << "DDataStd_DrawOwner : Error\n";
   return 1;
 }
 
@@ -146,7 +146,7 @@ static Standard_Integer DDataStd_DrawDisplay (Draw_Interpretor& di,
     DDataStd_DrawPresentation::Display(L);
     return 0;
   }
-  di << "DDataStd_DrawDisplay : Error" << "\n";
+  di << "DDataStd_DrawDisplay : Error\n";
   return 1;
 }
 
@@ -189,7 +189,7 @@ static Standard_Integer DDataStd_DrawErase (Draw_Interpretor& di,
     DDataStd_DrawPresentation::Erase(L);
     return 0;
   }
-  di << "DDataStd_DrawErase : Error" << "\n";
+  di << "DDataStd_DrawErase : Error\n";
   return 1;
 }
 
@@ -210,7 +210,7 @@ static Standard_Integer DDataStd_DrawUpdate (Draw_Interpretor& di,
     DDataStd_DrawPresentation::Update(L);
     return 0;
   }
-  di << "DDataStd_DrawUpdate : Error" << "\n";
+  di << "DDataStd_DrawUpdate : Error\n";
   return 1;
 }
 
index e54f6d457d04e825183627ff495e86d0f21f2813..16131732135f435c3ccb5532148fb339d6c11cb3 100644 (file)
@@ -71,7 +71,7 @@ static Standard_Integer DDataStd_SetName (Draw_Interpretor& di,
     N = TDataStd_Name::Set(L,arg[3]); 
     return 0;
   }
-  di << "DDataStd_SetName : Error" << "\n";
+  di << "DDataStd_SetName : Error\n";
   return 1;
 }
 
@@ -97,7 +97,7 @@ static Standard_Integer DDataStd_GetName (Draw_Interpretor& di,
     di << s.ToCString();
     return 0;
   }
-  di << "DDataStd_SetName : Error" << "\n";
+  di << "DDataStd_SetName : Error\n";
   return 1;
 }
 
index 51915f8b4ca82389ab85ba7449759d07b018c8ec..7173f59efeb4e3f51b7590c9002cec2391bff94d 100644 (file)
@@ -48,14 +48,14 @@ static Standard_Integer DDataStd_SetShape (Draw_Interpretor& di,
     Handle(TDF_Data) DF;
     if (!DDF::GetDF(arg[1],DF)) return 1;  
     TopoDS_Shape s = DBRep::Get(arg[3]);  
-    if (s.IsNull()) { di <<"shape not found"<< "\n"; return 1;}  
+    if (s.IsNull()) { di <<"shape not found\n"; return 1;}  
     TDF_Label L;
     DDF::AddLabel(DF, arg[2], L);
     TNaming_Builder SI (L);
     SI.Generated(s);
     return 0;
   }
-  di << "DDataStd_SetShape : Error" << "\n";
+  di << "DDataStd_SetShape : Error\n";
   return 1;
 }
 
index be307540daadfd33c2c6bb2185ab5db0c27502fe..b5d3d93174bd476923bef4e17f5c60ef816fcac2 100644 (file)
@@ -136,7 +136,7 @@ static Standard_Integer DDataStd_NewNoteBook (Draw_Interpretor& di,
     TDataStd_NoteBook::New(L);
     return 0;
   }
-  di << "DDataStd_NewNoteBook : Error" << "\n";
+  di << "DDataStd_NewNoteBook : Error\n";
   return 1;
 }
 
index 1026d401d11f4e7aa3ff201a7dfa9e3db975002f..b7ac5c8d807bf2bfb974e0300d04e88001d98195 100644 (file)
@@ -53,7 +53,7 @@ static Standard_Integer DDataStd_SetNode (Draw_Interpretor& di,
     return 0;
   } else if (n == 4) {
     if (!Standard_GUID::CheckGUIDFormat(a[3])) {
-      di<<"DDataStd_SetNode: The format of GUID is invalid"<<"\n";
+      di<<"DDataStd_SetNode: The format of GUID is invalid\n";
       return 1;
     }
     const Standard_GUID ID(a[3]);
@@ -61,7 +61,7 @@ static Standard_Integer DDataStd_SetNode (Draw_Interpretor& di,
     DDF::ReturnLabel(di,TN->Label());
     return 0;    
   }
-  di << "DDataStd_SetNode : Error" << "\n";
+  di << "DDataStd_SetNode : Error\n";
   return 1;
 }    
 
@@ -84,7 +84,7 @@ static Standard_Integer DDataStd_AppendNode (Draw_Interpretor& di,
       ID=Standard_GUID(TDataStd_TreeNode::GetDefaultTreeID());
     else{
       if (!Standard_GUID::CheckGUIDFormat(a[4])) {
-       di<<"DDataStd_AppendNode: The format of GUID is invalid"<<"\n";
+       di<<"DDataStd_AppendNode: The format of GUID is invalid\n";
        return 1;
       }
       const Standard_GUID varID(a[4]);
@@ -97,17 +97,17 @@ static Standard_Integer DDataStd_AppendNode (Draw_Interpretor& di,
     DDF::AddLabel(DF,a[3],L);
     if ( (L.FindAttribute(ID,child))
        &&(!child->IsRoot()) ){
-      di << "DDataStd_AppendNode : Error : childTreeNode don't detach" << "\n";
+      di << "DDataStd_AppendNode : Error : childTreeNode don't detach\n";
       return 1;
     }
     child = TDataStd_TreeNode::Set(L,ID);
     if (!father->Append(child)) return 1;
 #ifdef OCCT_DEBUG
-    di<<"AppendNode: OK"<<"\n";
+    di<<"AppendNode: OK\n";
 #endif
     return 0;
   }
-  di << "DDataStd_AppendNode : Error" << "\n";
+  di << "DDataStd_AppendNode : Error\n";
   return 1;
 }
 
@@ -130,7 +130,7 @@ static Standard_Integer DDataStd_PrependNode (Draw_Interpretor& di,
       ID=Standard_GUID(TDataStd_TreeNode::GetDefaultTreeID());
     else{
       if (!Standard_GUID::CheckGUIDFormat(a[4])) {
-       di<<"DDataStd_PrependNode: The format of GUID is invalid"<<"\n";
+       di<<"DDataStd_PrependNode: The format of GUID is invalid\n";
        return 1;
       }
       const Standard_GUID varID(a[4]);
@@ -143,17 +143,17 @@ static Standard_Integer DDataStd_PrependNode (Draw_Interpretor& di,
     DDF::AddLabel(DF,a[3],L);
     if ( (L.FindAttribute(ID,child))
        &&(!child->IsRoot()) ){
-      di << "DDataStd_PrependNode : Error : childTreeNode don't detach" << "\n";
+      di << "DDataStd_PrependNode : Error : childTreeNode don't detach\n";
       return 1;
     }
     child = TDataStd_TreeNode::Set(L,ID);
     if (!father->Prepend(child)) return 1;
 #ifdef OCCT_DEBUG
-    di<<"PrependNode: OK"<<"\n";
+    di<<"PrependNode: OK\n";
 #endif
     return 0;
   }
-  di << "DDataStd_PrependNode : Error" << "\n";
+  di << "DDataStd_PrependNode : Error\n";
   return 1;
 }
 
@@ -176,7 +176,7 @@ static Standard_Integer DDataStd_RootNode (Draw_Interpretor& di,
       ID=Standard_GUID(TDataStd_TreeNode::GetDefaultTreeID());
     else{
       if (!Standard_GUID::CheckGUIDFormat(a[3])) {
-       di<<"DDataStd_RootNode: The format of GUID is invalid"<<"\n";
+       di<<"DDataStd_RootNode: The format of GUID is invalid\n";
        return 1;
       }
       const Standard_GUID varID(a[3]);
@@ -187,7 +187,7 @@ static Standard_Integer DDataStd_RootNode (Draw_Interpretor& di,
     DDF::ReturnLabel(di,TN->Root()->Label());
     return 0;
   }
-  di << "DDataStd_RootNode : Error" << "\n";
+  di << "DDataStd_RootNode : Error\n";
   return 1;
 }
 
@@ -210,7 +210,7 @@ static Standard_Integer DDataStd_InsertNodeBefore(Draw_Interpretor& di,
       ID=Standard_GUID(TDataStd_TreeNode::GetDefaultTreeID());
     else{
       if (!Standard_GUID::CheckGUIDFormat(a[4])) {
-       di<<"DDataStd_InsertNodeBefore: The format of GUID is invalid"<<"\n";
+       di<<"DDataStd_InsertNodeBefore: The format of GUID is invalid\n";
        return 1;
       }
       const Standard_GUID varID(a[4]);
@@ -226,7 +226,7 @@ static Standard_Integer DDataStd_InsertNodeBefore(Draw_Interpretor& di,
     if (!current->InsertBefore(TN)) return 1;
     return 0;
   }
-  di << "DDataStd_InsertBefore : Error" << "\n";
+  di << "DDataStd_InsertBefore : Error\n";
   return 1;
 }
 
@@ -249,7 +249,7 @@ static Standard_Integer DDataStd_InsertNodeAfter(Draw_Interpretor& di,
       ID=Standard_GUID(TDataStd_TreeNode::GetDefaultTreeID());
     else{
       if (!Standard_GUID::CheckGUIDFormat(a[4])) {
-       di<<"DDataStd_InsertNodeAfter: The format of GUID is invalid"<<"\n";
+       di<<"DDataStd_InsertNodeAfter: The format of GUID is invalid\n";
        return 1;
       }
       const Standard_GUID varID(a[4]);
@@ -264,7 +264,7 @@ static Standard_Integer DDataStd_InsertNodeAfter(Draw_Interpretor& di,
     if (!current->InsertAfter(TN)) return 1;
     return 0;
   }
-  di << "DDataStd_InsertNodeAfter : Error" << "\n";
+  di << "DDataStd_InsertNodeAfter : Error\n";
   return 1;
 }
 
@@ -285,7 +285,7 @@ static Standard_Integer DDataStd_DetachNode (Draw_Interpretor& di,Standard_Integ
       ID=Standard_GUID(TDataStd_TreeNode::GetDefaultTreeID());
     else{
       if (!Standard_GUID::CheckGUIDFormat(a[3])) {
-       di<<"DDataStd_DetachNode: The format of GUID is invalid"<<"\n";
+       di<<"DDataStd_DetachNode: The format of GUID is invalid\n";
        return 1;
       }
       const Standard_GUID varID(a[3]);
@@ -294,10 +294,10 @@ static Standard_Integer DDataStd_DetachNode (Draw_Interpretor& di,Standard_Integ
 
     if (!DDF::Find(DF,a[2],ID,TN)) return 1;
     if (!TN->Remove())
-      di << "Can't Detach the TreeNode" << "\n";
+      di << "Can't Detach the TreeNode\n";
     return 0; 
   } 
-  di << "DDataStd_DetachNode : Error" << "\n";
+  di << "DDataStd_DetachNode : Error\n";
   return 1;
 }
 
@@ -384,7 +384,7 @@ static Standard_Integer DDataStd_ChildNodeIterate (Draw_Interpretor& di,
       ID=Standard_GUID(TDataStd_TreeNode::GetDefaultTreeID());
     else{
       if (!Standard_GUID::CheckGUIDFormat(a[4])) {
-       di<<"DDataStd_ChildNodeIterate: The format of GUID is invalid"<<"\n";
+       di<<"DDataStd_ChildNodeIterate: The format of GUID is invalid\n";
        return 1;
       }
       const Standard_GUID varID(a[4]);
@@ -392,7 +392,7 @@ static Standard_Integer DDataStd_ChildNodeIterate (Draw_Interpretor& di,
     }
 
     if (!DDF::Find(DF, a[2], ID, TN)) return 1; 
-    //di<<"TDataStd_ChildNodeIterator: "<<"\n";
+    //di<<"TDataStd_ChildNodeIterator: \n";
     TDataStd_ChildNodeIterator itr(TN, AllLevels);
     for (; itr.More(); itr.Next()) {
       Value = itr.Value();
@@ -406,7 +406,7 @@ static Standard_Integer DDataStd_ChildNodeIterate (Draw_Interpretor& di,
     di<<"\n";
     return 0;
   }
-  di << "DDataStd_ChildNodeIterate : Error" << "\n";
+  di << "DDataStd_ChildNodeIterate : Error\n";
   return 1;
 }  
 
@@ -431,7 +431,7 @@ static Standard_Integer DDataStd_InitChildNodeIterator (Draw_Interpretor& di,
       ID=Standard_GUID(TDataStd_TreeNode::GetDefaultTreeID());
     else{
       if (!Standard_GUID::CheckGUIDFormat(a[4])) {
-       di<<"DDataStd_ChildNodeIterator: The format of GUID is invalid"<<"\n";
+       di<<"DDataStd_ChildNodeIterator: The format of GUID is invalid\n";
        return 1;
       }
       const Standard_GUID varID(a[4]);
@@ -443,7 +443,7 @@ static Standard_Integer DDataStd_InitChildNodeIterator (Draw_Interpretor& di,
     cni.Initialize(TN, AllLevels);
     return 0;
   }
-  di << "DDataStd_InitChildNodeIterator : Error" << "\n";
+  di << "DDataStd_InitChildNodeIterator : Error\n";
   return 1;
 }  
 
@@ -458,11 +458,11 @@ static Standard_Integer DDataStd_ChildNodeMore (Draw_Interpretor& di,
 {
   if (cni.More()) {
     //cout<<"TRUE"<<endl;
-    di<<"TRUE"<<"\n";
+    di<<"TRUE\n";
   }
   else {
     //cout<<"FALSE"<<endl;
-    di<<"FALSE"<<"\n";  
+    di<<"FALSE\n";  
   }
   return 0;
 }  
index c0a9f068a973206fe5b8c7772f2c82485c108f8b..9b5b2fa1916c9c218d4db7d1d7e03d04752e51d9 100644 (file)
@@ -75,7 +75,7 @@ static Standard_Integer DDocStd_ListDocuments (Draw_Interpretor& di,
     }
     return 0;
   }
-  di << "DDocStd_ListDocuments : Error" << "\n";
+  di << "DDocStd_ListDocuments : Error\n";
   return 1; 
 }
 
@@ -96,10 +96,10 @@ static Standard_Integer DDocStd_NewDocument (Draw_Interpretor& di,
       D = new TDocStd_Document("dummy");  
       DD = new DDocStd_DrawDocument(D);  
       Draw::Set(a[1],DD);       
-      di << "document (not handled by application)  " << a[1] << " created" << "\n";  
+      di << "document (not handled by application)  " << a[1] << " created\n";  
       DDocStd::ReturnLabel(di,D->Main()); 
     }    
-    else di << a[1] << " is already a document" << "\n";
+    else di << a[1] << " is already a document\n";
     return 0;
   }
   if (nb == 3) {   
@@ -110,13 +110,13 @@ static Standard_Integer DDocStd_NewDocument (Draw_Interpretor& di,
       DD = new DDocStd_DrawDocument(D);  
       TDataStd_Name::Set(D->GetData()->Root(),a[1]);  
       Draw::Set(a[1],DD);    
-      di << "document " << a[1] << " created" << "\n";    
+      di << "document " << a[1] << " created\n";    
       DDocStd::ReturnLabel(di,D->Main()); 
     }
-    else di << a[1] << " is already a document" << "\n";
+    else di << a[1] << " is already a document\n";
     return 0;
   }   
-  di << "DDocStd_NewDocument : Error" << "\n";
+  di << "DDocStd_NewDocument : Error\n";
   return 1;
 }
 
@@ -136,7 +136,7 @@ static Standard_Integer DDocStd_Open (Draw_Interpretor& di,
     Handle(TDocStd_Document) D;
     Standard_Integer insession = A->IsInSession(path);
     if (insession > 0) {  
-      di <<"document " << insession << "  is already in session" << "\n";
+      di <<"document " << insession << "  is already in session\n";
       return 0;
     }
     PCDM_ReaderStatus theStatus = A->Open(path,D);
@@ -149,32 +149,32 @@ static Standard_Integer DDocStd_Open (Draw_Interpretor& di,
       switch ( theStatus ) {
       case PCDM_RS_AlreadyRetrieved: 
       case PCDM_RS_AlreadyRetrievedAndModified: {
-       di << " already retrieved " << "\n" ;  
+       di << " already retrieved \n" ;  
        break;
       }
       case PCDM_RS_NoDriver: {
-       di << " could not retrieve , no Driver to make it " <<"\n" ;
+       di << " could not retrieve , no Driver to make it \n" ;
        break ;
       }
       case PCDM_RS_UnknownDocument:
       case PCDM_RS_NoModel: {
-       di << " could not retrieve , Unknown Document or No Model " <<"\n";
+       di << " could not retrieve , Unknown Document or No Model \n";
        break ; 
       }
       case PCDM_RS_TypeNotFoundInSchema:
       case PCDM_RS_UnrecognizedFileFormat: {
-       di << " could not retrieve , Type not found or Unrecognized File Format" <<"\n";
+       di << " could not retrieve , Type not found or Unrecognized File Format\n";
        break ;
       }
       case PCDM_RS_PermissionDenied: {
-       di << " could not retrieve , permission denied " << "\n" ;  
+       di << " could not retrieve , permission denied \n" ;  
        break;
       }
       default:
-       di << " could not retrieve " << "\n" ;  
+       di << " could not retrieve \n" ;  
        break;
       }
-      di << "DDocStd_Open : Error" << "\n";
+      di << "DDocStd_Open : Error\n";
     }  
   }
   return 1;
@@ -195,13 +195,13 @@ static Standard_Integer DDocStd_Save (Draw_Interpretor& di,
     Handle(TDocStd_Application) A;
     if (!DDocStd::Find(A)) return 1;  
     if (!D->IsSaved()) {
-      di << "this document has never been saved" << "\n";
+      di << "this document has never been saved\n";
       return 0;
     }
     A->Save(D);
     return 0; 
   }
-  di << "DDocStd_Save : Error" << "\n";
+  di << "DDocStd_Save : Error\n";
   return 1;
 }
 
@@ -224,27 +224,27 @@ static Standard_Integer DDocStd_SaveAs (Draw_Interpretor& di,
     if (theStatus != PCDM_SS_OK ) {
       switch ( theStatus ) {
         case PCDM_SS_DriverFailure: {
-          di << "Error saving document: Could not store , no driver found to make it" << "\n";
+          di << "Error saving document: Could not store , no driver found to make it\n";
           break ;
         }
         case PCDM_SS_WriteFailure: {
-          di << "Error saving document: Write access failure" << "\n";
+          di << "Error saving document: Write access failure\n";
           break;
         }
         case PCDM_SS_Failure: {
-          di << "Error saving document: Write failure" << "\n" ;
+          di << "Error saving document: Write failure\n" ;
           break;
         }
         case PCDM_SS_Doc_IsNull: {
-          di << "Error saving document: No document to save" << "\n";
+          di << "Error saving document: No document to save\n";
           break ;
         }
         case PCDM_SS_No_Obj: {
-          di << "Error saving document: No objects written" << "\n";
+          di << "Error saving document: No objects written\n";
           break;
         }
         case PCDM_SS_Info_Section_Error: {
-          di << "Error saving document: Write info section failure" << "\n" ;
+          di << "Error saving document: Write info section failure\n" ;
           break;
         }
         default:
@@ -255,7 +255,7 @@ static Standard_Integer DDocStd_SaveAs (Draw_Interpretor& di,
       return 0; 
     }
   }
-  di << "DDocStd_SaveAs : Error not enough argument" << "\n";
+  di << "DDocStd_SaveAs : Error not enough argument\n";
   return 1;
 }
 
@@ -323,7 +323,7 @@ static Standard_Integer DDocStd_IsInSession (Draw_Interpretor& di,
     di << A->IsInSession(a[1]);
     return 0;
   }  
-  di << "DDocStd_IsInSession : Error" << "\n";
+  di << "DDocStd_IsInSession : Error\n";
   return 1;
 }
 
@@ -348,7 +348,7 @@ static Standard_Integer DDocStd_OSDPath (Draw_Interpretor& di,
     di << "Extension : " << path.Extension().ToCString() << "\n";
     return 0;
   }
-  di << "DDocStd_OSDPath : Error" << "\n";
+  di << "DDocStd_OSDPath : Error\n";
   return 1;
 }
 
@@ -378,7 +378,7 @@ static Standard_Integer DDocStd_Path (Draw_Interpretor& di,
     di << "Path      : " << PathAsciiString.ToCString() << "\n";
     return 0;
   }
-  di << "DDocStd_Path : Error" << "\n";
+  di << "DDocStd_Path : Error\n";
   return 1;
 }
 
@@ -400,7 +400,7 @@ static Standard_Integer DDocStd_AddComment (Draw_Interpretor& di,
     D->AddComment(comment);
     return 0; 
   }
-  di << "DDocStd_AddComment : Wrong arguments number" << "\n";
+  di << "DDocStd_AddComment : Wrong arguments number\n";
   return 1;
 }
 
@@ -428,7 +428,7 @@ static Standard_Integer DDocStd_PrintComments (Draw_Interpretor& di,
 
     return 0; 
   }
-  di << "DDocStd_PrintComments : Wrong arguments number" << "\n";
+  di << "DDocStd_PrintComments : Wrong arguments number\n";
   return 1;
 }
 
index dd5a9170a8d7a2438510b29e4bc72b1ff0c5a50f..6a6ca12b782185aa7639aaecb13af5c4d5c489cb 100644 (file)
@@ -61,7 +61,7 @@ static Standard_Integer DDocStd_Main (Draw_Interpretor& di,Standard_Integer nb,
     DDocStd::ReturnLabel(di,DOC->Main());
     return 0;
   }   
-  di << "DDocStd_Main : Error" << "\n";
+  di << "DDocStd_Main : Error\n";
   return 1;  
 }
 
@@ -89,7 +89,7 @@ static Standard_Integer DDocStd_Format (Draw_Interpretor& di,Standard_Integer n,
     D->ChangeStorageFormat(a[2]);  
     return 0;
   }  
-  di << "DDocStd_Format : Error" << "\n";
+  di << "DDocStd_Format : Error\n";
   return 1;
 }
 
@@ -109,11 +109,11 @@ static Standard_Integer DDocStd_Copy (Draw_Interpretor& di,Standard_Integer n, c
     TDocStd_XLinkTool XLinkTool;
     XLinkTool.Copy(L,XL);
     if (!XLinkTool.IsDone()) {
-      di << "DDocStd_XLinkTool : not done" << "\n";
+      di << "DDocStd_XLinkTool : not done\n";
     }
     return 0;
   }  
-  di << "DDocStd_XLinkTool : Error" << "\n";
+  di << "DDocStd_XLinkTool : Error\n";
   return 1; 
 }
 
@@ -134,11 +134,11 @@ static Standard_Integer DDocStd_CopyWithLink (Draw_Interpretor& di,Standard_Inte
     TDocStd_XLinkTool XLinkTool;
     XLinkTool.CopyWithLink(L,XL);
     if (!XLinkTool.IsDone()) {
-      di << "DDocStd_CopyWithLink : not done" << "\n";
+      di << "DDocStd_CopyWithLink : not done\n";
     }
     return 0;
   }  
-  di << "DDocStd_CopyWithLink : Error" << "\n";
+  di << "DDocStd_CopyWithLink : Error\n";
   return 1; 
 }
 
@@ -157,20 +157,20 @@ static Standard_Integer DDocStd_UpdateLink (Draw_Interpretor& di,Standard_Intege
       if (!DDocStd::Find(DOC,a[2],TDF_Reference::GetID(),REF)) return 1;
       XLinkTool.UpdateLink(REF->Label());
       if (!XLinkTool.IsDone()) {
-       di << "DDocStd_UpdateXLink : not done" << "\n";
+       di << "DDocStd_UpdateXLink : not done\n";
       }
     }
     else {
       for (TDocStd_XLinkIterator xit (DOC); xit.More(); xit.Next()) {
        XLinkTool.UpdateLink(xit.Value()->Label());
        if (!XLinkTool.IsDone()) {
-         di << "DDocStd_UpdateXLink : not done" << "\n";
+         di << "DDocStd_UpdateXLink : not done\n";
        }
       }
     }
     return 0;
   }
-  di << "DDocStd_UpdateXLink : Error" << "\n";
+  di << "DDocStd_UpdateXLink : Error\n";
   return 1; 
 }
 
@@ -220,10 +220,10 @@ static Standard_Integer DDocStd_Undo (Draw_Interpretor& di,Standard_Integer n, c
 
   for (i = 1; i <= step; i++) {
     if (undo) {
-      if (!D->Undo()) di << "Undo not done" << "\n";
+      if (!D->Undo()) di << "Undo not done\n";
     }
     else {
-      if (!D->Redo()) di << "Redo not done" << "\n";
+      if (!D->Redo()) di << "Redo not done\n";
     }
   }
   
@@ -305,7 +305,7 @@ static Standard_Integer DDocStd_DumpDocument (Draw_Interpretor& di,
     if (D->IsSaved()) 
       di << "DOCUMENT      : " << TCollection_AsciiString(D->GetName(),'?').ToCString();
     else 
-      di << "DOCUMENT      : " << "not saved";
+      di << "DOCUMENT      : not saved";
     di << "\n";
     // format
     //cout << "FORMAT        : " << D->StorageFormat();
@@ -337,7 +337,7 @@ static Standard_Integer DDocStd_DumpDocument (Draw_Interpretor& di,
     if (!TDocStd_Modified::IsEmpty(D->Main())) {
       di << "MODIFICATIONS : ";     
       TDF_MapIteratorOfLabelMap it (D->GetModified()); 
-      if (!it.More()) di << "VALID" << "\n"; 
+      if (!it.More()) di << "VALID\n"; 
       else {
        TCollection_AsciiString string;  
        for (;it.More();it.Next()) { 
@@ -349,7 +349,7 @@ static Standard_Integer DDocStd_DumpDocument (Draw_Interpretor& di,
     }
     return 0;
   } 
-  di << "DDocStd_DumpDocument : Error" << "\n";
+  di << "DDocStd_DumpDocument : Error\n";
   return 1;
 }
 
@@ -369,7 +369,7 @@ static Standard_Integer DDocStd_SetModified (Draw_Interpretor& di,Standard_Integ
     }
     return 0; 
   }
-  di << "DDocStd_SetModified : Error" << "\n";
+  di << "DDocStd_SetModified : Error\n";
   return 1;
 }
 
@@ -400,7 +400,7 @@ static Standard_Integer DDocStd_Propagate (Draw_Interpretor& di,Standard_Integer
 //     D->PurgeModified();
 //     return 0;
 //   }
-  di << "DDocStd_Propagate : not implemented" << "\n";
+  di << "DDocStd_Propagate : not implemented\n";
   return 1;
 }
 
index d431c1c557ffe9d668ef1244159f6768fad8125e..0cddf6c9d397a7a5fc4b66d928cae42857691dc2 100644 (file)
@@ -63,20 +63,20 @@ static int mtmCreate (Draw_Interpretor& /*di*/, int n, const char** a)
 static int mtmAddDocument (Draw_Interpretor& di, int n, const char** a)
 {
   if(sMultiTransactionManager.IsNull()) {
-    di << "Error   : manager is not initialised" << "\n";
+    di << "Error   : manager is not initialised\n";
     return 1;
   }
   if(n > 1) {
     Handle(DDocStd_DrawDocument) aDrawDoc =
       Handle(DDocStd_DrawDocument)::DownCast(Draw::Get(a[1]));
     if(aDrawDoc.IsNull()) {
-      di << "Error   : wrong document name" << "\n";
+      di << "Error   : wrong document name\n";
       return 1;
     }
     sMultiTransactionManager->AddDocument(aDrawDoc->GetDocument());
   }
   else {
-    di << "Error   : document name is not defined" << "\n";
+    di << "Error   : document name is not defined\n";
     return 1;
   }
   return 0;
@@ -90,7 +90,7 @@ static int mtmAddDocument (Draw_Interpretor& di, int n, const char** a)
 static int mtmOpenTransaction (Draw_Interpretor& di, int /*n*/, const char** /*a*/)
 {
   if(sMultiTransactionManager.IsNull()) {
-    di << "Error   : manager is not initialised" << "\n";
+    di << "Error   : manager is not initialised\n";
     return 1;
   }
   sMultiTransactionManager->OpenCommand();
@@ -105,7 +105,7 @@ static int mtmOpenTransaction (Draw_Interpretor& di, int /*n*/, const char** /*a
 static int mtmCommitTransaction (Draw_Interpretor& di, int n, const char** a)
 {
   if(sMultiTransactionManager.IsNull()) {
-    di << "Error   : manager is not initialised" << "\n";
+    di << "Error   : manager is not initialised\n";
     return 1;
   }
   if(n > 1)
@@ -123,7 +123,7 @@ static int mtmCommitTransaction (Draw_Interpretor& di, int n, const char** a)
 static int mtmAbortTransaction (Draw_Interpretor& di, int /*n*/, const char** /*a*/)
 {
   if(sMultiTransactionManager.IsNull()) {
-    di << "Error   : manager is not initialised" << "\n";
+    di << "Error   : manager is not initialised\n";
     return 1;
   }
   sMultiTransactionManager->AbortCommand();
@@ -138,15 +138,15 @@ static int mtmAbortTransaction (Draw_Interpretor& di, int /*n*/, const char** /*
 static int mtmDump (Draw_Interpretor& di, int /*n*/, const char** /*a*/)
 {
   if(sMultiTransactionManager.IsNull()) {
-    di << "Error   : manager is not initialised" << "\n";
+    di << "Error   : manager is not initialised\n";
     return 1;
   }
-  di <<         "*** Dump of MTM ***" << "\n";
+  di <<         "*** Dump of MTM ***\n";
   //sMultiTransactionManager->DumpTransaction(cout);
   Standard_SStream aStream;
   sMultiTransactionManager->DumpTransaction(aStream);
   di << aStream;
-  di << "\n" << "***     End     ***" << "\n";
+  di << "\n***     End     ***\n";
   return 0;
 }
 
@@ -158,7 +158,7 @@ static int mtmDump (Draw_Interpretor& di, int /*n*/, const char** /*a*/)
 static int mtmUndo (Draw_Interpretor& di, int /*n*/, const char** /*a*/)
 {
   if(sMultiTransactionManager.IsNull()) {
-    di << "Error   : manager is not initialised" << "\n";
+    di << "Error   : manager is not initialised\n";
     return 1;
   }
   sMultiTransactionManager->Undo();
@@ -173,7 +173,7 @@ static int mtmUndo (Draw_Interpretor& di, int /*n*/, const char** /*a*/)
 static int mtmRedo (Draw_Interpretor& di, int /*n*/, const char** /*a*/)
 {
   if(sMultiTransactionManager.IsNull()) {
-    di << "Error   : manager is not initialised" << "\n";
+    di << "Error   : manager is not initialised\n";
     return 1;
   }
   sMultiTransactionManager->Redo();
@@ -188,7 +188,7 @@ static int mtmRedo (Draw_Interpretor& di, int /*n*/, const char** /*a*/)
 static int mtmNestedMode (Draw_Interpretor& di, int n, const char** a)
 {
   if(sMultiTransactionManager.IsNull()) {
-    di << "Error   : manager is not initialised" << "\n";
+    di << "Error   : manager is not initialised\n";
     return 1;
   }
   Standard_Boolean aMode = Standard_False;
@@ -206,7 +206,7 @@ static int mtmNestedMode (Draw_Interpretor& di, int n, const char** a)
 
 static Standard_Integer XAttributeValue (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
-  if ( argc <4 ) { di << "ERROR: Too few args" << "\n"; return 0; }
+  if ( argc <4 ) { di << "ERROR: Too few args\n"; return 0; }
   Handle(DDF_Browser) browser =
     Handle(DDF_Browser)::DownCast (Draw::Get(argv[1], Standard_True)); 
   if ( browser.IsNull() ) { di << "ERROR: Not a browser: " << argv[1] << "\n"; return 0; }
@@ -219,7 +219,7 @@ static Standard_Integer XAttributeValue (Draw_Interpretor& di, Standard_Integer
   TDF_AttributeIterator itr(lab,Standard_False);
   for (Standard_Integer i=1; itr.More() && i < num; i++) itr.Next();
   
-  if ( ! itr.More() ) { di << "ERROR: Attribute #" << num << " not found" << "\n"; return 0; }
+  if ( ! itr.More() ) { di << "ERROR: Attribute #" << num << " not found\n"; return 0; }
     
   const Handle(TDF_Attribute)& att = itr.Value();
   if ( att->IsKind(STANDARD_TYPE(TDataStd_TreeNode)) )
@@ -331,20 +331,20 @@ static Standard_Integer XAttributeValue (Draw_Interpretor& di, Standard_Integer
 static int mtmRemoveDocument (Draw_Interpretor& di, int n, const char** a)
 {
   if(sMultiTransactionManager.IsNull()) {
-    di << "Error   : manager is not initialised" << "\n";
+    di << "Error   : manager is not initialised\n";
     return 1;
   }
   if(n > 1) {
     Handle(DDocStd_DrawDocument) aDrawDoc =
        Handle(DDocStd_DrawDocument)::DownCast(Draw::Get(a[1]));
     if(aDrawDoc.IsNull()) {
-      di << "Error   : wrong document name" << "\n";
+      di << "Error   : wrong document name\n";
       return 1;
     }
     sMultiTransactionManager->RemoveDocument(aDrawDoc->GetDocument());
   }
   else {
-    di << "Error   : document name is not defined" << "\n";
+    di << "Error   : document name is not defined\n";
     return 1;
   }
   return 0;
index 31fa935a83c17b749e5f607acc444bfc0a4432f0..aefe5e7d98a1427b92484199496cedaeab3a1a66 100644 (file)
@@ -67,7 +67,7 @@ static Standard_Integer DDocStd_DumpCommand (Draw_Interpretor& di,
     TDF_AttributeDeltaList added, forgoten, resumed, removed, modified;
     Handle(TDF_AttributeDelta) AD;
     if (D->GetUndos().IsEmpty()) {   
-      di << "no UNDO available" << "\n";
+      di << "no UNDO available\n";
       return 0;
     }
     Handle(TDF_Delta) DELTA = D->GetUndos().Last();
@@ -90,7 +90,7 @@ static Standard_Integer DDocStd_DumpCommand (Draw_Interpretor& di,
     di << "ADDED    :"; 
     it.Initialize(added);
     if (it.More()) di << "\n";
-    else di << " empty" << "\n";
+    else di << " empty\n";
     for (;it.More();it.Next()) {   
       TDF_Tool::Entry (it.Value()->Label(),string);
       di << "- " << string.ToCString() << " ";      
@@ -102,7 +102,7 @@ static Standard_Integer DDocStd_DumpCommand (Draw_Interpretor& di,
     di << "FORGOTEN :";
     it.Initialize(forgoten);    
     if (it.More()) di << "\n";
-    else di << " empty" << "\n";
+    else di << " empty\n";
     for (;it.More();it.Next()) {   
       TDF_Tool::Entry (it.Value()->Label(),string);
       di << "- " << string.ToCString() << " ";
@@ -114,7 +114,7 @@ static Standard_Integer DDocStd_DumpCommand (Draw_Interpretor& di,
     di << "RESUMED  :"; 
     it.Initialize(resumed);
     if (it.More()) di << "\n";
-    else di << " empty" << "\n";
+    else di << " empty\n";
     for (;it.More();it.Next()) {   
       TDF_Tool::Entry (it.Value()->Label(),string);
       di << "- " << string.ToCString() << " ";
@@ -126,7 +126,7 @@ static Standard_Integer DDocStd_DumpCommand (Draw_Interpretor& di,
     di << "REMOVED  :";     
     it.Initialize(removed);
     if (it.More()) di << "\n";
-    else di << " empty" << "\n";
+    else di << " empty\n";
     for (;it.More();it.Next()) {   
       TDF_Tool::Entry (it.Value()->Label(),string);
       di << "- " << string.ToCString() << " "; 
@@ -138,7 +138,7 @@ static Standard_Integer DDocStd_DumpCommand (Draw_Interpretor& di,
     di << "MODIFIED :";   
     it.Initialize(modified);
     if (it.More()) di << "\n";
-    else di << " empty" << "\n";
+    else di << " empty\n";
     for (;it.More();it.Next()) {   
       TDF_Tool::Entry (it.Value()->Label(),string);
       di << "- " << string.ToCString() << " ";
@@ -147,7 +147,7 @@ static Standard_Integer DDocStd_DumpCommand (Draw_Interpretor& di,
     }
     return 0;
   } 
-  di << "TDocStd_DumpCommand : Error" << "\n";
+  di << "TDocStd_DumpCommand : Error\n";
   return 1;
 }
 
index 599ad7a007b6d0b37eae7aaae22d43358a2ed868..3251de02a6e05db585b5318c39728919c98db90b 100644 (file)
@@ -156,7 +156,7 @@ static Standard_Integer Getentry (Draw_Interpretor& di, Standard_Integer n, cons
 
   TopoDS_Shape S = DBRep::Get(a[2]);
   if (S.IsNull()) {
-    di <<"Noone shape selected"<<"\n";
+    di <<"Noone shape selected\n";
     //di << 0;
     return 0;
   }
@@ -168,7 +168,7 @@ static Standard_Integer Getentry (Draw_Interpretor& di, Standard_Integer n, cons
   else  {
     di <<Name.ToCString();
     if (Status == 2) {
-      di <<"Several shapes have the same name"<<"\n";
+      di <<"Several shapes have the same name\n";
     }
   }
   return 0;
@@ -187,7 +187,7 @@ static Standard_Integer NamedShape(Draw_Interpretor& di, Standard_Integer n, con
   if (!DDF::GetDF(a[1],ND)) return 1;
   TopoDS_Shape  SS = DBRep::Get(a[2]);
   if (SS.IsNull()) {
-    di <<"Noone shape selected"<<"\n";
+    di <<"Noone shape selected\n";
     //di << 0;
     return 0;
   }
@@ -256,7 +256,7 @@ static Standard_Integer Initialshape (Draw_Interpretor& di, Standard_Integer n,
     TDF_Tool::Entry(itL.Value(),entry);
     di <<" , "<< entry.ToCString();    
   }
-  di <<"."<<"\n";
+  di <<".\n";
   return 0;
 }
 
@@ -282,7 +282,7 @@ static Standard_Integer Exploreshape (Draw_Interpretor& di, Standard_Integer n,
   DDF::FindLabel(ND,a[2],Lab);
   Handle(TNaming_NamedShape) NS;
   if (!Lab.FindAttribute(TNaming_NamedShape::GetID(),NS)) { 
-    di <<"No shape"<<"\n";
+    di <<"No shape\n";
     return 0;
   }
 
@@ -306,7 +306,7 @@ static Standard_Integer Exploreshape (Draw_Interpretor& di, Standard_Integer n,
   }
   di <<"\n";
   if (NbShapes == 0) {
-    di <<"No shape"<<"\n";
+    di <<"No shape\n";
   }
 
   return 0;
@@ -336,7 +336,7 @@ static Standard_Integer Generatedshape (Draw_Interpretor& di,
       return 0;
     }
   }
-  di << "GetShape : Error" << "\n";
+  di << "GetShape : Error\n";
   return 1;
 }
 
@@ -362,7 +362,7 @@ static Standard_Integer Getshape (Draw_Interpretor& di,
       return 0;
     }
   }
-  di << "DDataStd_GetShape : Error" << "\n";
+  di << "DDataStd_GetShape : Error\n";
   return 1;
 }
 //=======================================================================
@@ -410,7 +410,7 @@ static Standard_Integer Getcreationentry (Draw_Interpretor& di, Standard_Integer
   TopoDS_Shape  SS = DBRep::Get(a[2]);
 
   if (SS.IsNull()) {
-    di <<"Noone shape selected"<<"\n";
+    di <<"Noone shape selected\n";
     //di << 0;
     return 0;
   }
@@ -431,7 +431,7 @@ static Standard_Integer Getcreationentry (Draw_Interpretor& di, Standard_Integer
   else  {
     di <<Name.ToCString();
     if (Status == 2) {
-      di <<"Several shapes have the same name"<<"\n";
+      di <<"Several shapes have the same name\n";
     }
   }
   return 0;
@@ -487,14 +487,14 @@ static Standard_Integer CheckIter (Draw_Interpretor& di,
        if(nb == 5) aNew = (Standard_Boolean) atoi(arg[4]);
        if(aNew) {
          TNaming_NewShapeIterator aNewShapeIter(aNameIter); 
-         di << "DNaming_CheckIterator : New It is OK" << "\n";
+         di << "DNaming_CheckIterator : New It is OK\n";
        } else {
          TNaming_OldShapeIterator oldShapeIter(aNameIter); 
-         di << "DNaming_CheckIterator : Old It is OK" << "\n";
+         di << "DNaming_CheckIterator : Old It is OK\n";
        }
        return 0;
   } 
-  di << "DNaming_CheckIterator : Error" << "\n";
+  di << "DNaming_CheckIterator : Error\n";
   return 1;
 }
 
index 475d1987e0a231a62754ef99e51f0ba0f9f9fa01..61766eb149a78f8c3195eedb4b5b2c3cbf3df280 100644 (file)
@@ -109,7 +109,7 @@ static Standard_Integer  DNaming_AddObject(Draw_Interpretor& di,
       return 0;
     }
   }
-  di << "DNaming_AddObject: Error" << "\n";
+  di << "DNaming_AddObject: Error\n";
   return 1;
 }
 
@@ -293,7 +293,7 @@ static Standard_Integer  DNaming_AddFunction(Draw_Interpretor& di,
       return 0;
     }
   }
-  di << "DNaming_AddObject: Error" << "\n";
+  di << "DNaming_AddObject: Error\n";
   return 1;
 }
 
index e11d166bce4a603a0ab7b935360ee0897195e4ac..45fb0dcd1154148ba7b3d863dff31ca9a3026ba5 100644 (file)
@@ -130,7 +130,7 @@ static Standard_Integer DNaming_Select (Draw_Interpretor& di, Standard_Integer n
     }
     return 0;  
   }
-  di << "DNaming_Select : Error" << "\n";
+  di << "DNaming_Select : Error\n";
   return 1;
 }
 // #define DEB_SELN 1
@@ -200,7 +200,7 @@ static Standard_Integer DNaming_SolveSelection (Draw_Interpretor& di, Standard_I
     }
        TDF_LabelMap aValidMap;
     if(!FillValidMap(L,aValidMap)) 
-               di << "Valid map is empty" << "\n";
+               di << "Valid map is empty\n";
 #ifdef OCCT_DEBUG_SELN
        cout<<"== Valid Label map =="<<endl;
        for (TDF_MapIteratorOfLabelMap mapItr(aValidMap);mapItr.More(); mapItr.Next()) {
@@ -215,13 +215,13 @@ static Standard_Integer DNaming_SolveSelection (Draw_Interpretor& di, Standard_I
     TNaming_Selector SL (L);
     Standard_Boolean isSolved = SL.Solve(aValidMap);
        if(!isSolved)
-               di << "!!! Solver is failed" <<"\n";
+               di << "!!! Solver is failed\n";
     TopoDS_Shape Res = TNaming_Tool::CurrentShape(SL.NamedShape());
     Sprintf (name,"%s_%s","new",a[2]);
     Display (name,Res);
     return 0;
   }
-  di << "DNaming_SolveSelection : Error" << "\n";
+  di << "DNaming_SolveSelection : Error\n";
   return 1;
 }
 
@@ -240,7 +240,7 @@ static Standard_Integer DNaming_DumpSelection (Draw_Interpretor& di,
     if (!DDF::FindLabel(DF,a[2],L)) return 1;
     Handle(TNaming_Naming) naming;
     if (!L.FindAttribute(TNaming_Naming::GetID(),naming)) {  
-      di <<"DNaming_DumpSelection : not a selection" << "\n";
+      di <<"DNaming_DumpSelection : not a selection\n";
       return 1;
     }
     DumpNaming(naming, di);
@@ -263,7 +263,7 @@ static Standard_Integer DNaming_DumpSelection (Draw_Interpretor& di,
     }
     return 0;
   }
-  di << "DNaming_DumpSelection : Error" << "\n";
+  di << "DNaming_DumpSelection : Error\n";
   return 1;  
 }
 
@@ -282,7 +282,7 @@ static Standard_Integer DNaming_ArgsSelection (Draw_Interpretor& di,
     if (!DDF::FindLabel(DF,a[2],L)) return 1;
     Handle(TNaming_Naming) naming;
     if (!L.FindAttribute(TNaming_Naming::GetID(),naming)) {  
-      di <<"DNaming_DumpSelection : not a selection" << "\n";
+      di <<"DNaming_DumpSelection : not a selection\n";
       return 1;
     }  
     TCollection_AsciiString Entry;
@@ -297,7 +297,7 @@ static Standard_Integer DNaming_ArgsSelection (Draw_Interpretor& di,
     di << "\n";
     return 0;
   }
-  di << "DNaming_ArgsSelection : Error" << "\n";
+  di << "DNaming_ArgsSelection : Error\n";
   return 1;  
 }
 
@@ -367,7 +367,7 @@ static Standard_Integer DNaming_Attachment (Draw_Interpretor& di,
     di << "\n";
     return 0;
   }
-  di << "DNaming_Attachment : Error" << "\n";
+  di << "DNaming_Attachment : Error\n";
   return 1;  
 }
 
index 39fa05ae0f42c9f5974af2c14886c673bafe286c..3a7a665b21bb51772e7dcef52b18425aa35b89d4 100644 (file)
@@ -86,7 +86,7 @@ static Standard_Integer DNaming_CheckHasSame (Draw_Interpretor& di,
     for(itr2.Initialize(M2);itr2.More();itr2.Next()) {
       const TopoDS_Shape& s2 = itr2.Key();
       if(s1.IsSame(s2))
-       di << "Shapes " << arg[1]<< " and "<< arg[2]<< " have SAME subshapes" <<"\n";
+       di << "Shapes " << arg[1]<< " and "<< arg[2]<< " have SAME subshapes\n";
     }
   }
 
@@ -127,7 +127,7 @@ static Standard_Integer DNaming_TCopyShape (Draw_Interpretor& di,
   TR.Perform();
 
   if(TR.IsDone()){
-    di << "DNaming_CopyShape:: Copy is Done " << "\n";
+    di << "DNaming_CopyShape:: Copy is Done \n";
 
     DNaming_DataMapIteratorOfDataMapOfShapeOfName itrn(aDMapOfShapeOfName);
     for(;itrn.More();itrn.Next()) {
@@ -138,7 +138,7 @@ static Standard_Integer DNaming_TCopyShape (Draw_Interpretor& di,
     }
     return 0;
   }
-  di << "DNaming_CopyShape : Error" << "\n";
+  di << "DNaming_CopyShape : Error\n";
   return 1;
 }
 
@@ -153,7 +153,7 @@ static Standard_Integer DNaming_TCopyTool (Draw_Interpretor& di,
                                           const char** arg)
 {
   if (nb < 2) {
-    di << "Usage: CopyTool Shape1 [Shape2] ..." << "\n";
+    di << "Usage: CopyTool Shape1 [Shape2] ...\n";
     return 1;
   }
 
@@ -171,7 +171,7 @@ static Standard_Integer DNaming_TCopyTool (Draw_Interpretor& di,
     }
 
     if (aShape.IsNull()) {
-      di << arg[i] << " is neither a shape nor a BREP file. Skip it." << "\n";
+      di << arg[i] << " is neither a shape nor a BREP file. Skip it.\n";
       continue;
     }
 
index b84ed4b9a1c828349ffe51fbdcc32f5bc1cfdc78..ebd6a605d3b70af30090201404552fae8745b8a1 100644 (file)
@@ -103,7 +103,7 @@ static Standard_Integer DPrsStd_AISRemove (Draw_Interpretor& di,
      TPrsStd_AISViewer::Update(L);
      return 0;
    }
-   di << "DPrsStd_AISRedisplay : Error" << "\n";
+   di << "DPrsStd_AISRedisplay : Error\n";
    return 1;
 }
 
@@ -128,7 +128,7 @@ static Standard_Integer DPrsStd_AISErase (Draw_Interpretor& di,
     TPrsStd_AISViewer::Update(L);
     return 0;
   }
-  di << "DPrsStd_AISErase : Error" << "\n";
+  di << "DPrsStd_AISErase : Error\n";
   return 1;
 }
 
@@ -152,7 +152,7 @@ static Standard_Integer DPrsStd_AISUpdate (Draw_Interpretor& di,
     TPrsStd_AISViewer::Update(L);
     return 0;
   }
-  di << "DPrsStd_AISUpdate : Error" << "\n";
+  di << "DPrsStd_AISUpdate : Error\n";
   return 1;
 }
 
@@ -206,7 +206,7 @@ static Standard_Integer DPrsStd_AISSet (Draw_Interpretor& di,
     di<<resS;
     return 0; 
   }
-  di << "DPrsStd_AISSet : Error" << "\n";
+  di << "DPrsStd_AISSet : Error\n";
   return 1; 
 }
 
@@ -271,7 +271,7 @@ static Standard_Integer DPrsStd_AISDriver (Draw_Interpretor& di,
       }
     }
   }
-  di << "DPrsStd_AISDriver : Error" << "\n";
+  di << "DPrsStd_AISDriver : Error\n";
   return 1;  
 }
 
@@ -293,7 +293,7 @@ static Standard_Integer DPrsStd_AISUnset (Draw_Interpretor& di,
     TPrsStd_AISViewer::Update(L);
     return 0; 
   }
-  di << "DPrsStd_AISDriver : Error" << "\n";
+  di << "DPrsStd_AISDriver : Error\n";
   return 1;  
 }
 
@@ -328,7 +328,7 @@ static Standard_Integer DPrsStd_AISTransparency (Draw_Interpretor& di,
          di<<prs->Transparency();
        }
        else{
-         di << "DPrsStd_AISTransparency: Warning : Transparency wasn't set" << "\n";
+         di << "DPrsStd_AISTransparency: Warning : Transparency wasn't set\n";
          di<<(-1);
        }
       }
@@ -395,7 +395,7 @@ static Standard_Integer DPrsStd_AISColor (Draw_Interpretor& di,
          di<<prs->Color();
        }
        else{
-         di << "DPrsStd_AISColor: Warning : Color wasn't set" << "\n";
+         di << "DPrsStd_AISColor: Warning : Color wasn't set\n";
          di<<(-1);
        }
       return 0; 
@@ -464,7 +464,7 @@ static Standard_Integer DPrsStd_AISMaterial (Draw_Interpretor& di,
          di<<prs->Material();
        }
        else{
-         di << "DPrsStd_AISMaterial: Warning : Material wasn't set" << "\n";
+         di << "DPrsStd_AISMaterial: Warning : Material wasn't set\n";
          di<<(-1);
        }
       }
@@ -516,7 +516,7 @@ static Standard_Integer DPrsStd_AISHasOwnColor (Draw_Interpretor& di,
 {
   if (nb >= 3) {     
     if (nb > 3)
-      di << "DPrsStd_AISHasOwnColor : Warning : too many arguments" << "\n";
+      di << "DPrsStd_AISHasOwnColor : Warning : too many arguments\n";
 
     Handle(TDocStd_Document) D;
     if (!DDocStd::GetDocument(arg[1],D)) return 1;  
@@ -550,7 +550,7 @@ static Standard_Integer DPrsStd_AISHasOwnMaterial (Draw_Interpretor& di,
 {
   if (nb >= 3) {     
     if (nb > 3)
-      di << "DPrsStd_AISHasOwnMaterial : Warning : too many arguments" << "\n";
+      di << "DPrsStd_AISHasOwnMaterial : Warning : too many arguments\n";
 
     Handle(TDocStd_Document) D;
     if (!DDocStd::GetDocument(arg[1],D)) return 1;  
@@ -584,7 +584,7 @@ static Standard_Integer DPrsStd_AISHasOwnTransparency (Draw_Interpretor& di,
 {
   if (nb >= 3) {     
     if (nb > 3)
-      di << "DPrsStd_AISHasOwnTransparency : Warning : too many arguments" << "\n";
+      di << "DPrsStd_AISHasOwnTransparency : Warning : too many arguments\n";
 
     Handle(TDocStd_Document) D;
     if (!DDocStd::GetDocument(arg[1],D)) return 1;  
index ada1e7c61b8e41bcfcb6609eb337f2f4de95561d..95a8460c428cfc3b3e6f34e0f61d9b4685ddf371 100644 (file)
@@ -85,7 +85,7 @@ static Standard_Integer DPrsStd_AISRepaint (Draw_Interpretor& di,
     TPrsStd_AISViewer::Update(acces);
     return 0;
   }
-  di << "DPrsStd_AISRepaint : Error" << "\n";
+  di << "DPrsStd_AISRepaint : Error\n";
   return 1; 
 }
 
index 02c5e9e9353a798a075b6b60981beb6d6951da6c..3460a6df0eff99d9abc6b3d9dec6fcadc5ff62b5 100644 (file)
@@ -82,8 +82,8 @@ static Standard_Integer chronom(Draw_Interpretor& di,
     else
       Draw_Chrono = (*a[1] == '1');
 
-    if (Draw_Chrono) di << "Chronometers activated."<<"\n";
-    else di << "Chronometers desactivated."<<"\n";
+    if (Draw_Chrono) di << "Chronometers activated.\n";
+    else di << "Chronometers desactivated.\n";
   }
   else {
     Handle(Draw_Drawable3D) D = Draw::Get(a[1]);
@@ -121,8 +121,8 @@ static Standard_Integer dchronom(Draw_Interpretor& I,
     else
       Draw_Chrono = (*a[1] == '1');
 
-    if (Draw_Chrono) I << "Chronometers activated."<<"\n";
-    else I << "Chronometers desactivated."<<"\n";
+    if (Draw_Chrono) I << "Chronometers activated.\n";
+    else I << "Chronometers desactivated.\n";
   }
   else {
     Handle(Draw_Drawable3D) D = Draw::Get(a[1]);
@@ -186,7 +186,7 @@ static Standard_Integer spy(Draw_Interpretor& di, Standard_Integer n, const char
   Draw_Spying = Standard_False;
   if (n > 1) {
     if (!Draw_Spyfile.open(a[1],ios::out)) {
-      di << "Cannot open "<<a[1]<<" for writing"<<"\n";
+      di << "Cannot open "<<a[1]<<" for writing\n";
       return 1;
     }
     Draw_Spying = Standard_True;
@@ -548,44 +548,44 @@ By default <logfile> is \"mem-log.txt\", <outfile> is \"mem-stat.txt\""
     int aType = (n > 2 ? Draw::Atoi(a[2]) : 1);
     if (aType < 0 || aType > 2)
     {
-      di << "unknown op of the command set" << "\n";
+      di << "unknown op of the command set\n";
       return 1;
     }
     else if (aType == 0)
     {
       OSD_MAllocHook::SetCallback(NULL);
-      di << "callback is unset" << "\n";
+      di << "callback is unset\n";
     }
     else if (aType == 1)
     {
       OSD_MAllocHook::SetCallback(OSD_MAllocHook::GetCollectBySize());
-      di << "callback is set to CollectBySize" << "\n";
+      di << "callback is set to CollectBySize\n";
     }
     else //if (aType == 2)
     {
       OSD_MAllocHook::SetCallback(OSD_MAllocHook::GetLogFileHandler());
-      di << "callback is set to LogFileHandler" << "\n";
+      di << "callback is set to LogFileHandler\n";
     }
   }
   else if (strcmp(a[1], "reset") == 0)
   {
     OSD_MAllocHook::GetCollectBySize()->Reset();
-    di << "CollectBySize handler is reset" << "\n";
+    di << "CollectBySize handler is reset\n";
   }
   else if (strcmp(a[1], "open") == 0)
   {
     const char* aFileName = (n > 2 ? a[2] : "mem-log.txt");
     if (!OSD_MAllocHook::GetLogFileHandler()->Open(aFileName))
     {
-      di << "cannot create file " << aFileName << " for writing" << "\n";
+      di << "cannot create file " << aFileName << " for writing\n";
       return 1;
     }
-    di << "log file " << aFileName << " is opened for writing" << "\n";
+    di << "log file " << aFileName << " is opened for writing\n";
   }
   else if (strcmp(a[1], "close") == 0)
   {
     OSD_MAllocHook::GetLogFileHandler()->Close();
-    di << "log file is closed" << "\n";
+    di << "log file is closed\n";
   }
   else if (strcmp(a[1], "report1") == 0)
   {
@@ -594,7 +594,7 @@ By default <logfile> is \"mem-log.txt\", <outfile> is \"mem-stat.txt\""
       aOutFile = a[2];
     if (OSD_MAllocHook::GetCollectBySize()->MakeReport(aOutFile))
     {
-      di << "report " << aOutFile << " has been created" << "\n";
+      di << "report " << aOutFile << " has been created\n";
     }
     else
     {
@@ -619,7 +619,7 @@ By default <logfile> is \"mem-log.txt\", <outfile> is \"mem-stat.txt\""
     }
     if (OSD_MAllocHook::LogFileHandler::MakeReport(aLogFile, aOutFile, includeAlive))
     {
-      di << "report " << aOutFile << " has been created" << "\n";
+      di << "report " << aOutFile << " has been created\n";
     }
     else
     {
index bdaea9da026a92f50d647480f1a4f55bd03c62bf..f09244be8f2b0571b1492e6e2357659d7d2f9a52 100644 (file)
@@ -135,7 +135,7 @@ static Standard_Integer wzoom(Draw_Interpretor& di, Standard_Integer argc, const
   }
   if(argc == 1)
   {
-    di << "Pick first corner"<<"\n";
+    di << "Pick first corner\n";
     dout.Select(id,X1,Y1,b);
 
     gp_Trsf T;
@@ -162,7 +162,7 @@ static Standard_Integer wzoom(Draw_Interpretor& di, Standard_Integer argc, const
     d.Draw(gp_Pnt2d(dOX2,dY1),gp_Pnt2d(dX1,dY1));
     d.Flush();
     dout.GetPosSize(id,X,Y,W,H);
-    di << "Pick second corner"<<"\n";
+    di << "Pick second corner\n";
     b = 0;
     while (b == 0) {
       dout.Select(id,X2,Y2,b,Standard_False);
@@ -236,7 +236,7 @@ static Standard_Integer wclick(Draw_Interpretor& di, Standard_Integer, const cha
 {
   Standard_Integer id1,X1,Y1,b;
   dout.Flush();
-  di << "Just click."<<"\n";
+  di << "Just click.\n";
   dout.Select(id1,X1,Y1,b);
   return 0;
 }
@@ -273,7 +273,7 @@ static Standard_Integer view(Draw_Interpretor& di, Standard_Integer n, const cha
       H = Draw::Atoi(a[6]);
     dout.MakeView(id,a[2],X,Y,W,H);
     if (!dout.HasView(id)) {
-      di << "View creation failed"<<"\n";
+      di << "View creation failed\n";
       return 1;
     }
     SetTitle(id);
@@ -289,7 +289,7 @@ static Standard_Integer view(Draw_Interpretor& di, Standard_Integer n, const cha
     }
     dout.MakeView(id,a[2],a[3]);
     if (!dout.HasView(id)) {
-      di << "View creation failed"<<"\n";
+      di << "View creation failed\n";
       return 1;
     }
     SetTitle(id);
@@ -808,12 +808,12 @@ static Standard_Integer dfont(Draw_Interpretor& di,
 static Standard_Integer hcolor(Draw_Interpretor& di, Standard_Integer n, const char** a)
 {
   if (n < 4) {
-    di << "code de couleur (Draw.cxx) : " << "\n" ;
-    di << "0 = White,\t 1 = Red,\t 2 = Green,\t 3 = Blue" << "\n" ;
+    di << "code de couleur (Draw.cxx) : \n" ;
+    di << "0 = White,\t 1 = Red,\t 2 = Green,\t 3 = Blue\n" ;
     di << "4 = Cyan,\t 5 = Gold,\t 6 = Magenta,\t 7 = Maroon"  << "\n" ;
-    di << "8 = Orange,\t 9 = Pink,\t 10 = Salmon,\t 11 = Violet" << "\n" ;
-    di << "12 = Yellow,\t 13 = Khaki,\t 14 = Coral" << "\n" ;
-    di << "1 <= width <= 11,  0 (noir)  <= gray <= 1 (blanc)" << "\n" ;
+    di << "8 = Orange,\t 9 = Pink,\t 10 = Salmon,\t 11 = Violet\n" ;
+    di << "12 = Yellow,\t 13 = Khaki,\t 14 = Coral\n" ;
+    di << "1 <= width <= 11,  0 (noir)  <= gray <= 1 (blanc)\n" ;
   } else {
     dout.PostColor(Draw::Atoi(a[1]),Draw::Atoi(a[2]),Draw::Atof(a[3]));
   }
@@ -916,7 +916,7 @@ static Standard_Integer dtext(Draw_Interpretor& di, Standard_Integer n, const ch
   Standard_Boolean is3d;
   if (n == 2) {
     Standard_Integer id,X,Y,b;
-    di << "Pick position with button 1, other button escape"<<"\n";
+    di << "Pick position with button 1, other button escape\n";
     dout.Select(id,X,Y,b);
     if (b != 1)
       return 0;
index e21008f00e1f63c83554a2108f0ca31ab9daf97f..07937c5ea9ac53d4721fcec0a3f0468eebcc1400 100644 (file)
@@ -34,7 +34,7 @@ static Standard_Integer parsing
   (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 2) {
-    di << "Usage : " << argv[0] << " string [nbiter]" << "\n";
+    di << "Usage : " << argv[0] << " string [nbiter]\n";
     return 1;
   }
 
@@ -47,7 +47,7 @@ static Standard_Integer parsing
   Units_UnitSentence aUnitSent(aStrTok.ToCString());
   
   if(!aUnitSent.IsDone()) {
-    di<<"can not create a sentence"<<"\n";
+    di<<"can not create a sentence\n";
     return 1;
   }
 
@@ -85,7 +85,7 @@ static Standard_Integer converttoSI
   (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Invalid number of parameter, use: unitconvtoSI real string"<<"\n";
+    di<<"Invalid number of parameter, use: unitconvtoSI real string\n";
     return 1;
   }
 
@@ -107,7 +107,7 @@ static Standard_Integer converttoMDTV
   (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Invalid number of parameter, use: unitconvtoMDTV real string"<<"\n";
+    di<<"Invalid number of parameter, use: unitconvtoMDTV real string\n";
     return 1;
   }
 
index 24513537fa960e3696e2be0cd5638c295fc3332c..7e2676804b8ff5ac7a533e4baad40255bbb38292 100644 (file)
@@ -84,7 +84,7 @@ static Standard_Integer DrawDim_DISTANCE (Draw_Interpretor& di,
       }
     }
   }
-  di << "DrawDim_DISTANCE : error" << "\n";
+  di << "DrawDim_DISTANCE : error\n";
   return 1;
 }
 
@@ -122,7 +122,7 @@ static Standard_Integer DrawDim_ANGLE (Draw_Interpretor& di,
       }
     }
   }
-  di << "DrawDim_PlanarAngle : error" << "\n";
+  di << "DrawDim_PlanarAngle : error\n";
   return 1;
 }
 
@@ -156,7 +156,7 @@ static Standard_Integer DrawDim_RADIUS (Draw_Interpretor& di,
       return 0;
     }
   }
-  di << "DrawDim_PlanarRadius : error" << "\n";
+  di << "DrawDim_PlanarRadius : error\n";
   return 1;
 }
 
@@ -188,7 +188,7 @@ static Standard_Integer DrawDim_CENTER (Draw_Interpretor& di,
       return 0;
     }
   }
-  di << "DrawDim_CENTER : error" << "\n";
+  di << "DrawDim_CENTER : error\n";
   return 1;
 }
 
@@ -275,7 +275,7 @@ static Standard_Integer DrawDim_SPLACEMENT (Draw_Interpretor& di,
       return 0;
     }
   }  
-  di << "DrawDim_SPlacement : error" << "\n";
+  di << "DrawDim_SPlacement : error\n";
   return 1;
 }
 
@@ -309,7 +309,7 @@ static Standard_Integer DrawDim_GPLACEMENT (Draw_Interpretor& di,
       return 0;
     }
   }  
-  di << "DrawDim_Placement : error" << "\n";
+  di << "DrawDim_Placement : error\n";
   return 1;
 }
  
index c36040c7fbecf5e6c06bf4abbc39ce1872223676..39250cea5035aa3cf0df5b43bc60bfa8044d32f3 100644 (file)
@@ -1026,7 +1026,7 @@ static void printColor(Draw_Interpretor& di, const Draw_Color& theColor)
     case Draw_saumon:  di << "salmon "           << "\n"; break;
     case Draw_violet:  di << "violet "           << "\n"; break;
     case Draw_jaune:   di << "yellow "           << "\n"; break;
-    case Draw_kaki:    di << "dark-olive green " << "\n"; break;
+    case Draw_kaki:    di << "dark-olive green \n"; break;
     case Draw_corail:  di << "coral "            << "\n"; break;
   }
 }
@@ -1193,7 +1193,7 @@ static void printMarker(Draw_Interpretor& di, const Draw_MarkerShape& theMarker)
     case Draw_X:          di << "x "           << "\n"; break;
     case Draw_Plus:       di << "plus "        << "\n"; break;
     case Draw_Circle:     di << "circle "      << "\n"; break;
-    case Draw_CircleZoom: di << "circle_zoom " << "\n"; break;
+    case Draw_CircleZoom: di << "circle_zoom \n"; break;
   }
 }
 
index 505bbcf4407f18269497a349b4ddbbe7e91b6966..3f52ac8f59efed3132b4ed4f7f2d092b6b944570 100644 (file)
@@ -531,7 +531,7 @@ void FairCurve_Batten::Dump(Standard_OStream& o) const
 // ==================================================================
 {
 
-o << "  Batten       |"; o.width(7); o<< "Old " << " | " << "  New" << endl;
+o << "  Batten       |"; o.width(7); o<< "Old  |   New" << endl;
 o << "  P1    X      |"; o.width(7); o<<  OldP1.X() << " | " << NewP1.X() << endl;
 o << "        Y      |"; o.width(7); o<<  OldP1.Y() << " | " << NewP1.Y() << endl;
 o << "  P2    X      |"; o.width(7); o<<  OldP2.X() << " | " << NewP2.X() << endl;
index 002e2188f79965c54242aa459d264200d9184935..8a8230b7a574a476628b1e0cb5bee5e6d0d24fd8 100644 (file)
@@ -434,7 +434,7 @@ void FairCurve_MinimalVariation::Dump(Standard_OStream& o) const
 //======================================================================================
 {
 
-o << "  MVCurve      |"; o.width(7); o<< "Old " << " | " << "  New" << endl;
+o << "  MVCurve      |"; o.width(7); o<< "Old  |   New" << endl;
 o << "  P1    X      |"; o.width(7); o<<  OldP1.X() << " | " << NewP1.X() << endl;
 o << "        Y      |"; o.width(7); o<<  OldP1.Y() << " | " << NewP1.Y() << endl;
 o << "  P2    X      |"; o.width(7); o<<  OldP2.X() << " | " << NewP2.X() << endl;
index dbc77b292f16d071b804b2831fd694fcf2ccb676..a4ffdcc5d451efd6bb3d6da8c074754a31213108 100644 (file)
@@ -100,7 +100,7 @@ static Standard_Integer proj (Draw_Interpretor& di, Standard_Integer n, const ch
         char* temp = name; // portage WNT
         DrawTrSurf::Set(temp, P1);
         proj.Parameters(i,UU,VV);
-        di << " Le point est sur la surface." << "\n";
+        di << " Le point est sur la surface.\n";
         di << " Ses parametres sont:  UU = " << UU << "\n";
         di << "                       VV = " << VV << "\n";
       }
@@ -139,7 +139,7 @@ static Standard_Integer proj (Draw_Interpretor& di, Standard_Integer n, const ch
         DrawTrSurf::Set(temp, P1);
         di << name << " ";
         UU = proj.Parameter(i);
-        di << " Le point est sur la courbe." << "\n";
+        di << " Le point est sur la courbe.\n";
         di << " Son parametre est U = " << UU << "\n";
       }
     }
@@ -541,7 +541,7 @@ static Standard_Integer totalextcc(Draw_Interpretor& di, Standard_Integer n, con
       di << "Extrema is point : " << P1.X() << " " << P1.Y() << " " << P1.Z() << "\n";
     }
     else {
-      di << "Extrema is segment of line" << "\n"; 
+      di << "Extrema is segment of line\n"; 
       Handle(Geom_Line) L = new Geom_Line(P1,gp_Vec(P1,P2));
       Handle(Geom_TrimmedCurve) CT = 
        new Geom_TrimmedCurve(L, 0., P1.Distance(P2));
@@ -558,7 +558,7 @@ static Standard_Integer totalextcc(Draw_Interpretor& di, Standard_Integer n, con
 
   }
   else {
-    di << "Curves are infinite and parallel" << "\n";
+    di << "Curves are infinite and parallel\n";
   }
   
   di << "Minimal distance : " << Ex.TotalLowerDistance() << "\n";
index 204fe3d935ea3acbaf5f113d87297d606d826e8a..7dd9cca96887c72d195c05849c65e53a6cd23f71 100644 (file)
@@ -221,7 +221,7 @@ static Standard_Integer cirtang (Draw_Interpretor& di,Standard_Integer n, const
 
       else {
         // C-R-R
-        di << "Curve, radius, radius ???"<<"\n";
+        di << "Curve, radius, radius ???\n";
         return 1;
       }
     }
@@ -308,7 +308,7 @@ static Standard_Integer cirtang (Draw_Interpretor& di,Standard_Integer n, const
 
       else {
         // P-R-R
-        di << "Point, radius, radius ???"<<"\n";
+        di << "Point, radius, radius ???\n";
         return 1;
       }
     }
@@ -338,7 +338,7 @@ static Standard_Integer cirtang (Draw_Interpretor& di,Standard_Integer n, const
 
       else {
         // R-C-R
-        di << "Radius - Curve - Radius ??"<<"\n";
+        di << "Radius - Curve - Radius ??\n";
         return 1;
       }
     }
@@ -364,13 +364,13 @@ static Standard_Integer cirtang (Draw_Interpretor& di,Standard_Integer n, const
       }      
       else {
         // R-P-R
-        di << "Radius - Point - Radius ??"<<"\n";
+        di << "Radius - Point - Radius ??\n";
         return 1;
       }
     }
     else {
       // R-R-..
-      di << "radius, radius ???"<<"\n";
+      di << "radius, radius ???\n";
       return 1;
     }
   }
@@ -418,7 +418,7 @@ static Standard_Integer lintang (Draw_Interpretor& di,Standard_Integer n, const
       }
     }
     else
-      di << "Lin2dTanObl Not done" << "\n";
+      di << "Lin2dTanObl Not done\n";
   }
   else {
     Geom2dGcc_Lin2d2Tan ct3(Geom2dGcc::Unqualified(C1),
@@ -436,7 +436,7 @@ static Standard_Integer lintang (Draw_Interpretor& di,Standard_Integer n, const
       }
     }
     else
-      di << "Lin2d2Tan Not done" << "\n";
+      di << "Lin2d2Tan Not done\n";
   }
 
   DrawTrSurf_CurveColor(col);
@@ -449,12 +449,12 @@ static Standard_Integer interpol (Draw_Interpretor& di,Standard_Integer n, const
 //==================================================================================
 {
   if (n == 1) {
-    di <<"give a name to your curve !" << "\n";
+    di <<"give a name to your curve !\n";
     return 0;
   }
   if (n == 2) {
     Standard_Integer id,XX,YY,b, i, j;
-    di << "Pick points "<< "\n";
+    di << "Pick points \n";
     dout.Select(id, XX, YY, b);
     Standard_Real zoom = dout.Zoom(id);
     if (b != 1) return 0;
@@ -780,8 +780,8 @@ static Standard_Integer gcarc (Draw_Interpretor& di,Standard_Integer n, const ch
       }
     }
   }
-  di <<"give a name for arc and the type seg or cir then" << "\n";
-  di <<"give passing points p1 p2 for seg    p1 p2 p3 or p1 p2 p3 p4 for cir (p2 p3 is a tgtvec)!" << "\n";
+  di <<"give a name for arc and the type seg or cir then\n";
+  di <<"give passing points p1 p2 for seg    p1 p2 p3 or p1 p2 p3 p4 for cir (p2 p3 is a tgtvec)!\n";
   return 0;
 }
 
index 2ff026b60c10c9193ccd1f9a3ed9309211eaf33e..0878a51f177aec521b53ca650b5806db54a990b5 100644 (file)
@@ -272,7 +272,7 @@ static Standard_Integer gproject(Draw_Interpretor& di, Standard_Integer n, const
     ONE = 2;
   }
   else {
-   di << "gproject wait 2 or 3 arguments" << "\n";
+   di << "gproject wait 2 or 3 arguments\n";
    return 1;
   } 
 
@@ -309,8 +309,8 @@ static Standard_Integer gproject(Draw_Interpretor& di, Standard_Integer n, const
       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;
@@ -358,8 +358,8 @@ static Standard_Integer gproject(Draw_Interpretor& di, Standard_Integer n, const
         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 {
@@ -382,8 +382,8 @@ static Standard_Integer gproject(Draw_Interpretor& di, Standard_Integer n, const
          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";
       }
     }
   }
@@ -399,10 +399,10 @@ static Standard_Integer project (Draw_Interpretor& di,
 {
   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;
   }
 
@@ -445,7 +445,7 @@ static Standard_Integer project (Draw_Interpretor& di,
     GeomProjLib::Curve2d(GC, GS, U1, U2, V1, V2, tolerance);
 
   if ( G2d.IsNull() ) {
-    di << "\n" << "Projection Failed" << "\n";
+    di << "\nProjection Failed\n";
     return 1;
   }
   else {
@@ -453,7 +453,7 @@ static Standard_Integer project (Draw_Interpretor& di,
   }
   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;
@@ -494,7 +494,7 @@ Standard_Integer projonplane(Draw_Interpretor& di,
 
   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;
   }
 
@@ -592,7 +592,7 @@ static Standard_Integer bisec (Draw_Interpretor& di,
          }
        }
        else {
-         di << " Bisec has failed !!" << "\n";
+         di << " Bisec has failed !!\n";
          return 1;
        }
       }
@@ -610,7 +610,7 @@ static Standard_Integer bisec (Draw_Interpretor& di,
          }
        }
        else {
-         di << " Bisec has failed !!" << "\n";
+         di << " Bisec has failed !!\n";
          return 1;
        }
       }
@@ -629,7 +629,7 @@ static Standard_Integer bisec (Draw_Interpretor& di,
          }
        }
        else {
-         di << " Bisec has failed !!" << "\n";
+         di << " Bisec has failed !!\n";
          return 1;
        }
       }
@@ -648,12 +648,12 @@ static Standard_Integer bisec (Draw_Interpretor& di,
          }
        }
        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;
       }
     }
@@ -670,7 +670,7 @@ static Standard_Integer bisec (Draw_Interpretor& di,
          }
        }
        else {
-         di << " Bisec has failed !!" << "\n";
+         di << " Bisec has failed !!\n";
          return 1;
        }
       }
@@ -682,13 +682,13 @@ static Standard_Integer bisec (Draw_Interpretor& di,
          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) {
@@ -706,7 +706,7 @@ static Standard_Integer bisec (Draw_Interpretor& di,
          }
        }
        else {
-         di << " Bisec has failed !!" << "\n";
+         di << " Bisec has failed !!\n";
          return 1;
        }
       }
@@ -718,7 +718,7 @@ static Standard_Integer bisec (Draw_Interpretor& di,
          solution(Bis.ThisSolution(),a[1],0);
        }
        else {
-         di << " Bisec has failed !!" << "\n";
+         di << " Bisec has failed !!\n";
          return 1;
        }
       }
@@ -730,25 +730,25 @@ static Standard_Integer bisec (Draw_Interpretor& di,
        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;
@@ -819,7 +819,7 @@ static Standard_Integer movelaw (Draw_Interpretor& di, Standard_Integer n, const
       Draw::Repaint();
     }
     else {
-      di << "Not enought degree of freedom increase degree please" << "\n";
+      di << "Not enought degree of freedom increase degree please\n";
     }
 
 
@@ -993,7 +993,7 @@ static Standard_Integer crvpoints (Draw_Interpretor& di, Standard_Integer /*n*/,
   GCPnts_QuasiUniformDeflection PntGen(GAC, defl);
     
   if(!PntGen.IsDone()) {
-    di << "Points generation failed" << "\n";
+    di << "Points generation failed\n";
     return 1;
   }
 
@@ -1100,7 +1100,7 @@ static Standard_Integer uniformAbscissa (Draw_Interpretor& di, Standard_Integer
   ellip = DrawTrSurf::GetBSplineCurve(a[1]);
   if (ellip.IsNull())
   {
-    di << " BSpline is NULL  "<<"\n";     
+    di << " BSpline is NULL  \n";     
     return 1;
   }*/
 
@@ -1108,7 +1108,7 @@ static Standard_Integer uniformAbscissa (Draw_Interpretor& di, Standard_Integer
   ellip = DrawTrSurf::GetCurve(a[1]);
   if (ellip.IsNull())
   {
-    di << " Curve is NULL  "<<"\n";     
+    di << " Curve is NULL  \n";     
     return 1;
   }
 
@@ -1146,7 +1146,7 @@ static Standard_Integer uniformAbscissa (Draw_Interpretor& di, Standard_Integer
 
   catch (Standard_Failure )
   {
-    di << " Standard Failure  " <<"\n";
+    di << " Standard Failure  \n";
   }
   return 0;
 }
@@ -1194,7 +1194,7 @@ static Standard_Integer EllipsUniformAbscissa (Draw_Interpretor& di, Standard_In
   
   catch(Standard_Failure)
   {
-    di << " Standard Failure  "<<"\n";     
+    di << " Standard Failure  \n";     
   }
 
   try
@@ -1223,7 +1223,7 @@ static Standard_Integer EllipsUniformAbscissa (Draw_Interpretor& di, Standard_In
 
   catch (Standard_Failure )
   {
-    di << " Standard Failure  " <<"\n";
+    di << " Standard Failure  \n";
   }
   return 0;
 }
@@ -1625,14 +1625,14 @@ static Standard_Integer intersection (Draw_Interpretor& di,
     }//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;
     }
@@ -1681,7 +1681,7 @@ static Standard_Integer intersection (Draw_Interpretor& di,
     //
     if (!Inters.IsDone())
     {
-      di<<"No intersections found!"<<"\n";
+      di<<"No intersections found!\n";
       return 1;
     }
 
index 2f07f4a5e5ac07d7352b4b51d6a0fa7ef9ad5f44..48e7c8a40bd03c6d49fb754906f4b3d4eacaf417 100644 (file)
@@ -34,7 +34,7 @@ Standard_Boolean IsGoodNumber(Standard_Integer argc, Standard_Integer waiting, D
   // argc vaut 1 de plus, puisque argv[0] contient le nom de la commande
   if (argc != (waiting+1))
     {
-      di << "Waiting "<< waiting << " arguments" << "\n";
+      di << "Waiting "<< waiting << " arguments\n";
       return Standard_False;
     }
   else
@@ -75,7 +75,7 @@ BattenCurve(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
   Handle(DrawFairCurve_Batten) aBatten = new DrawFairCurve_Batten(Bat);
 
   if (aBatten.IsNull()) {
-       di << " Batten null "<< "\n";
+       di << " Batten null \n";
        return 1;
       }
   Draw::Set(BattenName,aBatten);
@@ -118,7 +118,7 @@ MVCurve(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
   Handle(DrawFairCurve_MinimalVariation) aMVC = new DrawFairCurve_MinimalVariation(MVC);
 
   if (aMVC.IsNull()) {
-       di << " MVC null "<< "\n";
+       di << " MVC null \n";
        return 1;
       }
   Draw::Set(MVCName, aMVC);
index b378b57158468c96c53c22dd7751074a61a23369..cdc55d0c2c06c396e9d71fc8d5e8099972550cbf 100644 (file)
@@ -231,12 +231,12 @@ static Standard_Integer ruled(Draw_Interpretor& di,
 
   Handle(Geom_Curve) C1 = DrawTrSurf::GetCurve(a[2]);
   if ( C1.IsNull()) {
-    di << " C1 is not a Curve ==> Command failed" << "\n";
+    di << " C1 is not a Curve ==> Command failed\n";
     return 1;
   }
   Handle(Geom_Curve) C2 = DrawTrSurf::GetCurve(a[3]);
   if ( C2.IsNull()) {
-    di << " C2 is not a Curve ==> Command failed" << "\n";
+    di << " C2 is not a Curve ==> Command failed\n";
     return 1;
   }
   
@@ -277,7 +277,7 @@ static Standard_Integer appsurf(Draw_Interpretor& di,
   App.Perform( Line, Section);
 
   if ( !App.IsDone()) {
-    di << "    Approximation aux fraises " << "\n";
+    di << "    Approximation aux fraises \n";
   }
 
   Standard_Integer UDegree, VDegree, NbUPoles, NbVPoles, NbUKnots, NbVKnots;
index 1a075b58f3dda19e384ef07a4318457c81d34e03..2fbd7713d43fc94a9cfac9e8a9ed1be6b24bd6cc 100644 (file)
@@ -321,13 +321,13 @@ static Standard_Integer xdistcs(Draw_Interpretor& di, Standard_Integer n, const
   //
   aC=DrawTrSurf::GetCurve(a[1]);
   if (aC.IsNull()) {
-    di << "Error: " << a[1] << " is not a curve!" << "\n";
+    di << "Error: " << a[1] << " is not a curve!\n";
     return 0;
   }
   //
   aS=DrawTrSurf::GetSurface(a[2]);
   if (aS.IsNull()) {
-    di << "Error: " << a[2] << " is not a surface!" << "\n";
+    di << "Error: " << a[2] << " is not a surface!\n";
     return 0;
   }
   //
@@ -354,7 +354,7 @@ static Standard_Integer xdistcs(Draw_Interpretor& di, Standard_Integer n, const
     aPPS.Init(aP, aS, aTol);
     bRet=aPPS.IsDone();
     if (!bRet) {
-      di << "Error: GeomAPI_ProjectPointOnSurf failed" << "\n";
+      di << "Error: GeomAPI_ProjectPointOnSurf failed\n";
       return 0;
     }
     //
index 5568d00e6ccb63a1dece3bc25b44bfc9a3c4c42d..234554bc92e7daff137bc373139421fe45f19de0 100644 (file)
@@ -126,7 +126,7 @@ static Standard_Integer PointsByPick
 {
  Standard_Integer id,XX,YY,b, i;
  
- di << "Pick points "<< "\n";
+ di << "Pick points \n";
  dout.Select(id, XX, YY, b);
  Standard_Real zoom = dout.Zoom(id);
  if (b != 1) return 0;
@@ -253,7 +253,7 @@ static void PointsByFile(Handle(AppDef_HArray1OfMultiPointConstraint)& MPC,
       for(i=1; i<=nbc; i++) {
        iFile >> num >> ordre;
        if ((num<1)||(num>nbp)) {
-         di << "Error on point Index in constrainte" << "\n";
+         di << "Error on point Index in constrainte\n";
          return;
        }
        Constraint = (AppParCurves_Constraint) (ordre+1);
@@ -304,7 +304,7 @@ static void PointsByFile(Handle(AppDef_HArray1OfMultiPointConstraint)& MPC,
       for(i=1; i<=nbc; i++) {
        iFile >> num >> ordre;
        if ((num<1)||(num>nbp)) {
-         di << "Error on point Index in constrainte" << "\n";
+         di << "Error on point Index in constrainte\n";
          return;
        }
        Constraint = (AppParCurves_Constraint) (ordre+1);
@@ -342,11 +342,11 @@ static Standard_Integer smoothing (Draw_Interpretor& di,Standard_Integer n, cons
   Standard_Integer id = 0, DegMax = -1;
 
   if (n == 1) {
-    di <<"give a name to your curve !" << "\n";
+    di <<"give a name to your curve !\n";
     return 0;
   }
   if (n == 2) {
-    di <<"give a tolerance to your curve !" << "\n";
+    di <<"give a tolerance to your curve !\n";
     return 0;
   }
   if (n == 3) {
@@ -381,7 +381,7 @@ static Standard_Integer smoothing (Draw_Interpretor& di,Standard_Integer n, cons
       const char* nomfic = a[ific];
       ifstream iFile(nomfic, ios::in);
       if (!iFile) { 
-       di << a[ific] <<"do not exist !" << "\n";
+       di << a[ific] <<"do not exist !\n";
        return 1;
       }
       PointsByFile(Points, TABofCC, iFile, di);
@@ -509,20 +509,20 @@ static Standard_Integer smoothingbybezier (Draw_Interpretor& di,
   Standard_Integer Degree = 8;
 
   if (n == 1) {
-    di <<"give a name to your curve !" << "\n";
+    di <<"give a name to your curve !\n";
     return 0;
   }
   if (n == 2) {
-    di <<"give a tolerance to your curve !" << "\n";
+    di <<"give a tolerance to your curve !\n";
     return 0;
   }
  if (n == 3) {
-    di <<"give a max degree!" << "\n";
+    di <<"give a max degree!\n";
     return 0;
   }
 
   if (n == 4) {
-    di <<"give an option!" << "\n";
+    di <<"give an option!\n";
     return 0;
   }
   if (n >= 5) {
@@ -551,7 +551,7 @@ static Standard_Integer smoothingbybezier (Draw_Interpretor& di,
       const char* nomfic = a[5];
       ifstream iFile(nomfic, ios::in);
       if (!iFile) { 
-       di << a[6] <<"do not exist !" << "\n";
+       di << a[6] <<"do not exist !\n";
        return 1;
       }
       PointsByFile(Points, TABofCC, iFile, di);
@@ -603,7 +603,7 @@ static Standard_Integer smoothingbybezier (Draw_Interpretor& di,
       Appr.Perform (AML);
       
       if (! Appr.IsAllApproximated()) {
-       di << " No result" << "\n";
+       di << " No result\n";
       }
       AppParCurves_MultiCurve AnMuC = Appr.Value();
       ThePoints = new (TColgp_HArray1OfPnt2d) (1,  AnMuC.NbPoles() );
@@ -621,7 +621,7 @@ static Standard_Integer smoothingbybezier (Draw_Interpretor& di,
       Varia.Approximate();
 
       if (! Varia.IsDone()) {
-       di << " No result" << "\n";
+       di << " No result\n";
       }
 
       AppParCurves_MultiBSpCurve  AnMuC = Varia.Value();
@@ -678,7 +678,7 @@ static Standard_Integer smoothingbybezier (Draw_Interpretor& di,
       Appr.Perform (AML);
       
       if (! Appr.IsAllApproximated()) {
-       di << " No result" << "\n";
+       di << " No result\n";
       }
       AppParCurves_MultiCurve AnMuC = Appr.Value();
       ThePoints = new (TColgp_HArray1OfPnt) (1,  AnMuC.NbPoles() );
@@ -696,7 +696,7 @@ static Standard_Integer smoothingbybezier (Draw_Interpretor& di,
       Varia.SetTolerance(Abs(Tolerance));
       Varia.Approximate();
       if (! Varia.IsDone()) {
-       di << " No result" << "\n";
+       di << " No result\n";
       }
 
       AppParCurves_MultiBSpCurve  AnMuC = Varia.Value();
index 161086771ff2db0a6ddaf2c52ebaf001e217a320..9325f31f708e9ce1319e7178115242540124704c 100644 (file)
@@ -586,7 +586,7 @@ static Standard_Integer cmovetangent (Draw_Interpretor& di, Standard_Integer n,
        Draw::Repaint();
        }
       else {
-       di << "Not enought degree of freedom increase degree please" << "\n";
+       di << "Not enought degree of freedom increase degree please\n";
       }
       
       return 0;
@@ -617,7 +617,7 @@ static Standard_Integer cmovetangent (Draw_Interpretor& di, Standard_Integer n,
        Draw::Repaint();
        }
       else {
-       di << "Not enought degree of freedom increase degree please" << "\n";
+       di << "Not enought degree of freedom increase degree please\n";
       }
       
       return 0;
@@ -787,11 +787,11 @@ static Standard_Integer cremknot (Draw_Interpretor& di, Standard_Integer n, cons
 
   if (!GBs.IsNull()) {
     if (!GBs->RemoveKnot(index,mult,tol))
-      di << "Remove knots failed"<<"\n";
+      di << "Remove knots failed\n";
   }
   else {
     if (!GBs2d->RemoveKnot(index,mult,tol))
-      di << "Remove knots failed"<<"\n";
+      di << "Remove knots failed\n";
   }
 
   Draw::Repaint();
@@ -1368,7 +1368,7 @@ static Standard_Integer localprop(Draw_Interpretor& di,
       }
     }
     else 
-      di <<"Tangent undefined."<<"\n";  
+      di <<"Tangent undefined.\n";  
   }
   else {
     Geom2dLProp_CLProps2d Prop (C2d,2,Precision::Confusion());
@@ -1395,7 +1395,7 @@ static Standard_Integer localprop(Draw_Interpretor& di,
       }
     }
     else 
-      di <<"Tangent undefined."<<"\n";
+      di <<"Tangent undefined.\n";
   }
   return 0;
 }  
@@ -1436,32 +1436,32 @@ static Standard_Integer rawcont(Draw_Interpretor& di, Standard_Integer n, const
                            Precision::Angular()) ;
     switch (cont) {
     case GeomAbs_C0: 
-      di << " C0 Continuity " << "\n" ;
+      di << " C0 Continuity \n" ;
       break ;
     case GeomAbs_G1:
-      di << " G1 Continuity " << "\n" ;
+      di << " G1 Continuity \n" ;
       break ;
     case GeomAbs_C1 :
-      di << " C1 Continuity " << "\n" ;
+      di << " C1 Continuity \n" ;
       break ;
     case GeomAbs_G2 :
-      di << " G2 Continuity " << "\n" ;
+      di << " G2 Continuity \n" ;
       break ; 
     case GeomAbs_C2 :
-      di << " C2 Continuity " << "\n" ;
+      di << " C2 Continuity \n" ;
       break ; 
     case GeomAbs_C3 :
-      di << " C3 Continuity " << "\n" ;
+      di << " C3 Continuity \n" ;
       break ; 
     case GeomAbs_CN :
-      di << " CN Continuity " << "\n" ;
+      di << " CN Continuity \n" ;
       break ; 
     default:
       break ; 
     }
   }
   else {
-    di << " not C0 continuity " << "\n" ;
+    di << " not C0 continuity \n" ;
   }
   return 0 ;
 }
@@ -1507,7 +1507,7 @@ static Standard_Integer approxcurveonsurf(Draw_Interpretor& di, Standard_Integer
     return 0;
   }
 
-  di << "Approximation failed !" << "\n";
+  di << "Approximation failed !\n";
   return 1;
                            
 }
@@ -1699,7 +1699,7 @@ static Standard_Integer splitc1(Draw_Interpretor& di,
  Standard_Real l = ACurve->LastParameter();
 
  if ( Precision::IsInfinite(f) || Precision::IsInfinite(l)) {
-   di << " Error: Infinite curves" << "\n";
+   di << " Error: Infinite curves\n";
    return 1;
  }
 
@@ -1757,7 +1757,7 @@ static Standard_Integer splitc12d(Draw_Interpretor& di,
  Standard_Real l = ACurve->LastParameter();
 
  if ( Precision::IsInfinite(f) || Precision::IsInfinite(l)) {
-   di << " Error: Infinite curves" << "\n";
+   di << " Error: Infinite curves\n";
    return 1;
  }
 
@@ -1834,7 +1834,7 @@ static Standard_Integer length(Draw_Interpretor& di,
     L = GCPnts_AbscissaPoint::Length(AC, Tol);
   }
   else {
-    di << a[1] << "is not a curve" << "\n";
+    di << a[1] << "is not a curve\n";
     return 1;
   }
 
index edbf114007f6c78d88e35af8363bf3846f3f33d4..e5cb4d15060516bf95722f6bef52fe212011a965 100644 (file)
@@ -123,7 +123,7 @@ static Standard_Integer surface_radius (Draw_Interpretor& di,
        di << "Min Radius of Curvature : " << radius  << "\n";
       }
       else {
-       di << "Min Radius of Curvature :  infinite" << "\n";
+       di << "Min Radius of Curvature :  infinite\n";
       }
     
       radius = myProperties.MaxCurvature();
@@ -133,10 +133,10 @@ static Standard_Integer surface_radius (Draw_Interpretor& di,
        di << "Max Radius of Curvature : " << radius  << "\n";
       }
       else
-       di << "Min Radius of Curvature :  infinite" << "\n";
+       di << "Min Radius of Curvature :  infinite\n";
     }
     else {
-      di << "Curvature not defined." << "\n";
+      di << "Curvature not defined.\n";
     }
   }
   else {
@@ -548,7 +548,7 @@ static Standard_Integer tobezier(Draw_Interpretor& di,
          Conv(S, U1, U2, V1, V2, Precision::PConfusion());
        NbU = Conv.NbUPatches();
        NbV = Conv.NbVPatches();
-       di << NbU << " X " << NbV << " patches in the result" << "\n";
+       di << NbU << " X " << NbV << " patches in the result\n";
        for (i = 1; i <= NbU; i++) {
          for (j = 1; j <= NbV; j++) {
            Sprintf(name,"%s_%i_%i",a[1],i,j);
@@ -561,7 +561,7 @@ static Standard_Integer tobezier(Draw_Interpretor& di,
        GeomConvert_BSplineSurfaceToBezierSurface Conv(S);
        NbU = Conv.NbUPatches();
        NbV = Conv.NbVPatches();
-       di << NbU << " X " << NbV << " patches in the result" << "\n";
+       di << NbU << " X " << NbV << " patches in the result\n";
        for (i = 1; i <= NbU; i++) {
          for (j = 1; j <= NbV; j++) {
            Sprintf(name,"%s_%i_%i",a[1],i,j);
@@ -579,7 +579,7 @@ static Standard_Integer tobezier(Draw_Interpretor& di,
        GeomConvert_BSplineCurveToBezierCurve Conv(C3d, U1, U2, 
                                                   Precision::PConfusion());
        NbArc = Conv.NbArcs();
-       di << NbArc << " arcs in the result" << "\n";
+       di << NbArc << " arcs in the result\n";
        for (i = 1; i <= NbArc; i++) {
          Sprintf(name,"%s_%i",a[1],i);
          char *temp = name ;
@@ -589,7 +589,7 @@ static Standard_Integer tobezier(Draw_Interpretor& di,
       else {
        GeomConvert_BSplineCurveToBezierCurve Conv(C3d);
        NbArc = Conv.NbArcs();
-       di << NbArc << " arcs in the result" << "\n";
+       di << NbArc << " arcs in the result\n";
        for (i = 1; i <= NbArc; i++) {
          Sprintf(name,"%s_%i",a[1],i);
          char *temp = name ;
@@ -606,7 +606,7 @@ static Standard_Integer tobezier(Draw_Interpretor& di,
       Geom2dConvert_BSplineCurveToBezierCurve Conv(C2d, U1, U2, 
                                                   Precision::PConfusion());
       NbArc = Conv.NbArcs();
-      di << NbArc << " arcs in the result" << "\n";
+      di << NbArc << " arcs in the result\n";
       for (i = 1; i <= NbArc; i++) {
        Sprintf(name,"%s_%i",a[1],i);
        char *temp = name ;
@@ -616,7 +616,7 @@ static Standard_Integer tobezier(Draw_Interpretor& di,
     else {
       Geom2dConvert_BSplineCurveToBezierCurve Conv(C2d);
       NbArc = Conv.NbArcs();
-      di << NbArc << " arcs in the result" << "\n";
+      di << NbArc << " arcs in the result\n";
       for (i = 1; i <= NbArc; i++) {
        Sprintf(name,"%s_%i",a[1],i);
        char *temp = name ;
@@ -657,7 +657,7 @@ static Standard_Integer convbz(Draw_Interpretor& di,
        BZ(ii,jj) = 
          Handle(Geom_BezierSurface)::DownCast(DrawTrSurf::Get(a[kk]));
        if (BZ(ii,jj).IsNull()) {
-         di << "the Surface " << kk <<"is not a BezierSurface" << "\n";
+         di << "the Surface " << kk <<"is not a BezierSurface\n";
          return 1;
        }
        kk++;
@@ -667,7 +667,7 @@ static Standard_Integer convbz(Draw_Interpretor& di,
     GeomConvert_CompBezierSurfacesToBSplineSurface Conv(BZ, Tol);
     
     if (! Conv.IsDone()) {
-      di << "Convert Not Done" << "\n";
+      di << "Convert Not Done\n";
       return 1;
     }
 
@@ -688,7 +688,7 @@ static Standard_Integer convbz(Draw_Interpretor& di,
     for (ii=1, kk=3; ii<=NbU; ii++,kk++) {
       BZ =  Handle(Geom_BezierCurve)::DownCast(DrawTrSurf::Get(a[kk]));
       if (BZ.IsNull()) {
-         di << "the curve " << kk <<"is not a BezierCurve" << "\n";
+         di << "the curve " << kk <<"is not a BezierCurve\n";
          return 1;
        }
       TColgp_Array1OfPnt Poles(1, BZ->NbPoles());
@@ -1193,7 +1193,7 @@ static Standard_Integer rempole (Draw_Interpretor& di, Standard_Integer n, const
   
   if ( !strcasecmp(a[0],"remrowpole")) {
     if ( BSpline) {
-      di << " Error : Cannot remove a polerow on a BSplineSurface " << "\n";
+      di << " Error : Cannot remove a polerow on a BSplineSurface \n";
     }
     else {
       GBz->RemovePoleRow(NewIndex);
@@ -1201,7 +1201,7 @@ static Standard_Integer rempole (Draw_Interpretor& di, Standard_Integer n, const
   }
   else if ( !strcasecmp(a[0],"remcolpole")) {
     if ( BSpline) {
-      di << " Error : Cannot remove a polecol on a BSplineSurface " << "\n";
+      di << " Error : Cannot remove a polecol on a BSplineSurface \n";
     }
     else {
       GBz->RemovePoleCol(NewIndex);
@@ -1458,7 +1458,7 @@ static Standard_Integer parameters (Draw_Interpretor& di, Standard_Integer n, co
     { 
       // try to find parameters on a Surface
       Handle(Geom_Surface) S = DrawTrSurf::GetSurface(a[1]);
-      if( S.IsNull() ) { di << "Unknown surface" << "\n"; return 1; }
+      if( S.IsNull() ) { di << "Unknown surface\n"; return 1; }
       gp_Pnt P(Draw::Atof(a[2]), Draw::Atof(a[3]), Draw::Atof(a[4]));
       Standard_Real Tol = Draw::Atof(a[5]), U = 0., V = 0.;
       Standard_Boolean res = GeomLib_Tool::Parameters(S,P,Tol,U,V);
@@ -1466,41 +1466,41 @@ static Standard_Integer parameters (Draw_Interpretor& di, Standard_Integer n, co
       Draw::Set(a[6],U);
       Draw::Set(a[7],V);
 
-      if( !res ) { di << "Wrong point" << "\n"; return 1; }
+      if( !res ) { di << "Wrong point\n"; return 1; }
     }
   else if(n == 7)
     {
       // try to find parameters on a 3d Curve
       Handle(Geom_Curve) C = DrawTrSurf::GetCurve(a[1]);
-      if( C.IsNull() ) { di << "Unknown curve" << "\n"; return 1; }
+      if( C.IsNull() ) { di << "Unknown curve\n"; return 1; }
       gp_Pnt P(Draw::Atof(a[2]), Draw::Atof(a[3]), Draw::Atof(a[4]));
       Standard_Real Tol = Draw::Atof(a[5]), U = 0.;
       Standard_Boolean res = GeomLib_Tool::Parameter(C,P,Tol,U);
     
       Draw::Set(a[6],U);
 
-    if( !res ) { di << "Wrong point" << "\n"; return 1; }
+    if( !res ) { di << "Wrong point\n"; return 1; }
     }
   else if(n == 6)
     {
       // try to find parameters on a 2d Curve
       Handle(Geom2d_Curve) C = DrawTrSurf::GetCurve2d(a[1]);
-      if( C.IsNull() ) { di << "Unknown curve 2d" << "\n";  return 1; }
+      if( C.IsNull() ) { di << "Unknown curve 2d\n";  return 1; }
       gp_Pnt2d P(Draw::Atof(a[2]), Draw::Atof(a[3]));
       Standard_Real Tol = Draw::Atof(a[4]), U = 0.;
       Standard_Boolean res = GeomLib_Tool::Parameter(C,P,Tol,U);
     
       Draw::Set(a[5],U);
 
-      if( !res ) { di << "Wrong point" << "\n"; return 1; }
+      if( !res ) { di << "Wrong point\n"; return 1; }
     }
   else
     {
-      di << "Invalid parameters!" << "\n";
-      di << "Usage:" << "\n";
-      di << "parameters Surf X Y Z Tol U V" << "\n";
-      di << "parameters Curv X Y Z Tol U" << "\n";
-      di << "parameters Curv2d X Y Tol U" << "\n";
+      di << "Invalid parameters!\n";
+      di << "Usage:\n";
+      di << "parameters Surf X Y Z Tol U V\n";
+      di << "parameters Curv X Y Z Tol U\n";
+      di << "parameters Curv2d X Y Tol U\n";
       return 1;
     }
 
index bc6e17498a34aa88610f2fcfd4ceb10817650363..cd69e3d7dbcf2dac82b01cef8aa3196c037f8993 100644 (file)
@@ -134,7 +134,7 @@ hout (Draw_Interpretor& di, Standard_Integer n, const char** a)
   const char *name = a[2];
   TopoDS_Shape S = DBRep::Get(name);
   if (S.IsNull()) {
-    di << name << " is not a shape." << "\n";
+    di << name << " is not a shape.\n";
     return 1;
   }
   HLRTest::Set(a[1],S);
@@ -155,13 +155,13 @@ hfil (Draw_Interpretor& di, Standard_Integer n, const char** a)
   const char *name1 = a[1];
   Handle(HLRTopoBRep_OutLiner) HS = HLRTest::GetOutLiner(name1);
   if (HS.IsNull()) {
-    di << name1 << " is not an OutLiner." << "\n";
+    di << name1 << " is not an OutLiner.\n";
     return 1;
   }
   const char *name2 = a[2];
   HLRAlgo_Projector P;
   if (!HLRTest::GetProjector(name2,P)) {
-    di << name2 << " is not a projector." << "\n";
+    di << name2 << " is not a projector.\n";
     return 1;
   }
   BRepTopAdaptor_MapOfShapeTool MST;
@@ -182,7 +182,7 @@ sori (Draw_Interpretor& di, Standard_Integer n, const char** a)
   const char *name2 = a[2];
   Handle(HLRTopoBRep_OutLiner) HS = HLRTest::GetOutLiner(name2);
   if (HS.IsNull()) {
-    di << name2 << " is not an OutLiner." << "\n";
+    di << name2 << " is not an OutLiner.\n";
     return 1;
   }
   DBRep::Set(name1,HS->OriginalShape());
@@ -202,11 +202,11 @@ sout (Draw_Interpretor& di, Standard_Integer n, const char** a)
   const char *name2 = a[2];
   Handle(HLRTopoBRep_OutLiner) HS = HLRTest::GetOutLiner(name2);
   if (HS.IsNull()) {
-    di << name2 << " is not an OutLiner." << "\n";
+    di << name2 << " is not an OutLiner.\n";
     return 1;
   }
   if (HS->OutLinedShape().IsNull()) {
-    di << name2 << " has no OutLinedShape." << "\n";
+    di << name2 << " has no OutLinedShape.\n";
     return 1;
   }
   DBRep::Set(name1,HS->OutLinedShape());
@@ -225,7 +225,7 @@ hloa (Draw_Interpretor& di, Standard_Integer n, const char** a)
   const char *name1 = a[1];
   Handle(HLRTopoBRep_OutLiner) HS = HLRTest::GetOutLiner(name1);
   if (HS.IsNull()) {
-    di << name1 << " is not an OutLiner." << "\n";
+    di << name1 << " is not an OutLiner.\n";
     return 1;
   }
   hider->Load(HS);
@@ -247,13 +247,13 @@ hrem (Draw_Interpretor& di, Standard_Integer n, const char** a)
     if (HS.IsNull()) {
       TopoDS_Shape S = DBRep::Get(name);
       if (S.IsNull()) {
-       di << name << " is not an OutLiner and not a shape." << "\n";
+       di << name << " is not an OutLiner and not a shape.\n";
        return 1;
       }
       else {
        index = hider->Index(S);
        if (index == 0) {
-         di << name << " not loaded shape." << "\n";
+         di << name << " not loaded shape.\n";
          return 1;
        }
       }
@@ -261,18 +261,18 @@ hrem (Draw_Interpretor& di, Standard_Integer n, const char** a)
     else {
       index = hider->Index(HS->OriginalShape());
       if (index == 0) {
-       di << name << " not loaded outliner." << "\n";
+       di << name << " not loaded outliner.\n";
        return 1;
       }
     }
     hider->Remove(index);
-    di << name << " removed" << "\n";
+    di << name << " removed\n";
   }
   else {
     while (hider->NbShapes() > 0) {
       hider->Remove(1);
     }
-    di << " all shapes removed" << "\n";
+    di << " all shapes removed\n";
   }
   return 0;
 }
@@ -289,7 +289,7 @@ sprj (Draw_Interpretor& di, Standard_Integer n, const char** a)
   const char *name = a[1];
   HLRAlgo_Projector P;
   if (!HLRTest::GetProjector(name,P)) {
-    di << name << " is not a projector." << "\n";
+    di << name << " is not a projector.\n";
     return 1;
   }
   hider->Projector(P);
@@ -342,9 +342,9 @@ hdbg (Draw_Interpretor& di, Standard_Integer, const char**)
 {
   hider->Debug(!hider->Debug());
   if (hider->Debug())
-    di << "debug" << "\n";
+    di << "debug\n";
   else
-    di << "no debug" << "\n";
+    di << "no debug\n";
   return 0;
 }
 
index eceb0fff74af4bf2a0dbe606e7849b39f68a0433..5a3fe2bc8887a6b9b393e8be5844a66a759ee481 100644 (file)
@@ -1436,7 +1436,7 @@ Handle(TColStd_HSequenceOfTransient) IFSelect_WorkSession::SelectionResult
   }
 //  if (ItemIdent(sel) == 0)
   if (sel.IsNull())
-    {  cout << " Selection : "<<" Unknown"<<endl;  return res;  } //cout<<Handle
+    {  cout << " Selection :  Unknown"<<endl;  return res;  } //cout<<Handle
   return EvalSelection (sel).Content();
 }
 
@@ -3162,7 +3162,7 @@ void IFSelect_WorkSession::DumpSelection
 {
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   if (ItemIdent(sel) == 0) {
-    sout << "Selection : "<<" Unknown"<<endl;  //sout<<Handle
+    sout << "Selection :  Unknown"<<endl;  //sout<<Handle
     return;
   }
   sout << "        **********  Selection";
@@ -3427,7 +3427,7 @@ void IFSelect_WorkSession::DumpModel
     S << "        ********  Loaded File : "<<theloaded.ToCString()<<Interface_MSG::Blanks(32-theloaded.Length())<<" ********"<<endl;
   else S << "        ********  No name for Loaded File"<<endl;
   if (level == 0) {
-    S<<"        ********  Short Dump of Header                           ********"<<"\n";
+    S<<"        ********  Short Dump of Header                           ********\n";
   S << "        *****************************************************************\n\n";
     themodel->DumpHeader(S);  S<<endl;
   }
@@ -3440,7 +3440,7 @@ void IFSelect_WorkSession::DumpModel
     if (!shar.IsShared(themodel->Value(i))) nbr ++;
   }
   S << "        *****************************************************************\n";
-  S << "        ********  Model : "<<nbent<<" Entities, of which "<<nbr<<" Root(s)"<<"\n";
+  S << "        ********  Model : "<<nbent<<" Entities, of which "<<nbr<<" Root(s)\n";
   S << "        *****************************************************************\n"<<endl;
 
   if (level <= 0) return;
@@ -3662,7 +3662,7 @@ void IFSelect_WorkSession::EvaluateSelection
   if (!IsLoaded())
     {  sout<< " ***  Data for Evaluation not available  ***"<<endl;  return;  }
   if (ItemIdent(sel) == 0)
-    {  sout << " Selection : "<<" Unknown"<<endl;  return;  }  //sout<<Handle
+    {  sout << " Selection :  Unknown"<<endl;  return;  }  //sout<<Handle
   Interface_EntityIterator iter = EvalSelection (sel);
   ListEntities (iter,1);
   sout << "****  (Unique) RootResult, Selection        : "
@@ -3701,9 +3701,9 @@ void IFSelect_WorkSession::EvaluateDispatch
   if (!IsLoaded())
     {  sout<< " ***  Data for List not available  ***"<<endl;  return;  }
   if (theshareout->NbDispatches() < numdisp || numdisp <= 0)
-    { sout<<"Dispatch : "<<" Unknown"<<endl; return; } //sout<<Handle
+    { sout<<"Dispatch :  Unknown"<<endl; return; } //sout<<Handle
   if (disp->FinalSelection().IsNull())
-    { sout<<"Dispatch "<<" : No Final Selection"<<endl; return; }//sout<<Handle
+    { sout<<"Dispatch  : No Final Selection"<<endl; return; }//sout<<Handle
   sout<<" --- Dispatch Label : "<<disp->Label()<<endl; 
 
   IFSelect_ShareOutResult eval(disp,thegraph->Graph());
index 3d453c6c62f84b39d7bcfb78a24d95d26435367e..373122bfadcf654842c999af6eb82d885004088a 100644 (file)
@@ -137,7 +137,7 @@ void  IGESAppli_ToolDrilledHole::OwnDump
   S << "Finish diameter size : "  << ent->FinishDiaSize() << endl;
   S << "Plating indication flag : ";
   if (!ent->IsPlating())   S << "NO"  << "  -  ";
-  else                     S << "YES" << "  -  ";
+  else                     S << "YES  -  ";
   S << "Lower Numbered Layer  : " << ent->NbLowerLayer() << "  ";
   S << "Higher Numbered Layer : " << ent->NbHigherLayer() << endl;
 }
index cf7a3e9c2174754d4cab1762ba9e8dedabbdbe37..6614427f4d1b53d4c0111364b0ec9e8c082088ed 100644 (file)
@@ -97,9 +97,9 @@ IGESData_IGESDumper::IGESData_IGESDumper
   S<<" )    ****"<<endl;
 
 // ****    Entity 1234:D2467  **  Type:102 Form:56  **  CompositeCurve  **
-  S<<"\n"<<"****    Entity ";  PrintShort (ent,S);  S<<endl;
+  S<<"\n****    Entity ";  PrintShort (ent,S);  S<<endl;
 
-  S<<"              Directory Part"<<"\n";
+  S<<"              Directory Part\n";
 // **      Status :   Blank:1    Subordinate:2    UseFlag:3    Hierarchy:4
   if (own >= 2)
     S <<"**      Status Number :   Blank:"<<ent->BlankStatus()
@@ -126,7 +126,7 @@ IGESData_IGESDumper::IGESData_IGESDumper
     if (ent->HasStructure())
       {  S<<"**      Structure     :"; PrintDNum (ent->Structure(),S);  S<<"\n";  }
 
-    S<<"\n"<<"              Graphic Attributes"<<"\n";
+    S<<"\n              Graphic Attributes\n";
     if (ent->DefLineFont() == IGESData_DefValue)
       {  S<<"**      LineFont Value:"<<ent->RankLineFont()<<"\n"; }
     else if (ent->DefLineFont() == IGESData_DefReference)
@@ -150,7 +150,7 @@ IGESData_IGESDumper::IGESData_IGESDumper
     S<<endl;
 
     if (own > 3) {
-      S<<"****             Own Data             ****"<<"\n\n";
+      S<<"****             Own Data             ****\n\n";
       OwnDump(ent,S,own);
     }
   }
@@ -161,7 +161,7 @@ IGESData_IGESDumper::IGESData_IGESDumper
   Standard_Integer nb = iter.NbEntities();
   Standard_Boolean iasuit = (nb > 0);
   if (nb > 0) {
-    S<<"\n"<<"****     Properties (nb:"<<nb<<")          ****"<<"\n";
+    S<<"\n****     Properties (nb:"<<nb<<")          ****\n";
     for (;iter.More(); iter.Next()) {
       DeclareAndCast(IGESData_IGESEntity,ent2,iter.Value());
       Dump (ent2,S,att,-1);
@@ -171,14 +171,14 @@ IGESData_IGESDumper::IGESData_IGESDumper
   nb = iter.NbEntities();
   if (nb > 0) iasuit = Standard_True;
   if (nb > 0) {
-    S<<"\n"<<"****   Associativities (nb:"<<nb<<")        ****"<<"\n";
+    S<<"\n****   Associativities (nb:"<<nb<<")        ****\n";
     for (;iter.More(); iter.Next()) {
       DeclareAndCast(IGESData_IGESEntity,ent2,iter.Value());
       Dump(ent2,S,att,-1);
     }
   }
   if (iasuit) {  if (att <= 1) S << "\n";  }
-  S<<"\n"<<"****             End of Dump          ****"<<"\n"<<endl;
+  S<<"\n****             End of Dump          ****\n"<<endl;
 }
 
 
index 794747bd42fa9c9dc09792bc7f244ef1cc0aa3ac..5b8fbf923cf5a2f87d8ea64805299bcd86312f9e 100644 (file)
@@ -78,11 +78,11 @@ void IGESData_IGESModel::DumpHeader
   Standard_Integer ns = thestart->Length();
   S<<"****    Dump of IGES Model , Start and Global Sections   ****"<<endl;
   if (ns > 0) {
-    S << "****    Start Section : "<<ns<<" Line(s)   ****"<<"\n";
+    S << "****    Start Section : "<<ns<<" Line(s)   ****\n";
     for (Standard_Integer i = 1; i <= ns; i ++)
       S<<"["<<(i<10 ? " ": "")<<i<<"]:"<<thestart->Value(i)->ToCString()<<endl;
   }
-  S << "\n"<<"****    Global Section    ****"<<"\n";
+  S << "\n****    Global Section    ****\n";
   char sep = theheader.Separator();
   if (sep == ',')  S << "[ 1]      Default Separator : " << sep;
   else             S << "[ 1]  Non Default Separator : " << sep;
@@ -128,7 +128,7 @@ void IGESData_IGESModel::DumpHeader
   S << "[19]  Resolution            : " << theheader.Resolution()<<"\n";
   if (theheader.HasMaxCoord())
     S<<"[20]  Maximum Coord         : " << theheader.MaxCoord() << "\n\n";
-  else S<<"[20]  Maximum Coord           not defined"<<"\n\n";
+  else S<<"[20]  Maximum Coord           not defined\n\n";
 
   str = theheader.AuthorName();
   if (!str.IsNull()) S<<"[21]  Author                : "<<str->ToCString()<<"\n";
@@ -139,7 +139,7 @@ void IGESData_IGESModel::DumpHeader
     << IGESData_BasicEditor::IGESVersionName(num);
 
   num = theheader.DraftingStandard();
-  S << "\n"<<"[24]  Drafting Standard     : " << num;
+  S << "\n[24]  Drafting Standard     : " << num;
   if (num > 0) S<< "   -> Name : " << IGESData_BasicEditor::DraftingName(num);
   S<<endl;
 
index 60fefd004f0b1613db8ba1732d52cc4ca739e02c..ecd88badda192507c9ce86cb1ebe715da626512b 100644 (file)
@@ -266,7 +266,7 @@ void  IGESDefs_ToolGenericData::OwnDump
     {
     case 4:
       S << "Types  : " << endl;
-      S << "Values : " << "Count = " << ent->NbTypeValuePairs() << endl;
+      S << "Values : Count = " << ent->NbTypeValuePairs() << endl;
       S << "      [ as level > 4 for content ]" << endl;
       break;
     case 5:
index c4a61aa936d7ea11dc956e4160adc2acb6d034da..98caa6b3756efb47a1fe368cd44247c028f5351e 100644 (file)
@@ -420,7 +420,7 @@ void IGESGeom_ToolBSplineCurve::OwnDump(const Handle(IGESGeom_BSplineCurve)& ent
   S << endl << "Control Points (Poles) : ";
   IGESData_DumpListXYZL(S ,level,0, upind, ent->Pole, ent->Location());
   S << endl << "Starting Parameter Value : " << ent->UMin();
-  S << "  " << "Ending Parameter Value : " << ent->UMax() << endl;
+  S << "  Ending Parameter Value : " << ent->UMax() << endl;
   S << "Unit Normal : ";
   IGESData_DumpXYZL(S,level, ent->Normal(), ent->Location());
   S << endl;
index f074f276f5a593518d9fb50afc47c8ff248e6963..38f183aceb60dac85685e31d1094ced372579308 100644 (file)
@@ -336,7 +336,7 @@ void IGESGeom_ToolSplineSurface::OwnDump
   else                          S << "  (Unspecified)";
   S << endl;
   S << "Number Of Segments. In U : "
-    << nbUSegs << "  " << "  In V : " << nbVSegs << endl;
+    << nbUSegs << "    In V : " << nbVSegs << endl;
   S << "The U Break Points : ";
   IGESData_DumpVals(S ,level,1, nbUSegs+1,ent->UBreakPoint);
   S <<endl<< "The V Break Points : ";
index 1f966181c3d0f36961e68d2888a490de88184e76..0cf5659a42fdad7894f7c3131d66a336968aefa8 100644 (file)
@@ -413,7 +413,7 @@ AffPosition(T2,PParamOnSecond," Point 2 ");
 
 #if 0 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-#define Debug(q) cout<<"IntRes2d_Intersection"<<"q ="<<q<<endl;
+#define Debug(q) cout<<"IntRes2d_Intersectionq ="<<q<<endl;
 
 char *DebugPos(const IntRes2d_Position P);
 
index 277261dc92b4343012bf396128db3e69d0c0dd7e..7083b97383f88255f8fabf5a0d978ac4ec6be922 100644 (file)
@@ -277,7 +277,7 @@ static Standard_Integer fastdiscret(Draw_Interpretor& di, Standard_Integer nbarg
   //if (nbarg > 4) NbIterations = Draw::Atoi(argv[4]);
   //MESH.NbIterations() = NbIterations;
 
-  di<<"Starting FastDiscret with :"<<"\n";
+  di<<"Starting FastDiscret with :\n";
   di<<"  Deflection="<<d<<"\n";
   di<<"  Angle="<<0.5<<"\n";
 
@@ -349,7 +349,7 @@ static Standard_Integer fastdiscret(Draw_Interpretor& di, Standard_Integer nbarg
     DBRep::Set(name,aCompViolating);
   }
 
-  di<<"FastDiscret completed with :"<<"\n";
+  di<<"FastDiscret completed with :\n";
   di<<"  MaxDeflection="<<maxdef<<"\n";
   di<<"  NbNodes="<<nbnodes<<"\n";
   di<<"  NbTriangles="<<nbtriangles<<"\n";
@@ -459,7 +459,7 @@ static Standard_Integer triangule(Draw_Interpretor& di, Standard_Integer nbarg,
   Standard_Real aDeflection = Draw::Atof(argv[3]);
   if (aDeflection <= 0.)
   {
-    di << " Incorrect value of deflection!" << "\n";
+    di << " Incorrect value of deflection!\n";
     return 1;
   }
 
@@ -471,7 +471,7 @@ static Standard_Integer triangule(Draw_Interpretor& di, Standard_Integer nbarg,
   Standard_Integer nbn, nbl, nbe;
   MeshStats(aShape, nbe, nbl, nbn);
 
-  di<<"(Resultat ("<<nbe<<" mailles) ("<<nbl<<" aretes) ("<<nbn<<" sommets))"<<"\n";
+  di<<"(Resultat ("<<nbe<<" mailles) ("<<nbl<<" aretes) ("<<nbn<<" sommets))\n";
 
   // passe de verification du maillage.
   /*Standard_Integer nbc;
@@ -935,8 +935,8 @@ static Standard_Integer trianglesinfo(Draw_Interpretor& di, Standard_Integer n,
   }
 
   di<<"\n";
-  di<<"This shape contains " <<nbtriangles<<" triangles."<<"\n";
-  di<<"                    " <<nbnodes    <<" nodes."<<"\n";
+  di<<"This shape contains " <<nbtriangles<<" triangles.\n";
+  di<<"                    " <<nbnodes    <<" nodes.\n";
   di<<"Maximal deflection " <<MaxDeflection<<"\n";
   di<<"\n";
 #ifdef OCCT_DEBUG_MESH_CHRONO
@@ -953,26 +953,26 @@ static Standard_Integer trianglesinfo(Draw_Interpretor& di, Standard_Integer n,
   chPointValid.Show(pointvalid); chIsos.Show(isos); chPointsOnIsos.Show(pointsisos);
 
   if (tot > 0.00001) {
-    di <<"temps total de maillage:     "<<tot        <<" seconds"<< "\n";
-    di <<"dont: "<< "\n";
-    di <<"discretisation des edges:    "<<edges      <<" seconds---> "<< 100*edges/tot      <<" %"<<"\n";
-    di <<"maillage des edges:          "<<mailledges <<" seconds---> "<< 100*mailledges/tot <<" %"<<"\n";
-    di <<"controle et points internes: "<<etuinter   <<" seconds---> "<< 100*etuinter/tot   <<" %"<<"\n";
-    di <<"derniers controles:          "<<lastcontrol<<" seconds---> "<< 100*lastcontrol/tot<<" %"<<"\n";
-    di <<"stockage dans la S.D.        "<<stock      <<" seconds---> "<< 100*stock/tot      <<" %"<<"\n";
+    di <<"temps total de maillage:     "<<tot        <<" seconds\n";
+    di <<"dont: \n";
+    di <<"discretisation des edges:    "<<edges      <<" seconds---> "<< 100*edges/tot      <<" %\n";
+    di <<"maillage des edges:          "<<mailledges <<" seconds---> "<< 100*mailledges/tot <<" %\n";
+    di <<"controle et points internes: "<<etuinter   <<" seconds---> "<< 100*etuinter/tot   <<" %\n";
+    di <<"derniers controles:          "<<lastcontrol<<" seconds---> "<< 100*lastcontrol/tot<<" %\n";
+    di <<"stockage dans la S.D.        "<<stock      <<" seconds---> "<< 100*stock/tot      <<" %\n";
     di << "\n";
-    di <<"et plus precisement: "<<"\n";
-    di <<"Add 11ere partie :           "<<add11     <<" seconds---> "<<100*add11/tot      <<" %"<<"\n";
-    di <<"Add 12ere partie :           "<<add12     <<" seconds---> "<<100*add12/tot      <<" %"<<"\n";
-    di <<"Add 2eme partie :            "<<add2      <<" seconds---> "<<100*add2/tot       <<" %"<<"\n";
-    di <<"Update :                     "<<upda      <<" seconds---> "<<100*upda/tot       <<" %"<<"\n";
-    di <<"AddPoint :                   "<<addp      <<" seconds---> "<<100*addp/tot       <<" %"<<"\n";
-    di <<"UniformDeflection            "<<unif      <<" seconds---> "<<100*unif/tot       <<" %"<<"\n";
-    di <<"Controle :                   "<<contr     <<" seconds---> "<<100*contr/tot      <<" %"<<"\n";
-    di <<"Points Internes:             "<<inter     <<" seconds---> "<<100*inter/tot      <<" %"<<"\n";
-    di <<"calcul des isos et du, dv:   "<<isos      <<" seconds---> "<<100*isos/tot       <<" %"<<"\n";
-    di <<"calcul des points sur isos:  "<<pointsisos<<" seconds---> "<<100*pointsisos/tot <<" %"<<"\n";
-    di <<"IsPointValid:                "<<pointvalid<<" seconds---> "<<100*pointvalid/tot <<" %"<<"\n";
+    di <<"et plus precisement: \n";
+    di <<"Add 11ere partie :           "<<add11     <<" seconds---> "<<100*add11/tot      <<" %\n";
+    di <<"Add 12ere partie :           "<<add12     <<" seconds---> "<<100*add12/tot      <<" %\n";
+    di <<"Add 2eme partie :            "<<add2      <<" seconds---> "<<100*add2/tot       <<" %\n";
+    di <<"Update :                     "<<upda      <<" seconds---> "<<100*upda/tot       <<" %\n";
+    di <<"AddPoint :                   "<<addp      <<" seconds---> "<<100*addp/tot       <<" %\n";
+    di <<"UniformDeflection            "<<unif      <<" seconds---> "<<100*unif/tot       <<" %\n";
+    di <<"Controle :                   "<<contr     <<" seconds---> "<<100*contr/tot      <<" %\n";
+    di <<"Points Internes:             "<<inter     <<" seconds---> "<<100*inter/tot      <<" %\n";
+    di <<"calcul des isos et du, dv:   "<<isos      <<" seconds---> "<<100*isos/tot       <<" %\n";
+    di <<"calcul des points sur isos:  "<<pointsisos<<" seconds---> "<<100*pointsisos/tot <<" %\n";
+    di <<"IsPointValid:                "<<pointvalid<<" seconds---> "<<100*pointvalid/tot <<" %\n";
     di << "\n";
 
 
@@ -1126,7 +1126,7 @@ static Standard_Integer veriftriangles(Draw_Interpretor& di, Standard_Integer n,
             deflemin = Min(deflemin, defle);
 
             if (defle > defstock) {
-              di <<"face "<< nbface <<" deflection = " << defle <<" pour "<<defstock <<" stockee."<<"\n";
+              di <<"face "<< nbface <<" deflection = " << defle <<" pour "<<defstock <<" stockee.\n";
             }
           }
         }
@@ -1469,7 +1469,7 @@ Standard_Integer vb(Draw_Interpretor& di, Standard_Integer nbarg, const char** a
           di<< VB(i, j) << ", ";
         }
       }
-      di << "\n" << "\n";
+      di << "\n\n";
     }
   }
   return 0;
index 13112882ff93a7a49c11bb8f02655f80bc0d44b6..c0887c65f17766f293b0a12b4d2733a5ebe4a659 100644 (file)
@@ -118,7 +118,7 @@ void MeshTest_CheckTopology::Perform (Draw_Interpretor& di)
     TopLoc_Location aLoc;
     Handle(Poly_Triangulation) aT = BRep_Tool::Triangulation(aFace, aLoc);
     if (aT.IsNull()) {
-      di << "face " <<iF <<" has no triangulation" << "\n";
+      di << "face " <<iF <<" has no triangulation\n";
       continue;
     }
 
index 1b0d8fc737720957d9378efbd453227b001d82a7..c6ea3cfa799f474b9434372e17ae40d0ef262559 100644 (file)
@@ -395,7 +395,7 @@ static Standard_Integer tricheck (Draw_Interpretor& di, int n, const char ** a)
   // dump info on cross face errors
   Standard_Integer nbErr = aCheck.NbCrossFaceErrors();
   if (nbErr > 0) {
-    di << "cross face errors: {face1, node1, face2, node2, distance}" << "\n";
+    di << "cross face errors: {face1, node1, face2, node2, distance}\n";
     for (i=1; i <= nbErr; i++) {
       Standard_Integer iF1, n1, iF2, n2;
       Standard_Real aVal;
@@ -408,7 +408,7 @@ static Standard_Integer tricheck (Draw_Interpretor& di, int n, const char ** a)
   // dump info on edges
   Standard_Integer nbAsync = aCheck.NbAsyncEdges();
   if (nbAsync > 0) {
-    di << "async edges:" << "\n";
+    di << "async edges:\n";
     for (i=1; i <= nbAsync; i++) {
       Standard_Integer ie = aCheck.GetAsyncEdgeNum(i);
       di << ie << " ";
@@ -419,7 +419,7 @@ static Standard_Integer tricheck (Draw_Interpretor& di, int n, const char ** a)
   // dump info on free nodes
   Standard_Integer nbFreeNodes = aCheck.NbFreeNodes();
   if (nbFreeNodes > 0) {
-    di << "free nodes (in pairs: face / node): " << "\n";
+    di << "free nodes (in pairs: face / node): \n";
     for (i=1; i <= nbFreeNodes; i++) {
       Standard_Integer iface, inode;
       aCheck.GetFreeNodeNum(i, iface, inode);
index 7529a33efe91d58ed1be7245a3241a8745e91f66..821793932e6fafa477961af53801f9594effb051 100644 (file)
@@ -45,7 +45,7 @@ class TCollection_HExtendedString;
 //! with previous versions).
 //!
 //! User fills the parameter fields in the text of the message by
-//! calling corresponding methods Arg() or operators "<<".
+//! calling corresponding methods Arg() or operators .
 //!
 //! The resulting message, filled with all parameters, can be obtained
 //! by method Get(). If some parameters were not filled, the text
index 99539a8ab7de36bdd9e5eae1d763f7875db44a50..dda08524c29072d790006e4ff16a560d37b057a3 100644 (file)
@@ -70,12 +70,12 @@ static Standard_Integer OCC328bug (Draw_Interpretor& di, Standard_Integer argc,
 {
   Handle(AIS_InteractiveContext) aContext = ViewerTest::GetAISContext();
   if(aContext.IsNull()) { 
-    di << argv[0] << "ERROR : use 'vinit' command before " << "\n";
+    di << argv[0] << "ERROR : use 'vinit' command before \n";
     return 1;
   }
 
   if ( argc != 3) {
-    di << "ERROR : Usage : " << argv[0] << " shape mode" << "\n";
+    di << "ERROR : Usage : " << argv[0] << " shape mode\n";
     return 1;
   }
   
@@ -102,7 +102,7 @@ static Standard_Integer OCC328bug (Draw_Interpretor& di, Standard_Integer argc,
     ChoosingMode = 7;
   }
   if ( ChoosingMode == -1 ) {
-    di << "ERROR : " << argv[1] << " : vrong value of a mode" << "\n";
+    di << "ERROR : " << argv[1] << " : vrong value of a mode\n";
     return 1;
   }
 
@@ -114,12 +114,12 @@ static Standard_Integer OCC328bug (Draw_Interpretor& di, Standard_Integer argc,
   Handle(AIS_InteractiveObject) AISObj;
   
   if(!aMap.IsBound2(aName)) {
-    di << "Use 'vdisplay' before" << "\n";
+    di << "Use 'vdisplay' before\n";
     return 1;
   } else {
     AISObj = Handle(AIS_InteractiveObject)::DownCast(aMap.Find2(aName));
     if(AISObj.IsNull()){
-      di << argv[1] << " : No interactive object" << "\n";
+      di << argv[1] << " : No interactive object\n";
       return 1;
     } 
 
@@ -182,7 +182,7 @@ static Standard_Integer OCC328bug (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer OCC159bug (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if ( argc != 2) {
-    di << "ERROR : Usage : " << argv[0] << " Doc" << "\n";
+    di << "ERROR : Usage : " << argv[0] << " Doc\n";
     return 1;
   }
   
@@ -197,9 +197,9 @@ static Standard_Integer OCC159bug (Draw_Interpretor& di, Standard_Integer argc,
 
   Handle(TDocStd_Document) OwnerD1 = Owner->GetDocument();    
   if (OwnerD1.IsNull()) {
-    di << "DocOwner1 = NULL" << "\n";
+    di << "DocOwner1 = NULL\n";
   } else {
-    di << "DocOwner1 = NOTNULL" << "\n";
+    di << "DocOwner1 = NOTNULL\n";
   }
  
   Handle(TDocStd_Application) A;
@@ -211,9 +211,9 @@ static Standard_Integer OCC159bug (Draw_Interpretor& di, Standard_Integer argc,
 
   Handle(TDocStd_Document) OwnerD2 = Owner->GetDocument();    
   if (OwnerD2.IsNull()) {
-    di << "DocOwner2 = NULL" << "\n";
+    di << "DocOwner2 = NULL\n";
   } else {
-    di << "DocOwner2 = NOTNULL" << "\n";
+    di << "DocOwner2 = NOTNULL\n";
   }
 
   Standard_Integer DocRefCount2 = D->GetRefCount();
@@ -225,7 +225,7 @@ static Standard_Integer OCC159bug (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer OCC145bug (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if ( argc != 3) {
-    di << "ERROR : Usage : " << argv[0] << " Shape MaxNbr" << "\n";
+    di << "ERROR : Usage : " << argv[0] << " Shape MaxNbr\n";
     return 1;
   }
 
@@ -236,7 +236,7 @@ static Standard_Integer OCC145bug (Draw_Interpretor& di, Standard_Integer argc,
   TopoDS_Shape aShape;
 
   if (!BRepTools::Read(aShape, aFileName.ToCString(), aBld)) {
-    di << "ERROR :Could not read a shape!!!" << "\n";
+    di << "ERROR :Could not read a shape!!!\n";
     return 1;
   }
 
@@ -246,7 +246,7 @@ static Standard_Integer OCC145bug (Draw_Interpretor& di, Standard_Integer argc,
   for (i = 1; i <= aMaxNbr; i++) {
     BRepBuilderAPI_MakeFace aMF(aWire);
     if (!aMF.IsDone()) {
-      di << "ERROR : Could not make a face" << "\n";
+      di << "ERROR : Could not make a face\n";
       return 1;
     }
   }
@@ -257,7 +257,7 @@ static Standard_Integer OCC145bug (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer OCC73_SelectionMode (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if ( argc < 3) {
-    di << "ERROR : Usage : " << argv[0] << " DOC entry [SelectionMode]" << "\n";
+    di << "ERROR : Usage : " << argv[0] << " DOC entry [SelectionMode]\n";
     return 1;
   }
 
@@ -299,13 +299,13 @@ static Standard_Integer OCC10bug (Draw_Interpretor& di, Standard_Integer argc, c
   }
 
   if(argc != 4) {
-    di << "Usage : " << argv[0] << " name plane Length" << "\n";
+    di << "Usage : " << argv[0] << " name plane Length\n";
     return 1;
   }
 
   TopoDS_Shape S = DBRep::Get( argv[2] );
   if ( S.IsNull() ) {
-    di << "Shape is empty" << "\n";
+    di << "Shape is empty\n";
     return 1;
   }
 
@@ -378,9 +378,9 @@ static Standard_Integer OCC10bug (Draw_Interpretor& di, Standard_Integer argc, c
   di << "getLength = " << getLength << "\n";
 
   if (getLength == Length) {
-    di << "OCC10: OK" << "\n";
+    di << "OCC10: OK\n";
   } else {
-    di << "OCC10: ERROR" << "\n";
+    di << "OCC10: ERROR\n";
   }
 
   return 0;
@@ -390,12 +390,12 @@ static Standard_Integer OCC74bug_set (Draw_Interpretor& di, Standard_Integer arg
 {
   Handle(AIS_InteractiveContext) aContext = ViewerTest::GetAISContext();
   if(aContext.IsNull()) { 
-    di << argv[0] << "ERROR : use 'vinit' command before " << "\n";
+    di << argv[0] << "ERROR : use 'vinit' command before \n";
     return 1;
   }
 
   if ( argc != 3) {
-    di << "ERROR : Usage : " << argv[0] << " shape mode; set selection mode" << "\n";
+    di << "ERROR : Usage : " << argv[0] << " shape mode; set selection mode\n";
     return 1;
   }
   
@@ -409,12 +409,12 @@ static Standard_Integer OCC74bug_set (Draw_Interpretor& di, Standard_Integer arg
   Standard_Integer SelectMode = Draw::Atoi(argv[2]);
   
   if(!aMap.IsBound2(aName)) {
-    di << "Use 'vdisplay' before" << "\n";
+    di << "Use 'vdisplay' before\n";
     return 1;
   } else {
     AISObj = Handle(AIS_InteractiveObject)::DownCast(aMap.Find2(aName));
     if(AISObj.IsNull()){
-      di << argv[1] << " : No interactive object" << "\n";
+      di << argv[1] << " : No interactive object\n";
       return 1;
     } 
     if (!aContext->HasOpenedContext()) {
@@ -434,12 +434,12 @@ static Standard_Integer OCC74bug_get (Draw_Interpretor& di, Standard_Integer arg
 {
   Handle(AIS_InteractiveContext) aContext = ViewerTest::GetAISContext();
   if(aContext.IsNull()) { 
-    di << argv[0] << "ERROR : use 'vinit' command before " << "\n";
+    di << argv[0] << "ERROR : use 'vinit' command before \n";
     return 1;
   }
 
   if ( argc != 2) {
-    di << "ERROR : Usage : " << argv[0] << " shape; get selection mode" << "\n";
+    di << "ERROR : Usage : " << argv[0] << " shape; get selection mode\n";
     return 1;
   }
 
@@ -449,12 +449,12 @@ static Standard_Integer OCC74bug_get (Draw_Interpretor& di, Standard_Integer arg
   Handle(AIS_InteractiveObject) AISObj;
 
   if(!aMap.IsBound2(aName)) {
-    di << "Use 'vdisplay' before" << "\n";
+    di << "Use 'vdisplay' before\n";
     return 1;
   } else {
     AISObj = Handle(AIS_InteractiveObject)::DownCast(aMap.Find2(aName));
     if(AISObj.IsNull()){
-      di << argv[1] << " : No interactive object" << "\n";
+      di << argv[1] << " : No interactive object\n";
       return 1;
     } 
     TColStd_ListOfInteger anActivatedModes;
@@ -475,14 +475,14 @@ static Standard_Integer OCC74bug_get (Draw_Interpretor& di, Standard_Integer arg
 static Standard_Integer OCC361bug (Draw_Interpretor& di, Standard_Integer nb, const char ** a)
 {
   if ( nb != 2) {
-    di << "ERROR : Usage : " << a[0] << " Doc" << "\n";
-    di << "-1" << "\n";
+    di << "ERROR : Usage : " << a[0] << " Doc\n";
+    di << "-1\n";
     return -1;
   }
 
   Handle(TDocStd_Document) D;    
   if (!DDocStd::GetDocument(a[1],D)) {
-    di << "-2" << "\n";
+    di << "-2\n";
     return 1;  
   }
 
@@ -504,9 +504,9 @@ static Standard_Integer OCC361bug (Draw_Interpretor& di, Standard_Integer nb, co
 
   aTBox = aBuilder2.NamedShape()->Get();
   if(aTBox.Orientation() != TopAbs_REVERSED) {
-    di << "1" << "\n";
+    di << "1\n";
   } else {
-    di << "0" << "\n";
+    di << "0\n";
   }
   return 0;
 }
index a4229cc9cbae65f78dd148e6b861d520655d3aa2..dc58ec50d14c69140b02900b3c158b2fda591e08 100644 (file)
@@ -52,7 +52,7 @@
 static Standard_Integer OCC426 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if(argc < 7 || argc > 8) {
-    di << "Usage : " << argv[0] << " shape1 shape2 shape3 shape4 shape5 shape6 [BRepAlgoAPI/BRepAlgo = 1/0]" << "\n";
+    di << "Usage : " << argv[0] << " shape1 shape2 shape3 shape4 shape5 shape6 [BRepAlgoAPI/BRepAlgo = 1/0]\n";
     return 1;
   }
   Standard_Boolean IsBRepAlgoAPI = Standard_True;
@@ -61,7 +61,7 @@ static Standard_Integer OCC426 (Draw_Interpretor& di, Standard_Integer argc, con
     if (IsB != 1) {
       IsBRepAlgoAPI = Standard_False;
 #if ! defined(BRepAlgo_def01)
-//      di << "Error: There is not BRepAlgo_Fuse class" << "\n";
+//      di << "Error: There is not BRepAlgo_Fuse class\n";
 //      return 1;
 #endif
     }
@@ -119,13 +119,13 @@ static Standard_Integer OCC426 (Draw_Interpretor& di, Standard_Integer argc, con
 
   TopoDS_Shape fuse32, fuse321;
   if (IsBRepAlgoAPI) {
-    di << "fuse32 = BRepAlgoAPI_Fuse(rs3, rs2)" <<"\n";
-    di << "fuse321 = BRepAlgoAPI_Fuse(fuse32, rs1)" <<"\n";
+    di << "fuse32 = BRepAlgoAPI_Fuse(rs3, rs2)\n";
+    di << "fuse321 = BRepAlgoAPI_Fuse(fuse32, rs1)\n";
     fuse32 = BRepAlgoAPI_Fuse(rs3, rs2);
     fuse321 = BRepAlgoAPI_Fuse(fuse32, rs1);
   } else {
-    di << "fuse32 = BRepAlgo_Fuse(rs3, rs2)" <<"\n";
-    di << "fuse321 = BRepAlgo_Fuse(fuse32, rs1)" <<"\n";
+    di << "fuse32 = BRepAlgo_Fuse(rs3, rs2)\n";
+    di << "fuse321 = BRepAlgo_Fuse(fuse32, rs1)\n";
     fuse32 = BRepAlgo_Fuse(rs3, rs2);
     fuse321 = BRepAlgo_Fuse(fuse32, rs1);
   }
@@ -133,10 +133,10 @@ static Standard_Integer OCC426 (Draw_Interpretor& di, Standard_Integer argc, con
   //Give the mass claculation of the shpae "fuse321"
   GProp_GProps G;
   BRepGProp::VolumeProperties(fuse321, G);
-  di<<" "<<"\n";
-  di<<"Mass: "<<G.Mass()<<"\n"<<"\n";
+  di<<" \n";
+  di<<"Mass: "<<G.Mass()<<"\n\n";
 
-  di << "Trianglating Faces ....." <<"\n";
+  di << "Trianglating Faces .....\n";
   TopExp_Explorer ExpFace;
 
   for (ExpFace.Init (fuse321,TopAbs_FACE); ExpFace.More(); ExpFace.Next())
@@ -148,27 +148,27 @@ static Standard_Integer OCC426 (Draw_Interpretor& di, Standard_Integer argc, con
       Handle(Poly_Triangulation) facing = BRep_Tool::Triangulation(TopologicalFace, loc);
       if (facing.IsNull())
       {
-        di << "Triangulation FAILED for this face" << "\n";
+        di << "Triangulation FAILED for this face\n";
         continue;
       }
       di << "No of Triangles = " << facing->NbTriangles() << "\n";
     }
-  di<<"Triangulation of all Faces Completed. "<< "\n" << "\n";
+  di<<"Triangulation of all Faces Completed. \n\n";
 
   TopTools_IndexedDataMapOfShapeListOfShape edgemap;
   TopExp::MapShapesAndAncestors(fuse321, TopAbs_EDGE, TopAbs_SOLID, edgemap);
   di << "No. of Edges: " << edgemap.Extent() << "\n";
   ChFi3d_FilletShape FShape = ChFi3d_Rational;
   BRepFilletAPI_MakeFillet blend(fuse321,FShape);
-  di << "Adding Edges ..... " << "\n";
+  di << "Adding Edges ..... \n";
   for(int i = 1; i <= edgemap.Extent(); i++)
     {
       // cout << "Adding Edge : " << i << endl;
       TopoDS_Edge edg = TopoDS::Edge( edgemap.FindKey(i) );
       if(!edg.IsNull()) blend.Add(1, edg);
     }
-  di << "All Edges added !  Now Building the Blend ... " << "\n";
-  di<<" "<<"\n";
+  di << "All Edges added !  Now Building the Blend ... \n";
+  di<<" \n";
   blend.Build();
 
   //DBRep::Set ( argv[1], fuse321 );
@@ -291,7 +291,7 @@ static Standard_Integer OCC486(Draw_Interpretor& di, Standard_Integer argc, cons
 //=======================================================================
 static Standard_Integer OCC712 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv) {
   if (argc != 3) {
-    di << "Usage : " << argv[0] << " draftAngle slabThick" << "\n";
+    di << "Usage : " << argv[0] << " draftAngle slabThick\n";
     return 1;
   }
   //NOTE: Case:1 - draftAngle = 15, slabThick = 30 --> Fails
@@ -332,7 +332,7 @@ static Standard_Integer OCC712 (Draw_Interpretor& di, Standard_Integer argc, con
 
   if (!MW.IsDone())
     {
-      di << "my Wire not done" << "\n";
+      di << "my Wire not done\n";
       return 1;
     }
   TopoDS_Wire W = MW.Wire();
@@ -340,7 +340,7 @@ static Standard_Integer OCC712 (Draw_Interpretor& di, Standard_Integer argc, con
   TopoDS_Face F = BRepBuilderAPI_MakeFace(W);
   if ( F.IsNull())
     {
-      di << " Error in Face creation " << "\n";
+      di << " Error in Face creation \n";
       return 1;
     }
 
@@ -358,7 +358,7 @@ static Standard_Integer OCC712 (Draw_Interpretor& di, Standard_Integer argc, con
       BRepPrimAPI_MakePrism slab(F, slabVect, Standard_True);
       if ( ! slab.IsDone() )
         {
-         di << " Error in Slab creation " << "\n";
+         di << " Error in Slab creation \n";
          return 1;
         }
 
@@ -379,17 +379,17 @@ static Standard_Integer OCC712 (Draw_Interpretor& di, Standard_Integer argc, con
              draftSlab.Add(aFace, slabDir, angle, slabPln);
              if (!draftSlab.AddDone())
                 {
-                 di << " Error in Add " << "\n";
+                 di << " Error in Add \n";
                  return 1;
                 }
             }
 
-         di << "All Faces added. Building... " << "\n"; //cout.flush();
+         di << "All Faces added. Building... \n"; //cout.flush();
          draftSlab.Build();
-         di << "Build done..." << "\n"; //cout.flush();
+         di << "Build done...\n"; //cout.flush();
          if (!draftSlab.IsDone())  //--------------> STEP:1
             {
-             di << " Error in Build " << "\n";
+             di << " Error in Build \n";
              return 1;
             }
          slabShape = draftSlab.Shape();
@@ -398,7 +398,7 @@ static Standard_Integer OCC712 (Draw_Interpretor& di, Standard_Integer argc, con
     }
   catch ( Standard_Failure ) //--------------------> STEP:2
     {
-      di << " Error in Draft Slab " << "\n";
+      di << " Error in Draft Slab \n";
       return 1;
     }
   return 0;
@@ -426,20 +426,20 @@ Standard_Integer performTriangulation (TopoDS_Shape aShape, Draw_Interpretor& di
       if (facing.IsNull())
         {
          failed++;
-         di << "******************** FAILED during Triangulation " << "\n";
+         di << "******************** FAILED during Triangulation \n";
         }
       else
         {
-         di << facing->NbTriangles() << " Triangles" <<"\n";
+         di << facing->NbTriangles() << " Triangles\n";
         }
     }
-  di<<"Triangulation of all Faces Completed: "<<"\n"<<"\n";
+  di<<"Triangulation of all Faces Completed: \n\n";
   if (failed == 0) return 1;
-  di<<"***************************************************"<<"\n";
-  di<<"*******                                    ********"<<"\n";
-  di<<"***** Triangulation FAILED for " << failed << " of " << total << " Faces ******"<<"\n";
-  di<<"*******                                    ********"<<"\n";
-  di<<"***************************************************"<<"\n";
+  di<<"***************************************************\n";
+  di<<"*******                                    ********\n";
+  di<<"***** Triangulation FAILED for " << failed << " of " << total << " Faces ******\n";
+  di<<"*******                                    ********\n";
+  di<<"***************************************************\n";
   return 0;
 }
 
@@ -454,7 +454,7 @@ Standard_Integer performTriangulation (TopoDS_Shape aShape, Draw_Interpretor& di
 static Standard_Integer OCC822_1 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv) {
 
   if(argc < 4 || argc > 5) {
-    di << "Usage : " << argv[0] << " name1 name2 result [BRepAlgoAPI/BRepAlgo = 1/0]" << "\n";
+    di << "Usage : " << argv[0] << " name1 name2 result [BRepAlgoAPI/BRepAlgo = 1/0]\n";
     return 1;
   }
   Standard_Boolean IsBRepAlgoAPI = Standard_True;
@@ -463,11 +463,11 @@ static Standard_Integer OCC822_1 (Draw_Interpretor& di, Standard_Integer argc, c
     if (IsB != 1) {
       IsBRepAlgoAPI = Standard_False;
 #if ! defined(BRepAlgo_def01)
-//      di << "Error: There is not BRepAlgo_Fuse class" << "\n";
+//      di << "Error: There is not BRepAlgo_Fuse class\n";
 //      return 1;
 #endif
 #if ! defined(BRepAlgo_def02)
-//      di << "Error: There is not BRepAlgo_Cut class" << "\n";
+//      di << "Error: There is not BRepAlgo_Cut class\n";
 //      return 1;
 #endif
     }
@@ -493,42 +493,42 @@ static Standard_Integer OCC822_1 (Draw_Interpretor& di, Standard_Integer argc, c
   TopoDS_Shape conIn = conMakerIn.Shape();
   TopoDS_Shape conOut = conMakerOut.Shape();
 
-  di << "All primitives created.....  Creating Boolean" << "\n";
+  di << "All primitives created.....  Creating Boolean\n";
 
   TopoDS_Shape theIn, theOut, theRes;
   try
     {
     OCC_CATCH_SIGNALS
       if (IsBRepAlgoAPI) {
-       di << "theIn = BRepAlgoAPI_Fuse(cylIn, conIn)" <<"\n";
-       di << "theOut = BRepAlgoAPI_Fuse(cylOut, conOut)" <<"\n";
-       di << "theRes = BRepAlgoAPI_Cut(theOut, theIn)" <<"\n";
+       di << "theIn = BRepAlgoAPI_Fuse(cylIn, conIn)\n";
+       di << "theOut = BRepAlgoAPI_Fuse(cylOut, conOut)\n";
+       di << "theRes = BRepAlgoAPI_Cut(theOut, theIn)\n";
         theIn = BRepAlgoAPI_Fuse(cylIn, conIn);
         theOut = BRepAlgoAPI_Fuse(cylOut, conOut);
         theRes = BRepAlgoAPI_Cut(theOut, theIn);
       } else {
-       di << "theIn = BRepAlgo_Fuse(cylIn, conIn)" <<"\n";
-       di << "theOut = BRepAlgo_Fuse(cylOut, conOut)" <<"\n";
+       di << "theIn = BRepAlgo_Fuse(cylIn, conIn)\n";
+       di << "theOut = BRepAlgo_Fuse(cylOut, conOut)\n";
         theIn = BRepAlgo_Fuse(cylIn, conIn);
         theOut = BRepAlgo_Fuse(cylOut, conOut);
-       di << "theRes = BRepAlgo_Cut(theOut, theIn)" <<"\n";
+       di << "theRes = BRepAlgo_Cut(theOut, theIn)\n";
         theRes = BRepAlgo_Cut(theOut, theIn);
       }
 
       if (index < argc) DBRep::Set(argv[index++], theIn);
       if (index < argc) DBRep::Set(argv[index++], theOut);
       if (index < argc) DBRep::Set(argv[index++], theRes);
-      di << "Booleans Created !    Triangulating !" <<"\n";
+      di << "Booleans Created !    Triangulating !\n";
 
       performTriangulation(theRes, di);
     }
   catch ( Standard_Failure )
     {
-      di<<"*********************************************************"<<"\n";
-      di<<"*****                                              ******"<<"\n";
-      di<<"***** Standard_Failure : Exception in Shoe Function *****"<<"\n";
-      di<<"*****                                              ******"<<"\n";
-      di<<"*********************************************************"<<"\n";
+      di<<"*********************************************************\n";
+      di<<"*****                                              ******\n";
+      di<<"***** Standard_Failure : Exception in Shoe Function *****\n";
+      di<<"*****                                              ******\n";
+      di<<"*********************************************************\n";
       return 1;
     }
   return 0;
@@ -544,7 +544,7 @@ static Standard_Integer OCC822_1 (Draw_Interpretor& di, Standard_Integer argc, c
 static Standard_Integer OCC822_2 (Draw_Interpretor& di,Standard_Integer argc, const char ** argv)
 {
   if(argc < 4 || argc > 5) {
-    di << "Usage : " << argv[0] << " name1 name2 result [BRepAlgoAPI/BRepAlgo = 1/0]" << "\n";
+    di << "Usage : " << argv[0] << " name1 name2 result [BRepAlgoAPI/BRepAlgo = 1/0]\n";
     return 1;
   }
   Standard_Boolean IsBRepAlgoAPI = Standard_True;
@@ -553,7 +553,7 @@ static Standard_Integer OCC822_2 (Draw_Interpretor& di,Standard_Integer argc, co
     if (IsB != 1) {
       IsBRepAlgoAPI = Standard_False;
 #if ! defined(BRepAlgo_def01)
-//      di << "Error: There is not BRepAlgo_Fuse class" << "\n";
+//      di << "Error: There is not BRepAlgo_Fuse class\n";
 //      return 1;
 #endif
     }
@@ -573,17 +573,17 @@ static Standard_Integer OCC822_2 (Draw_Interpretor& di,Standard_Integer argc, co
   TopoDS_Shape sph = sphereMaker.Shape();
   if (index < argc) DBRep::Set(argv[index++], sph);
 
-  di << "All primitives created.....  Creating Cut Objects" << "\n";
+  di << "All primitives created.....  Creating Cut Objects\n";
 
   TopoDS_Shape fuse;
   try
     {
     OCC_CATCH_SIGNALS
       if (IsBRepAlgoAPI) {
-       di << "fuse = BRepAlgoAPI_Fuse(box, sph)" <<"\n";
+       di << "fuse = BRepAlgoAPI_Fuse(box, sph)\n";
        fuse = BRepAlgoAPI_Fuse(box, sph);
       } else {
-       di << "fuse = BRepAlgo_Fuse(box, sph)" <<"\n";
+       di << "fuse = BRepAlgo_Fuse(box, sph)\n";
        fuse = BRepAlgo_Fuse(box, sph);
       }
       if (index < argc) DBRep::Set(argv[index++], fuse);
@@ -593,11 +593,11 @@ static Standard_Integer OCC822_2 (Draw_Interpretor& di,Standard_Integer argc, co
     }
   catch ( Standard_Failure )
     {
-      di<<"*********************************************************"<<"\n";
-      di<<"*****                                              ******"<<"\n";
-      di<<"***** Standard_Failure : Exception in HSP Function ******"<<"\n";
-      di<<"*****                                              ******"<<"\n";
-      di<<"*********************************************************"<<"\n";
+      di<<"*********************************************************\n";
+      di<<"*****                                              ******\n";
+      di<<"***** Standard_Failure : Exception in HSP Function ******\n";
+      di<<"*****                                              ******\n";
+      di<<"*********************************************************\n";
       return 1;
     }
 
@@ -611,7 +611,7 @@ static Standard_Integer OCC822_2 (Draw_Interpretor& di,Standard_Integer argc, co
 static Standard_Integer OCC823 (Draw_Interpretor& di,Standard_Integer argc, const char ** argv)
 {
   if(argc < 4 || argc > 5) {
-    di << "Usage : " << argv[0] << " name1 name2 result [BRepAlgoAPI/BRepAlgo = 1/0]" << "\n";
+    di << "Usage : " << argv[0] << " name1 name2 result [BRepAlgoAPI/BRepAlgo = 1/0]\n";
     return 1;
   }
   Standard_Boolean IsBRepAlgoAPI = Standard_True;
@@ -620,7 +620,7 @@ static Standard_Integer OCC823 (Draw_Interpretor& di,Standard_Integer argc, cons
     if (IsB != 1) {
       IsBRepAlgoAPI = Standard_False;
 #if ! defined(BRepAlgo_def01)
-//      di << "Error: There is not BRepAlgo_Fuse class" << "\n";
+//      di << "Error: There is not BRepAlgo_Fuse class\n";
 //      return 1;
 #endif
     }
@@ -642,31 +642,31 @@ static Standard_Integer OCC823 (Draw_Interpretor& di,Standard_Integer argc, cons
   TopoDS_Shape cyl2 = mkCyl2.Shape();
   if (index < argc) DBRep::Set(argv[index++], cyl2);
 
-  di << "All primitives created.....  Creating Boolean" << "\n";
+  di << "All primitives created.....  Creating Boolean\n";
 
   TopoDS_Shape fuse;
   try
     {
     OCC_CATCH_SIGNALS
       if (IsBRepAlgoAPI) {
-       di << "fuse = BRepAlgoAPI_Fuse(cyl2, cyl1)" <<"\n";
+       di << "fuse = BRepAlgoAPI_Fuse(cyl2, cyl1)\n";
        fuse = BRepAlgoAPI_Fuse(cyl2, cyl1);
       } else {
-       di << "fuse = BRepAlgo_Fuse(cyl2, cyl1)" <<"\n";
+       di << "fuse = BRepAlgo_Fuse(cyl2, cyl1)\n";
        fuse = BRepAlgo_Fuse(cyl2, cyl1);
       }
       if (index < argc) DBRep::Set(argv[index++], fuse);
-      di << "Fuse Created !    Triangulating !" <<"\n";
+      di << "Fuse Created !    Triangulating !\n";
 
       performTriangulation(fuse, di);
     }
   catch ( Standard_Failure )
     {
-      di<<"*********************************************************"<<"\n";
-      di<<"*****                                              ******"<<"\n";
-      di<<"***** Standard_Failure : Exception in TEE Function ******"<<"\n";
-      di<<"*****                                              ******"<<"\n";
-      di<<"*********************************************************"<<"\n";
+      di<<"*********************************************************\n";
+      di<<"*****                                              ******\n";
+      di<<"***** Standard_Failure : Exception in TEE Function ******\n";
+      di<<"*****                                              ******\n";
+      di<<"*********************************************************\n";
       return 1;
     }
   return 0;
@@ -679,7 +679,7 @@ static Standard_Integer OCC823 (Draw_Interpretor& di,Standard_Integer argc, cons
 static Standard_Integer OCC824 (Draw_Interpretor& di,Standard_Integer argc, const char ** argv)
 {
   if(argc < 4 || argc > 5) {
-    di << "Usage : " << argv[0] << " name1 name2 result [BRepAlgoAPI/BRepAlgo = 1/0]" << "\n";
+    di << "Usage : " << argv[0] << " name1 name2 result [BRepAlgoAPI/BRepAlgo = 1/0]\n";
     return 1;
   }
   Standard_Boolean IsBRepAlgoAPI = Standard_True;
@@ -688,7 +688,7 @@ static Standard_Integer OCC824 (Draw_Interpretor& di,Standard_Integer argc, cons
     if (IsB != 1) {
       IsBRepAlgoAPI = Standard_False;
 #if ! defined(BRepAlgo_def01)
-//      di << "Error: There is not BRepAlgo_Fuse class" << "\n";
+//      di << "Error: There is not BRepAlgo_Fuse class\n";
 //      return 1;
 #endif
     }
@@ -706,31 +706,31 @@ static Standard_Integer OCC824 (Draw_Interpretor& di,Standard_Integer argc, cons
   TopoDS_Shape sph = sphere.Shape();
   if (index < argc) DBRep::Set(argv[index++], sph);
 
-  di << "All primitives created.....  Creating Boolean" << "\n";
+  di << "All primitives created.....  Creating Boolean\n";
 
   TopoDS_Shape fuse;
   try
     {
     OCC_CATCH_SIGNALS
       if (IsBRepAlgoAPI) {
-       di << "fuse = BRepAlgoAPI_Fuse(cyl, sph)" <<"\n";
+       di << "fuse = BRepAlgoAPI_Fuse(cyl, sph)\n";
        fuse = BRepAlgoAPI_Fuse(cyl, sph);
       } else {
-       di << "fuse = BRepAlgo_Fuse(cyl, sph)" <<"\n";
+       di << "fuse = BRepAlgo_Fuse(cyl, sph)\n";
        fuse = BRepAlgo_Fuse(cyl, sph);
       }
-      di << "Fuse Created !    Triangulating !" <<"\n";
+      di << "Fuse Created !    Triangulating !\n";
       if (index < argc) DBRep::Set(argv[index++], fuse);
 
       performTriangulation(fuse, di);
     }
   catch ( Standard_Failure )
     {
-      di<<"*********************************************************"<<"\n";
-      di<<"*****                                              ******"<<"\n";
-      di<<"***** Standard_Failure : Exception in YOU Function ******"<<"\n";
-      di<<"*****                                              ******"<<"\n";
-      di<<"*********************************************************"<<"\n";
+      di<<"*********************************************************\n";
+      di<<"*****                                              ******\n";
+      di<<"***** Standard_Failure : Exception in YOU Function ******\n";
+      di<<"*****                                              ******\n";
+      di<<"*********************************************************\n";
       return 1;
     }
   return 0;
@@ -748,7 +748,7 @@ static Standard_Integer OCC824 (Draw_Interpretor& di,Standard_Integer argc, cons
 static Standard_Integer OCC825 (Draw_Interpretor& di,Standard_Integer argc, const char ** argv)
 {
   if(argc < 6 || argc > 7) {
-    di << "Usage : " << argv[0] << " name1 name2 name3 result1 result2 [BRepAlgoAPI/BRepAlgo = 1/0]" << "\n";
+    di << "Usage : " << argv[0] << " name1 name2 name3 result1 result2 [BRepAlgoAPI/BRepAlgo = 1/0]\n";
     return 1;
   }
   Standard_Boolean IsBRepAlgoAPI = Standard_True;
@@ -757,7 +757,7 @@ static Standard_Integer OCC825 (Draw_Interpretor& di,Standard_Integer argc, cons
     if (IsB != 1) {
       IsBRepAlgoAPI = Standard_False;
 #if ! defined(BRepAlgo_def02)
-//      di << "Error: There is not BRepAlgo_Cut class" << "\n";
+//      di << "Error: There is not BRepAlgo_Cut class\n";
 //      return 1;
 #endif
     }
@@ -790,59 +790,59 @@ static Standard_Integer OCC825 (Draw_Interpretor& di,Standard_Integer argc, cons
   TopoDS_Shape sph2 = sphere2.Shape();
   if (index < argc) DBRep::Set(argv[index++], sph2);
 
-  di << "All primitives created.....  Creating Cut Objects" << "\n";
+  di << "All primitives created.....  Creating Cut Objects\n";
 
   TopoDS_Shape cut1, cut2;
   try
     {
     OCC_CATCH_SIGNALS
       if (IsBRepAlgoAPI) {
-       di << "cut1 = BRepAlgoAPI_Cut(sph1, hsp)" << "\n";
+       di << "cut1 = BRepAlgoAPI_Cut(sph1, hsp)\n";
        cut1 = BRepAlgoAPI_Cut(sph1, hsp);
       } else {
-       di << "cut1 = BRepAlgo_Cut(sph1, hsp)" << "\n";
+       di << "cut1 = BRepAlgo_Cut(sph1, hsp)\n";
        cut1 = BRepAlgo_Cut(sph1, hsp);
       }
       if (index < argc) DBRep::Set(argv[index++], cut1);
       di << "CUT 1 Created !   " ;
 
       if (IsBRepAlgoAPI) {
-       di << "cut2 = BRepAlgoAPI_Cut(sph2, hsp)" << "\n";
+       di << "cut2 = BRepAlgoAPI_Cut(sph2, hsp)\n";
        cut2 = BRepAlgoAPI_Cut(sph2, hsp);
       } else {
-       di << "cut2 = BRepAlgo_Cut(sph2, hsp)" << "\n";
+       di << "cut2 = BRepAlgo_Cut(sph2, hsp)\n";
        cut2 = BRepAlgo_Cut(sph2, hsp);
       }
       if (index < argc) DBRep::Set(argv[index++], cut2);
-      di << "CUT 2 Created !" << "\n" << "\n";
+      di << "CUT 2 Created !\n\n";
 
       GProp_GProps G;
       BRepGProp::VolumeProperties(cut1, G);
-      di<<"CUT 1 Mass = "<<G.Mass()<< "\n" << "\n";
+      di<<"CUT 1 Mass = "<<G.Mass()<< "\n\n";
       BRepGProp::VolumeProperties(cut2, G);
-      di<<"CUT 2 Mass = "<<G.Mass()<< "\n" << "\n";
+      di<<"CUT 2 Mass = "<<G.Mass()<< "\n\n";
 
-      di << "Trianglating Faces of CUT 1 ....." << "\n";
+      di << "Trianglating Faces of CUT 1 .....\n";
       performTriangulation(cut1, di);
 
-      di << "Trianglating Faces of CUT 2 ....." << "\n";
+      di << "Trianglating Faces of CUT 2 .....\n";
       performTriangulation(cut2, di);
     }
   catch ( Standard_Failure )
     {
-      di<<"*********************************************************"<< "\n";
-      di<<"*****                                              ******"<< "\n";
-      di<<"***** Standard_Failure : Exception in HSP Function ******"<< "\n";
-      di<<"*****                                              ******"<< "\n";
-      di<<"*********************************************************"<< "\n";
+      di<<"*********************************************************\n";
+      di<<"*****                                              ******\n";
+      di<<"***** Standard_Failure : Exception in HSP Function ******\n";
+      di<<"*****                                              ******\n";
+      di<<"*********************************************************\n";
       return 1;
     }
 
-  di<<"*************************************************************"<< "\n";
-  di<<" CUT 1 and CUT 2 gives entirely different results during"<< "\n";
-  di<<" mass computation and face triangulation, eventhough the"<< "\n";
-  di<<" two spheres are located more or less at the same position."<< "\n";
-  di<<"*************************************************************"<< "\n";
+  di<<"*************************************************************\n";
+  di<<" CUT 1 and CUT 2 gives entirely different results during\n";
+  di<<" mass computation and face triangulation, eventhough the\n";
+  di<<" two spheres are located more or less at the same position.\n";
+  di<<"*************************************************************\n";
 
   return 0;
 }
@@ -854,7 +854,7 @@ static Standard_Integer OCC825 (Draw_Interpretor& di,Standard_Integer argc, cons
 static Standard_Integer OCC826 (Draw_Interpretor& di,Standard_Integer argc, const char ** argv)
 {
   if(argc < 4 || argc > 5) {
-    di << "Usage : " << argv[0] << " name1 name2 result [BRepAlgoAPI/BRepAlgo = 1/0]" << "\n";
+    di << "Usage : " << argv[0] << " name1 name2 result [BRepAlgoAPI/BRepAlgo = 1/0]\n";
     return 1;
   }
   Standard_Boolean IsBRepAlgoAPI = Standard_True;
@@ -863,7 +863,7 @@ static Standard_Integer OCC826 (Draw_Interpretor& di,Standard_Integer argc, cons
     if (IsB != 1) {
       IsBRepAlgoAPI = Standard_False;
 #if ! defined(BRepAlgo_def01)
-//      di << "Error: There is not BRepAlgo_Fuse class" << "\n";
+//      di << "Error: There is not BRepAlgo_Fuse class\n";
 //      return 1;
 #endif
     }
@@ -896,30 +896,30 @@ static Standard_Integer OCC826 (Draw_Interpretor& di,Standard_Integer argc, cons
   TopoDS_Shape sph = sphere.Shape();
   if (index < argc) DBRep::Set(argv[index++], sph);
 
-  di << "All primitives created.....  Creating Boolean" << "\n";
+  di << "All primitives created.....  Creating Boolean\n";
 
   TopoDS_Shape fuse;
   try
     {
     OCC_CATCH_SIGNALS
       if (IsBRepAlgoAPI) {
-       di << "fuse = BRepAlgoAPI_Fuse(rev, sph)" << "\n";
+       di << "fuse = BRepAlgoAPI_Fuse(rev, sph)\n";
        fuse = BRepAlgoAPI_Fuse(rev, sph);
       } else {
-       di << "fuse = BRepAlgo_Fuse(rev, sph)" << "\n";
+       di << "fuse = BRepAlgo_Fuse(rev, sph)\n";
        fuse = BRepAlgo_Fuse(rev, sph);
       }
       if (index < argc) DBRep::Set(argv[index++], fuse);
-      di << "Fuse Created !   Triangulating !" << "\n";
+      di << "Fuse Created !   Triangulating !\n";
       performTriangulation(fuse, di);
     }
   catch ( Standard_Failure )
     {
-      di<<"*********************************************************"<< "\n";
-      di<<"*****                                              ******"<< "\n";
-      di<<"***** Standard_Failure : Exception in SPH Function ******"<< "\n";
-      di<<"*****                                              ******"<< "\n";
-      di<<"*********************************************************"<< "\n";
+      di<<"*********************************************************\n";
+      di<<"*****                                              ******\n";
+      di<<"***** Standard_Failure : Exception in SPH Function ******\n";
+      di<<"*****                                              ******\n";
+      di<<"*********************************************************\n";
       return 1;
     }
   return 0;
@@ -933,7 +933,7 @@ static Standard_Integer OCC826 (Draw_Interpretor& di,Standard_Integer argc, cons
 static Standard_Integer OCC827 (Draw_Interpretor& di,Standard_Integer argc, const char ** argv)
 {
   if(argc < 6 || argc > 7) {
-    di << "Usage : " << argv[0] << " name1 name2 name3 result1 result2 [BRepAlgoAPI/BRepAlgo = 1/0]" << "\n";
+    di << "Usage : " << argv[0] << " name1 name2 name3 result1 result2 [BRepAlgoAPI/BRepAlgo = 1/0]\n";
     return 1;
   }
   Standard_Boolean IsBRepAlgoAPI = Standard_True;
@@ -942,7 +942,7 @@ static Standard_Integer OCC827 (Draw_Interpretor& di,Standard_Integer argc, cons
     if (IsB != 1) {
       IsBRepAlgoAPI = Standard_False;
 #if ! defined(BRepAlgo_def01)
-//      di << "Error: There is not BRepAlgo_Fuse class" << "\n";
+//      di << "Error: There is not BRepAlgo_Fuse class\n";
 //      return 1;
 #endif
     }
@@ -982,40 +982,40 @@ static Standard_Integer OCC827 (Draw_Interpretor& di,Standard_Integer argc, cons
   TopoDS_Shape tor2 = Torus2.Shape();
   if (index < argc) DBRep::Set(argv[index++], tor2);
 
-  di << "All primitives created.....  Creating Boolean" << "\n";
+  di << "All primitives created.....  Creating Boolean\n";
 
   TopoDS_Shape fuse1, fuse2;
   try
     {
     OCC_CATCH_SIGNALS
       if (IsBRepAlgoAPI) {
-       di << "Fuse1 = BRepAlgoAPI_Fuse(tor1, rev)" << "\n";
+       di << "Fuse1 = BRepAlgoAPI_Fuse(tor1, rev)\n";
        fuse1 = BRepAlgoAPI_Fuse(tor1, rev);
       } else {
-       di << "Fuse1 = BRepAlgo_Fuse(tor1, rev)" << "\n";
+       di << "Fuse1 = BRepAlgo_Fuse(tor1, rev)\n";
        fuse1 = BRepAlgo_Fuse(tor1, rev);
       }
       if (index < argc) DBRep::Set(argv[index++], fuse1);
-      di << "Fuse1 Created !    Creating Fuse 2" << "\n";
+      di << "Fuse1 Created !    Creating Fuse 2\n";
       if (IsBRepAlgoAPI) {
-       di << "Fuse2 = BRepAlgoAPI_Fuse(tor2, fuse1)" << "\n";
+       di << "Fuse2 = BRepAlgoAPI_Fuse(tor2, fuse1)\n";
        fuse2 = BRepAlgoAPI_Fuse(tor2, fuse1);
       } else {
-       di << "Fuse2 = BRepAlgo_Fuse(tor2, fuse1)" << "\n";
+       di << "Fuse2 = BRepAlgo_Fuse(tor2, fuse1)\n";
        fuse2 = BRepAlgo_Fuse(tor2, fuse1);
       }
       if (index < argc) DBRep::Set(argv[index++], fuse2);
-      di << "Fuse2 Created !    Triangulating !" << "\n";
+      di << "Fuse2 Created !    Triangulating !\n";
 
       performTriangulation(fuse2, di);
     }
   catch ( Standard_Failure )
     {
-      di<<"*********************************************************"<< "\n";
-      di<<"*****                                              ******"<< "\n";
-      di<<"***** Standard_Failure : Exception in REV Function ******"<< "\n";
-      di<<"*****                                              ******"<< "\n";
-      di<<"*********************************************************"<< "\n";
+      di<<"*********************************************************\n";
+      di<<"*****                                              ******\n";
+      di<<"***** Standard_Failure : Exception in REV Function ******\n";
+      di<<"*****                                              ******\n";
+      di<<"*********************************************************\n";
       return 1;
     }
   return 0;
@@ -1053,14 +1053,14 @@ int performBlend (TopoDS_Shape aShape, Standard_Real rad, TopoDS_Shape& bShape,
       status = 1;
     }
   if(status) {
-      di<<"*******************************************************"<< "\n";
-      di<<"******                                          *******"<< "\n";
-      di<<"****** Blending Failed (Radius = " << rad << ") *******"<< "\n";
-      di<<"******                                          *******"<< "\n";
-      di<<"*******************************************************"<< "\n";
+      di<<"*******************************************************\n";
+      di<<"******                                          *******\n";
+      di<<"****** Blending Failed (Radius = " << rad << ") *******\n";
+      di<<"******                                          *******\n";
+      di<<"*******************************************************\n";
       return 1;
   } else {
-    di<<"Blending successfully performed on all Edges: "<< "\n" << "\n";
+    di<<"Blending successfully performed on all Edges: \n\n";
   }
   bShape = blend.Shape();
   return 0;
@@ -1074,7 +1074,7 @@ int performBlend (TopoDS_Shape aShape, Standard_Real rad, TopoDS_Shape& bShape,
 static Standard_Integer OCC828 (Draw_Interpretor& di,Standard_Integer argc, const char ** argv)
 {
   if(argc != 2) {
-    di << "Usage : " << argv[0] << " shape" << "\n";
+    di << "Usage : " << argv[0] << " shape\n";
   }
   int index = 1;
 
@@ -1117,7 +1117,7 @@ static Standard_Integer OCC828 (Draw_Interpretor& di,Standard_Integer argc, cons
 
   if (!MW.IsDone())
     {
-      di << "my Wire not done" << "\n";
+      di << "my Wire not done\n";
       return 1;
     }
 
@@ -1125,7 +1125,7 @@ static Standard_Integer OCC828 (Draw_Interpretor& di,Standard_Integer argc, cons
   TopoDS_Face F = BRepBuilderAPI_MakeFace(W);
   if ( F.IsNull())
     {
-      di << " Error in Face creation " << "\n";
+      di << " Error in Face creation \n";
       return 1;
     }
 
@@ -1139,7 +1139,7 @@ static Standard_Integer OCC828 (Draw_Interpretor& di,Standard_Integer argc, cons
       BRepPrimAPI_MakePrism slab(F, slabVect, Standard_True);
       if ( ! slab.IsDone() )
         {
-         di << " Error in Slab creation " << "\n";
+         di << " Error in Slab creation \n";
          return 1;
         }
       if (index < argc) DBRep::Set(argv[index++], slab.Shape());
@@ -1155,7 +1155,7 @@ static Standard_Integer OCC828 (Draw_Interpretor& di,Standard_Integer argc, cons
     }
   catch ( Standard_Failure )
     {
-      di << " Error in Draft Slab " << "\n";
+      di << " Error in Draft Slab \n";
       return 1;
     }
   return 0;
index f74ea412ae030a9809c99e6717eb7718365eae93..24557a64274b6a8b01efc646d24dc5b7f3d8e681 100644 (file)
@@ -376,7 +376,7 @@ static int pipe_OCC9 (Draw_Interpretor& di,
                      Standard_Integer n, const char ** a)
 {
   if (n < 6) {
-    di << "Usage: " << a[0] << " result path cur1 cur2 radius [tolerance]" << "\n";
+    di << "Usage: " << a[0] << " result path cur1 cur2 radius [tolerance]\n";
     return 1;
   }
 
@@ -385,7 +385,7 @@ static int pipe_OCC9 (Draw_Interpretor& di,
   for (i=2 ; i<=4; i++) {
     Handle(Geom_Curve) aC = Handle(Geom_Curve)::DownCast( DrawTrSurf::Get(a[i]) );
     if (aC.IsNull()) {
-      di << a[i] << " is not a curve" << "\n";
+      di << a[i] << " is not a curve\n";
       return 1;
     }
     aCurveSeq.Append(aC);
@@ -469,21 +469,21 @@ Standard_Integer  OCC157(Draw_Interpretor& di,
 //static Standard_Integer findplanarsurface(Draw_Interpretor&, Standard_Integer n, const char ** a)
 {
   if (n<3) {
-    di << "bad number of arguments" <<"\n";
+    di << "bad number of arguments\n";
     return 1;
   }
 
   // try to read a shape:
   TopoDS_Shape inputShape=DBRep::Get(a[2]);
   if (inputShape.IsNull() || inputShape.ShapeType() != TopAbs_WIRE) {
-    di << "Invalid input shape"<< "\n";
+    di << "Invalid input shape\n";
     return 1;
   }
   Standard_Real toler = Draw::Atof(a[3]);
   TopoDS_Wire aWire = TopoDS::Wire(inputShape);
   BRepLib_FindSurface FS(aWire, toler, Standard_True);
   if(FS.Found()) {
-    di<<"OCC157: OK; Planar surface is found"<<"\n";
+    di<<"OCC157: OK; Planar surface is found\n";
     Handle(Geom_Surface) aSurf = FS.Surface();
     BRepBuilderAPI_MakeFace aMakeFace(aSurf,aWire,Standard_True);
     if(aMakeFace.IsDone()) {
@@ -526,7 +526,7 @@ Standard_Integer  OCC165(Draw_Interpretor& di ,
  {
    if (n > 2)
      {
-       di <<"Usage : " << a[0] << " [file]"<<"\n";
+       di <<"Usage : " << a[0] << " [file]\n";
        return 1;
      }
        di.Eval ("axo");
@@ -676,7 +676,7 @@ static Standard_Integer OCC305 (Draw_Interpretor& di,Standard_Integer argc, cons
 {
   if (argc != 2)
   {
-    di <<"Usage : " << argv[0] << " file"<<"\n";
+    di <<"Usage : " << argv[0] << " file\n";
     return 1;
   }
   Standard_CString file = argv[1];
@@ -760,7 +760,7 @@ static Standard_Integer OCC166 (Draw_Interpretor& di, Standard_Integer /*argc*/,
 static Standard_Integer OCC381_Save (Draw_Interpretor& di, Standard_Integer nb, const char ** a)
 {
   if (nb != 2) {
-    di << "Usage: " << a[0] << " Doc" << "\n";
+    di << "Usage: " << a[0] << " Doc\n";
     return 1;
   }
 
@@ -772,34 +772,34 @@ static Standard_Integer OCC381_Save (Draw_Interpretor& di, Standard_Integer nb,
 
   TCollection_ExtendedString theStatusMessage;
   if (!D->IsSaved()) {
-    di << "this document has never been saved" << "\n";
+    di << "this document has never been saved\n";
     return 0;
   }
   PCDM_StoreStatus theStatus = A->Save(D, theStatusMessage);
   if (theStatus != PCDM_SS_OK ) {
     switch ( theStatus ) {
       case PCDM_SS_DriverFailure: {
-        di << "Error saving document: Could not store , no driver found to make it" << "\n";
+        di << "Error saving document: Could not store , no driver found to make it\n";
         break ;
       }
       case PCDM_SS_WriteFailure: {
-        di << "Error saving document: Write access failure" << "\n";
+        di << "Error saving document: Write access failure\n";
         break;
       }
       case PCDM_SS_Failure: {
-        di << "Error saving document: Write failure" << "\n" ;
+        di << "Error saving document: Write failure\n" ;
         break;
       }
       case PCDM_SS_Doc_IsNull: {
-        di << "Error saving document: No document to save" << "\n";
+        di << "Error saving document: No document to save\n";
         break ;
       }
       case PCDM_SS_No_Obj: {
-        di << "Error saving document: No objects written" << "\n";
+        di << "Error saving document: No objects written\n";
         break;
       }
       case PCDM_SS_Info_Section_Error: {
-        di << "Error saving document: Write info section failure" << "\n" ;
+        di << "Error saving document: Write info section failure\n" ;
         break;
       }
       default:
@@ -813,7 +813,7 @@ static Standard_Integer OCC381_Save (Draw_Interpretor& di, Standard_Integer nb,
 static Standard_Integer OCC381_SaveAs (Draw_Interpretor& di, Standard_Integer nb, const char ** a)
 {
   if (nb != 3) {
-    di << "Usage: " << a[0] << " Doc Path" << "\n";
+    di << "Usage: " << a[0] << " Doc Path\n";
     return 1;
   }
 
@@ -829,27 +829,27 @@ static Standard_Integer OCC381_SaveAs (Draw_Interpretor& di, Standard_Integer nb
   if (theStatus != PCDM_SS_OK ) {
     switch ( theStatus ) {
       case PCDM_SS_DriverFailure: {
-        di << "Error saving document: Could not store , no driver found to make it" << "\n";
+        di << "Error saving document: Could not store , no driver found to make it\n";
         break ;
       }
       case PCDM_SS_WriteFailure: {
-        di << "Error saving document: Write access failure" << "\n";
+        di << "Error saving document: Write access failure\n";
         break;
       }
       case PCDM_SS_Failure: {
-        di << "Error saving document: Write failure" << "\n" ;
+        di << "Error saving document: Write failure\n" ;
         break;
       }
       case PCDM_SS_Doc_IsNull: {
-        di << "Error saving document: No document to save" << "\n";
+        di << "Error saving document: No document to save\n";
         break ;
       }
       case PCDM_SS_No_Obj: {
-        di << "Error saving document: No objects written" << "\n";
+        di << "Error saving document: No objects written\n";
         break;
       }
       case PCDM_SS_Info_Section_Error: {
-        di << "Error saving document: Write info section failure" << "\n" ;
+        di << "Error saving document: Write info section failure\n" ;
         break;
       }
       default:
@@ -919,10 +919,10 @@ static Standard_Integer OCC309bug (Draw_Interpretor& di, Standard_Integer nb, co
   OSD_Path d = p.CurrentDirectory();
   TCollection_AsciiString s;
   d.SystemName(s);
-  di << "*" <<  s.ToCString() << "*" << "\n";
+  di << "*" <<  s.ToCString() << "*\n";
   d.UpTrek();
   d.SystemName(s);
-  di <<  "*" <<  s.ToCString() <<  "*" <<"\n";
+  di <<  "*" <<  s.ToCString() <<  "*\n";
   return 0;
 }
 
@@ -951,7 +951,7 @@ static Standard_Integer OCC277bug (Draw_Interpretor& di, Standard_Integer nb, co
   //  return 1;
   //}
   if(nb < 1 || nb > 2) {
-    di << "Usage : " << a[0] << " [BRepAlgoAPI/BRepAlgo = 1/0]" << "\n";
+    di << "Usage : " << a[0] << " [BRepAlgoAPI/BRepAlgo = 1/0]\n";
     return 1;
   }
   Standard_Boolean IsBRepAlgoAPI = Standard_True;
@@ -977,14 +977,14 @@ static Standard_Integer OCC277bug (Draw_Interpretor& di, Standard_Integer nb, co
 //#endif
   TopoDS_Shape fuse,comm;
   if (IsBRepAlgoAPI) {
-    di << "fuse = BRepAlgoAPI_Fuse( shape1, shape2 )" <<"\n";
-    di << "comm = BRepAlgoAPI_Common( shape1, shape2 )" <<"\n";
+    di << "fuse = BRepAlgoAPI_Fuse( shape1, shape2 )\n";
+    di << "comm = BRepAlgoAPI_Common( shape1, shape2 )\n";
     fuse = BRepAlgoAPI_Fuse( shape1, shape2 );
     comm = BRepAlgoAPI_Common( shape1, shape2 );
   } else {
-    di << "fuse = BRepAlgo_Fuse( shape1, shape2 )" <<"\n";
+    di << "fuse = BRepAlgo_Fuse( shape1, shape2 )\n";
     fuse = BRepAlgo_Fuse( shape1, shape2 );
-    di << "comm = BRepAlgo_Common( shape1, shape2 )" <<"\n";
+    di << "comm = BRepAlgo_Common( shape1, shape2 )\n";
     comm = BRepAlgo_Common( shape1, shape2 );
   }
 
@@ -996,22 +996,22 @@ static Standard_Integer OCC277bug (Draw_Interpretor& di, Standard_Integer nb, co
 static Standard_Integer OCC333bug (Draw_Interpretor& di, Standard_Integer n, const char ** a)
 {
   if( n < 3) {
-    di<<"-1"<<"\n";
-    di << "Usage: " << a[0] << " edge1 edge2 [toler domaindist]" << "\n";
+    di<<"-1\n";
+    di << "Usage: " << a[0] << " edge1 edge2 [toler domaindist]\n";
     return 1;
   }
   TopoDS_Shape Sh1 = DBRep::Get(a[1]);
   TopoDS_Shape Sh2 = DBRep::Get(a[2]);
   if(Sh1.IsNull() || Sh2.IsNull()) {
-    di<<"-2"<<"\n";
-    di<<"Invalid arguments"<<"\n";
+    di<<"-2\n";
+    di<<"Invalid arguments\n";
     return 1;
   }
   TopoDS_Edge e1 = TopoDS::Edge(Sh1);
   TopoDS_Edge e2 = TopoDS::Edge(Sh2);
   if(e1.IsNull() || e2.IsNull()) {
-    di<<"-3"<<"\n";
-    di<<"Invalid type of arguments"<<"\n";
+    di<<"-3\n";
+    di<<"Invalid type of arguments\n";
     return 1;
   }
   Standard_Real aTol = Precision::Confusion();
@@ -1025,17 +1025,17 @@ static Standard_Integer OCC333bug (Draw_Interpretor& di, Standard_Integer n, con
   ShapeAnalysis_Edge sae;
   if(sae.CheckOverlapping(e1,e2,aTol,aDistDomain)) {
     if(aDistDomain ==0.0) {
-      di<<"1"<<"\n";
-      di<<"Edges is overlaping comletly"<<"\n";
+      di<<"1\n";
+      di<<"Edges is overlaping comletly\n";
     } else {
-      di<<"2"<<"\n";
-      di<<"Edges is overlaped"<<"\n";
+      di<<"2\n";
+      di<<"Edges is overlaped\n";
       di<<"with tolerance = "<<aTol<<"\n";
       di<<"on segment length = "<<aDistDomain<<"\n";
     }
   } else {
-    di<<"3"<<"\n";
-    di<<"Edges is not overlaped"<<"\n";
+    di<<"3\n";
+    di<<"Edges is not overlaped\n";
   }
   return 0;
 }
@@ -1215,8 +1215,8 @@ static Standard_Integer OCC377 (Draw_Interpretor& di, Standard_Integer argc, con
       di << "Reversed Wire " << i << ": point ( " << p2d.X() << ", " << p2d.Y() << " ) is " << TmpString.ToCString() << "\n";
 
       // 4.3. Compare results (they must be same)
-      if(stat1 ==stat2) di << "OCC377 OK" << "\n";
-      else {di << "OCC377 FAULTY" << "\n"; return 0;}
+      if(stat1 ==stat2) di << "OCC377 OK\n";
+      else {di << "OCC377 FAULTY\n"; return 0;}
     }
   }
   catch(Standard_Failure)
@@ -1455,7 +1455,7 @@ static Standard_Integer OCC578 (Draw_Interpretor& di, Standard_Integer argc, con
   //  return 1;
   //}
   if(argc < 4 || argc > 5) {
-    di << "Usage : " << argv[0] << " shape1 shape2 shape3 [BRepAlgoAPI/BRepAlgo = 1/0]" << "\n";
+    di << "Usage : " << argv[0] << " shape1 shape2 shape3 [BRepAlgoAPI/BRepAlgo = 1/0]\n";
     return 1;
   }
   Standard_Boolean IsBRepAlgoAPI = Standard_True;
@@ -1463,9 +1463,9 @@ static Standard_Integer OCC578 (Draw_Interpretor& di, Standard_Integer argc, con
     Standard_Integer IsB = Draw::Atoi(argv[4]);
     if (IsB != 1) {
       IsBRepAlgoAPI = Standard_False;
-//      di << "Error: There is not BRepAlgo_Fuse class" << "\n";
+//      di << "Error: There is not BRepAlgo_Fuse class\n";
 //      return 1;
-//      di << "Error: There is not BRepAlgo_Cut class" << "\n";
+//      di << "Error: There is not BRepAlgo_Cut class\n";
 //      return 1;
     }
   }
@@ -1540,10 +1540,10 @@ static Standard_Integer OCC578 (Draw_Interpretor& di, Standard_Integer argc, con
 //#endif
   TopoDS_Shape wedge_common;
   if (IsBRepAlgoAPI) {
-    di << "wedge_common = BRepAlgoAPI_Fuse(wedge1a , wedge2a)" <<"\n";
+    di << "wedge_common = BRepAlgoAPI_Fuse(wedge1a , wedge2a)\n";
     wedge_common = BRepAlgoAPI_Fuse(wedge1a , wedge2a);
   } else {
-    di << "wedge_common = BRepAlgo_Fuse(wedge1a , wedge2a)" <<"\n";
+    di << "wedge_common = BRepAlgo_Fuse(wedge1a , wedge2a)\n";
     wedge_common = BRepAlgo_Fuse(wedge1a , wedge2a);
   }
 
@@ -1555,10 +1555,10 @@ static Standard_Integer OCC578 (Draw_Interpretor& di, Standard_Integer argc, con
 //#endif
   TopoDS_Shape sub_etch1;
   if (IsBRepAlgoAPI) {
-    di << "sub_etch1 = BRepAlgoAPI_Cut(substrate, wedge_common)" <<"\n";
+    di << "sub_etch1 = BRepAlgoAPI_Cut(substrate, wedge_common)\n";
     sub_etch1 = BRepAlgoAPI_Cut(substrate, wedge_common);
   } else {
-    di << "sub_etch1 = BRepAlgo_Cut(substrate, wedge_common)" <<"\n";
+    di << "sub_etch1 = BRepAlgo_Cut(substrate, wedge_common)\n";
     sub_etch1 = BRepAlgo_Cut(substrate, wedge_common);
   }
 
@@ -1657,12 +1657,12 @@ static Standard_Integer OCC708 (Draw_Interpretor& di, Standard_Integer argc, con
 {
   Handle(AIS_InteractiveContext) aContext = ViewerTest::GetAISContext();
   if(aContext.IsNull()) { 
-    di << argv[0] << "ERROR : use 'vinit' command before " << "\n";
+    di << argv[0] << "ERROR : use 'vinit' command before \n";
     return 1;
   }
 
   if ( argc != 2) {
-    di << "ERROR : Usage : " << argv[0] << " shape ; Deactivate the current transformation" << "\n";
+    di << "ERROR : Usage : " << argv[0] << " shape ; Deactivate the current transformation\n";
     return 1;
   }
   
@@ -1674,12 +1674,12 @@ static Standard_Integer OCC708 (Draw_Interpretor& di, Standard_Integer argc, con
   Handle(AIS_InteractiveObject) AISObj;
 
   if(!aMap.IsBound2(aName)) {
-    di << "Use 'vdisplay' before" << "\n";
+    di << "Use 'vdisplay' before\n";
     return 1;
   } else {
     AISObj = Handle(AIS_InteractiveObject)::DownCast(aMap.Find2(aName));
     if(AISObj.IsNull()){
-      di << argv[1] << " : No interactive object" << "\n";
+      di << argv[1] << " : No interactive object\n";
       return 1;
     } 
     AISObj->ResetTransformation();
@@ -1766,7 +1766,7 @@ static Standard_Integer OCC909 (Draw_Interpretor& di, Standard_Integer argc, con
   TopoDS_Wire awire = TopoDS::Wire(DBRep::Get(argv[1])); //read the wire
   TopoDS_Face aface = TopoDS::Face(DBRep::Get(argv[2])); //read the face
   if (awire.IsNull() || aface.IsNull()) {
-    di << "Null object" << "\n";
+    di << "Null object\n";
     return 1;
   }
 
@@ -1792,7 +1792,7 @@ static Standard_Integer OCC921 (Draw_Interpretor& di, Standard_Integer argc, con
 {
   if (argc != 2)
   {
-    di <<"Usage : " << argv[0] << " face"<<"\n";
+    di <<"Usage : " << argv[0] << " face\n";
     return 1;
   }
   Standard_Real u1, u2, v1, v2;
@@ -1815,7 +1815,7 @@ static Standard_Integer OCC902(Draw_Interpretor& di, Standard_Integer argc, cons
 {
   if (argc != 2)
   {
-    di <<"Usage : " << argv[0] << " expression"<<"\n";
+    di <<"Usage : " << argv[0] << " expression\n";
     return 1;
   }
 
@@ -1873,7 +1873,7 @@ static Standard_Integer OCC1029_AISTransparency (Draw_Interpretor& di,
       return 0;
     }
   }
-  di << arg[0] << " : Error" << "\n";
+  di << arg[0] << " : Error\n";
   return 1;
 }
 
@@ -1906,7 +1906,7 @@ static Standard_Integer OCC1030_AISColor (Draw_Interpretor& di,
       return 0; 
     }
   }
-  di << arg[0] << " : Error" << "\n";
+  di << arg[0] << " : Error\n";
   return 1;
 }
 
@@ -1940,7 +1940,7 @@ static Standard_Integer OCC1031_AISMaterial (Draw_Interpretor& di,
       return 0;
     }
   }
-  di << arg[0] << " : Error" << "\n";
+  di << arg[0] << " : Error\n";
   return 1;
 }
 
@@ -1974,7 +1974,7 @@ static Standard_Integer OCC1032_AISWidth (Draw_Interpretor& di,
       return 0;
     }
   }
-  di << arg[0] << " : Error" << "\n";
+  di << arg[0] << " : Error\n";
   return 1;
 }
 
@@ -2008,7 +2008,7 @@ static Standard_Integer OCC1033_AISMode (Draw_Interpretor& di,
       return 0;
     }
   }
-  di << arg[0] << " : Error" << "\n";
+  di << arg[0] << " : Error\n";
   return 1;
 }
 
@@ -2042,7 +2042,7 @@ static Standard_Integer OCC1034_AISSelectionMode (Draw_Interpretor& di,
       return 0;
     }
   }
-  di << arg[0] << " : Error" << "\n";
+  di << arg[0] << " : Error\n";
   return 1;
 }
 
@@ -2059,7 +2059,7 @@ static Standard_Integer OCC1487 (Draw_Interpretor& di, Standard_Integer argc, co
   //  return -1;
   //}
   if(argc < 5 || argc > 6) {
-    di << "Usage : " << argv[0] << " CylinderVariant(=1/2) cylinder1 cylinder2 cutshape [BRepAlgoAPI/BRepAlgo = 1/0]" << "\n";
+    di << "Usage : " << argv[0] << " CylinderVariant(=1/2) cylinder1 cylinder2 cutshape [BRepAlgoAPI/BRepAlgo = 1/0]\n";
     return 1;
   }
   Standard_Boolean IsBRepAlgoAPI = Standard_True;
@@ -2067,7 +2067,7 @@ static Standard_Integer OCC1487 (Draw_Interpretor& di, Standard_Integer argc, co
     Standard_Integer IsB = Draw::Atoi(argv[5]);
     if (IsB != 1) {
       IsBRepAlgoAPI = Standard_False;
-//      di << "Error: There is not BRepAlgo_Cut class" << "\n";
+//      di << "Error: There is not BRepAlgo_Cut class\n";
 //      return 1;
     }
   }
@@ -2098,10 +2098,10 @@ static Standard_Integer OCC1487 (Draw_Interpretor& di, Standard_Integer argc, co
 //    o_cut_shape = BRepAlgo_Cut (o_mc1.Solid (), o_mc2.Solid ());
 //#endif
     if (IsBRepAlgoAPI) {
-      di << "o_cut_shape = BRepAlgoAPI_Cut (o_mc1.Solid (), o_mc2.Solid ())" <<"\n";
+      di << "o_cut_shape = BRepAlgoAPI_Cut (o_mc1.Solid (), o_mc2.Solid ())\n";
       o_cut_shape = BRepAlgoAPI_Cut (o_mc1.Solid (), o_mc2.Solid ());
     } else {
-      di << "o_cut_shape = BRepAlgo_Cut (o_mc1.Solid (), o_mc2.Solid ())" <<"\n";
+      di << "o_cut_shape = BRepAlgo_Cut (o_mc1.Solid (), o_mc2.Solid ())\n";
       o_cut_shape = BRepAlgo_Cut (o_mc1.Solid (), o_mc2.Solid ());
     }
   } else {
@@ -2118,10 +2118,10 @@ static Standard_Integer OCC1487 (Draw_Interpretor& di, Standard_Integer argc, co
 //    o_cut_shape = BRepAlgo_Cut (o_mc1.Solid (), o_mc2.Solid ());
 //#endif
     if (IsBRepAlgoAPI) {
-      di << "o_cut_shape = BRepAlgoAPI_Cut (o_mc1.Solid (), o_mc2.Solid ())" <<"\n";
+      di << "o_cut_shape = BRepAlgoAPI_Cut (o_mc1.Solid (), o_mc2.Solid ())\n";
       o_cut_shape = BRepAlgoAPI_Cut (o_mc1.Solid (), o_mc2.Solid ());
     } else {
-      di << "o_cut_shape = BRepAlgo_Cut (o_mc1.Solid (), o_mc2.Solid ())" <<"\n";
+      di << "o_cut_shape = BRepAlgo_Cut (o_mc1.Solid (), o_mc2.Solid ())\n";
       o_cut_shape = BRepAlgo_Cut (o_mc1.Solid (), o_mc2.Solid ());
     }
   }
@@ -2234,7 +2234,7 @@ TopoDS_Shape OCC1077_Bug()
 static Standard_Integer OCC1077 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if(argc < 1 || argc > 2) {
-    di << "Usage : " << argv[0] << " result" << "\n";
+    di << "Usage : " << argv[0] << " result\n";
     return 1;
   }
 
@@ -2253,7 +2253,7 @@ static Standard_Integer OCC5739_UniAbs (Draw_Interpretor& di, Standard_Integer a
 {
   if (argc < 4)
   {
-    di << "Usage : " << argv[0] << " name shape step" << "\n";
+    di << "Usage : " << argv[0] << " name shape step\n";
     return 1;
   }
   const char *name = argv[1];
@@ -2266,7 +2266,7 @@ static Standard_Integer OCC5739_UniAbs (Draw_Interpretor& di, Standard_Integer a
     TopoDS_Shape wire = DBRep::Get(argv[2]);
     if (wire.IsNull() || wire.ShapeType() != TopAbs_WIRE)
     {
-      di << argv[0] <<" Faulty : incorrect 1st parameter, curve or wire expected"<<"\n";
+      di << argv[0] <<" Faulty : incorrect 1st parameter, curve or wire expected\n";
       return 1;
     }
     adapCurve = new BRepAdaptor_CompCurve(TopoDS::Wire(wire));
@@ -2276,7 +2276,7 @@ static Standard_Integer OCC5739_UniAbs (Draw_Interpretor& di, Standard_Integer a
   int res;
   if (!aUni.IsDone())
   {
-    di << argv[0] <<" : fail"<<"\n";
+    di << argv[0] <<" : fail\n";
     res = 1;
   }
   else
@@ -2301,7 +2301,7 @@ static Standard_Integer OCC6046 (Draw_Interpretor& di, Standard_Integer argc, co
 {
   if (argc != 3)
   {
-    di << "Usage : " << argv[0] << " nb_of_vectors size" << "\n";
+    di << "Usage : " << argv[0] << " nb_of_vectors size\n";
     return 1;
   }
 
@@ -2310,7 +2310,7 @@ static Standard_Integer OCC6046 (Draw_Interpretor& di, Standard_Integer argc, co
   Standard_Real val = 10;
   math_Vector **pv = new math_Vector *[nb];
 
-  di<<"creating "<<nb<<" vectors "<<sz<<" elements each..."<<"\n";
+  di<<"creating "<<nb<<" vectors "<<sz<<" elements each...\n";
   Standard_Integer i;
   for (i=0; i < nb; i++) {
     pv[i] = new math_Vector (1, sz, val);
@@ -2320,8 +2320,8 @@ static Standard_Integer OCC6046 (Draw_Interpretor& di, Standard_Integer argc, co
       di<<"\n";
     }
   }
-  di<<" done"<<"\n";
-  di<<"deleting them ..."<<"\n";
+  di<<" done\n";
+  di<<"deleting them ...\n";
   for (i=0; i < nb; i++) {
     delete pv[i];
     if ((i % (nb/10)) == 0) {
@@ -2330,7 +2330,7 @@ static Standard_Integer OCC6046 (Draw_Interpretor& di, Standard_Integer argc, co
       di<<"\n";
     }
   }
-  di<<" done"<<"\n";
+  di<<" done\n";
 
   delete [] pv;
 
@@ -2341,7 +2341,7 @@ static Standard_Integer OCC5698 (Draw_Interpretor& di, Standard_Integer argc, co
 {
   if (argc != 2)
   {
-    di << "Usage : " << argv[0] << " wire" << "\n";
+    di << "Usage : " << argv[0] << " wire\n";
     return 1;
   }
   TopoDS_Shape shape = DBRep::Get(argv[1],TopAbs_WIRE);
@@ -2365,10 +2365,10 @@ static Standard_Integer OCC5698 (Draw_Interpretor& di, Standard_Integer argc, co
   if (error_dist > Precision::Confusion()) {
     //cout.precision(3);
     di<<"error_dist = "<<error_dist<<
-      "  ( "<<error_dist/need_length*100<<" %)"<<"\n";
+      "  ( "<<error_dist/need_length*100<<" %)\n";
     return 0;
   }
-  di<<"OK"<<"\n";
+  di<<"OK\n";
   return 0;
 }
 
@@ -2409,7 +2409,7 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
       di << "\n";
       Standard_Integer res, a =4, b = 0 ;
       res = a / b;
-      di << " 4 / 0 = " << res << "  Does not Caught... KO"<< "\n";
+      di << " 4 / 0 = " << res << "  Does not Caught... KO\n";
       Succes = Standard_False;
     }
 #if defined(SOLARIS) || defined(_WIN32)
@@ -2418,20 +2418,20 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
     catch(Standard_NumericError)
 #endif
     {
-      di << " Ok"<< "\n";
+      di << " Ok\n";
     }
     catch(Standard_Failure) {
       //cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << endl;
       di << " Caught (";
       di << Standard_Failure::Caught()->GetMessageString();
-      di << ")... KO" << "\n";
+      di << ")... KO\n";
       Succes = Standard_False;
     }
 #ifndef NO_CXX_EXCEPTION
     // this case tests if (...) supersedes (Standard_*),
     // the normal behaviour is not
     catch(...) {
-      di<<" unknown exception... (But) Ok"<<"\n";
+      di<<" unknown exception... (But) Ok\n";
     }
 #endif
   }
@@ -2445,23 +2445,23 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
       di << "\n";
       Standard_Real res, a= 4.0, b=0.0;
       res = a / b;
-      di << " 4.0 / 0.0 = " << res << "  Does not Caught... OK"<< "\n";
+      di << " 4.0 / 0.0 = " << res << "  Does not Caught... OK\n";
     }
     catch(Standard_DivideByZero) // Solaris, Windows w/o SSE2
     {
-      di << " KO" << "\n";
+      di << " KO\n";
       Succes = Standard_False;
     }
     catch(Standard_NumericError) // Linux, Windows with SSE2
     {
-      di << " KO" << "\n";
+      di << " KO\n";
       Succes = Standard_False;
     }
     catch(Standard_Failure) {
       //cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << endl;
       di << " Caught (";
       di << Standard_Failure::Caught()->GetMessageString();
-      di << ")... KO" << "\n";
+      di << ")... KO\n";
       Succes = Standard_False;
     }
   }
@@ -2477,16 +2477,16 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
       res = i + 1;
       //++++ cout << " -- "<<res<<"="<<i<<"+1   Does not Caught... KO"<< endl;
       //++++ Succes = Standard_False;
-      di << " "<<res<<"="<<i<<"+1  Does not Caught... (But) Ok"<< "\n";
+      di << " "<<res<<"="<<i<<"+1  Does not Caught... (But) Ok\n";
     }
     catch(Standard_Overflow) {
-      di << " Ok"<< "\n";
+      di << " Ok\n";
     }
     catch(Standard_Failure) {
       //cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << endl;
       di << " Caught (";
       di << Standard_Failure::Caught()->GetMessageString();
-      di << ")... KO" << "\n";
+      di << ")... KO\n";
       Succes = Standard_False;
     }
   }
@@ -2503,23 +2503,23 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
       
       (void)sin(1.); //this function tests FPU flags and raises signal (tested on LINUX).
 
-      di << "-- "<<res<<"="<<r<<"*"<<r<<"   Does not Caught... OK"<< "\n";
+      di << "-- "<<res<<"="<<r<<"*"<<r<<"   Does not Caught... OK\n";
     }
     catch(Standard_Overflow) // Solaris, Windows w/o SSE2
     {
-      di << " KO" << "\n";
+      di << " KO\n";
       Succes = Standard_False;
     }
     catch(Standard_NumericError) // Linux, Windows with SSE2
     {
-      di << " KO" << "\n";
+      di << " KO\n";
       Succes = Standard_False;
     }
     catch(Standard_Failure) {
       //cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << endl;
       di << " Caught (";
       di << Standard_Failure::Caught()->GetMessageString();
-      di << ")... KO" << "\n";
+      di << ")... KO\n";
       Succes = Standard_False;
     }
   }
@@ -2536,23 +2536,23 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
       //res = res + 1.;
       //++++ cout<<"-- "<<res<<"="<<r<<"*"<<r<<"   Does not Caught... KO"<<endl;
       //++++ Succes = Standard_False;
-      di<<" -- "<<res<<"="<<r<<"*"<<r<<"   Does not Caught... (But) Ok"<<"\n";
+      di<<" -- "<<res<<"="<<r<<"*"<<r<<"   Does not Caught... (But) Ok\n";
     }
     catch(Standard_Underflow) // could be on Solaris, Windows w/o SSE2
     {
-      di << " KO" << "\n";
+      di << " KO\n";
       Succes = Standard_False;
     }
     catch(Standard_NumericError) // could be on Linux, Windows with SSE2
     {
-      di << " KO" << "\n";
+      di << " KO\n";
       Succes = Standard_False;
     }
     catch(Standard_Failure) {
       //cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << endl;
       di << " Caught (";
       di << Standard_Failure::Caught()->GetMessageString();
-      di << ")... KO" << "\n";
+      di << ")... KO\n";
       Succes = Standard_False;
     }
   }
@@ -2566,17 +2566,17 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
       di << "\n";
       Standard_Real res, r=-1;
       res = sqrt(r);
-      di<<" "<<res<<"=sqrt("<<r<<")  Does not Caught... OK"<<"\n";
+      di<<" "<<res<<"=sqrt("<<r<<")  Does not Caught... OK\n";
     }
     catch(Standard_NumericError) {
-      di << " KO"<< "\n";
+      di << " KO\n";
       Succes = Standard_False;
     }
     catch(Standard_Failure) {
       //cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << endl;
       di << " Caught (";
       di << Standard_Failure::Caught()->GetMessageString();
-      di << ")... KO" << "\n";
+      di << ")... KO\n";
       Succes = Standard_False;
     }
   }
@@ -2590,7 +2590,7 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
       di << "\n";
       int* pint=NULL;
       *pint = 4;
-      di << "  Does not Caught... KO"<<"\n";
+      di << "  Does not Caught... KO\n";
       Succes = Standard_False;
     }
 #ifdef _WIN32
@@ -2599,12 +2599,12 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
     catch(OSD_SIGSEGV)
 #endif
     {
-      di << " Ok"<< "\n";
+      di << " Ok\n";
     } catch(Standard_Failure) {
       //cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << endl;
       di << " Caught (";
       di << Standard_Failure::Caught()->GetMessageString();
-      di << ")... KO" << "\n";
+      di << ")... KO\n";
       Succes = Standard_False;
     }
   }
@@ -2618,26 +2618,26 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
       //cout.flush();
       di << "\n";
       StackOverflow();
-      di << "  Does not Caught... KO"<<"\n";
+      di << "  Does not Caught... KO\n";
       Succes = Standard_False;
     }
     catch(OSD_Exception_STACK_OVERFLOW) {
-      di << " Ok"<< "\n";
+      di << " Ok\n";
     }
     catch(Standard_Failure) {
       //cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << endl;
       di << " Caught (";
       di << Standard_Failure::Caught()->GetMessageString();
-      di << ")... KO" << "\n";
+      di << ")... KO\n";
       Succes = Standard_False;
     }
   }
 #endif
 
  if(Succes) {
-   di << "TestExcept: Successfull completion" << "\n";
+   di << "TestExcept: Successfull completion\n";
  } else {
-   di << "TestExcept: failure" << "\n";
+   di << "TestExcept: failure\n";
  }
 
   return 0;
@@ -2671,7 +2671,7 @@ static Standard_Integer OCC7141 (Draw_Interpretor& di, Standard_Integer argc, co
 
   if (argc > 3)
     {
-      di << "Usage : " << argv[0] << " [nCount] path" << "\n";
+      di << "Usage : " << argv[0] << " [nCount] path\n";
       return 1;
     }
 
@@ -2686,7 +2686,7 @@ static Standard_Integer OCC7141 (Draw_Interpretor& di, Standard_Integer argc, co
   shapeTool->AddShape(AddTestStructure(nCount), Standard_True);
   STEPControl_StepModelType mode = STEPControl_AsIs;
   if (!Interface_Static::SetIVal("write.step.assembly",1)) { //assembly mode
-    di << "Failed to set assembly mode for step data\n" << "\n";
+    di << "Failed to set assembly mode for step data\n\n";
     return 0;
   }
   try {
@@ -2696,14 +2696,14 @@ static Standard_Integer OCC7141 (Draw_Interpretor& di, Standard_Integer argc, co
     }
   }
   catch(OSD_Exception_STACK_OVERFLOW) {
-    di << "Failed : STACK OVERFLOW\n" << "\n";
+    di << "Failed : STACK OVERFLOW\n\n";
   }
   catch (Standard_Failure) {
-    di << "Failed :\n" << "\n";
+    di << "Failed :\n\n";
     //cout << Standard_Failure::Caught() << endl;
     di << Standard_Failure::Caught()->GetMessageString();
   }
-  di << argv[0] << " : Finish" << "\n";
+  di << argv[0] << " : Finish\n";
   
   return 0;
 }
@@ -2755,7 +2755,7 @@ static Standard_Integer OCC8169 (Draw_Interpretor& di, Standard_Integer argc, co
 {
   if (argc != 4)
   {
-    di << "Usage : " << argv[0] << " edge1 edge2 plane" << "\n";
+    di << "Usage : " << argv[0] << " edge1 edge2 plane\n";
     return 1;
   }
   TopoDS_Edge theEdge1 = TopoDS::Edge(DBRep::Get(argv[1],TopAbs_EDGE));
@@ -2794,7 +2794,7 @@ static Standard_Integer OCC8169 (Draw_Interpretor& di, Standard_Integer argc, co
     Standard_Integer i;
     for (i=1; i<=NbPoints; i++) {
       gp_Pnt2d aPi = anInter.Point(i);
-      di << "Point.X(" << i << ") = " << aPi.X() << "   " << "Point.Y(" << i << ") = " << aPi.Y() << "\n" ;
+      di << "Point.X(" << i << ") = " << aPi.X() << "   Point.Y(" << i << ") = " << aPi.Y() << "\n" ;
     }
   }
 
@@ -2810,20 +2810,20 @@ static Standard_Integer OCC8169 (Draw_Interpretor& di, Standard_Integer argc, co
   
     Standard_Real aDist = aP1.Distance(aP2);
   
-    di << "aP1.X() = " << aP1.X() << "   " << "aP1.Y() = " << aP1.Y() << "\n" ;
-    di << "aP2.X() = " << aP2.X() << "   " << "aP2.Y() = " << aP2.Y() << "\n" ;
+    di << "aP1.X() = " << aP1.X() << "   aP1.Y() = " << aP1.Y() << "\n" ;
+    di << "aP2.X() = " << aP2.X() << "   aP2.Y() = " << aP2.Y() << "\n" ;
 
     di << "Distance = " << aDist << "\n" ;
 
     di << "Confusion = " << aConfusion << "\n" ;
 
     if (aDist > aConfusion) {
-      di << "\n" << argv[0] << " Faulty" << "\n" ;
+      di << "\n" << argv[0] << " Faulty\n" ;
     } else {
-      di << "\n" << argv[0] << " OK" << "\n" ;
+      di << "\n" << argv[0] << " OK\n" ;
     }
   } else {
-    di << "\n" << argv[0] << " OK" << "\n" ;
+    di << "\n" << argv[0] << " OK\n" ;
   }
 
   return 0;
@@ -2832,7 +2832,7 @@ static Standard_Integer OCC10138 (Draw_Interpretor& di, Standard_Integer argc, c
 {
   if (argc != 3)
   {
-    di << "Usage : " << argv[0] << " lower upper" << "\n";
+    di << "Usage : " << argv[0] << " lower upper\n";
     return 1;
   }
 
@@ -3042,7 +3042,7 @@ static Standard_Integer OCC7639 (Draw_Interpretor& di, Standard_Integer argc, co
 
   if (argc < 3 || IsEvenArgc)
     {
-      di << "Usage : " << argv[0] << " index1 value1 ... [indexN valueN]" << "\n";
+      di << "Usage : " << argv[0] << " index1 value1 ... [indexN valueN]\n";
       return 1;
     }
 
@@ -4529,7 +4529,7 @@ static Standard_Integer OCC12584 (Draw_Interpretor& di, Standard_Integer argc, c
 {
   Handle(AIS_InteractiveContext) aContext = ViewerTest::GetAISContext();
   if(aContext.IsNull()) { 
-    di << argv[0] << " ERROR : use 'vinit' command before " << "\n";
+    di << argv[0] << " ERROR : use 'vinit' command before \n";
     return -1;
   }
 
@@ -4577,9 +4577,9 @@ static Standard_Integer OCC12584 (Draw_Interpretor& di, Standard_Integer argc, c
     if (mode == 2) {
       Standard_Boolean IsDisplayed = aContext->IsDisplayed (aCS);
       if (IsDisplayed)
-       di <<"ColorScaleIsDisplayed = " << "1" << "\n";
+       di <<"ColorScaleIsDisplayed = 1\n";
       else
-       di <<"ColorScaleIsDisplayed = " << "0" << "\n";
+       di <<"ColorScaleIsDisplayed = 0\n";
     }
   }
   return 0;
@@ -4641,8 +4641,8 @@ static Standard_Integer OCC18612igesbrep (Draw_Interpretor& di, Standard_Integer
   progress->Show();
 
   if (readstat != IFSelect_RetDone) {
-    if (modfic) di<<"Could not read file "<<fnom.ToCString()<<" , abandon"<<"\n";
-    else di<<"No model loaded"<<"\n";
+    if (modfic) di<<"Could not read file "<<fnom.ToCString()<<" , abandon\n";
+    else di<<"No model loaded\n";
     return 1;
   }
 // Choice of treatment
@@ -4665,14 +4665,14 @@ static Standard_Integer OCC18612igesbrep (Draw_Interpretor& di, Standard_Integer
     }
 
     if (modepri == 0) {  //fin
-      di << "Bye and good luck! " << "\n";
+      di << "Bye and good luck! \n";
       break;
     } 
 
     else if (modepri <= 2) {  // 1 : Visible Roots, 2 : All Roots
-      di << "All Geometry Transfer"<<"\n";
-      di<<"spline_continuity (read) : "<<Interface_Static::IVal("read.iges.bspline.continuity")<<" (0 : no modif, 1 : C1, 2 : C2)"<<"\n";
-      di<<"  To modify : command  param read.iges.bspline.continuity"<<"\n";
+      di << "All Geometry Transfer\n";
+      di<<"spline_continuity (read) : "<<Interface_Static::IVal("read.iges.bspline.continuity")<<" (0 : no modif, 1 : C1, 2 : C2)\n";
+      di<<"  To modify : command  param read.iges.bspline.continuity\n";
       Handle(XSControl_WorkSession) thesession = Reader.WS();
       thesession->ClearContext();
       XSDRAW::SetTransferProcess (thesession->MapReader());
@@ -4702,7 +4702,7 @@ static Standard_Integer OCC18612igesbrep (Draw_Interpretor& di, Standard_Integer
       if ( answer == 1 || answer == 3) {
        TopoDS_Shape shape = Reader.OneShape();
        // save the shape
-       if (shape.IsNull()) { di<<"No Shape produced"<<"\n"; continue; }
+       if (shape.IsNull()) { di<<"No Shape produced\n"; continue; }
        char fname[110];
        Sprintf(fname, "%s", rnom.ToCString());
        di << "Saving shape in variable Draw : " << fname << "\n";
@@ -4714,7 +4714,7 @@ static Standard_Integer OCC18612igesbrep (Draw_Interpretor& di, Standard_Integer
        catch(Standard_Failure) {
          di << "** Exception : ";
          di << Standard_Failure::Caught()->GetMessageString();
-         di<<" ** Skip"<<"\n";
+         di<<" ** Skip\n";
          di << "Saving shape in variable Draw : " << fname << "\n";
          IGESToBRep::WriteShape (shape,1);
        }
@@ -4725,7 +4725,7 @@ static Standard_Integer OCC18612igesbrep (Draw_Interpretor& di, Standard_Integer
        for (Standard_Integer inum = 1; inum <= numshape; inum++) {
          // save all the shapes
          TopoDS_Shape shape = Reader.Shape(inum);
-         if (shape.IsNull()) { di<<"No Shape produced"<<"\n"; continue; }
+         if (shape.IsNull()) { di<<"No Shape produced\n"; continue; }
          char fname[110];
          Sprintf(fname, "%s_%d", rnom.ToCString(),inum);
          di << "Saving shape in variable Draw : " << fname << "\n";
@@ -4737,7 +4737,7 @@ static Standard_Integer OCC18612igesbrep (Draw_Interpretor& di, Standard_Integer
          catch(Standard_Failure) {
            di << "** Exception : ";
            di << Standard_Failure::Caught()->GetMessageString();
-           di<<" ** Skip"<<"\n";
+           di<<" ** Skip\n";
          }
        }
       }
@@ -4751,12 +4751,12 @@ static Standard_Integer OCC18612igesbrep (Draw_Interpretor& di, Standard_Integer
       cout << " give the number of the Entity : " << flush;
       nent = XSDRAW::GetEntityNumber();
 
-      if (!Reader.TransferOne (nent)) di<<"Transfer entity n0 "<<nent<<" : no result"<<"\n";
+      if (!Reader.TransferOne (nent)) di<<"Transfer entity n0 "<<nent<<" : no result\n";
       else {
        nbs = Reader.NbShapes();
        char shname[30];  Sprintf (shname,"%s_%d",rnom.ToCString(),nent);
        di<<"Transfer entity n0 "<<nent<<" OK  -> DRAW Shape: "<<shname<<"\n";
-       di<<"Now, "<<nbs<<" Shapes produced"<<"\n";
+       di<<"Now, "<<nbs<<" Shapes produced\n";
        TopoDS_Shape sh = Reader.Shape(nbs);
        DBRep::Set (shname,sh);
       }
@@ -4771,9 +4771,9 @@ static Standard_Integer OCC18612igesbrep (Draw_Interpretor& di, Standard_Integer
 //   *r donne xst-model-roots (TOUTES racines)
 
       if( fromtcl && argv[3][0]=='*' && argv[3][1]=='\0' ) {         
-        di << "All Geometry Transfer"<<"\n";
-        di<<"spline_continuity (read) : "<<Interface_Static::IVal("read.iges.bspline.continuity")<<" (0 : no modif, 1 : C1, 2 : C2)"<<"\n";
-        di<<"  To modify : command  param read.iges.bspline.continuity"<<"\n";
+        di << "All Geometry Transfer\n";
+        di<<"spline_continuity (read) : "<<Interface_Static::IVal("read.iges.bspline.continuity")<<" (0 : no modif, 1 : C1, 2 : C2)\n";
+        di<<"  To modify : command  param read.iges.bspline.continuity\n";
         Handle(XSControl_WorkSession) thesession = Reader.WS();
         thesession->ClearContext();
         XSDRAW::SetTransferProcess (thesession->MapReader());
@@ -4801,7 +4801,7 @@ static Standard_Integer OCC18612igesbrep (Draw_Interpretor& di, Standard_Integer
         catch(Standard_Failure) {
           di << "** Exception : ";
          di << Standard_Failure::Caught()->GetMessageString();
-         di<<" ** Skip"<<"\n";
+         di<<" ** Skip\n";
           di << "Saving shape in variable Draw : " << fname << "\n";
           IGESToBRep::WriteShape (shape,1);
         }                                                                             
@@ -4820,7 +4820,7 @@ static Standard_Integer OCC18612igesbrep (Draw_Interpretor& di, Standard_Integer
          list = XSDRAW::GetList (compart.ToCString());
        }
        if (list.IsNull()) {
-          di<<"No list defined. Give a selection name or * for all visible transferrable roots"<<"\n";
+          di<<"No list defined. Give a selection name or * for all visible transferrable roots\n";
           continue;
         }
       }
@@ -4864,12 +4864,12 @@ static Standard_Integer OCC18612igesbrep (Draw_Interpretor& di, Standard_Integer
          
            nent = Reader.Model()->Number(list->Value(ill));
            if (nent == 0) continue;
-           if (!Reader.TransferOne(nent)) di<<"Transfer entity n0 "<<nent<<" : no result"<<"\n";
+           if (!Reader.TransferOne(nent)) di<<"Transfer entity n0 "<<nent<<" : no result\n";
            else {
              nbs = Reader.NbShapes();
              char shname[30];  Sprintf (shname,"%s_%d",rnom.ToCString(),nbs);
              di<<"Transfer entity n0 "<<nent<<" OK  -> DRAW Shape: "<<shname<<"\n";
-             di<<"Now, "<<nbs<<" Shapes produced"<<"\n";
+             di<<"Now, "<<nbs<<" Shapes produced\n";
              TopoDS_Shape sh = Reader.Shape(nbs);
              DBRep::Set (shname,sh);
               nbt++;
@@ -4928,7 +4928,7 @@ static Standard_Integer OCC20627 (Draw_Interpretor& di, Standard_Integer argc, c
 {
   if(argc!=2)
     {
-      di << "Usage : " << argv[0] << " MaxNbr" << "\n";
+      di << "Usage : " << argv[0] << " MaxNbr\n";
       return -1;
     }
   Standard_Integer aMaxNbr = Draw::Atoi(argv[1]);
@@ -4951,7 +4951,7 @@ Standard_Integer OCC22762 (Draw_Interpretor& di, Standard_Integer argc, const ch
 {
     if (argc!=7)
        {
-           di << "Wrong number of arguments" << "\n";
+           di << "Wrong number of arguments\n";
            return -1;
        }
     Standard_Real X1_Pnt = Draw::Atof(argv[1]);
@@ -4977,7 +4977,7 @@ Standard_Integer OCC17424 (Draw_Interpretor& di, Standard_Integer argc, const ch
 {
   if(argc!=9)
     {
-      di << "Usage : " << argv[0] << " shape X_Pnt Y_Pnt Z_Pnt X_Dir Y_Dir Z_Dir PInf" << "\n";
+      di << "Usage : " << argv[0] << " shape X_Pnt Y_Pnt Z_Pnt X_Dir Y_Dir Z_Dir PInf\n";
       return -1;
     }
 
@@ -5035,8 +5035,8 @@ Standard_Integer OCC22301 (Draw_Interpretor& di, Standard_Integer argc, const ch
   for (Standard_Integer i = 0; i < 2; i++)
     aPartMask.Add(i);
   
-  di << "aFullMask = 1111" << "\n";
-  di << "aPartMask = 1100" << "\n";
+  di << "aFullMask = 1111\n";
+  di << "aPartMask = 1100\n";
   
   Standard_Boolean isAffected;
   
@@ -5262,7 +5262,7 @@ Standard_Integer CR23234 (Draw_Interpretor& di, Standard_Integer argc, const cha
   // Check the command arguments
   if (argc != 2)
   {
-    di <<"Error: "<<argv[0]<<" - invalid number of arguments"<< "\n";
+    di <<"Error: "<<argv[0]<<" - invalid number of arguments\n";
     di << "Usage : " << argv[0] << " mode(0/1)\n";
     return 1; //TCL_ERROR
   }
@@ -5274,7 +5274,7 @@ Standard_Integer CR23234 (Draw_Interpretor& di, Standard_Integer argc, const cha
   Handle(AIS_InteractiveContext) aisContext = ViewerTest::GetAISContext();
   if (aisContext.IsNull())
   {
-    di <<"Error: call 'vinit' first"<< "\n";
+    di <<"Error: call 'vinit' first\n";
     return 1; //TCL_ERROR
   }
 
index df51593fff888d495a3849e477ce352c1e90c5ad..f8b3794665ff823e00025e6bde6259c655046c77 100644 (file)
@@ -44,7 +44,7 @@ static Standard_Integer OCC895 (Draw_Interpretor& di, Standard_Integer argc, con
 {
   if (argc < 2 || argc > 5)
   {
-    di << "Usage : " << argv[0] << " result [angle [reverse [order]]]" << "\n";
+    di << "Usage : " << argv[0] << " result [angle [reverse [order]]]\n";
     return 1;
   }
 
index 81a236f49e6ee187d6ee7e49197c47e19c8b6b19..796373b9eeaa13afdd70214fe3e12deda3616547 100644 (file)
@@ -75,10 +75,10 @@ static Standard_Integer OCC332bug (Draw_Interpretor& di, Standard_Integer argc,
 
   //if ((bend_angle >= M_PI)) {
   if ((bend_angle >= M_PI)) {
-    di << "The arguments are invalid." << "\n";
+    di << "The arguments are invalid.\n";
     return 1;
   }
-  di << "creating the shape for a bent tube" << "\n";
+  di << "creating the shape for a bent tube\n";
 
   double radius_l = dia1/2.0;
   double radius_r = dia2/2.0;
@@ -313,60 +313,60 @@ static Standard_Integer OCC332bug (Draw_Interpretor& di, Standard_Integer argc,
 
   if (check) {
     if (!(BRepCheck_Analyzer(wallSolid).IsValid()))
-      di << "The TopoDS_Solid was checked, and it was invalid!" << "\n";
+      di << "The TopoDS_Solid was checked, and it was invalid!\n";
     else
-      di << "The TopoDS_Solid was checked, and it was valid." << "\n";
+      di << "The TopoDS_Solid was checked, and it was valid.\n";
     if (!wallSolid.Closed())
-      di << "The TopoDS_Solid is not closed!" << "\n";
+      di << "The TopoDS_Solid is not closed!\n";
     else
-      di << "The TopoDS_Solid is closed." << "\n";
+      di << "The TopoDS_Solid is closed.\n";
     if (!wallSolid.Checked())
-      di << "The TopoDS_Solid is not checked!" << "\n";
+      di << "The TopoDS_Solid is not checked!\n";
     else
-      di << "The TopoDS_Solid has been checked." << "\n";
+      di << "The TopoDS_Solid has been checked.\n";
     if (wallSolid.Infinite())
-      di << "The TopoDS_Solid is infinite!" << "\n";
+      di << "The TopoDS_Solid is infinite!\n";
     else
-      di << "The TopoDS_Solid is finite." << "\n";
+      di << "The TopoDS_Solid is finite.\n";
   }
 
   di << "The result is a ";
   // Check to see if we have a solid
   switch (wallSolid.ShapeType()) {
   case (TopAbs_COMPOUND):
-    di << "TopAbs_COMPOUND" << "\n";
+    di << "TopAbs_COMPOUND\n";
     break;
   case (TopAbs_COMPSOLID):
-    di << "TopAbs_COMPSOLID" << "\n";
+    di << "TopAbs_COMPSOLID\n";
     break;
   case (TopAbs_SOLID):
-    di << "TopAbs_SOLID" << "\n";
+    di << "TopAbs_SOLID\n";
     break;
   case (TopAbs_SHELL):
-    di << "TopAbs_SHELL" << "\n";
+    di << "TopAbs_SHELL\n";
     break;
   case (TopAbs_FACE):
-    di << "TopAbs_FACE" << "\n";
+    di << "TopAbs_FACE\n";
     break;
   case (TopAbs_WIRE):
-    di << "TopAbs_WIRE" << "\n";
+    di << "TopAbs_WIRE\n";
     break;
   case (TopAbs_EDGE):
-    di << "TopAbs_EDGE" << "\n";
+    di << "TopAbs_EDGE\n";
     break;
   case (TopAbs_VERTEX):
-    di << "TopAbs_VERTEX" << "\n";
+    di << "TopAbs_VERTEX\n";
     break;
   case (TopAbs_SHAPE):
-    di << "TopAbs_SHAPE" << "\n";
+    di << "TopAbs_SHAPE\n";
   }
   di << "Can we turn it into a solid? ";
   try {
     OCC_CATCH_SIGNALS
-    di << " yes" << "\n";
+    di << " yes\n";
   }
   catch (Standard_TypeMismatch) {
-    di << " no" << "\n";
+    di << " no\n";
   }
 
   getFaces.Clear();
@@ -400,7 +400,7 @@ static Standard_Integer OCC332bug (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer OCC544 (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if(argc > 7) {
-    di << "Usage : " << argv[0] << " [[[[[wT [[[[d1 [[[d2 [[R [length [BRepAlgoAPI/BRepAlgo = 1/0]]]]]]" << "\n";
+    di << "Usage : " << argv[0] << " [[[[[wT [[[[d1 [[[d2 [[R [length [BRepAlgoAPI/BRepAlgo = 1/0]]]]]]\n";
     return 1;
   }
   Standard_Boolean IsBRepAlgoAPI = Standard_True;
@@ -409,7 +409,7 @@ static Standard_Integer OCC544 (Draw_Interpretor& di, Standard_Integer argc, con
     if (IsB != 1) {
       IsBRepAlgoAPI = Standard_False;
 #if ! defined(BRepAlgo_def01)
-//      di << "Error: There is not BRepAlgo_Fuse class" << "\n";
+//      di << "Error: There is not BRepAlgo_Fuse class\n";
 //      return 1;
 #endif
     }
@@ -438,10 +438,10 @@ static Standard_Integer OCC544 (Draw_Interpretor& di, Standard_Integer argc, con
 
   // mkv 15.07.03 if ((bend_angle >= 2.0*M_PI)) {
   if ((bend_angle >= 2.0*M_PI)) {
-    di << "The arguments are invalid." << "\n";
+    di << "The arguments are invalid.\n";
     return 1;
   }
-  di << "creating the shape for a bent tube" << "\n";
+  di << "creating the shape for a bent tube\n";
  
   gp_Ax2 origin(gp_Pnt(500.0,-300.0, 100.0),
                gp_Dir(0.0, -1.0/sqrt(2.0), -1.0/sqrt(2.0)));
@@ -634,31 +634,31 @@ static Standard_Integer OCC544 (Draw_Interpretor& di, Standard_Integer argc, con
   // Check to see if we have a solid
   switch (SewIt.SewedShape().ShapeType()) {
   case (TopAbs_COMPOUND):
-    di << "TopAbs_COMPOUND" << "\n";
+    di << "TopAbs_COMPOUND\n";
     break;
   case (TopAbs_COMPSOLID):
-    di << "TopAbs_COMPSOLID" << "\n";
+    di << "TopAbs_COMPSOLID\n";
     break;
   case (TopAbs_SOLID):
-    di << "TopAbs_SOLID" << "\n";
+    di << "TopAbs_SOLID\n";
     break;
   case (TopAbs_SHELL):
-    di << "TopAbs_SHELL" << "\n";
+    di << "TopAbs_SHELL\n";
     break;
   case (TopAbs_FACE):
-    di << "TopAbs_FACE" << "\n";
+    di << "TopAbs_FACE\n";
     break;
   case (TopAbs_WIRE):
-    di << "TopAbs_WIRE" << "\n";
+    di << "TopAbs_WIRE\n";
     break;
   case (TopAbs_EDGE):
-    di << "TopAbs_EDGE" << "\n";
+    di << "TopAbs_EDGE\n";
     break;
   case (TopAbs_VERTEX):
-    di << "TopAbs_VERTEX" << "\n";
+    di << "TopAbs_VERTEX\n";
     break;
   case (TopAbs_SHAPE):
-    di << "TopAbs_SHAPE" << "\n";
+    di << "TopAbs_SHAPE\n";
   }
 
   BRep_Builder B;
@@ -670,19 +670,19 @@ static Standard_Integer OCC544 (Draw_Interpretor& di, Standard_Integer argc, con
     TubeShell = TopoDS::Shell(SewIt.SewedShape());
     B.MakeSolid(wallSolid);
     B.Add(wallSolid,TubeShell);
-    di << " yes" << "\n";
+    di << " yes\n";
   }
   catch (Standard_TypeMismatch) {
-    di << "Can't convert to shell..." << "\n";
+    di << "Can't convert to shell...\n";
     TopExp_Explorer getSol;
     getSol.Init(SewIt.SewedShape(), TopAbs_SOLID);
     if (getSol.More()) {
-      di << "First solid found in compound" << "\n";
+      di << "First solid found in compound\n";
       wallSolid = TopoDS::Solid(getSol.Current());
       TopoDS_Solid test_solid;
       while (getSol.More())
        {
-         di << "Next solid found in compound" << "\n";
+         di << "Next solid found in compound\n";
          getSol.Next();
          test_solid = TopoDS::Solid(getSol.Current());
 //////#if ! defined(BRepAlgoAPI_def01)
@@ -692,12 +692,12 @@ static Standard_Integer OCC544 (Draw_Interpretor& di, Standard_Integer argc, con
 //////#endif
 //////   fuser.Build();
          if (IsBRepAlgoAPI) {
-           di << "BRepAlgoAPI_Fuse fuser(test_solid, wallSolid)" <<"\n";
+           di << "BRepAlgoAPI_Fuse fuser(test_solid, wallSolid)\n";
            BRepAlgoAPI_Fuse fuser(test_solid, wallSolid);
            fuser.Build();
            wallSolid = TopoDS::Solid(fuser.Shape());
          } else {
-           di << "BRepAlgo_Fuse fuser(test_solid, wallSolid)" <<"\n";
+           di << "BRepAlgo_Fuse fuser(test_solid, wallSolid)\n";
            BRepAlgo_Fuse fuser(test_solid, wallSolid);
            fuser.Build();
            wallSolid = TopoDS::Solid(fuser.Shape());
@@ -709,14 +709,14 @@ static Standard_Integer OCC544 (Draw_Interpretor& di, Standard_Integer argc, con
       TopExp_Explorer getShel;
       getShel.Init(SewIt.SewedShape(), TopAbs_SHELL);
       if (getShel.More()) {
-       di << "First shell found in compound" << "\n";
+       di << "First shell found in compound\n";
        B.MakeSolid(wallSolid);
-       di << "B.Add(wallSolid,TopoDS::Shell(getShel.Current()));" << "\n";
+       di << "B.Add(wallSolid,TopoDS::Shell(getShel.Current()));\n";
        int i = 1;
        while (getShel.More())
          {
-           di << "Next shell found in compound" << "\n";
-           di << "B.Add(wallSolid,TopoDS::Shell(getShel.Current()));" << "\n";
+           di << "Next shell found in compound\n";
+           di << "B.Add(wallSolid,TopoDS::Shell(getShel.Current()));\n";
            Sprintf(name,"shell%d", i++);
            DBRep::Set(name,getShel.Current());
            B.Add(wallSolid,TopoDS::Shell(getShel.Current()));
@@ -736,52 +736,52 @@ static Standard_Integer OCC544 (Draw_Interpretor& di, Standard_Integer argc, con
 
   if (check) {
     if (!(BRepCheck_Analyzer(wallSolid).IsValid()))
-      di << "The TopoDS_Solid was checked, and it was invalid!" << "\n";
+      di << "The TopoDS_Solid was checked, and it was invalid!\n";
     else
-      di << "The TopoDS_Solid was checked, and it was valid." << "\n";
+      di << "The TopoDS_Solid was checked, and it was valid.\n";
     if (!wallSolid.Closed())
-      di << "The TopoDS_Solid is not closed!" << "\n";
+      di << "The TopoDS_Solid is not closed!\n";
     else
-      di << "The TopoDS_Solid is closed." << "\n";
+      di << "The TopoDS_Solid is closed.\n";
     if (!wallSolid.Checked())
-      di << "The TopoDS_Solid is not checked!" << "\n";
+      di << "The TopoDS_Solid is not checked!\n";
     else
-      di << "The TopoDS_Solid has been checked." << "\n";
+      di << "The TopoDS_Solid has been checked.\n";
     if (wallSolid.Infinite())
-      di << "The TopoDS_Solid is infinite!" << "\n";
+      di << "The TopoDS_Solid is infinite!\n";
     else
-      di << "The TopoDS_Solid is finite." << "\n";
+      di << "The TopoDS_Solid is finite.\n";
   }
 
   di << "The result is a ";
   // Check to see if we have a solid
   switch (wallSolid.ShapeType()) {
   case (TopAbs_COMPOUND):
-    di << "TopAbs_COMPOUND" << "\n";
+    di << "TopAbs_COMPOUND\n";
     break;
   case (TopAbs_COMPSOLID):
-    di << "TopAbs_COMPSOLID" << "\n";
+    di << "TopAbs_COMPSOLID\n";
     break;
   case (TopAbs_SOLID):
-    di << "TopAbs_SOLID" << "\n";
+    di << "TopAbs_SOLID\n";
     break;
   case (TopAbs_SHELL):
-    di << "TopAbs_SHELL" << "\n";
+    di << "TopAbs_SHELL\n";
     break;
   case (TopAbs_FACE):
-    di << "TopAbs_FACE" << "\n";
+    di << "TopAbs_FACE\n";
     break;
   case (TopAbs_WIRE):
-    di << "TopAbs_WIRE" << "\n";
+    di << "TopAbs_WIRE\n";
     break;
   case (TopAbs_EDGE):
-    di << "TopAbs_EDGE" << "\n";
+    di << "TopAbs_EDGE\n";
     break;
   case (TopAbs_VERTEX):
-    di << "TopAbs_VERTEX" << "\n";
+    di << "TopAbs_VERTEX\n";
     break;
   case (TopAbs_SHAPE):
-    di << "TopAbs_SHAPE" << "\n";
+    di << "TopAbs_SHAPE\n";
   }
 
   return 0;
@@ -810,7 +810,7 @@ static Standard_Integer OCC817 (Draw_Interpretor& di, Standard_Integer argc, con
   //////////  return 1;        
   //////////}
   if(argc < 3 || argc > 4) {
-    di << "Usage : " << argv[0] << " result mesh_delta [BRepAlgoAPI/BRepAlgo = 1/0]" << "\n";
+    di << "Usage : " << argv[0] << " result mesh_delta [BRepAlgoAPI/BRepAlgo = 1/0]\n";
     return 1;
   }
   Standard_Boolean IsBRepAlgoAPI = Standard_True;
@@ -819,11 +819,11 @@ static Standard_Integer OCC817 (Draw_Interpretor& di, Standard_Integer argc, con
     if (IsB != 1) {
       IsBRepAlgoAPI = Standard_False;
 #if ! defined(BRepAlgo_def02)
-//      di << "Error: There is not BRepAlgo_Cut class" << "\n";
+//      di << "Error: There is not BRepAlgo_Cut class\n";
 //      return 1;
 #endif
 #if ! defined(BRepAlgo_def03)
-//      di << "Error: There is not BRepAlgo_Common class" << "\n";
+//      di << "Error: There is not BRepAlgo_Common class\n";
 //      return 1;
 #endif
     }
@@ -833,7 +833,7 @@ static Standard_Integer OCC817 (Draw_Interpretor& di, Standard_Integer argc, con
   Standard_Real mesh_delt = Draw::Atof(argv[2]);
   if (mesh_delt <= 0.0)
   {
-    di<<"Error: mesh_delta must be positive value"<<"\n";
+    di<<"Error: mesh_delta must be positive value\n";
     return -1;
   }
 
@@ -860,21 +860,21 @@ static Standard_Integer OCC817 (Draw_Interpretor& di, Standard_Integer argc, con
 
   TopoDS_Shape cut_shape;
   if (IsBRepAlgoAPI) {
-    di << "BRepAlgoAPI_Cut cut( fullSolid, internalSolid )" <<"\n";
+    di << "BRepAlgoAPI_Cut cut( fullSolid, internalSolid )\n";
     BRepAlgoAPI_Cut cut( fullSolid, internalSolid );
     cut_shape = cut.Shape();
     if ( !cut.IsDone() )
       {
-       di << "Error: Could not cut volumes" << "\n";
+       di << "Error: Could not cut volumes\n";
        return -1;
       }
   } else {
-    di << "BRepAlgo_Cut cut( fullSolid, internalSolid )" <<"\n";
+    di << "BRepAlgo_Cut cut( fullSolid, internalSolid )\n";
     BRepAlgo_Cut cut( fullSolid, internalSolid );
     cut_shape = cut.Shape();
     if ( !cut.IsDone() )
       {
-       di << "Error: Could not cut volumes" << "\n";
+       di << "Error: Could not cut volumes\n";
        return -1;
       }
   }
@@ -890,7 +890,7 @@ static Standard_Integer OCC817 (Draw_Interpretor& di, Standard_Integer argc, con
   }
   if ( found_solid != 1 )
   {
-    di << "Error: Cut operation produced " << found_solid << " solids" << "\n";
+    di << "Error: Cut operation produced " << found_solid << " solids\n";
     return -1;
   }
   DBRep::Set(argv[1],cutSolid);
@@ -913,7 +913,7 @@ static Standard_Integer OCC817 (Draw_Interpretor& di, Standard_Integer argc, con
   Xmax += delt;
   Ymax += delt;
   Zmax += delt;
-  di<<"Info: Bounds\n  ("<<Xmin<<","<<Ymin<<","<<Zmin<<")\n  ("<<Xmax<<","<<Ymax<<","<<Zmax<<")"<<"\n";
+  di<<"Info: Bounds\n  ("<<Xmin<<","<<Ymin<<","<<Zmin<<")\n  ("<<Xmax<<","<<Ymax<<","<<Zmax<<")\n";
 
   // grid the bounding box
   Standard_Integer NumXsubvolumes = (Standard_Integer)((Xmax - Xmin) / mesh_delt); if (NumXsubvolumes <= 0) NumXsubvolumes = 1;
@@ -992,7 +992,7 @@ static Standard_Integer OCC817 (Draw_Interpretor& di, Standard_Integer argc, con
 
     TopoDS_Shape aCommonShape;
     if (IsBRepAlgoAPI) {
-      di << "BRepAlgoAPI_Common common(copySolid/*cutSolid*/, SubvolumeSolid(l))" <<"\n";
+      di << "BRepAlgoAPI_Common common(copySolid/*cutSolid*/, SubvolumeSolid(l))\n";
       BRepAlgoAPI_Common common(copySolid/*cutSolid*/, SubvolumeSolid(l));
       if (!common.IsDone())
        {
@@ -1001,7 +1001,7 @@ static Standard_Integer OCC817 (Draw_Interpretor& di, Standard_Integer argc, con
        }
       aCommonShape = common.Shape();
     } else {
-      di << "BRepAlgo_Common common(copySolid/*cutSolid*/, SubvolumeSolid(l))" <<"\n";
+      di << "BRepAlgo_Common common(copySolid/*cutSolid*/, SubvolumeSolid(l))\n";
       BRepAlgo_Common common(copySolid/*cutSolid*/, SubvolumeSolid(l));
       if (!common.IsDone())
        {
@@ -1022,7 +1022,7 @@ static Standard_Integer OCC817 (Draw_Interpretor& di, Standard_Integer argc, con
     }
     if ( found_solid != 1 )
     {
-      di << "Info: Common operation " << l << " produced " << found_solid << " solids" << "\n";
+      di << "Info: Common operation " << l << " produced " << found_solid << " solids\n";
     }
     else
     {
@@ -1033,9 +1033,9 @@ static Standard_Integer OCC817 (Draw_Interpretor& di, Standard_Integer argc, con
       const Standard_Boolean err = (vol > SubvolumeVol(l)) || (vol <= 0.0);
       //cout << (err? "ERROR" : "Info") << ": final subvolume " << l << " volume = " << vol << endl;
       if (err)
-       di << "ERROR" << ": final subvolume " << l << " volume = " << vol << "\n";
+       di << "ERROR: final subvolume " << l << " volume = " << vol << "\n";
       else
-       di << "Info" << ": final subvolume " << l << " volume = " << vol << "\n";
+       di << "Info: final subvolume " << l << " volume = " << vol << "\n";
       accumulatedVolume += vol;
       if (err)
       {
index ca31b63e312378c501426a0bb45718684a714455..df00deffb245068c8ac04ae8ef2c46ec878510c6 100644 (file)
@@ -88,7 +88,7 @@ static Standard_Integer BUC60897 (Draw_Interpretor& di, Standard_Integer /*argc*
   Geom2dGcc_Circ2d2TanRad aGccCirc2d(aQualifCurve1, aQualifCurve2, 10, 1e-7);
   if(!aGccCirc2d.IsDone())
   {
-    di << "Faulty: can not create a circle." << "\n";
+    di << "Faulty: can not create a circle.\n";
     return 1;
   }
   for(Standard_Integer i = 1; i <= aGccCirc2d.NbSolutions(); i++)
@@ -99,34 +99,34 @@ static Standard_Integer BUC60897 (Draw_Interpretor& di, Standard_Integer /*argc*
     gp_Pnt2d aPnt2d1, aPnt2d2;
     aGccCirc2d.Tangency1(i, aTmpR1, aTmpR2, aPnt2d1);
     aGccCirc2d.Tangency2(i, aTmpR1, aTmpR2, aPnt2d2);
-    di << "\n" << "tangency1 : X " << aPnt2d1.X() << " Y " << aPnt2d1.Y();
-    di << "\n" << "tangency2 : X " << aPnt2d2.X() << " Y " << aPnt2d2.Y() << "\n";
+    di << "\ntangency1 : X " << aPnt2d1.X() << " Y " << aPnt2d1.Y();
+    di << "\ntangency2 : X " << aPnt2d2.X() << " Y " << aPnt2d2.Y() << "\n";
     
     Sprintf(abuf,"circle_%d",i);
     Handle(Geom2d_Curve) circ_res = new Geom2d_Circle(aCirc2d);
     DrawTrSurf::Set (st, circ_res);
   }
 
-  di << "done" << "\n";
+  di << "done\n";
   return 0;
 }
 
 static Standard_Integer BUC60889 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if(argc != 10) {
-    di << "Usage : " << argv[0] << " point_1 point_2 name_of_edge bndbox_X1 bndbox_Y1 bndbox_Z1 bndbox_X2 bndbox_Y2 bndbox_Z2" << "\n";
+    di << "Usage : " << argv[0] << " point_1 point_2 name_of_edge bndbox_X1 bndbox_Y1 bndbox_Z1 bndbox_X2 bndbox_Y2 bndbox_Z2\n";
     return 1;
   } else {
     gp_Pnt p1, p2;
     if (!(DrawTrSurf::GetPoint(argv[1], p1)) || !(DrawTrSurf::GetPoint(argv[2], p2)))
     {
-      di << "Need two points to define a band" << "\n";
+      di << "Need two points to define a band\n";
       return 1;
     }
     TopoDS_Edge ed = TopoDS::Edge(DBRep::Get(argv[3]));
     if (ed.IsNull())
     {
-      di << "Need an edge to define the band direction" << "\n";
+      di << "Need an edge to define the band direction\n";
       return 1;
     }
     BRepAdaptor_Curve curve(ed);
@@ -134,9 +134,9 @@ static Standard_Integer BUC60889 (Draw_Interpretor& di, Standard_Integer argc, c
     Bnd_Box bnd_box;
     bnd_box.Update(Draw::Atof(argv[4]), Draw::Atof(argv[5]), Draw::Atof(argv[6]), Draw::Atof(argv[7]), Draw::Atof(argv[8]), Draw::Atof(argv[9]));
     if(bnd_box.IsOut(p1, p2, d))
-      di << "The band lies out of the box" << "\n";
+      di << "The band lies out of the box\n";
     else
-      di << "The band intersects the box" << "\n";
+      di << "The band intersects the box\n";
     
     return 0;
   }
@@ -145,20 +145,20 @@ static Standard_Integer BUC60889 (Draw_Interpretor& di, Standard_Integer argc, c
 static Standard_Integer BUC60852 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if(argc != 8)
-    di << "Usage : " << argv[0] << " name_of_edge bndbox_X1 bndbox_Y1 bndbox_Z1 bndbox_X2 bndbox_Y2 bndbox_Z2" << "\n";
+    di << "Usage : " << argv[0] << " name_of_edge bndbox_X1 bndbox_Y1 bndbox_Z1 bndbox_X2 bndbox_Y2 bndbox_Z2\n";
   else {
     TopoDS_Edge shape = TopoDS::Edge(DBRep::Get(argv[1]));
     if(shape.ShapeType() != TopAbs_EDGE)
-      di << "shape must be an edge" << "\n";
+      di << "shape must be an edge\n";
     else {
       BRepAdaptor_Curve curve(shape);
       gp_Lin lin = curve.Line();
       Bnd_Box bnd_box;
       bnd_box.Update(Draw::Atof(argv[2]), Draw::Atof(argv[3]), Draw::Atof(argv[4]), Draw::Atof(argv[5]), Draw::Atof(argv[6]), Draw::Atof(argv[7]));
       if(bnd_box.IsOut(lin))
-       di << "Line that lies on edge does not intersect the box" << "\n";
+       di << "Line that lies on edge does not intersect the box\n";
       else
-       di << "Line that lies on edge intersects the box" << "\n";
+       di << "Line that lies on edge intersects the box\n";
     }
   }
   return 0;
@@ -269,7 +269,7 @@ static Standard_Integer BUC60870 (Draw_Interpretor& di, Standard_Integer argc, c
 {
   Standard_Integer i1;
   if (argc != 5) {
-    di << "Usage : " << argv[0] << " result name_of_shape_1 name_of_shape_2 dev" << "\n";
+    di << "Usage : " << argv[0] << " result name_of_shape_1 name_of_shape_2 dev\n";
     return 1;
   }
   const char *ns1 = (argv[2]), *ns2 = (argv[3]), *ns0 = (argv[1]);
@@ -311,7 +311,7 @@ static Standard_Integer BUC60870 (Draw_Interpretor& di, Standard_Integer argc, c
       }
     }
   } else {
-    di << "Faulty : found a problem"<< "\n";
+    di << "Faulty : found a problem\n";
   }
   return 0;
 }
@@ -328,7 +328,7 @@ static Standard_Integer BUC60902 (Draw_Interpretor& di, Standard_Integer /*argc*
   GeomAPI_Interpolate anInterpolater(aPnts, Standard_False, Precision::Confusion());
   anInterpolater.Perform(); 
   if(!anInterpolater.IsDone()) {
-    di << "Faulty : error in interpolation" << "\n";
+    di << "Faulty : error in interpolation\n";
     return 1;
   }
   Handle(Geom_BSplineCurve) aCur = anInterpolater.Curve(); 
@@ -341,7 +341,7 @@ static Standard_Integer BUC60902 (Draw_Interpretor& di, Standard_Integer /*argc*
   anInterpolater1.Load(aFirstTang, aLastTang, Standard_False); 
   anInterpolater1.Perform(); 
   if(!anInterpolater1.IsDone()) {
-    di << "Faulty : error in interpolation 1" << "\n";
+    di << "Faulty : error in interpolation 1\n";
     return 1;
   }
   aCur = anInterpolater1.Curve();
@@ -351,16 +351,16 @@ static Standard_Integer BUC60902 (Draw_Interpretor& di, Standard_Integer /*argc*
   di << " Tang1 after compute = " << aFirstTang1.X() << " " << aFirstTang1.Y() << " " << aFirstTang1.Z() << "\n"; 
   di << " Tang2 after compute = " << aLastTang1.X() << " " << aLastTang1.Y() << " " << aLastTang1.Z() << "\n"; 
   if(aFirstTang.IsEqual(aFirstTang1, Precision::Confusion(), Precision::Angular())) {
-    di << "First tangent is OK" << "\n";
+    di << "First tangent is OK\n";
   }
   else {
-    di << "Faulty : first tangent is wrong" << "\n";
+    di << "Faulty : first tangent is wrong\n";
   }
   if(aLastTang.IsEqual(aLastTang1, Precision::Confusion(), Precision::Angular())) {
-    di << "Last tangent is OK" << "\n";
+    di << "Last tangent is OK\n";
   }
   else {
-    di << "Faulty : last tangent is wrong" << "\n";
+    di << "Faulty : last tangent is wrong\n";
   }
   return 0;
 }
@@ -368,7 +368,7 @@ static Standard_Integer BUC60902 (Draw_Interpretor& di, Standard_Integer /*argc*
 static Standard_Integer BUC60944 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if(argc != 2) {
-    di << "Usage : " << argv[0] << " path" << "\n";
+    di << "Usage : " << argv[0] << " path\n";
   }
 
   TCollection_AsciiString in(argv[1]);
@@ -376,7 +376,7 @@ static Standard_Integer BUC60944 (Draw_Interpretor& di, Standard_Integer argc, c
   TCollection_AsciiString out;
   aPath->SystemName(out);
   if(in == out) 
-    di << "The convertion is right." << "\n";
+    di << "The convertion is right.\n";
   else
     di << "Faulty : The convertion is incorrect : " << out.ToCString() << "\n";
   di << out.ToCString() << "\n";
@@ -524,14 +524,14 @@ Standard_Boolean BuildBoundWires(const TopoDS_Shape   &theShell,
 static Standard_Integer BUC60868 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if (argc != 3) {
-    di << "Usage : " <<argv[0] << " Result Shell" << "\n";
+    di << "Usage : " <<argv[0] << " Result Shell\n";
     return 1;
   }
 
   TopoDS_Shape aShell = DBRep::Get(argv[2]);
 
   if (aShell.IsNull()) {
-    di << "Faulty : The shape is NULL" << "\n";
+    di << "Faulty : The shape is NULL\n";
     return 1;
   }
 
@@ -540,7 +540,7 @@ static Standard_Integer BUC60868 (Draw_Interpretor& di, Standard_Integer argc, c
 
   TopoDS_Shape aRes;
   if (aListOfWires.IsEmpty())
-    di << "no bound" << "\n";
+    di << "no bound\n";
   else if (aListOfWires.Extent() == 1)
     aRes = aListOfWires.First();
   else {
@@ -558,14 +558,14 @@ static Standard_Integer BUC60868 (Draw_Interpretor& di, Standard_Integer argc, c
 static Standard_Integer BUC60924 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if (argc != 5) {
-    di << "Usage : " <<argv[0] << " curve X Y Z" << "\n";
+    di << "Usage : " <<argv[0] << " curve X Y Z\n";
     return 1;
   }
 
   Handle(Geom_Curve) aCurve = DrawTrSurf::GetCurve(argv[1]);
 
   if (aCurve.IsNull()) {
-    di << "Faulty : the curve is NULL." << "\n";
+    di << "Faulty : the curve is NULL.\n";
     return 1;
   }
   
@@ -575,9 +575,9 @@ static Standard_Integer BUC60924 (Draw_Interpretor& di, Standard_Integer argc, c
   isPlanar=ShapeAnalysis_Curve::IsPlanar(aCurve,aVec,1e-7);
   
   if(isPlanar)
-    di << "The curve is planar !" << "\n";
+    di << "The curve is planar !\n";
   else 
-    di << "Faulty : the curve is not planar!" << "\n";
+    di << "Faulty : the curve is not planar!\n";
   
   return 0;
 }
@@ -628,7 +628,7 @@ static Standard_Integer  BUC60920(Draw_Interpretor& di, Standard_Integer /*argc*
 static Standard_Integer  OCC983 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if (argc != 2) {
-    di << "Usage : " << argv[0] << " file" << "\n";
+    di << "Usage : " << argv[0] << " file\n";
     return 1;
   }
 
@@ -639,16 +639,16 @@ static Standard_Integer  OCC983 (Draw_Interpretor& di, Standard_Integer argc, co
 
   if(!aParser.parse(File)) {
     myDOM=aParser.getDocument();
-    di<<"Document parsed"<<"\n";
+    di<<"Document parsed\n";
   } else {
-    di<<"Document not parsed"<<"\n";
+    di<<"Document not parsed\n";
     return 0;
   }
 
   LDOM_Element root = myDOM.getDocumentElement();
 
   if ( root.isNull() ) {
-    di<<"Root element is null"<<"\n";
+    di<<"Root element is null\n";
     return 0;
   }
 
@@ -690,7 +690,7 @@ static Standard_Integer  OCC983 (Draw_Interpretor& di, Standard_Integer argc, co
 static Standard_Integer  OCC984 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if (argc != 2) {
-    di << "Usage : " << argv[0] << " file" << "\n";
+    di << "Usage : " << argv[0] << " file\n";
     return 1;
   }
 
@@ -703,9 +703,9 @@ static Standard_Integer  OCC984 (Draw_Interpretor& di, Standard_Integer argc, co
 
   if(!aParser.parse(File)) {
     myDOM=aParser.getDocument();
-    di<<"Document parsed"<<"\n";
+    di<<"Document parsed\n";
   } else {
-    di<<"Document not parsed"<<"\n";
+    di<<"Document not parsed\n";
   }
 
   return 0;
@@ -715,7 +715,7 @@ static Standard_Integer OCC1786 (Draw_Interpretor& di, Standard_Integer argc, co
 {
   if( argc != 2)
   {
-    di << "Usage : " << argv[0] << " AutoHilight=0/1" << "\n";
+    di << "Usage : " << argv[0] << " AutoHilight=0/1\n";
     return 1;
   }
   Handle(AIS_InteractiveContext) aContext = ViewerTest::GetAISContext();
@@ -835,7 +835,7 @@ static Standard_Integer OCC1919_set (Draw_Interpretor& di, Standard_Integer argc
 {
   if( argc != 2)
   {
-    di << "Usage : " << argv[0] << " LC_NUMERIC" << "\n";
+    di << "Usage : " << argv[0] << " LC_NUMERIC\n";
     return 1;
   }
   TCollection_AsciiString aNumLocale(argv[1]);
@@ -872,7 +872,7 @@ static Standard_Integer OCC2932_SetIDUAttribute (Draw_Interpretor& di, Standard_
 {
   if( argc != 5)
   {
-    di << "Usage : " << argv[0] << " (DF, entry, oldLocalID, newLocalID)" << "\n";
+    di << "Usage : " << argv[0] << " (DF, entry, oldLocalID, newLocalID)\n";
     return 1;
   }
   Handle(TDF_Data) DF;
@@ -903,7 +903,7 @@ static Standard_Integer OCC2932_SetTag (Draw_Interpretor& di, Standard_Integer a
 {
   if( argc != 4)
   {
-    di << "Usage : " << argv[0] << " (DF, entry, Tag)" << "\n";
+    di << "Usage : " << argv[0] << " (DF, entry, Tag)\n";
     return 1;
   }
   Handle(TDF_Data) DF;
@@ -921,7 +921,7 @@ static Standard_Integer OCC2932_SetCurrent (Draw_Interpretor& di, Standard_Integ
 {
   if( argc != 3)
   {
-    di << "Usage : " << argv[0] << " (DF, entry)" << "\n";
+    di << "Usage : " << argv[0] << " (DF, entry)\n";
     return 1;
   }
   Handle(TDF_Data) DF;
@@ -937,7 +937,7 @@ static Standard_Integer OCC2932_SetExpression (Draw_Interpretor& di, Standard_In
 {
   if( argc != 4)
   {
-    di << "Usage : " << argv[0] << " (DF, entry, Expression)" << "\n";
+    di << "Usage : " << argv[0] << " (DF, entry, Expression)\n";
     return 1;
   }
   Handle(TDF_Data) DF;
@@ -955,7 +955,7 @@ static Standard_Integer OCC2932_SetRelation (Draw_Interpretor& di, Standard_Inte
 {
   if( argc != 4)
   {
-    di << "Usage : " << argv[0] << " (DF, entry, Relation)" << "\n";
+    di << "Usage : " << argv[0] << " (DF, entry, Relation)\n";
     return 1;
   }
   Handle(TDF_Data) DF;
@@ -972,7 +972,7 @@ static Standard_Integer OCC3277 (Draw_Interpretor& di, Standard_Integer argc, co
 {
   if( argc != 2)
   {
-    di << "Usage : " << argv[0] << " string" << "\n";
+    di << "Usage : " << argv[0] << " string\n";
     return 1;
   }
   TCollection_ExtendedString ExtendedString;
@@ -989,7 +989,7 @@ static Standard_Integer OCC6794 (Draw_Interpretor& di, Standard_Integer argc, co
 {
   if (argc > 2)
     {
-      di << "Usage: " << argv[0] << " [nb]" << "\n";
+      di << "Usage: " << argv[0] << " [nb]\n";
       return 1;
     }
 
index 47364659d61cefd64628d32cdf3ba74adb61a138..02121ebc6ff5c24a99f84c4ee5650c48a2db65f3 100644 (file)
@@ -38,7 +38,7 @@ static Standard_Integer BUC60720 (Draw_Interpretor& di,Standard_Integer argc,con
   }
 
   if(argc != 2) {
-    di << "Usage : " << argv[0] << " 0/1" << "\n";
+    di << "Usage : " << argv[0] << " 0/1\n";
   }
 
   if(Draw::Atoi(argv[1]) == 0) {
@@ -56,7 +56,7 @@ static Standard_Integer BUC60720 (Draw_Interpretor& di,Standard_Integer argc,con
        myAISContext->Display(theObject2);
       }
   } else {
-    di << "Usage : " << argv[0] << " 0/1" << "\n";
+    di << "Usage : " << argv[0] << " 0/1\n";
     return -1;
   }
   return 0;
index 8f31685a1898e55666d61786bf5a5dc073f7bc2c..a4957a81d91458d4bdf1ca56701da0aabfd904e1 100644 (file)
@@ -89,12 +89,12 @@ Standard_EXPORT ViewerTest_DoubleMapOfInteractiveAndName& GetMapOfAIS();
 static Standard_Integer BUC60848 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if ( argc != 2 ) {
-    di << "Usage : " << argv[0] << " shape " << "\n";
+    di << "Usage : " << argv[0] << " shape \n";
     return 1;
   }
   TopoDS_Shape S = DBRep::Get( argv[1] );
   if ( S.IsNull() ) {
-    di << "Shape is empty" << "\n";
+    di << "Shape is empty\n";
     return 1;
   }
   GProp_GProps G;
@@ -121,8 +121,8 @@ static Standard_Integer BUC60828 (Draw_Interpretor& di, Standard_Integer /*argc*
   Standard_Boolean aValue1; 
   aValue1=anEdge.Infinite(); 
   di << "Current flag : " << (Standard_Integer) aValue1 << "\n";
-  if(aValue1) di << "Flag was set properly." << "\n";
-  else di << "Faulty : flag was not set properly." << "\n";
+  if(aValue1) di << "Flag was set properly.\n";
+  else di << "Faulty : flag was not set properly.\n";
   return 0;
 }
 
@@ -232,7 +232,7 @@ static Standard_Integer BUC60972 (Draw_Interpretor& di, Standard_Integer argc, c
   }
 
   if(argc != 6) {
-    di << "Usage : " << argv[0] << " edge edge plane val text" << "\n";
+    di << "Usage : " << argv[0] << " edge edge plane val text\n";
     return 1;
   }
   
@@ -264,13 +264,13 @@ static Standard_Integer OCC218bug (Draw_Interpretor& di, Standard_Integer argc,
   }
 
   if(argc != 5) {
-    di << "Usage : " << argv[0] << " name plane Xlabel Ylabel" << "\n";
+    di << "Usage : " << argv[0] << " name plane Xlabel Ylabel\n";
     return 1;
   }
 
   TopoDS_Shape S = DBRep::Get( argv[2] );
   if ( S.IsNull() ) {
-    di << "Shape is empty" << "\n";
+    di << "Shape is empty\n";
     return 1;
   }
 
@@ -345,7 +345,7 @@ static Standard_Integer OCC218bug (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer OCC295(Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if(argc != 4) {
-    di << "Usage : " << argv[0] << " edge_result edge1 edge2" << "\n";
+    di << "Usage : " << argv[0] << " edge_result edge1 edge2\n";
     return 1;
   }
   
@@ -380,7 +380,7 @@ static Standard_Integer OCC49 (Draw_Interpretor& di, Standard_Integer argc, cons
 {
 
   if ( argc != 2 ) {
-    di << "Usage : " << argv[0] << " name" << "\n";
+    di << "Usage : " << argv[0] << " name\n";
     return 1;
   }
 
@@ -392,9 +392,9 @@ static Standard_Integer OCC49 (Draw_Interpretor& di, Standard_Integer argc, cons
   GProp_PrincipalProps Pr = G.PrincipalProperties();
   Standard_Boolean Result = Pr.HasSymmetryAxis();
   if (Result) {
-    di << "1" << "\n";
+    di << "1\n";
   } else {
-    di << "0" << "\n";
+    di << "0\n";
   }
   return 0;
 }
@@ -420,7 +420,7 @@ static Standard_Integer OCC132 (Draw_Interpretor& di, Standard_Integer argc, con
      */
 
   if ( argc != 2 ) {
-    di << "Usage : " << argv[0] << " DependentName" << "\n";
+    di << "Usage : " << argv[0] << " DependentName\n";
     return 1;
   }
 
@@ -433,7 +433,7 @@ static Standard_Integer OCC132 (Draw_Interpretor& di, Standard_Integer argc, con
       OSD_Path Path (argv[1], SysType1);
     }
     catch (Standard_ProgramError) {
-      di << "1" << "\n";
+      di << "1\n";
       return 0;
     }
   }
@@ -444,19 +444,19 @@ static Standard_Integer OCC132 (Draw_Interpretor& di, Standard_Integer argc, con
       OSD_Path Path (argv[1], SysType2);
     }
     catch (Standard_ProgramError) {
-      di << "2" << "\n";
+      di << "2\n";
       return 0;
     }
   }
   
-  di << "0" << "\n";
+  di << "0\n";
   return 0;
 }
 
 static Standard_Integer OCC405 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if(argc != 4) {
-    di << "Usage : " << argv[0] << " edge_result edge1 edge2; merge two edges" << "\n";
+    di << "Usage : " << argv[0] << " edge_result edge1 edge2; merge two edges\n";
     return 1;
   }
   
@@ -514,7 +514,7 @@ static Standard_Integer OCC405 (Draw_Interpretor& di, Standard_Integer argc, con
 static Standard_Integer OCC252 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if(!(argc == 4 || argc == 5)) {
-    di << "Usage : " << argv[0] << " result part tool [ModeOfLimitation=0/1/2]" << "\n";
+    di << "Usage : " << argv[0] << " result part tool [ModeOfLimitation=0/1/2]\n";
     return 1;
   }
   
@@ -527,7 +527,7 @@ static Standard_Integer OCC252 (Draw_Interpretor& di, Standard_Integer argc, con
   if(argc==5) {
     Standard_Integer ModeOfLimitationInteger = Draw::Atoi(argv[4]);
     if(!(ModeOfLimitationInteger == 0 || ModeOfLimitationInteger == 1 || ModeOfLimitationInteger == 2)) {
-      di << "Usage : " << argv[0] << " result part tool [ModeOfLimitation=0/1/2]" << "\n";
+      di << "Usage : " << argv[0] << " result part tool [ModeOfLimitation=0/1/2]\n";
       return 1;
     }
     //if (ModeOfLimitationInteger == 1) ModeOfLimitation = QAModTopOpe_Reversed;
@@ -539,7 +539,7 @@ static Standard_Integer OCC252 (Draw_Interpretor& di, Standard_Integer argc, con
   //TopoDS_Shape res = QAModTopOpe_Limitation(s1,s2,ModeOfLimitation);
   TopoDS_Shape res = QANewModTopOpe_Limitation(s1,s2,ModeOfLimitation);
   if (res.IsNull()) {
-    di << "Error : result is null" << "\n";
+    di << "Error : result is null\n";
     return 1;
   }
 
@@ -551,7 +551,7 @@ static Standard_Integer OCC252 (Draw_Interpretor& di, Standard_Integer argc, con
 static Standard_Integer OCC307 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if(!(argc == 4 || argc == 5)) {
-    di << "Usage : " << argv[0] << " result part tool [AllowCutting=0/1]" << "\n";
+    di << "Usage : " << argv[0] << " result part tool [AllowCutting=0/1]\n";
     return 1;
   }
   
@@ -563,7 +563,7 @@ static Standard_Integer OCC307 (Draw_Interpretor& di, Standard_Integer argc, con
   if(argc==5) {
     Standard_Integer AllowCuttingInteger = Draw::Atoi(argv[4]);
     if(!( AllowCuttingInteger == 0 || AllowCuttingInteger == 1)) {
-      di << "Usage : " << argv[0] << " result part tool [AllowCutting=0/1]" << "\n";
+      di << "Usage : " << argv[0] << " result part tool [AllowCutting=0/1]\n";
       return 1;
     }
     if (AllowCuttingInteger == 1) AllowCutting = Standard_True;
@@ -572,7 +572,7 @@ static Standard_Integer OCC307 (Draw_Interpretor& di, Standard_Integer argc, con
   //TopoDS_Shape res = QAModTopOpe_Glue(s1,s2,AllowCutting);
   TopoDS_Shape res = QANewModTopOpe_Glue(s1,s2,AllowCutting);
   if (res.IsNull()) {
-    di << "Error : result is null" << "\n";
+    di << "Error : result is null\n";
     return 1;
   }
 
@@ -584,7 +584,7 @@ static Standard_Integer OCC307 (Draw_Interpretor& di, Standard_Integer argc, con
 static Standard_Integer OCC395 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if(argc != 4) {
-    di << "Usage : " << argv[0] << " edge_result edge1 edge2" << "\n";
+    di << "Usage : " << argv[0] << " edge_result edge1 edge2\n";
     return 1;
   }
   //TCollection_AsciiString fnom(a[1]);
@@ -631,7 +631,7 @@ static Standard_Integer OCC395 (Draw_Interpretor& di, Standard_Integer argc, con
 static Standard_Integer OCC394 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if(argc < 3) {
-    di << "Usage : " << argv[0] << " edge_result edge [tol [mode [tolang]]]" << "\n";
+    di << "Usage : " << argv[0] << " edge_result edge [tol [mode [tolang]]]\n";
     return 1;
   }
    TopoDS_Shape Sh = DBRep::Get(argv[2]);
@@ -677,7 +677,7 @@ static Standard_Integer OCC301 (Draw_Interpretor& di, Standard_Integer argc, con
     return 1;
   }
   if ( argc != 3 ) {
-    di << "Usage : " << argv[0] << " ArcRadius ArrowSize" << "\n";
+    di << "Usage : " << argv[0] << " ArcRadius ArrowSize\n";
     return 1;
   }
 
@@ -715,7 +715,7 @@ static Standard_Integer OCC301 (Draw_Interpretor& di, Standard_Integer argc, con
 static Standard_Integer OCC294 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if(argc < 4) {
-    di << "Usage : " << argv[0] << " shape_result shape edge" << "\n";
+    di << "Usage : " << argv[0] << " shape_result shape edge\n";
     return 1;
   }
   TopoDS_Shape Sh1 = DBRep::Get(argv[2]);
@@ -728,7 +728,7 @@ static Standard_Integer OCC294 (Draw_Interpretor& di, Standard_Integer argc, con
   ReShaper.Remove(Sh2);
   const TopoDS_Shape& ResultShape = ReShaper.GetResult();
   if(ResultShape.IsNull()) {
-    di << "Faulty " << argv[0] << " : " << argv[1] << " - shape_result is null" << "\n";
+    di << "Faulty " << argv[0] << " : " << argv[1] << " - shape_result is null\n";
     return 1;
   }
 
@@ -744,7 +744,7 @@ static Standard_Integer OCC60 (Draw_Interpretor& di, Standard_Integer argc, cons
     return 1;
   }
   if(argc < 5) {
-    di << "Usage : " << argv[0] << " xmin ymin xmax ymax; selection window" << "\n";
+    di << "Usage : " << argv[0] << " xmin ymin xmax ymax; selection window\n";
     return 1;
   }
 
@@ -769,11 +769,11 @@ static Standard_Integer OCC70 (Draw_Interpretor& di, Standard_Integer argc, cons
     return 1;
   }
   if(argc < 7) {
-    di << "Usage : " << argv[0] << " x1 y1 x2 y2 x3 y3 [x y ...]; polygon of selection" << "\n";
+    di << "Usage : " << argv[0] << " x1 y1 x2 y2 x3 y3 [x y ...]; polygon of selection\n";
     return 1;
   }
   if (((argc - 1) % 2) != 0) {
-    di << "Usage : " << argv[0] << " x1 y1 x2 y2 x3 y3 [x y ...]; polygon of selection" << "\n";
+    di << "Usage : " << argv[0] << " x1 y1 x2 y2 x3 y3 [x y ...]; polygon of selection\n";
     return 1;
   }
 
@@ -796,7 +796,7 @@ static Standard_Integer OCC70 (Draw_Interpretor& di, Standard_Integer argc, cons
 static Standard_Integer OCC261 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if(argc != 2) {
-    di << "Usage : " << argv[0] << " Doc" << "\n";
+    di << "Usage : " << argv[0] << " Doc\n";
     return 1;
   }
 
@@ -812,16 +812,16 @@ static Standard_Integer OCC261 (Draw_Interpretor& di, Standard_Integer argc, con
 static Standard_Integer OCC710 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if(argc != 2) {
-    di << "Usage : " << argv[0] << " path" << "\n";
+    di << "Usage : " << argv[0] << " path\n";
   }
 
   TCollection_AsciiString in(argv[1]);
   OSD_File* aFile = new OSD_File(in);
   Standard_Boolean anExists = aFile->Exists();
   if(anExists == Standard_True) 
-    di << "1" << "\n";
+    di << "1\n";
   else
-    di << "0" << "\n";
+    di << "0\n";
   return 0;
 }
 
@@ -830,11 +830,11 @@ static Standard_Integer OCC710 (Draw_Interpretor& di, Standard_Integer argc, con
 static Standard_Integer OCC904 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if(argc != 4) {
-    di << "Usage : " << argv[0] << " result shape nonmanifoldmode(0/1)" << "\n";
+    di << "Usage : " << argv[0] << " result shape nonmanifoldmode(0/1)\n";
   }
   TopoDS_Shape S = DBRep::Get(argv[2]);
   if (S.IsNull() || S.ShapeType() != TopAbs_SHELL) {
-    di << " Shape is null" << "\n";
+    di << " Shape is null\n";
     return 1;
   }
   Standard_Boolean nonmanifmode = (Draw::Atoi(argv[3]) != 0);
index 77ca53c7bade929d3d6ea5b0f44d411d744e21c4..ea039d4ff3a42be5bfc03fbe6e850fffb6928892 100644 (file)
@@ -128,7 +128,7 @@ static Standard_Integer BUC60842 (Draw_Interpretor& di, Standard_Integer /*argc*
 static Standard_Integer BUC60843 (Draw_Interpretor& di, Standard_Integer argc,const char ** argv)
 {
   if (argc != 4 && argc != 5 && argc != 6 && argc != 7) {
-    di << "Usage : " << argv[0] << "result_shape name_of_circle name_of_curve [ par1 [ tol ] ]" << "\n";
+    di << "Usage : " << argv[0] << "result_shape name_of_circle name_of_curve [ par1 [ tol ] ]\n";
     return 1;
   }
 
@@ -143,7 +143,7 @@ static Standard_Integer BUC60843 (Draw_Interpretor& di, Standard_Integer argc,co
   Handle(Geom2d_Curve)  aCur2d1 = DrawTrSurf::GetCurve2d(argv[2]);
   Handle(Geom2d_Curve)  aCur2d2 = DrawTrSurf::GetCurve2d(argv[3]);
   if (aCur2d1.IsNull() || aCur2d2.IsNull()) {
-    di << "Faulty : not curves" << "\n";
+    di << "Faulty : not curves\n";
     return 1;
   }
   Standard_Boolean c1IsCircle = Standard_False;
@@ -162,7 +162,7 @@ static Standard_Integer BUC60843 (Draw_Interpretor& di, Standard_Integer argc,co
       Handle(Geom2d_Line) glin = new Geom2d_Line(lin); 
       DrawTrSurf::Set(argv[1], glin);
     } else {
-      di << "Faulty : tangent line is not done." << "\n";
+      di << "Faulty : tangent line is not done.\n";
     }
   }
   else {
@@ -176,7 +176,7 @@ static Standard_Integer BUC60843 (Draw_Interpretor& di, Standard_Integer argc,co
       Handle(Geom2d_Line) glin = new Geom2d_Line(lin); 
       DrawTrSurf::Set(argv[1], glin);
     } else {
-      di << "Faulty : tangent line is not done." << "\n";
+      di << "Faulty : tangent line is not done.\n";
     }
   }   
   return 0;
@@ -186,7 +186,7 @@ static Standard_Integer BUC60970 (Draw_Interpretor& di, Standard_Integer argc, c
 {
   if(argc!=3)
   {
-    di << "Usage : " << argv[0] << " shape result" <<"\n";
+    di << "Usage : " << argv[0] << " shape result\n";
     return 1;
   }
 
@@ -290,7 +290,7 @@ static Standard_Integer  BUC60818(Draw_Interpretor& di, Standard_Integer argc, c
 static Standard_Integer BUC60915_1(Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if (argc > 1) {
-    di<<"Function don't has parameters"<<"\n";
+    di<<"Function don't has parameters\n";
     return 1;
   }
 
@@ -535,7 +535,7 @@ static Standard_Integer OCC280 (Draw_Interpretor& di, Standard_Integer argc, con
     return -1;
   }
   if ( argc != 3) {
-    di << "ERROR : Usage : " << argv[0] << " hlr=0/1 setsurfecedetail=0/1; set perspecrive view" << "\n";
+    di << "ERROR : Usage : " << argv[0] << " hlr=0/1 setsurfecedetail=0/1; set perspecrive view\n";
     return 1;
   }
 
@@ -753,7 +753,7 @@ static Standard_Integer  OCC189 (Draw_Interpretor& di, Standard_Integer /*argc*/
 static Standard_Integer OCC566(Draw_Interpretor& di,Standard_Integer n,const char ** a)
 {
   if (n < 2) {
-    di<<"Usage: " << a[0] << " shape [ xmin ymin zmin xmax ymax zmax]"<<"\n";
+    di<<"Usage: " << a[0] << " shape [ xmin ymin zmin xmax ymax zmax]\n";
     return 1;
   }
   TopoDS_Shape S = DBRep::Get(a[1]);
@@ -782,7 +782,7 @@ static Standard_Integer OCC566(Draw_Interpretor& di,Standard_Integer n,const cha
 static Standard_Integer OCC570 (Draw_Interpretor& di, Standard_Integer argc,const char ** argv)
 {
   if (argc < 2) {
-    di<<"Usage: " << argv[0] << " result"<<"\n";
+    di<<"Usage: " << argv[0] << " result\n";
     return 1;
   }
 
@@ -829,7 +829,7 @@ static Standard_Integer OCC570 (Draw_Interpretor& di, Standard_Integer argc,cons
     }
     catch(Standard_Failure)
     {
-      di << argv[0] << ": Exception in fillet"<<"\n";
+      di << argv[0] << ": Exception in fillet\n";
       return 2;
     }
   }
@@ -889,7 +889,7 @@ static Standard_Integer UPDATEVOL(Draw_Interpretor& di,
                                   const char ** a)
 {
   if(Rake == 0){
-    di << "MakeFillet non initialise"<<"\n";
+    di << "MakeFillet non initialise\n";
     return 1 ;
   }
   if(narg%2 != 0 || narg < 4) return 1;
@@ -906,7 +906,7 @@ static Standard_Integer UPDATEVOL(Draw_Interpretor& di,
   const Standard_Boolean aLawMode = !strcmp(a[0],"OCC570evollaw");
   if (aLawMode)
   {
-    di<<"INFO: Using law to define variable fillet"<<"\n";
+    di<<"INFO: Using law to define variable fillet\n";
     Handle(Law_Interpol) law = new Law_Interpol;
     law->Set(uandr);
     Rake->Add(law,E);
@@ -922,7 +922,7 @@ static Standard_Integer BUILDEVOL(Draw_Interpretor& di,
                                   const char **)
 {
   if(Rake == 0){
-    di << "MakeFillet non initialise"<<"\n";
+    di << "MakeFillet non initialise\n";
     return 1 ;
   }
   Rake->Build();
@@ -948,13 +948,13 @@ static Standard_Integer OCC606 ( Draw_Interpretor& di, Standard_Integer n, const
 {
   if (n != 3 && n != 4)
   {
-    di << "Usage : " << a[0] << " result shape [-t]" << "\n";
+    di << "Usage : " << a[0] << " result shape [-t]\n";
     return 0;
   }
 
   Standard_Boolean TrimMode = (n == 4);
-  if (TrimMode) di<<"INFO: Using trimmed curves..."<<"\n";
-  else di<<"INFO: Using non trimmed curves..."<<"\n";
+  if (TrimMode) di<<"INFO: Using trimmed curves...\n";
+  else di<<"INFO: Using non trimmed curves...\n";
 
   TopoDS_Shape S = DBRep::Get(a[2]);
 
@@ -994,7 +994,7 @@ static Standard_Integer OCC606 ( Draw_Interpretor& di, Standard_Integer n, const
     }
     catch(Standard_Failure)
     {
-      di<<"ERROR: Exception in GeomFill_NSections"<<"\n";
+      di<<"ERROR: Exception in GeomFill_NSections\n";
     }
   }
 
@@ -1010,7 +1010,7 @@ static Standard_Integer OCC813 (Draw_Interpretor& di, Standard_Integer argc,cons
 {
   if (argc < 3)
   {
-    di << "Usage : " << argv[0] << " U V" << "\n";
+    di << "Usage : " << argv[0] << " U V\n";
     return 1;
   }
 
@@ -1149,7 +1149,7 @@ static Standard_Integer OCC884 (Draw_Interpretor& di, Standard_Integer argc, con
 {
   if (argc < 3 || argc > 5)
   {
-    di << "Usage : " << argv[0] << " result shape [toler [maxtoler]]" << "\n";
+    di << "Usage : " << argv[0] << " result shape [toler [maxtoler]]\n";
     return 1;
   }
 
@@ -1158,7 +1158,7 @@ static Standard_Integer OCC884 (Draw_Interpretor& di, Standard_Integer argc, con
   TopExp_Explorer exp(shape, TopAbs_EDGE);
   if (!exp.More())
   {
-    di<<"Error: no edge found"<<"\n";
+    di<<"Error: no edge found\n";
     return 1;
   }
 
@@ -1279,7 +1279,7 @@ static Standard_Integer OCC1188 (Draw_Interpretor& di, Standard_Integer argc, co
 {
   if (argc < 2 || argc > 3)
   {
-    di << "Usage : " << argv[0] << " imagefile [filltype] : Load image as background" << "\n";
+    di << "Usage : " << argv[0] << " imagefile [filltype] : Load image as background\n";
     return 1;
   }
 
@@ -1301,7 +1301,7 @@ static Standard_Integer OCC1188 (Draw_Interpretor& di, Standard_Integer argc, co
     else
     {
       di << "Wrong fill type : " << szType << "\n";
-      di << "Must be one of CENTERED, TILED, STRETCH, NONE" << "\n";
+      di << "Must be one of CENTERED, TILED, STRETCH, NONE\n";
       return 1;
     }
   }
@@ -1323,7 +1323,7 @@ static Standard_Integer OCC1174_1 (Draw_Interpretor& di, Standard_Integer argc,
 {
   if (argc != 2)
   {
-    di << "Usage : " << argv[0] << " shape" << "\n";
+    di << "Usage : " << argv[0] << " shape\n";
     return 1;
   }
 
@@ -1381,7 +1381,7 @@ static Standard_Integer OCC1174_2 (Draw_Interpretor& di, Standard_Integer argc,
 {
   if (argc != 2)
   {
-    di << "Usage : " << argv[0] << " shape" << "\n";
+    di << "Usage : " << argv[0] << " shape\n";
     return 1;
   }
 
@@ -1433,7 +1433,7 @@ static Standard_Integer OCCN1 (Draw_Interpretor& di, Standard_Integer argc, cons
 {
   if (argc != 4)
   {
-    di << "Usage : " << argv[0] << " angle fuse(1 for boss / 0 for slot) length" << "\n";
+    di << "Usage : " << argv[0] << " angle fuse(1 for boss / 0 for slot) length\n";
     return 1;
   }
 
@@ -1494,7 +1494,7 @@ static Standard_Integer OCCN1 (Draw_Interpretor& di, Standard_Integer argc, cons
 static Standard_Integer OCCN2 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if (argc > 2) {
-    di << "Usage : " << argv[0] << " [BRepAlgoAPI/BRepAlgo = 1/0]" << "\n";
+    di << "Usage : " << argv[0] << " [BRepAlgoAPI/BRepAlgo = 1/0]\n";
     return 1;
   }
   Standard_Boolean IsBRepAlgoAPI = Standard_True;
@@ -1525,19 +1525,19 @@ static Standard_Integer OCCN2 (Draw_Interpretor& di, Standard_Integer argc, cons
 
   TopoDS_Shape shape;
   if (IsBRepAlgoAPI) {
-    di << "BRepAlgoAPI_Section section(cylinder_sh, sphere_sh)" <<"\n";
+    di << "BRepAlgoAPI_Section section(cylinder_sh, sphere_sh)\n";
     BRepAlgoAPI_Section section(cylinder_sh, sphere_sh);
     section.Build();
     if(!section.IsDone()){
-      di << "Error performing intersection: not done." << "\n";
+      di << "Error performing intersection: not done.\n";
     }
     shape = section.Shape();
   } else {
-    di << "BRepAlgo_Section section(cylinder_sh, sphere_sh)" <<"\n";
+    di << "BRepAlgo_Section section(cylinder_sh, sphere_sh)\n";
     BRepAlgo_Section section(cylinder_sh, sphere_sh);
     section.Build();
     if(!section.IsDone()){
-      di << "Error performing intersection: not done." << "\n";
+      di << "Error performing intersection: not done.\n";
     }
     shape = section.Shape();
   }
@@ -1561,7 +1561,7 @@ static Standard_Integer OCC2569 (Draw_Interpretor& di, Standard_Integer argc, co
     return 1;
   }
   if(argc != 3) {
-    di << "Usage : " << argv[0] << " nbpoles result" << "\n";
+    di << "Usage : " << argv[0] << " nbpoles result\n";
     return 1;
   }
 
@@ -1590,7 +1590,7 @@ static Standard_Integer OCC2569 (Draw_Interpretor& di, Standard_Integer argc, co
 static Standard_Integer OCC1642 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if (argc != 10) {
-    di<<"Usage: " << argv[0] << " FinalWare FinalFace InitWare InitFace shape FixReorder FixDegenerated FixConnected FixSelfIntersection"<<"\n";
+    di<<"Usage: " << argv[0] << " FinalWare FinalFace InitWare InitFace shape FixReorder FixDegenerated FixConnected FixSelfIntersection\n";
     return 1;
   }
 
index 9704383ef6a3f496f695b0cb737ae939d2f89655..6d97a002ab2f1d42312ccc83d3eaf46fac324c73 100644 (file)
@@ -48,7 +48,7 @@
 static Standard_Integer OCC267 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if ( argc != 3) {
-    di << "ERROR OCC267: Usage : " << argv[0] << " DOC path" << "\n";
+    di << "ERROR OCC267: Usage : " << argv[0] << " DOC path\n";
     return 1;
   }
 
@@ -60,9 +60,9 @@ static Standard_Integer OCC267 (Draw_Interpretor& di, Standard_Integer argc, con
 
   PCDM_StoreStatus theStatus = A->SaveAs(D,path);
   if (theStatus == PCDM_SS_OK ) {
-    di << "OCC267 : PCDM_StoreStatus = PCDM_SS_OK" << "\n";
+    di << "OCC267 : PCDM_StoreStatus = PCDM_SS_OK\n";
   } else {
-    di << "OCC267 : PCDM_StoreStatus = Bad_Store_Status" << "\n";
+    di << "OCC267 : PCDM_StoreStatus = Bad_Store_Status\n";
   }
 
   return 0;
@@ -71,7 +71,7 @@ static Standard_Integer OCC267 (Draw_Interpretor& di, Standard_Integer argc, con
 static Standard_Integer OCC181 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if ( argc != 5) {
-    di << "ERROR OCC181: Usage : " << argv[0] << " FileName path1 path2 verbose=0/1" << "\n";
+    di << "ERROR OCC181: Usage : " << argv[0] << " FileName path1 path2 verbose=0/1\n";
     return 1;
   }
   Standard_CString aFileName = argv[1];
@@ -97,9 +97,9 @@ static Standard_Integer OCC181 (Draw_Interpretor& di, Standard_Integer argc, con
   Standard_Boolean aStatus = aManager.Save();
 
   if (aStatus) {
-    di << "\nOCC181 : Status = TRUE" << "\n";
+    di << "\nOCC181 : Status = TRUE\n";
   } else {
-    di << "\nOCC181 : Status = FALSE" << "\n";
+    di << "\nOCC181 : Status = FALSE\n";
   }
 
   return 0;
@@ -121,7 +121,7 @@ static Standard_Real delta_percent (Standard_Real a, Standard_Real b)
 static Standard_Integer OCC367 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if ( argc != 7) {
-    di << "ERROR : Usage : " << argv[0] << " shape step goodX goodY goodZ percent_tolerance" << "\n";
+    di << "ERROR : Usage : " << argv[0] << " shape step goodX goodY goodZ percent_tolerance\n";
     return 1;
   }
 
@@ -208,9 +208,9 @@ static Standard_Integer OCC367 (Draw_Interpretor& di, Standard_Integer argc, con
   di << "\n\nFirstEdge = " << FirstEdgeX <<" " << FirstEdgeY <<" " << FirstEdgeZ << "\n";
   di << "deltaX = " << deltaX << " deltaY = " << deltaY << " deltaZ = " << deltaZ << "\n";
   if (Status) {
-    di << argv[0] << " : OK" << "\n";
+    di << argv[0] << " : OK\n";
   } else {
-    di << argv[0] << " : ERROR" << "\n";
+    di << argv[0] << " : ERROR\n";
   }
 
   return 0;
@@ -220,7 +220,7 @@ static Standard_Integer OCC71bug (Draw_Interpretor& di, Standard_Integer /*argc*
 {
   Handle(AIS_InteractiveContext) aContext = ViewerTest::GetAISContext();
   if(aContext.IsNull()) { 
-    di << argv[0] << "ERROR : use 'vinit' command before " << "\n";
+    di << argv[0] << "ERROR : use 'vinit' command before \n";
     return 1;
   }
 
index 09101acaa3fec1f48a4ea2f55c356d148a44d4db..2d8b94fd89ea1a294354238e2d64f0032755aa7a 100644 (file)
 static Standard_Integer OCC230 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if ( argc != 4) {
-    di << "ERROR OCC230: Usage : " << argv[0] << " TrimmedCurve Pnt2d Pnt2d" << "\n";
+    di << "ERROR OCC230: Usage : " << argv[0] << " TrimmedCurve Pnt2d Pnt2d\n";
     return 1;
   }
 
   gp_Pnt2d P1, P2;
   if ( !DrawTrSurf::GetPoint2d(argv[2],P1)) {
-    di << "ERROR OCC230: " << argv[2] << " is not Pnt2d" << "\n";
+    di << "ERROR OCC230: " << argv[2] << " is not Pnt2d\n";
     return 1;
   }
   if ( !DrawTrSurf::GetPoint2d(argv[3],P2)) {
-    di << "ERROR OCC230: " << argv[3] << " is not Pnt2d" << "\n";
+    di << "ERROR OCC230: " << argv[3] << " is not Pnt2d\n";
     return 1;
   }
 
@@ -100,9 +100,9 @@ static Standard_Integer OCC23361 (Draw_Interpretor& di, Standard_Integer /*argc*
 
   // points must be equal
   if ( ! p2.IsEqual(p3, Precision::Confusion()) )
-    di << "ERROR OCC23361: equivalent transformations does not produce equal points" << "\n";
+    di << "ERROR OCC23361: equivalent transformations does not produce equal points\n";
   else 
-    di << "OCC23361: OK" << "\n";
+    di << "OCC23361: OK\n";
 
   return 0;
 }
@@ -300,7 +300,7 @@ static Standard_Boolean OCC23774Test(const TopoDS_Face& grossPlateFace, const To
   BRepBuilderAPI_Transform transformer1(mirror1);
   transformer1.Perform(originalWire);
   if(!transformer1.IsDone()) {
-    di << "Not Done1 " << "\n";
+    di << "Not Done1 \n";
     return Standard_False;
   }
   TopoDS_Shape step1ModifiedShape = transformer1.ModifiedShape(originalWire);
@@ -517,7 +517,7 @@ static Standard_Integer OCC23952intersect (Draw_Interpretor& di, Standard_Intege
 static Standard_Integer OCC23683 (Draw_Interpretor& di, Standard_Integer argc,const char ** argv)
 {
   if (argc < 2) {
-    di<<"Usage: " << argv[0] << " invalid number of arguments"<<"\n";
+    di<<"Usage: " << argv[0] << " invalid number of arguments\n";
     return 1;
   }
 
@@ -548,7 +548,7 @@ static int test_offset(Draw_Interpretor& di, Standard_Integer argc, const char**
   // Check the command arguments
   if ( argc != 1 )
   {
-    di << "Error: " << argv[0] << " - invalid number of arguments" << "\n";
+    di << "Error: " << argv[0] << " - invalid number of arguments\n";
     di << "Usage: type help " << argv[0] << "\n";
     return 1; // TCL_ERROR
   }
@@ -557,8 +557,8 @@ static int test_offset(Draw_Interpretor& di, Standard_Integer argc, const char**
   gp_Ax22d Ax2( gp::Origin2d(), gp::DY2d(), gp::DX2d() );
   Handle(Geom_Surface) Plane = new Geom_Plane( gp::YOZ() );
 
-  di << "<<<< Preparing sample surface of revolution based on trimmed curve >>>>" << "\n";
-  di << "-----------------------------------------------------------------------" << "\n";
+  di << "<<<< Preparing sample surface of revolution based on trimmed curve >>>>\n";
+  di << "-----------------------------------------------------------------------\n";
 
   Handle(Geom2d_Circle) C2d1 = new Geom2d_Circle(Ax2, 1.0);
   Handle(Geom2d_TrimmedCurve) C2d1Trimmed = new Geom2d_TrimmedCurve(C2d1, 0.0, M_PI/2.0);
@@ -571,10 +571,10 @@ static int test_offset(Draw_Interpretor& di, Standard_Integer argc, const char**
 
   DBRep::Set("f1", F1);
 
-  di << "Result: f1" << "\n";
+  di << "Result: f1\n";
 
-  di << "<<<< Preparing sample surface of revolution based on offset curve  >>>>" << "\n";
-  di << "-----------------------------------------------------------------------" << "\n";
+  di << "<<<< Preparing sample surface of revolution based on offset curve  >>>>\n";
+  di << "-----------------------------------------------------------------------\n";
 
   Handle(Geom2d_OffsetCurve) C2d2Offset = new Geom2d_OffsetCurve(C2d1Trimmed, -0.5);
   TopoDS_Edge E2 = BRepBuilderAPI_MakeEdge(C2d2Offset, Plane);
@@ -586,7 +586,7 @@ static int test_offset(Draw_Interpretor& di, Standard_Integer argc, const char**
 
   DBRep::Set("f2", F2);
 
-  di << "Result: f2" << "\n";
+  di << "Result: f2\n";
 
   return 0;
 }
@@ -602,17 +602,17 @@ static int test_offset(Draw_Interpretor& di, Standard_Integer argc, const char**
 static Standard_Integer OCC24008 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if (argc != 3) {
-    di << "Usage: " << argv[0] << " invalid number of arguments" << "\n";
+    di << "Usage: " << argv[0] << " invalid number of arguments\n";
     return 1;
   }
   Handle(Geom_Curve) aCurve = DrawTrSurf::GetCurve(argv[1]);
   Handle(Geom_Surface) aSurf = DrawTrSurf::GetSurface(argv[2]);
   if (aCurve.IsNull()) {
-    di << "Curve was not read" << "\n";
+    di << "Curve was not read\n";
        return 1;
   }
   if (aSurf.IsNull()) {
-       di << "Surface was not read" << "\n";
+       di << "Surface was not read\n";
        return 1;
   }
   ShapeConstruct_ProjectCurveOnSurface aProj;
@@ -621,11 +621,11 @@ static Standard_Integer OCC24008 (Draw_Interpretor& di, Standard_Integer argc, c
     Handle(Geom2d_Curve) aPCurve;
     aProj.Perform (aCurve, aCurve->FirstParameter(), aCurve->LastParameter(), aPCurve);
     if (aPCurve.IsNull()) {
-         di << "PCurve was not created" << "\n";
+         di << "PCurve was not created\n";
          return 1;
     }
   } catch (...) {
-    di << "Exception was caught" << "\n";
+    di << "Exception was caught\n";
   }
   return 0;
 }
@@ -1198,7 +1198,7 @@ static Standard_Integer OCC24005 (Draw_Interpretor& theDI, Standard_Integer theN
 
   if (!anInters.IsDone())
   {
-    theDI<<"No intersections found!"<<"\n";
+    theDI<<"No intersections found!\n";
 
     return 1;
   }
@@ -1315,9 +1315,9 @@ static Standard_Integer OCC24086 (Draw_Interpretor& di, Standard_Integer argc, c
     ana.NbFaces();
 
        if (!(BRepAlgo::IsValid(result))) {
-               di << "Result was checked and it is INVALID" << "\n";
+               di << "Result was checked and it is INVALID\n";
        } else {
-               di << "Result was checked and it is VALID" << "\n";
+               di << "Result was checked and it is VALID\n";
        }
        
        Handle(AIS_InteractiveObject) myShape = new AIS_Shape (result);
@@ -1334,7 +1334,7 @@ static Standard_Integer OCC24086 (Draw_Interpretor& di, Standard_Integer argc, c
 static Standard_Integer OCC24945 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if (argc != 1) {
-    di << "Usage: " << argv[0] << " invalid number of arguments" << "\n";
+    di << "Usage: " << argv[0] << " invalid number of arguments\n";
     return 1;
   }
 
@@ -1368,7 +1368,7 @@ static Standard_Integer OCC24137 (Draw_Interpretor& theDI, Standard_Integer theN
   Standard_Integer anArgIter = 1;
   if (theNArg < 5)
     {
-      theDI <<"Usage: " << theArgv[0] << " face vertex U V [N]"<<"\n";
+      theDI <<"Usage: " << theArgv[0] << " face vertex U V [N]\n";
       return 1;
     }
 
@@ -1591,7 +1591,7 @@ static Standard_Integer OCC23972 (Draw_Interpretor& di,Standard_Integer n, const
 static Standard_Integer OCC24370 (Draw_Interpretor& di, Standard_Integer argc,const char ** argv)
 {
   if (argc < 5) {
-    di<<"Usage: " << argv[0] << " invalid number of arguments"<<"\n";
+    di<<"Usage: " << argv[0] << " invalid number of arguments\n";
     return 1;
   }
 
@@ -1707,7 +1707,7 @@ struct QABugs_NHandleClass
 {
   Standard_Integer NHandleProc (Draw_Interpretor& , Standard_Integer  , const char** theArgVec)
   {
-    std::cerr << "QABugs_NHandleClass[" << this << "] " << "" << theArgVec[0] << "\n";
+    std::cerr << "QABugs_NHandleClass[" << this << "] " << theArgVec[0] << "\n";
     return 0;
   }
 };
@@ -1718,7 +1718,7 @@ struct QABugs_NHandleClass
 static Standard_Integer OCC23951 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if (argc != 2) {
-    di << "Usage: " << argv[0] << " invalid number of arguments" << "\n";
+    di << "Usage: " << argv[0] << " invalid number of arguments\n";
     return 1;
   }
   Handle(TDocStd_Document) aDoc = new TDocStd_Document("dummy");;
@@ -1777,7 +1777,7 @@ static Standard_Integer OCC23950 (Draw_Interpretor& di, Standard_Integer argc, c
   STEPCAFControl_Writer writer;
   if (! writer.Transfer (aDoc, mode))
   {
-    di << "The document cannot be translated or gives no result" << "\n";
+    di << "The document cannot be translated or gives no result\n";
     return 1;
   }
 
@@ -1852,11 +1852,11 @@ static Standard_Integer OCC24667 (Draw_Interpretor& di, Standard_Integer n, cons
 {
   if (n == 1)
   {
-    di << "OCC24667 result Wire_spine Profile [Mode [Approx]]" << "\n";
-    di << "Mode = 0 - CorrectedFrenet," << "\n";
-    di << "     = 1 - Frenet," << "\n";
-    di << "     = 2 - DiscreteTrihedron" << "\n";
-    di << "Approx - force C1-approximation if result is C0" << "\n";
+    di << "OCC24667 result Wire_spine Profile [Mode [Approx]]\n";
+    di << "Mode = 0 - CorrectedFrenet,\n";
+    di << "     = 1 - Frenet,\n";
+    di << "     = 2 - DiscreteTrihedron\n";
+    di << "Approx - force C1-approximation if result is C0\n";
     return 0;
   }
 
@@ -1936,7 +1936,7 @@ static TopoDS_Shape CreateTestShape (int& theShapeNb)
 static Standard_Integer OCC24931 (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc != 2) {
-    di << "Usage: " << argv[0] << " invalid number of arguments"<<"\n";
+    di << "Usage: " << argv[0] << " invalid number of arguments\n";
     return 1;
   }
   TCollection_ExtendedString aFileName (argv[1]);
@@ -2475,7 +2475,7 @@ class mOcafApplication : public TDocStd_Application
 static Standard_Integer OCC23010 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if (argc != 2) {
-    di << "Usage: " << argv[0] << " invalid number of arguments" << "\n";
+    di << "Usage: " << argv[0] << " invalid number of arguments\n";
     return 1;
   }
   std::string fileName=argv[1];
@@ -2585,7 +2585,7 @@ static Standard_Integer OCC25202 ( Draw_Interpretor& theDI,
 static Standard_Integer OCC7570 (Draw_Interpretor& di, Standard_Integer n, const char** a)
 {
   if (n != 2) {
-    di<<"Usage: "<<a[0]<<" invalid number of arguments"<<"\n";
+    di<<"Usage: "<<a[0]<<" invalid number of arguments\n";
     return 1;
   }
   TopoDS_Shape in_shape (DBRep::Get (a[1]));
@@ -2722,7 +2722,7 @@ static Standard_Integer OCC25100 (Draw_Interpretor& di, Standard_Integer argc, c
   TopoDS_Shape S = DBRep::Get(argv[1]);
   if ( S.IsNull() )
   {
-    di << "Shape is empty" << "\n";
+    di << "Shape is empty\n";
     return 1;
   }
   
@@ -2772,7 +2772,7 @@ static Standard_Integer OCC25348 (Draw_Interpretor& theDI,
 static Standard_Integer OCC25413 (Draw_Interpretor& di, Standard_Integer narg , const char** a)
 {
   if (narg != 2) {
-    di << "Usage: " << a[0] << " invalid number of arguments" << "\n";
+    di << "Usage: " << a[0] << " invalid number of arguments\n";
     return 1;
   }
   TopoDS_Shape aShape = DBRep::Get (a[1]);
@@ -3196,7 +3196,7 @@ static ShapeExtend_Status getStatusGap(const Handle(ShapeFix_Wire)&   theFix,
 static Standard_Integer OCC24881 (Draw_Interpretor& di, Standard_Integer narg , const char** a)
 {
   if (narg < 2) {
-    di<<"Usage: "<<a[0]<<" invalid number of arguments"<<"\n";
+    di<<"Usage: "<<a[0]<<" invalid number of arguments\n";
     return 1;
   }
 //    cout <<"FileName1: " << argv[1] <<endl;
@@ -3289,7 +3289,7 @@ static Standard_Integer OCC24881 (Draw_Interpretor& di, Standard_Integer narg ,
        }    
        if (nbOk)
        {
-               di << "Fix_FillGaps_NothingToDo" <<"\n";
+               di << "Fix_FillGaps_NothingToDo\n";
 
        }
        TColStd_DataMapIteratorOfDataMapOfIntegerInteger aStatusItr(aStatusNbDMap);
@@ -3580,12 +3580,12 @@ static Standard_Integer OCC24923(
   if (aDeviation > aMaxDeviation)
   {
     theDI << "Failed. Number of incorrect results is too huge: " << 
-      aDeviation * 100 << "% (Max " << aMaxDeviation * 100 << "%)" << "\n";
+      aDeviation * 100 << "% (Max " << aMaxDeviation * 100 << "%)\n";
     return 1;
   }
 
   theDI << "Deviation of incorrect results is: " <<
-    aDeviation * 100 << "% (Max " << aMaxDeviation * 100 << "%)" << "\n";
+    aDeviation * 100 << "% (Max " << aMaxDeviation * 100 << "%)\n";
   theDI << "Test completed\n";
   return 0;
 }
@@ -3604,7 +3604,7 @@ Standard_Integer OCC26446 (Draw_Interpretor& di,
                            const char** a)
 {
   if (n != 4) {
-    di << "Usage: OCC26446 r c1 c2" << "\n";
+    di << "Usage: OCC26446 r c1 c2\n";
     return 1;
   }
 
@@ -3614,12 +3614,12 @@ Standard_Integer OCC26446 (Draw_Interpretor& di,
     Handle(Geom_BSplineCurve)::DownCast(DrawTrSurf::GetCurve(a[3]));
 
   if (aCurve1.IsNull()) {
-    di << a[2] << " is not a BSpline curve" << "\n";
+    di << a[2] << " is not a BSpline curve\n";
        return 1;
   }
 
   if (aCurve2.IsNull()) {
-    di << a[3] << " is not a BSpline curve" << "\n";
+    di << a[3] << " is not a BSpline curve\n";
        return 1;
   }
 
@@ -4034,7 +4034,7 @@ static Standard_Integer OCC26313(Draw_Interpretor& di,Standard_Integer n,const c
 
   TopoDS_Shape aSrcShape = DBRep::Get(a[2]);
   if (aSrcShape.IsNull()) {
-    di << a[2] << " is not a valid shape" << "\n";
+    di << a[2] << " is not a valid shape\n";
     return 1;
   }
 
index ca5a272dab12ebad4e7767d5122e8f842995daac..ace869c4801d9a1deb57b5fdb9409142e0b0ae1c 100644 (file)
@@ -51,7 +51,7 @@ static Standard_Integer OCC527(Draw_Interpretor& di, Standard_Integer argc, cons
     // 1. Verify amount of arguments of the command
     //if (argc < 2) { di << "OCC527 FAULTY. Use : OCC527 shape "; return 0;} 
     if (argc < 2 || argc > 3) {
-      di << "Usage : " << argv[0] << " shape [BRepAlgoAPI/BRepAlgo = 1/0]" << "\n";
+      di << "Usage : " << argv[0] << " shape [BRepAlgoAPI/BRepAlgo = 1/0]\n";
       return 1;
     }
     Standard_Boolean IsBRepAlgoAPI = Standard_True;
@@ -60,7 +60,7 @@ static Standard_Integer OCC527(Draw_Interpretor& di, Standard_Integer argc, cons
       if (IsB != 1) {
        IsBRepAlgoAPI = Standard_False;
 //#if ! defined(BRepAlgo_def04)
-//     di << "Error: There is not BRepAlgo_Section class" << "\n";
+//     di << "Error: There is not BRepAlgo_Section class\n";
 //     return 1;
 //#endif
       }
@@ -110,14 +110,14 @@ static Standard_Integer OCC527(Draw_Interpretor& di, Standard_Integer argc, cons
        Standard_Boolean IsDone;
        TopoDS_Shape aResult;
        if (IsBRepAlgoAPI) {
-         di << "BRepAlgoAPI_Section aSection(aFace,pl,Standard_False)" <<"\n";
+         di << "BRepAlgoAPI_Section aSection(aFace,pl,Standard_False)\n";
          BRepAlgoAPI_Section aSection(aFace,pl,Standard_False);
          aSection.Approximation(Standard_True);
          aSection.Build();
          IsDone = aSection.IsDone();
          aResult = aSection.Shape();
        } else {
-         di << "BRepAlgo_Section aSection(aFace,pl,Standard_False)" <<"\n";
+         di << "BRepAlgo_Section aSection(aFace,pl,Standard_False)\n";
          BRepAlgo_Section aSection(aFace,pl,Standard_False);
          aSection.Approximation(Standard_True);
          aSection.Build();
index 87ce5db80f2a7499785114541c1faa9c45e623a8..c4681b7cc4210ea5d6a078113a90ab28be9e3051 100644 (file)
@@ -33,7 +33,7 @@ static int BUC60623(Draw_Interpretor& di, Standard_Integer argc, const char ** a
 {
   if(argc!=4)
   {
-    di << "Usage : " << a[0] << " result Shape1 Shape2" << "\n";
+    di << "Usage : " << a[0] << " result Shape1 Shape2\n";
     return -1;
   }
 
@@ -46,7 +46,7 @@ static int BUC60623(Draw_Interpretor& di, Standard_Integer argc, const char ** a
   GeomInt_IntSS Inter;
   Inter.Perform(GSF1,GSF2, BRep_Tool::Tolerance(F1));
   if (!Inter.IsDone()) {
-    di << "Intersection not done" << "\n";
+    di << "Intersection not done\n";
     return 1;
   }
   Standard_Integer nbsol = Inter.NbLines();
@@ -60,7 +60,7 @@ static int BUC60623(Draw_Interpretor& di, Standard_Integer argc, const char ** a
       return 0;
     } else di << "The first solution is Null!"   << "\n";
 
-  di << "fini" << "\n";
+  di << "fini\n";
   return 0;
 }
 
@@ -72,7 +72,7 @@ static int BUC60569(Draw_Interpretor& di, Standard_Integer argc, const char ** a
 {
   if(argc!=2)
   {
-    di << "Usage : " << argv[0] << " shape" << "\n";
+    di << "Usage : " << argv[0] << " shape\n";
     return -1;
   }
 
@@ -95,7 +95,7 @@ static int BUC60614(Draw_Interpretor& di, Standard_Integer argc, const char ** a
 {
   if(argc!=2)
   {
-    di << "Usage : "<< argv[0] << " shape" << "\n";
+    di << "Usage : "<< argv[0] << " shape\n";
     return -1;
   }
 
@@ -138,7 +138,7 @@ static int BUC60609(Draw_Interpretor& di, Standard_Integer argc, const char ** a
   } else if ( argc == 5 ) {
     // BUC60609 shape name U V
   } else {
-    di << "Usage : "<< argv[0] << " shape name [U V]" << "\n";
+    di << "Usage : "<< argv[0] << " shape name [U V]\n";
     return(-1);
   }
   
@@ -176,7 +176,7 @@ static int BUC60609(Draw_Interpretor& di, Standard_Integer argc, const char ** a
   
   BRepTools::UVBounds (face, faceUMin,faceUMax,faceVMin,faceVMax);
 
-  di << "The bounds of the trimmed face:" << "\n";
+  di << "The bounds of the trimmed face:\n";
   di << faceUMin << " <= U <= " << faceUMax << "\n";
   di << faceVMin << " <= V <= " << faceVMax << "\n";
   
@@ -184,9 +184,9 @@ static int BUC60609(Draw_Interpretor& di, Standard_Integer argc, const char ** a
   
   TopOpeBRep_PointClassifier PClass;
 
-  di << "Now test the point classifier by inputting U,V values" << "\n";
-  di << "inside or outside the bounds displayed above" << "\n";
-  di << "Type stop to exit" << "\n";
+  di << "Now test the point classifier by inputting U,V values\n";
+  di << "inside or outside the bounds displayed above\n";
+  di << "Type stop to exit\n";
   
   // Please register this:
   // ***********************************************
@@ -201,25 +201,25 @@ static int BUC60609(Draw_Interpretor& di, Standard_Integer argc, const char ** a
     uvSurf = gp_Pnt2d(0.14,5.1);
     state = PClass.Classify(face,uvSurf,Precision::PConfusion());
     if(state == TopAbs_IN || state == TopAbs_ON){
-      di << "U=" << 0.14 << " V=" << 5.1 << "  classified INSIDE" << "\n";
+      di << "U=" << 0.14 << " V=" << 5.1 << "  classified INSIDE\n";
     }else{
-      di << "U=" << 0.14 << " V=" << 5.1 << "  classified OUTSIDE" << "\n";
+      di << "U=" << 0.14 << " V=" << 5.1 << "  classified OUTSIDE\n";
     }
 
     uvSurf = gp_Pnt2d(1.28,5.1);
     state = PClass.Classify(face,uvSurf,Precision::PConfusion());
     if(state == TopAbs_IN || state == TopAbs_ON){
-      di << "U=" << 1.28 << " V=" << 5.1 << "  classified INSIDE" << "\n";
+      di << "U=" << 1.28 << " V=" << 5.1 << "  classified INSIDE\n";
     }else{
-      di << "U=" << 1.28 << " V=" << 5.1 << "  classified OUTSIDE" << "\n";
+      di << "U=" << 1.28 << " V=" << 5.1 << "  classified OUTSIDE\n";
     }
   } else {
     uvSurf = gp_Pnt2d(Draw::Atof(argv[3]),Draw::Atof(argv[4]));
     state = PClass.Classify(face,uvSurf,Precision::PConfusion());
     if(state == TopAbs_IN || state == TopAbs_ON){
-      di << "U=" << Draw::Atof(argv[3]) << " V=" << Draw::Atof(argv[4]) << "  classified INSIDE" << "\n";
+      di << "U=" << Draw::Atof(argv[3]) << " V=" << Draw::Atof(argv[4]) << "  classified INSIDE\n";
     }else{
-      di << "U=" << Draw::Atof(argv[3]) << " V=" << Draw::Atof(argv[4]) << "  classified OUTSIDE" << "\n";
+      di << "U=" << Draw::Atof(argv[3]) << " V=" << Draw::Atof(argv[4]) << "  classified OUTSIDE\n";
     }
   }
   return 0;
@@ -314,7 +314,7 @@ Standard_Integer ksection(Draw_Interpretor& di, Standard_Integer n, const char *
   Toler2d=Draw::Atof(a[6]);
   RelativeTol=Draw::Atoi(a[7]);
 
-  di << "BRepAlgo_BooleanOperations myalgo" << "\n";
+  di << "BRepAlgo_BooleanOperations myalgo\n";
   BRepAlgo_BooleanOperations myalgo;
 
   myalgo.Shapes(s1, s2);
@@ -397,7 +397,7 @@ static Standard_Integer BUC60699(Draw_Interpretor& di, Standard_Integer /*n*/, c
 static Standard_Integer GER61394(Draw_Interpretor& di, Standard_Integer argc, const char ** argv )
 {
   if(argc > 2) {
-    di << "Usage : " << argv[0] << " [1/0]" << "\n";
+    di << "Usage : " << argv[0] << " [1/0]\n";
     return -1;
   }
   
@@ -530,7 +530,7 @@ static Standard_Integer BUC60726 (Draw_Interpretor& di,Standard_Integer argc, co
   }
   
   if(argc != 2) {
-    di << "Usage : " << argv[0] << " 0/1" << "\n";
+    di << "Usage : " << argv[0] << " 0/1\n";
   }
 
   if(Draw::Atoi(argv[1]) == 0) {
@@ -547,7 +547,7 @@ static Standard_Integer BUC60726 (Draw_Interpretor& di,Standard_Integer argc, co
     myAISContext->OpenLocalContext();
     myAISContext->ActivateStandardMode(TopAbs_FACE);
   } else {
-    di << "Usage : " << argv[0] << " 0/1" << "\n";
+    di << "Usage : " << argv[0] << " 0/1\n";
     return -1;
   }
   
@@ -604,7 +604,7 @@ static Standard_Integer BUC60724(Draw_Interpretor& di, Standard_Integer /*argc*/
 
 static Standard_Integer BUC60727(Draw_Interpretor& di, Standard_Integer /*argc*/, const char ** /*argv*/ )
 {
-di <<"Program Test" << "\n";
+di <<"Program Test\n";
 UnitsAPI::SetLocalSystem(UnitsAPI_MDTV); //length is mm 
 di <<"AnyToLS (3,mm) = " << UnitsAPI::AnyToLS(3.,"mm") << "\n"; // result was WRONG. 
 
@@ -786,12 +786,12 @@ static Standard_Integer BUC60811(Draw_Interpretor& di, Standard_Integer argc, co
   Ex.Init(FP, TopAbs_VERTEX); 
   TopoDS_Vertex v1 = TopoDS::Vertex(Ex.Current()); 
   fillet.AddFillet(v1, 20); 
-  di << "\n" << "Error is " << fillet.Status() << "\n";
+  di << "\nError is " << fillet.Status() << "\n";
 //  printf("\nError is %d ", fillet.Status()); 
   Ex.Next(); 
   TopoDS_Vertex V2 = TopoDS::Vertex(Ex.Current()); 
   fillet.AddFillet(V2, 20); 
-  di << "\n" << "Error is " << fillet.Status() << "\n";
+  di << "\nError is " << fillet.Status() << "\n";
 //  printf("\nError is %d ", fillet.Status());
   fillet.Build(); 
   FP1 = fillet.Shape(); 
@@ -853,7 +853,7 @@ static int BUC60825(Draw_Interpretor& di, Standard_Integer argc, const char ** a
 static int OCC10006(Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if(argc > 2) {
-    di << "Usage : " << argv[0] << " [BRepAlgoAPI/BRepAlgo = 1/0]" << "\n";
+    di << "Usage : " << argv[0] << " [BRepAlgoAPI/BRepAlgo = 1/0]\n";
     return 1;
   }
   Standard_Boolean IsBRepAlgoAPI = Standard_True;
@@ -862,7 +862,7 @@ static int OCC10006(Draw_Interpretor& di, Standard_Integer argc, const char ** a
     if (IsB != 1) {
       IsBRepAlgoAPI = Standard_False;
 #if ! defined(BRepAlgo_def01)
-//      di << "Error: There is not BRepAlgo_Fuse class" << "\n";
+//      di << "Error: There is not BRepAlgo_Fuse class\n";
 //      return 1;
 #endif
     }
@@ -911,11 +911,11 @@ static int OCC10006(Draw_Interpretor& di, Standard_Integer argc, const char ** a
 //  BRepAlgo_Fuse result(loft1.Shape(), loft2.Shape());
 //#endif
   if (IsBRepAlgoAPI) {
-    di << "BRepAlgoAPI_Fuse result(loft1.Shape(), loft2.Shape())" <<"\n";
+    di << "BRepAlgoAPI_Fuse result(loft1.Shape(), loft2.Shape())\n";
     BRepAlgoAPI_Fuse result(loft1.Shape(), loft2.Shape());
     DBRep::Set("F",result.Shape());
   } else {
-    di << "BRepAlgo_Fuse result(loft1.Shape(), loft2.Shape())" <<"\n";
+    di << "BRepAlgo_Fuse result(loft1.Shape(), loft2.Shape())\n";
     BRepAlgo_Fuse result(loft1.Shape(), loft2.Shape());
     DBRep::Set("F",result.Shape());
   }
@@ -1032,7 +1032,7 @@ static Standard_Integer BUC60876_ (Draw_Interpretor& di,
     return -1;
   }    
   if((argc != 2) && (argc != 3)) {
-    di<< "usage : " << argv[0] << " shape [mode==1]" << "\n";
+    di<< "usage : " << argv[0] << " shape [mode==1]\n";
     return -1;
   }
   TopoDS_Shape aShape = DBRep::Get(argv[1]);
@@ -1066,7 +1066,7 @@ static int TestCMD(Draw_Interpretor& di, Standard_Integer argc, const char ** ar
 
 {
   if(argc > 2) {
-    di << "Usage : " << argv[0] << " [BRepAlgoAPI/BRepAlgo = 1/0]" << "\n";
+    di << "Usage : " << argv[0] << " [BRepAlgoAPI/BRepAlgo = 1/0]\n";
     return 1;
   }
   Standard_Boolean IsBRepAlgoAPI = Standard_True;
@@ -1075,7 +1075,7 @@ static int TestCMD(Draw_Interpretor& di, Standard_Integer argc, const char ** ar
     if (IsB != 1) {
       IsBRepAlgoAPI = Standard_False;
 #if ! defined(BRepAlgo_def01)
-//      di << "Error: There is not BRepAlgo_Fuse class" << "\n";
+//      di << "Error: There is not BRepAlgo_Fuse class\n";
 //      return 1;
 #endif
     }
@@ -1133,16 +1133,16 @@ static int TestCMD(Draw_Interpretor& di, Standard_Integer argc, const char ** ar
 
   TopoDS_Shape fuse;
   if (IsBRepAlgoAPI) {
-    di << "BRepAlgoAPI_Fuse SFuse(SCyl, SCon)" <<"\n";
+    di << "BRepAlgoAPI_Fuse SFuse(SCyl, SCon)\n";
     BRepAlgoAPI_Fuse SFuse(SCyl, SCon);
     if(! SFuse.IsDone() )
-      di<<"Error: Boolean fuse operation failed !"<<"\n";
+      di<<"Error: Boolean fuse operation failed !\n";
     fuse = SFuse.Shape();
   } else {
-    di << "BRepAlgo_Fuse SFuse(SCyl, SCon)" <<"\n";
+    di << "BRepAlgo_Fuse SFuse(SCyl, SCon)\n";
     BRepAlgo_Fuse SFuse(SCyl, SCon);
     if(! SFuse.IsDone() )
-      di<<"Error: Boolean fuse operation failed !"<<"\n";
+      di<<"Error: Boolean fuse operation failed !\n";
     fuse = SFuse.Shape();
   }
 
@@ -1164,7 +1164,7 @@ static Standard_Integer statface (Draw_Interpretor& di,Standard_Integer /*argc*/
   TopoDS_Shape aShape = DBRep::Get(argv[1]);
   if(aShape.IsNull())
   {
-    di<<"Invalid input shape"<<"\n";
+    di<<"Invalid input shape\n";
     return 1;
   }
   Handle(Dico_DictionaryOfInteger) aDico = new Dico_DictionaryOfInteger();
@@ -1247,8 +1247,8 @@ static Standard_Integer statface (Draw_Interpretor& di,Standard_Integer /*argc*/
     }    
 
   di<<"\n";
-  di<<"Degenerated edges :"<<"\n";
-  di<<l<<"   --    "<<"Degenerated edges "<<"\n";
+  di<<"Degenerated edges :\n";
+  di<<l<<"   --    Degenerated edges \n";
 
   return 0;
 
@@ -1259,7 +1259,7 @@ static Standard_Integer statface (Draw_Interpretor& di,Standard_Integer /*argc*/
 static Standard_Integer BUC60841(Draw_Interpretor& di, Standard_Integer argc, const char ** argv )
 {
   if(argc > 2) {
-    di << "Usage : " << argv[0] << " [BRepAlgoAPI/BRepAlgo = 1/0]" << "\n";
+    di << "Usage : " << argv[0] << " [BRepAlgoAPI/BRepAlgo = 1/0]\n";
     return 1;
   }
   Standard_Boolean IsBRepAlgoAPI = Standard_True;
@@ -1268,7 +1268,7 @@ static Standard_Integer BUC60841(Draw_Interpretor& di, Standard_Integer argc, co
     if (IsB != 1) {
       IsBRepAlgoAPI = Standard_False;
 #if ! defined(BRepAlgo_def01)
-//      di << "Error: There is not BRepAlgo_Fuse class" << "\n";
+//      di << "Error: There is not BRepAlgo_Fuse class\n";
 //      return 1;
 #endif
     }
@@ -1299,11 +1299,11 @@ static Standard_Integer BUC60841(Draw_Interpretor& di, Standard_Integer argc, co
 
   TopoDS_Shape fsh1;
   if (IsBRepAlgoAPI) {
-    di << "BRepAlgoAPI_Fuse fuse1(sh1, sh2)" <<"\n";
+    di << "BRepAlgoAPI_Fuse fuse1(sh1, sh2)\n";
     BRepAlgoAPI_Fuse fuse1(sh1, sh2);
     fsh1 = fuse1.Shape();
   } else {
-    di << "BRepAlgo_Fuse fuse1(sh1, sh2)" <<"\n";
+    di << "BRepAlgo_Fuse fuse1(sh1, sh2)\n";
     BRepAlgo_Fuse fuse1(sh1, sh2);
     fsh1 = fuse1.Shape();
   }
@@ -1323,11 +1323,11 @@ static Standard_Integer BUC60841(Draw_Interpretor& di, Standard_Integer argc, co
 
   TopoDS_Shape fsh2;
   if (IsBRepAlgoAPI) {
-    di << "BRepAlgoAPI_Fuse fuse2(fsh1,sh3)" <<"\n";
+    di << "BRepAlgoAPI_Fuse fuse2(fsh1,sh3)\n";
     BRepAlgoAPI_Fuse fuse2(fsh1,sh3);
     fsh2 = fuse2.Shape();
   } else {
-    di << "BRepAlgo_Fuse fuse2(fsh1,sh3)" <<"\n";
+    di << "BRepAlgo_Fuse fuse2(fsh1,sh3)\n";
     BRepAlgo_Fuse fuse2(fsh1,sh3);
     fsh2 = fuse2.Shape();
   }
@@ -1370,7 +1370,7 @@ static Standard_Integer BUC60874(Draw_Interpretor& /*di*/, Standard_Integer /*ar
   
 static int BUC60817(Draw_Interpretor& di, Standard_Integer argc, const char ** argv) {
   if(argc!=2) {
-    di << "Usage : " << argv[0] << " D" << "\n";
+    di << "Usage : " << argv[0] << " D\n";
     di<<1;
     return 0;
   }
@@ -1397,7 +1397,7 @@ static int BUC60817(Draw_Interpretor& di, Standard_Integer argc, const char ** a
 
 static int BUC60831_1(Draw_Interpretor& di, Standard_Integer argc, const char ** argv) {
   if(argc!=2) {
-    di << "Usage : " << argv[0] << " D" << "\n";
+    di << "Usage : " << argv[0] << " D\n";
     di<<-1;
     return 0;
   }
@@ -1419,7 +1419,7 @@ static int BUC60831_1(Draw_Interpretor& di, Standard_Integer argc, const char **
 
 static int BUC60831_2(Draw_Interpretor& di, Standard_Integer argc, const char ** argv) {
   if(argc!=3) {
-    di << "Usage : " << argv[0] << " D Label" << "\n";
+    di << "Usage : " << argv[0] << " D Label\n";
     di<<1;
     return 0;
   }
@@ -1438,7 +1438,7 @@ static int BUC60831_2(Draw_Interpretor& di, Standard_Integer argc, const char **
 
 static int BUC60836(Draw_Interpretor& di, Standard_Integer argc, const char ** argv) {
   if(argc!=2) {
-    di << "Usage : " << argv[0] << " D" << "\n";
+    di << "Usage : " << argv[0] << " D\n";
     di<<1;
     return 0;
   }
@@ -1508,7 +1508,7 @@ static int BUC60836(Draw_Interpretor& di, Standard_Integer argc, const char ** a
 
 static int BUC60847(Draw_Interpretor& di, Standard_Integer argc, const char ** argv) {
   if(argc!=3) {
-    di << "Usage : " << argv[0] << " D Shape" << "\n";
+    di << "Usage : " << argv[0] << " D Shape\n";
     di<<1;
     return 0;
   }
@@ -1517,7 +1517,7 @@ static int BUC60847(Draw_Interpretor& di, Standard_Integer argc, const char ** a
   if (!DDF::GetDF(argv[1],aDF)) {di<<2;return 0;}
   
   TopoDS_Shape s = DBRep::Get(argv[2]);
-  if (s.IsNull()) { di <<"shape not found"<< "\n"; di<<3;return 0;}
+  if (s.IsNull()) { di <<"shape not found\n"; di<<3;return 0;}
   TDF_Label L;
   DDF::AddLabel(aDF, "0:2", L);
   TNaming_Builder SI (L);
@@ -1535,7 +1535,7 @@ static int BUC60847(Draw_Interpretor& di, Standard_Integer argc, const char ** a
 
 static int BUC60862(Draw_Interpretor& di, Standard_Integer argc, const char ** argv) {
   if(argc!=3) {
-    di << "Usage : " << argv[0] << " D Shape" << "\n";
+    di << "Usage : " << argv[0] << " D Shape\n";
     di<<1;
     return 0;
   }
@@ -1544,7 +1544,7 @@ static int BUC60862(Draw_Interpretor& di, Standard_Integer argc, const char ** a
   if (!DDF::GetDF(argv[1],aDF)) {di<<2;return 0;}
   
   TopoDS_Shape s = DBRep::Get(argv[2]);
-  if (s.IsNull()) { di <<"shape not found"<< "\n"; di<<3;return 0;}
+  if (s.IsNull()) { di <<"shape not found\n"; di<<3;return 0;}
   TDF_Label L;
   DDF::AddLabel(aDF, "0:2", L);
   TNaming_Builder SI (L);
@@ -1567,7 +1567,7 @@ static int BUC60867(Draw_Interpretor& di, Standard_Integer argc, const char ** a
     Handle(TDocStd_Document) D;
     Standard_Integer insession = A->IsInSession(path);
     if (insession > 0) {  
-      di <<"document " << insession << "  is already in session" << "\n";
+      di <<"document " << insession << "  is already in session\n";
       di<<2;
       return 0;
     }
@@ -1583,7 +1583,7 @@ static int BUC60867(Draw_Interpretor& di, Standard_Integer argc, const char ** a
 
 static int BUC60910(Draw_Interpretor& di, Standard_Integer argc, const char ** argv) {
   if(argc!=2) {
-    di << "Usage : " << argv[0] << " D" << "\n";
+    di << "Usage : " << argv[0] << " D\n";
     di<<1;
     return 0;
   }
@@ -1611,7 +1611,7 @@ static int BUC60910(Draw_Interpretor& di, Standard_Integer argc, const char ** a
 
 static int BUC60925(Draw_Interpretor& di, Standard_Integer argc, const char ** argv) {
   if(argc!=2) {
-    di << "Usage : " << argv[0] << " D" << "\n";
+    di << "Usage : " << argv[0] << " D\n";
     di<<1;
     return 0;
   }
@@ -1639,7 +1639,7 @@ static int BUC60925(Draw_Interpretor& di, Standard_Integer argc, const char ** a
 
 static int BUC60932(Draw_Interpretor& di, Standard_Integer argc, const char ** argv) {
   if(argc!=2) {
-    di << "Usage : " << argv[0] << " D" << "\n";
+    di << "Usage : " << argv[0] << " D\n";
     di<<1;
     return 0;
   }
@@ -1684,7 +1684,7 @@ static int AISWidth(Draw_Interpretor& di, Standard_Integer argc, const char ** a
          di<<prs->Width();
        }
        else{
-         di << "AISWidth: Warning : Width wasn't set" << "\n";
+         di << "AISWidth: Warning : Width wasn't set\n";
          di<<(-4);
        }
       }
@@ -1737,7 +1737,7 @@ static Standard_Integer BUC60951_(Draw_Interpretor& di, Standard_Integer argc, c
   //    return -1;
   //  }
   if(argc < 2 || argc > 3) {
-    di << "Usage : " << a[0] << " [BRepAlgoAPI/BRepAlgo = 1/0]" << "\n";
+    di << "Usage : " << a[0] << " [BRepAlgoAPI/BRepAlgo = 1/0]\n";
     return 1;
   }
   Standard_Boolean IsBRepAlgoAPI = Standard_True;
@@ -1746,7 +1746,7 @@ static Standard_Integer BUC60951_(Draw_Interpretor& di, Standard_Integer argc, c
     if (IsB != 1) {
       IsBRepAlgoAPI = Standard_False;
 #if ! defined(BRepAlgo_def01)
-//      di << "Error: There is not BRepAlgo_Fuse class" << "\n";
+//      di << "Error: There is not BRepAlgo_Fuse class\n";
 //      return 1;
 #endif
     }
@@ -1793,11 +1793,11 @@ static Standard_Integer BUC60951_(Draw_Interpretor& di, Standard_Integer argc, c
 //  sh = fuse.Shape();
 
   if (IsBRepAlgoAPI) {
-    di << "BRepAlgoAPI_Fuse fuse(sol, sh)" <<"\n";
+    di << "BRepAlgoAPI_Fuse fuse(sol, sh)\n";
     BRepAlgoAPI_Fuse fuse(sol, sh);
     sh = fuse.Shape();
   } else {
-    di << "BRepAlgo_Fuse fuse(sol, sh)" <<"\n";
+    di << "BRepAlgo_Fuse fuse(sol, sh)\n";
     BRepAlgo_Fuse fuse(sol, sh);
     sh = fuse.Shape();
   }
index 325e499f64cd375a333ac706d696cc51fc114f5f..04204814aa0df97aefcada6ba0fb8d977e97138e 100644 (file)
@@ -40,7 +40,7 @@ static Standard_Integer OCC6001 (Draw_Interpretor& di, Standard_Integer argc, co
 {
   if (argc < 4)
   {
-    di<<"missing parameters"<<"\n";
+    di<<"missing parameters\n";
     return 1;
   }
   const char *name = argv[1];
@@ -53,7 +53,7 @@ static Standard_Integer OCC6001 (Draw_Interpretor& di, Standard_Integer argc, co
     TopoDS_Shape wire = DBRep::Get(argv[2]);
     if (wire.IsNull() || wire.ShapeType() != TopAbs_WIRE)
     {
-      di<<"incorrect 1st parameter, curve or wire expected"<<"\n";
+      di<<"incorrect 1st parameter, curve or wire expected\n";
       return 1;
     }
     BRepAdaptor_CompCurve comp_curve(TopoDS::Wire(wire));
index d5809b4814efc0d4bbb816cca821744fc7bcea9e..73f03e4742faf097bb1bd118d429e952b3026e87 100644 (file)
@@ -37,7 +37,7 @@ static Standard_Integer OCC281bug (Draw_Interpretor& di, Standard_Integer argc,
     return -1;
     }
   if(argc < 4) {
-    di << "Usage : " << argv[0] << " x y TypeOfMarker(0-12)" << "\n";
+    di << "Usage : " << argv[0] << " x y TypeOfMarker(0-12)\n";
     return 1;
   }
 
@@ -106,11 +106,11 @@ static Standard_Integer OCC281bug (Draw_Interpretor& di, Standard_Integer argc,
       V3d_Coordinate X,Y,Z;
       aView->ConvertToGrid(x,y,X,Y,Z);
     } else {
-      di << "NOT aViewer->GridEcho()" << "\n";
+      di << "NOT aViewer->GridEcho()\n";
       return 1;
     }
   } else {
-    di << "NOT aViewer->IsActive()" << "\n";
+    di << "NOT aViewer->IsActive()\n";
     return 1;
   }
   return 0;
index 004cf61f45bfa9f931f7a639157bc23be8f62576..0568f84fe743fb0fc89091c5f7d7e47fc7680b13 100644 (file)
@@ -253,7 +253,7 @@ const Standard_Integer Glob_Mults[Glob_NbKnots] =
 static Standard_Integer OCC862 (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if ( argc != 3) {
-    di << "ERROR : Usage : " << argv[0] << " curve1 curve2" << "\n";
+    di << "ERROR : Usage : " << argv[0] << " curve1 curve2\n";
     return 1;
   }
 
@@ -304,12 +304,12 @@ static Standard_Integer OCC862 (Draw_Interpretor& di, Standard_Integer argc, con
       const Standard_Real D = Ex.LowerDistance();
       // IMPORTANT: minimal distance here means accuracy reached in intersection
       di<<"Info: Minimal distance is "<<D<<"\n";
-      di<<"Info: Minimal points are ("<<P1.X()<<","<<P1.Y()<<","<<P1.Z()<<"), ("<<P2.X()<<","<<P2.Y()<<","<<P2.Z()<<")"<<"\n";
-      di<<"Info: Minimal parameters are ("<<U1<<"), ("<<U2<<")"<<"\n";
+      di<<"Info: Minimal points are ("<<P1.X()<<","<<P1.Y()<<","<<P1.Z()<<"), ("<<P2.X()<<","<<P2.Y()<<","<<P2.Z()<<")\n";
+      di<<"Info: Minimal parameters are ("<<U1<<"), ("<<U2<<")\n";
     }
     else
     {
-      di<<"Error: extrema not found"<<"\n";
+      di<<"Error: extrema not found\n";
     }
   }
   
index 3681c5196a20adefcd060b77a6f4ba870937c595..6d851b788081ec568b5e5f3f8e109d6c89c1cd61 100644 (file)
@@ -37,7 +37,7 @@
 static Standard_Integer  OCC162 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if ( argc != 2 ) {
-    di << "Usage : " << argv[0] << " name" << "\n";
+    di << "Usage : " << argv[0] << " name\n";
     return 1;
   }
 
@@ -75,7 +75,7 @@ static Standard_Integer  OCC172 (Draw_Interpretor& di, Standard_Integer /*argc*/
 static Standard_Integer  OCC204 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if ( argc != 2 ) {
-    di << "Usage : " << argv[0] << " updateviewer=0/1" << "\n";
+    di << "Usage : " << argv[0] << " updateviewer=0/1\n";
     return 1;
   }
 
@@ -129,7 +129,7 @@ static Standard_Integer  OCC204 (Draw_Interpretor& di, Standard_Integer argc, co
 static Standard_Integer OCC1651 (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if ( argc != 8 ) {
-    di << "Usage : " << argv[0] << " Shape PntX PntY PntZ DirX DirY DirZ" << "\n";
+    di << "Usage : " << argv[0] << " Shape PntX PntY PntZ DirX DirY DirZ\n";
     return 1;
   }
 
index e0f51459034fd8cfa93b8908ea0243ba7a48a07e..1daa6a2ab12e7fa047e2816fdff899ab49027878 100644 (file)
@@ -81,11 +81,11 @@ static Standard_Integer OCC137 (Draw_Interpretor& di, Standard_Integer argc, con
 {
   Handle(AIS_InteractiveContext) aContext = ViewerTest::GetAISContext();
   if(aContext.IsNull()) {
-    di << argv[0] << "ERROR : use 'vinit' command before " << "\n";
+    di << argv[0] << "ERROR : use 'vinit' command before \n";
     return 1;
   }
   if ( argc < 2 || argc > 3) {
-    di << "ERROR : Usage : " << argv[0] << " highlight_mode [shape]" << "\n";
+    di << "ERROR : Usage : " << argv[0] << " highlight_mode [shape]\n";
     return 1;
   }
   
@@ -97,12 +97,12 @@ static Standard_Integer OCC137 (Draw_Interpretor& di, Standard_Integer argc, con
     TCollection_AsciiString aName(argv[2]);
     Handle(AIS_InteractiveObject) AISObj;
     if(!aMap1.IsBound2(aName)) {
-      di << "Use 'vdisplay' before" << "\n";
+      di << "Use 'vdisplay' before\n";
       return 1;
     } else {
       AISObj = Handle(AIS_InteractiveObject)::DownCast(aMap1.Find2(aName));
       if(AISObj.IsNull()){
-        di << argv[2] << " : No interactive object" << "\n";
+        di << argv[2] << " : No interactive object\n";
         return 1;
       }
       aMap.Bind(AISObj,aName);
@@ -132,11 +132,11 @@ static Standard_Integer OCC137_z (Draw_Interpretor& di, Standard_Integer argc, c
 {
   Handle(AIS_InteractiveContext) aContext = ViewerTest::GetAISContext();
   if(aContext.IsNull()) {
-    di << argv[0] << "ERROR : use 'vinit' command before " << "\n";
+    di << argv[0] << "ERROR : use 'vinit' command before \n";
     return 1;
   }
   if ( argc != 1 && argc != 2) {
-    di << "ERROR : Usage : " << argv[0] << " [ZDetection_mode]" << "\n";
+    di << "ERROR : Usage : " << argv[0] << " [ZDetection_mode]\n";
     return 1;
   }
   aContext->SetZDetection(((argc == 1 || (argc == 2 && Draw::Atoi(argv[1]) == 1)) ? Standard_True : Standard_False));
index 4552227249d4040f9e6885d7be92592fb80d30a5..2124fe2b13066646df15d953ada627911346a348 100644 (file)
@@ -156,7 +156,7 @@ static Standard_Integer Getentry (Draw_Interpretor& di, Standard_Integer n, cons
 
   TopoDS_Shape S = DBRep::Get(a[2]);
   if (S.IsNull()) {
-    di <<"Noone shape selected"<<"\n";
+    di <<"Noone shape selected\n";
     di << 0;
     return 0;
   }
@@ -168,7 +168,7 @@ static Standard_Integer Getentry (Draw_Interpretor& di, Standard_Integer n, cons
   else  {
     di <<Name.ToCString();
     if (Status == 2) {
-      di <<"Several shapes have the same name"<<"\n";
+      di <<"Several shapes have the same name\n";
     }
   }
   return 0;
@@ -188,7 +188,7 @@ static Standard_Integer NamedShape(Draw_Interpretor& di, Standard_Integer n, con
   if (!DDF::GetDF(a[1],ND)) return 1;
   TopoDS_Shape  SS = DBRep::Get(a[2]);
   if (SS.IsNull()) {
-    di <<"Noone shape selected"<<"\n";
+    di <<"Noone shape selected\n";
     di << 0;
     return 0;
   }
@@ -259,7 +259,7 @@ static Standard_Integer Initialshape (Draw_Interpretor& di, Standard_Integer n,
     TDF_Tool::Entry(itL.Value(),entry);
     di <<" , "<< entry.ToCString();    
   }
-  di <<"."<<"\n";
+  di <<".\n";
   return 0;
 }
 
@@ -286,7 +286,7 @@ static Standard_Integer Exploreshape (Draw_Interpretor& di, Standard_Integer n,
   DDF::FindLabel(ND,a[2],Lab);
   Handle(TNaming_NamedShape) NS;
   if (!Lab.FindAttribute(TNaming_NamedShape::GetID(),NS)) { 
-    di <<"No shape"<<"\n";
+    di <<"No shape\n";
     return 0;
   }
 
@@ -310,7 +310,7 @@ static Standard_Integer Exploreshape (Draw_Interpretor& di, Standard_Integer n,
   }
   di <<"\n";
   if (NbShapes == 0) {
-    di <<"No shape"<<"\n";
+    di <<"No shape\n";
   }
 
   return 0;
@@ -340,7 +340,7 @@ static Standard_Integer Generatedshape (Draw_Interpretor& di,
       return 0;
     }
   }
-  di << "GetShape : Error" << "\n";
+  di << "GetShape : Error\n";
   return 1;
 }
 
@@ -366,7 +366,7 @@ static Standard_Integer Getshape (Draw_Interpretor& di,
       return 0;
     }
   }
-  di << "DDataStd_GetShape : Error" << "\n";
+  di << "DDataStd_GetShape : Error\n";
   return 1;
 }
 
@@ -417,7 +417,7 @@ static Standard_Integer Getcreationentry (Draw_Interpretor& di, Standard_Integer
   TopoDS_Shape  SS = DBRep::Get(a[2]);
 
   if (SS.IsNull()) {
-    di <<"Noone shape selected"<<"\n";
+    di <<"Noone shape selected\n";
     di << 0;
     return 0;
   }
@@ -438,7 +438,7 @@ static Standard_Integer Getcreationentry (Draw_Interpretor& di, Standard_Integer
   else  {
     di <<Name.ToCString();
     if (Status == 2) {
-      di <<"Several shapes have the same name"<<"\n";
+      di <<"Several shapes have the same name\n";
     }
   }
   return 0;
index d7c6be0b53464bf3c580bab6c8d0b23db24d8423..edd2bfa0fde05d760691840a2540fef35d665882 100644 (file)
@@ -37,7 +37,7 @@ static Standard_Integer BuildNamedShape (Draw_Interpretor& di,
       aShape1 = DBRep::Get (arg[a]);
       if (anInc == 2) {
        if (a == nb - 1) {
-         di<<"For this type of evolution number of shapes must be even"<<"\n";
+         di<<"For this type of evolution number of shapes must be even\n";
          return 1;
        }
        aShape2 = DBRep::Get(arg[a+1]);
@@ -64,7 +64,7 @@ static Standard_Integer BuildNamedShape (Draw_Interpretor& di,
        aBuilder.Select(aShape1,aShape2);
        break;
       default:
-       di<<"Unknown evolution type"<<"\n";
+       di<<"Unknown evolution type\n";
        return 1;
       }
     }
@@ -73,7 +73,7 @@ static Standard_Integer BuildNamedShape (Draw_Interpretor& di,
 //       OnlyModif = Draw::Atoi(arg[3]);
 //     }
   } else {
-    di<<"Usage: BuildName df entry evolution(P[RIMITIVE] G[ENERATED] M[ODIFY] D[ELETE] R[EPLACE] S[ELECTED]) shape1 [shape2 ...]"<<"\n";
+    di<<"Usage: BuildName df entry evolution(P[RIMITIVE] G[ENERATED] M[ODIFY] D[ELETE] R[EPLACE] S[ELECTED]) shape1 [shape2 ...]\n";
     return 1;
   }
   return 0;
index 799f6a84229986d9c49efca876d832aee23f4c15..f89b8293861d69aaf95c586b909a5f2c6a97c161 100644 (file)
@@ -60,7 +60,7 @@ static Standard_Integer GetNewShapes (Draw_Interpretor& di,
     if (!QADNaming::Entry(arg, aLabel)) return 1;
     Handle(TNaming_NamedShape) aNS;
     if (!aLabel.FindAttribute(TNaming_NamedShape::GetID(),aNS)) {
-      di<<"Label has no NamedShape"<<"\n";
+      di<<"Label has no NamedShape\n";
       return 1;
     }
     di<<EvolutionString(aNS->Evolution());
@@ -76,7 +76,7 @@ static Standard_Integer GetNewShapes (Draw_Interpretor& di,
     }
     di<<" "<<a-1;
   } else {
-    di<<"Usage: GetNewShapes df entry [res]"<<"\n";
+    di<<"Usage: GetNewShapes df entry [res]\n";
     return 1;
   }
   return 0;
@@ -90,7 +90,7 @@ static Standard_Integer GetOldShapes (Draw_Interpretor& di,
     if (!QADNaming::Entry(arg, aLabel)) return 1;
     Handle(TNaming_NamedShape) aNS;
     if (!aLabel.FindAttribute(TNaming_NamedShape::GetID(),aNS)) {
-      di<<"Label has no NamedShape"<<"\n";
+      di<<"Label has no NamedShape\n";
       return 1;
     }
     di<<EvolutionString(aNS->Evolution());
@@ -106,7 +106,7 @@ static Standard_Integer GetOldShapes (Draw_Interpretor& di,
     }
     di<<" "<<a-1;
   } else {
-    di<<"Usage: GetOldShapes df entry [res]"<<"\n";
+    di<<"Usage: GetOldShapes df entry [res]\n";
     return 1;
   }
   return 0;
@@ -145,7 +145,7 @@ static Standard_Integer GetAllNewShapes (Draw_Interpretor& di,
       if (!QADNaming::Entry(arg, aLabel)) return 1;
       Handle(TNaming_NamedShape) aNS;
       if (!aLabel.FindAttribute(TNaming_NamedShape::GetID(),aNS)) {
-       di<<"Label has no NamedShape"<<"\n";
+       di<<"Label has no NamedShape\n";
        return 1;
       }
       Standard_Integer a;
@@ -164,14 +164,14 @@ static Standard_Integer GetAllNewShapes (Draw_Interpretor& di,
     } else { // shape
       Handle(TDF_Data) DF;
       if (!DDF::GetDF(arg[1],DF)) {
-       di<<"Wrong df"<<"\n";
+       di<<"Wrong df\n";
        return 1;
       }
       TopoDS_Shape aShape = DBRep::Get(arg[2]);
       aResult=GetAllNew(aShape,DF->Root(),aName,0);
     }
   } else {
-    di<<"Usage: GetAllNewShapes df entry/shape [res]"<<"\n";
+    di<<"Usage: GetAllNewShapes df entry/shape [res]\n";
     return 1;
   }
   di<<aResult;
@@ -213,7 +213,7 @@ static Standard_Integer GetAllOldShapes (Draw_Interpretor& di,
       if (!QADNaming::Entry(arg, aLabel)) return 1;
       Handle(TNaming_NamedShape) aNS;
       if (!aLabel.FindAttribute(TNaming_NamedShape::GetID(),aNS)) {
-       di<<"Label has no NamedShape"<<"\n";
+       di<<"Label has no NamedShape\n";
        return 1;
       }
       Standard_Integer a;
@@ -232,14 +232,14 @@ static Standard_Integer GetAllOldShapes (Draw_Interpretor& di,
     } else { // shape
       Handle(TDF_Data) DF;
       if (!DDF::GetDF(arg[1],DF)) {
-       di<<"Wrong df"<<"\n";
+       di<<"Wrong df\n";
        return 1;
       }
       TopoDS_Shape aShape = DBRep::Get(arg[2]);
       aResult=GetAllOld(aShape,DF->Root(),aName,0);
     }
   } else {
-    di<<"Usage: GetAllNewShapes df entry/shape [res]"<<"\n";
+    di<<"Usage: GetAllNewShapes df entry/shape [res]\n";
     return 1;
   }
   di<<aResult;
@@ -254,7 +254,7 @@ static Standard_Integer GetSameShapes (Draw_Interpretor& di,
     Standard_Integer aResult = 0;
     Handle(TDF_Data) DF;
     if (!DDF::GetDF(arg[1],DF)) {
-      di<<"Wrong df"<<"\n";
+      di<<"Wrong df\n";
       return 1;
     }
     TopoDS_Shape aShape = DBRep::Get(arg[2]);
@@ -268,7 +268,7 @@ static Standard_Integer GetSameShapes (Draw_Interpretor& di,
       }
     }
   } else {
-    di<<"Usage: GetSameShapes df shape"<<"\n";
+    di<<"Usage: GetSameShapes df shape\n";
     return 1;
   }
   di<<aRes.ToCString();
index 79b411548188e80d7a0d312243cf016497cd9f43..acbeb60a7b6a5a11f5d7233babfdde0604489568 100644 (file)
@@ -128,7 +128,7 @@ static Standard_Integer QADNaming_Select (Draw_Interpretor& di, Standard_Integer
     }
     return 0;  
   }
-  di << "QADNaming_Select : Error" << "\n";
+  di << "QADNaming_Select : Error\n";
   return 1;
 }
 
@@ -148,7 +148,7 @@ static Standard_Integer QADNaming_SolveSelection (Draw_Interpretor& di, Standard
     Standard_Integer i;
     for(i=3;i<n;i++) {
       TDF_Label aValidLab;
-      if (!DDF::FindLabel(aLabel.Data(),a[i],aValidLab)) di<<"Warning: label "<<a[i]<<" not exists"<<"\n";
+      if (!DDF::FindLabel(aLabel.Data(),a[i],aValidLab)) di<<"Warning: label "<<a[i]<<" not exists\n";
       else valid.Add(aValidLab);
     }
     Standard_Boolean done = SL.Solve(valid);
@@ -158,7 +158,7 @@ static Standard_Integer QADNaming_SolveSelection (Draw_Interpretor& di, Standard
     Display (name,Res);
     return done?0:1;
   }
-  di << "Usage:  DumpSelection DF entry [validlabel1 validlabel2 ...]" << "\n";
+  di << "Usage:  DumpSelection DF entry [validlabel1 validlabel2 ...]\n";
   return 1;
 }
 
@@ -177,7 +177,7 @@ static Standard_Integer QADNaming_DumpSelection (Draw_Interpretor& di,
     if (!DDF::FindLabel(DF,a[2],L)) return 1;
     Handle(TNaming_Naming) naming;
     if (!L.FindAttribute(TNaming_Naming::GetID(),naming)) {  
-      di <<"QADNaming_DumpSelection : not a selection" << "\n";
+      di <<"QADNaming_DumpSelection : not a selection\n";
       return 1;
     }
     DumpNaming(naming, di);
@@ -200,7 +200,7 @@ static Standard_Integer QADNaming_DumpSelection (Draw_Interpretor& di,
     }
     return 0;
   }
-  di << "QADNaming_DumpSelection : Error" << "\n";
+  di << "QADNaming_DumpSelection : Error\n";
   return 1;  
 }
 
@@ -219,7 +219,7 @@ static Standard_Integer QADNaming_ArgsSelection (Draw_Interpretor& di,
     if (!DDF::FindLabel(DF,a[2],L)) return 1;
     Handle(TNaming_Naming) naming;
     if (!L.FindAttribute(TNaming_Naming::GetID(),naming)) {  
-      di <<"QADNaming_DumpSelection : not a selection" << "\n";
+      di <<"QADNaming_DumpSelection : not a selection\n";
       return 1;
     }  
     TCollection_AsciiString Entry;
@@ -234,7 +234,7 @@ static Standard_Integer QADNaming_ArgsSelection (Draw_Interpretor& di,
     di << "\n";
     return 0;
   }
-  di << "QADNaming_ArgsSelection : Error" << "\n";
+  di << "QADNaming_ArgsSelection : Error\n";
   return 1;  
 }
 
@@ -302,7 +302,7 @@ static Standard_Integer QADNaming_Attachment (Draw_Interpretor& di,
     di << "\n";
     return 0;
   }
-  di << "QADNaming_Attachment : Error" << "\n";
+  di << "QADNaming_Attachment : Error\n";
   return 1;  
 }
 
index 45f49993420aa711a1a44479deffa40200561efa..201a36d2ed71c9e2f425aff8df82507b24cd4735 100644 (file)
@@ -91,7 +91,7 @@ static Standard_Integer QADNaming_CheckHasSame (Draw_Interpretor& di,
     for(itr2.Initialize(M2);itr2.More();itr2.Next()) {
       const TopoDS_Shape& s2 = itr2.Key();
       if(s1.IsSame(s2))
-       di << "Shapes " << arg[1]<< " and "<< arg[2]<< " have SAME subshapes" <<"\n";
+       di << "Shapes " << arg[1]<< " and "<< arg[2]<< " have SAME subshapes\n";
     }
   }
 
@@ -143,7 +143,7 @@ static Standard_Integer QADNaming_TCopyShape (Draw_Interpretor& di,
     }
     return 0;
   }
-  di << "QADNaming_CopyShape : Error" << "\n";
+  di << "QADNaming_CopyShape : Error\n";
   return 1;
 }
 
index d3385c838958cb83ebef189d1cab4fca54974560..d4cd82be3551a001dd384836205d4a5796e2f3a5 100644 (file)
@@ -61,26 +61,26 @@ static int VTrihedronOrigins(Draw_Interpretor& di,
                              const char ** argv)
 {
   if(argc != 2){
-    di <<"Usage : vtri_orig tri_name"<<"\n";
+    di <<"Usage : vtri_orig tri_name\n";
     return 1;
   }
 
   if(TheAISContext().IsNull()){
-    di<<"Make 'vinit' before this method call"<<"\n";
+    di<<"Make 'vinit' before this method call\n";
     return 1;
   }
 
   //get trihedron from AIS map.
   TCollection_AsciiString aName(argv[1]);
   if(!GetMapOfAIS().IsBound2(aName)){
-    di<<"No object named '"<<argv[1]<<"'"<<"\n";
+    di<<"No object named '"<<argv[1]<<"'\n";
     return 1;
   }
 
   Handle(AIS_Trihedron) aTrih =
     Handle(AIS_Trihedron)::DownCast(GetMapOfAIS().Find2(aName));
   if(aTrih.IsNull()){
-    di<<"Trihedron is not found, try another name"<<"\n";
+    di<<"Trihedron is not found, try another name\n";
     return 1;
   }
 
@@ -104,7 +104,7 @@ static int VTrihedronOrigins(Draw_Interpretor& di,
   GetMapOfAIS().Bind(YLine,aName+"_Y");
   GetMapOfAIS().Bind(ZLine,aName+"_Z");
   //print names of created objects:
-  di<<argv[1]<<"_X  "<<argv[1]<<"_Y  "<<argv[1]<<"_Z"<<"\n";
+  di<<argv[1]<<"_X  "<<argv[1]<<"_Y  "<<argv[1]<<"_Z\n";
 
   //try to draw them:
   TheAISContext()->Display(XLine);
index 5921d0f3c0f2650ecd48041e54c9c8f0028e1329..e42e14500e95b82c0e235918dc5959ce10b938ff 100644 (file)
@@ -993,17 +993,17 @@ static void CompSparseArray (Draw_Interpretor& theDI,
 Standard_Integer CheckArguments(Draw_Interpretor& di, Standard_Integer argc, const char ** argv, Standard_Integer& Repeat, Standard_Integer& Size)
 {
   if ( argc != 3) {
-    di << "Usage : " << argv[0] << " Repeat Size" << "\n";
+    di << "Usage : " << argv[0] << " Repeat Size\n";
     return 1;
   }
   Repeat = Draw::Atoi(argv[1]);
   Size   = Draw::Atoi(argv[2]);
   if ( Repeat < 1 ) {
-    di << "Repeat > 0" << "\n";
+    di << "Repeat > 0\n";
     return 1;
   }
   if ( Size < 1 ) {
-    di << "Size > 0" << "\n";
+    di << "Size > 0\n";
     return 1;
   }
   return 0;
index e36a5afa6c8f5a3aa946e8e5d027d1d6cc4d4ed6..9459e13d333e4d9348bebbdb5f4858adfc8f78e7 100644 (file)
@@ -951,7 +951,7 @@ void TestPerformanceRandomIterator(Draw_Interpretor& di)
 
     // check that result is the same
     if ( ! std::equal (aVector->begin(), aVector->end(), aCollec->begin()) )
-      di << "Error: sequences are not the same at the end!" << "\n";
+      di << "Error: sequences are not the same at the end!\n";
 
     delete aVector;
     delete aCollec;
@@ -1003,7 +1003,7 @@ void TestPerformanceForwardIterator(Draw_Interpretor& di)
 
     // check that result is the same
     if ( ! std::equal (aVector->begin(), aVector->end(), aCollec->begin()) )
-      di << "Error: sequences are not the same at the end!" << "\n";
+      di << "Error: sequences are not the same at the end!\n";
 
     delete aVector;
     delete aCollec;
@@ -1055,7 +1055,7 @@ void TestPerformanceBidirIterator(Draw_Interpretor& di)
 
     // check that result is the same
     if ( ! std::equal (aVector->begin(), aVector->end(), aCollec->begin()) )
-      di << "Error: sequences are not the same at the end!" << "\n";
+      di << "Error: sequences are not the same at the end!\n";
 
     delete aVector;
     delete aCollec;
@@ -1140,33 +1140,33 @@ void TestPerformanceMapAccess(Draw_Interpretor& di)
 //=======================================================================
 static Standard_Integer QANTestNCollectionPerformance (Draw_Interpretor& di, Standard_Integer, const char**)
 {
-  di << "Testing performance (Size | STL time | OCCT time | STL/OCCT boost)" << "\n";
+  di << "Testing performance (Size | STL time | OCCT time | STL/OCCT boost)\n";
 
-  di << "\n" << "std::vector vs NCollection_Array1 (sort):" << "\n\n";
+  di << "\nstd::vector vs NCollection_Array1 (sort):\n\n";
   TestPerformanceRandomIterator<NCollection_Array1<double>, std::vector<double> >(di);
 
-  di << "\n" << "std::vector vs NCollection_Vector (sort):" << "\n\n";
+  di << "\nstd::vector vs NCollection_Vector (sort):\n\n";
   TestPerformanceRandomIterator<NCollection_Vector<double>, std::vector<double> >(di);
 
-  di << "\n" << "std::vector vs NCollection_Array1 (replace):" << "\n\n";
+  di << "\nstd::vector vs NCollection_Array1 (replace):\n\n";
   TestPerformanceForwardIterator<NCollection_Array1<double>, std::vector<double> >(di);
 
-  di << "\n" << "std::vector vs NCollection_Vector (replace):" << "\n\n";
+  di << "\nstd::vector vs NCollection_Vector (replace):\n\n";
   TestPerformanceForwardIterator<NCollection_Vector<double>, std::vector<double> >(di);
 
-  di << "\n" << "std::list vs NCollection_List (replace):" << "\n\n";
+  di << "\nstd::list vs NCollection_List (replace):\n\n";
   TestPerformanceForwardIterator<NCollection_List<double>, std::list<double> >(di);
 
-  di << "\n" << "std::list vs NCollection_Sequence (replace):" << "\n\n";
+  di << "\nstd::list vs NCollection_Sequence (replace):\n\n";
   TestPerformanceForwardIterator<NCollection_Sequence<double>, std::list<double> >(di);
 
-  di << "\n" << "std::list vs NCollection_Sequence (reverse):" << "\n\n";
+  di << "\nstd::list vs NCollection_Sequence (reverse):\n\n";
   TestPerformanceBidirIterator<NCollection_Sequence<double>, std::list<double> >(di);
 
-  di << "\n" << "std::set vs NCollection_Map (search):" << "\n\n";
+  di << "\nstd::set vs NCollection_Map (search):\n\n";
   TestPerformanceMapAccess<NCollection_Map<int>, int>(di);
 
-  di << "\n" << "std::set vs NCollection_IndexedMap (search):" << "\n\n";
+  di << "\nstd::set vs NCollection_IndexedMap (search):\n\n";
   TestPerformanceMapAccess<NCollection_IndexedMap<int>, int>(di);
 
   return 0;
index 06a642400c855656f5f0093384c71e2760d11011..19655dde863759a4b45f24b0a0cb830e10115aee 100644 (file)
@@ -592,13 +592,13 @@ static void TestIndexedDataMap  (QANCollection_IDMapFunc& theM)
 Standard_Integer CheckArguments1(Draw_Interpretor& di, Standard_Integer argc, const char ** argv, Standard_Integer& Lower, Standard_Integer& Upper)
 {
   if ( argc != 3) {
-    di << "Usage : " << argv[0] << " Lower Upper" << "\n";
+    di << "Usage : " << argv[0] << " Lower Upper\n";
     return 1;
   }
   Lower = Draw::Atoi(argv[1]);
   Upper = Draw::Atoi(argv[2]);
   if ( Lower > Upper ) {
-    di << "Lower > Upper" << "\n";
+    di << "Lower > Upper\n";
     return 1;
   }
   return 0;
@@ -611,7 +611,7 @@ Standard_Integer CheckArguments1(Draw_Interpretor& di, Standard_Integer argc, co
 Standard_Integer CheckArguments2(Draw_Interpretor& di, Standard_Integer argc, const char ** argv, Standard_Integer& LowerRow, Standard_Integer& UpperRow, Standard_Integer& LowerCol, Standard_Integer& UpperCol)
 {
   if ( argc != 5) {
-    di << "Usage : " << argv[0] << " LowerRow UpperRow LowerCol UpperCol" << "\n";
+    di << "Usage : " << argv[0] << " LowerRow UpperRow LowerCol UpperCol\n";
     return 1;
   }
   LowerRow = Draw::Atoi(argv[1]);
@@ -619,11 +619,11 @@ Standard_Integer CheckArguments2(Draw_Interpretor& di, Standard_Integer argc, co
   LowerCol = Draw::Atoi(argv[3]);
   UpperCol = Draw::Atoi(argv[4]);
   if ( LowerRow > UpperRow ) {
-    di << "LowerRow > UpperRow" << "\n";
+    di << "LowerRow > UpperRow\n";
     return 1;
   }
   if ( LowerCol > UpperCol ) {
-    di << "LowerCol UpperCol> " << "\n";
+    di << "LowerCol UpperCol> \n";
     return 1;
   }
   return 0;
index 71ed386248b05910f437656977e5e5a1c18f89a8..c17e32c59baa3af914ac16dd2e83908311275c8e 100644 (file)
@@ -114,7 +114,7 @@ static Standard_Integer QANewDBRepNaming_CheckNaming(Draw_Interpretor& di,Standa
     TDF_Label L2;
     DDF::AddLabel(DF, a[5], L2);
     if (!L2.FindAttribute(TNaming_NamedShape::GetID(), atiNS)) {
-      di<<"Error: Cannot find shape on label."<<"\n";
+      di<<"Error: Cannot find shape on label.\n";
       return 1;
     }
     amyNS = atiNS;
@@ -124,12 +124,12 @@ static Standard_Integer QANewDBRepNaming_CheckNaming(Draw_Interpretor& di,Standa
   if (!strcmp(a[4],"Viewer"))
     aSelectedShape = ViewerTest::PickShape(TopAbs_SHAPE);
   else{
-    di<<"Error: Incorrect argument #4"<<"\n";
+    di<<"Error: Incorrect argument #4\n";
     return 1;
   }
 
   if (aSelectedShape.IsNull()) {
-    di<<"Nothing has been selected ... try again"<<"\n";
+    di<<"Nothing has been selected ... try again\n";
     return 1;
   }
 
@@ -152,21 +152,21 @@ static Standard_Integer QANewDBRepNaming_CheckNaming(Draw_Interpretor& di,Standa
       OCC_CATCH_SIGNALS
       if(SL.Select(aSubShape, aSelectedShape) == Standard_False) {
        //    if(SL.Select(aSubShape, amyNS->Get()) == Standard_False) 
-       di << "Selection error!!!" << "\n";
+       di << "Selection error!!!\n";
        return 1;
       }
       Handle(TNaming_NamedShape) aNS;
       if (!aSubLabel.FindAttribute(TNaming_NamedShape::GetID(), aNS)) {
-       di<<"Selection didn't produced a Named Shape ..."<<"\n";
+       di<<"Selection didn't produced a Named Shape ...\n";
        return 1;
       }
       const TopoDS_Shape& aResultOfSelection = TNaming_Tool::GetShape(aNS);
       if (!aSubShape.IsSame(aResultOfSelection)) {
-       di<<"Failure of selection"<<"\n";
+       di<<"Failure of selection\n";
        return 1;
       } 
     } catch (Standard_Failure) {
-      di<<"!!! Solving Failed !!!" << "\n";
+      di<<"!!! Solving Failed !!!\n";
       continue;
     }
     
@@ -190,7 +190,7 @@ static Standard_Integer QANewDBRepNaming_CheckNaming(Draw_Interpretor& di,Standa
   aTrsf.SetTranslation(aTranslation);
   TopLoc_Location aLoc(aTrsf);
   const TDF_Label& anOriginLabel = TNaming_Tool::NamedShape(aSelectedShape, L)->Label();
-  if (anOriginLabel.IsNull()) di<<"Origin is null"<<"\n";
+  if (anOriginLabel.IsNull()) di<<"Origin is null\n";
 //  TNaming::Displace(anOriginLabel, aLoc);
 //  cout<<"Translate label ";anOriginLabel.EntryDump(cout);cout<<endl;
   TDF_ChildIterator Labelitr(L.Root(), Standard_False);
@@ -321,10 +321,10 @@ static Standard_Integer QANewDBRepNaming_CheckSelectShape(Draw_Interpretor& di,
   TDF_Label L;
   DDF::AddLabel(DF, a[2], L);
 
-  di<<"SELECT A SUB-SHAPE ..."<<"\n"; 
+  di<<"SELECT A SUB-SHAPE ...\n"; 
   TopoDS_Shape aSelectedShape = ViewerTest::PickShape((TopAbs_ShapeEnum)Draw::Atoi(a[3]));
   if (aSelectedShape.IsNull()) {
-    di<<"QANewDBRepNaming_CheckSelectShape(): Nothing is selected ..."<<"\n";
+    di<<"QANewDBRepNaming_CheckSelectShape(): Nothing is selected ...\n";
     return 1;
   }
   // Find the context:
index c45dde8193e51a5bb0c42ba47c013424f5b78d3a..c235b3cd8a4c89673ddccddb94ab6e92a7a15638 100644 (file)
@@ -140,7 +140,7 @@ static Standard_Integer QANewDBRepNaming_NameBooleanOperationFeat (Draw_Interpre
     break;
   }  
   default:
-    di<<"QANewDBRepNaming_NameBooleanOperation The type of operation must be 1 - fuse, 2 - cut or 3 - common"<<"\n";
+    di<<"QANewDBRepNaming_NameBooleanOperation The type of operation must be 1 - fuse, 2 - cut or 3 - common\n";
   }
 
   return 0;
index 21b553081b2172f2d0820b7fbda57dbe4063fed0..29221fa30e33c0ee341e63cd5ada51a78253286a 100644 (file)
@@ -44,29 +44,29 @@ static int dejadraw = 0;
 static Standard_Integer LocSet (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 2) {
-    di << argv[0] << "LocSet a [b [c]]: set location for shape \"a\":" << "\n";
-    di << "- to Null if one argument is given" << "\n";
-    di << "- to location of shape b if two arguments are given" << "\n";
-    di << "- to difference of locations of shapes b and c if three arguments are given" << "\n";
+    di << argv[0] << "LocSet a [b [c]]: set location for shape \"a\":\n";
+    di << "- to Null if one argument is given\n";
+    di << "- to location of shape b if two arguments are given\n";
+    di << "- to difference of locations of shapes b and c if three arguments are given\n";
     return 1;
   }
 
   TopoDS_Shape a = DBRep::Get ( argv[1] );
   if ( a.IsNull() ) {
-    di << "No shape named \"" << argv[1] << "\" found" << "\n";
+    di << "No shape named \"" << argv[1] << "\" found\n";
     return 1;
   }
   TopLoc_Location L;
   if ( argc >2 ) {
     TopoDS_Shape b = DBRep::Get ( argv[2] );
     if ( b.IsNull() ) {
-      di << "No shape named \"" << argv[2] << "\" found" << "\n";
+      di << "No shape named \"" << argv[2] << "\" found\n";
       return 1;
     }
     if ( argc >3 ) {
       TopoDS_Shape c = DBRep::Get ( argv[3] );
       if ( c.IsNull() ) {
-       di << "No shape named \"" << argv[3] << "\" found" << "\n";
+       di << "No shape named \"" << argv[3] << "\" found\n";
        return 1;
       }
       L = b.Location().Multiplied ( c.Location().Inverted() );
@@ -87,19 +87,19 @@ static Standard_Integer LocSet (Draw_Interpretor& di, Standard_Integer argc, con
 static Standard_Integer LocDump (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 2) {
-    di << argv[0] << "LocDump a: dump location of shape \"a\"" << "\n";
+    di << argv[0] << "LocDump a: dump location of shape \"a\"\n";
     return 1;
   }
 
   TopoDS_Shape a = DBRep::Get ( argv[1] );
   if ( a.IsNull() ) {
-    di << "No shape named \"" << argv[1] << "\" found" << "\n";
+    di << "No shape named \"" << argv[1] << "\" found\n";
     return 1;
   }
 
   TopLoc_Location L = a.Location();
-  di << "Location of shape " << argv[1] << ":" << "\n";
-  di << "Results in:" << "\n";
+  di << "Location of shape " << argv[1] << ":\n";
+  di << "Results in:\n";
   gp_Trsf T = L.Transformation();
   TopLoc_Location l ( T );
   Standard_SStream aSStream;
index 8495e3685f58d13df2d6c95fe0f41f1f4068f9cd..17d032c3060bb2940742b866eb9ce38c7a689949 100644 (file)
@@ -69,7 +69,7 @@ static Standard_Integer tolerance
                    <<  "myshape [mode] valmin : sub-shapes over valmin\n"
                      <<"myshape [mode] valmin valmax : between valmin and valmax\n"
                        <<"myshape [mode] 0 valmax : below valmax\n"
-                         <<"  more : all shapes(D)  v vertices  e edges  f faces  c combined(faces)"<<"\n";
+                         <<"  more : all shapes(D)  v vertices  e edges  f faces  c combined(faces)\n";
                  return (argc < 2 ? 0 : 1 /* Error */);  }
   Standard_CString arg1 = argv[1];
   TopoDS_Shape Shape = DBRep::Get(arg1);
@@ -132,11 +132,11 @@ static Standard_Integer tolerance
 static Standard_Integer projface
   (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
-  if (argc < 4) { di<<"Give FACE name and X Y [Z]"<<"\n"; return 1 /* Error */; }
+  if (argc < 4) { di<<"Give FACE name and X Y [Z]\n"; return 1 /* Error */; }
   Standard_CString arg1 = argv[1];
   TopoDS_Shape Shape = DBRep::Get(arg1);
   if (Shape.IsNull()) { di<<"Shape unknown : "<<arg1<<"\n"; return 1 /* Error */; }
-  if (Shape.ShapeType() != TopAbs_FACE) { di<<"Not a face"<<"\n"; return 1 /* Error */; }
+  if (Shape.ShapeType() != TopAbs_FACE) { di<<"Not a face\n"; return 1 /* Error */; }
   TopoDS_Face F = TopoDS::Face (Shape);
   Handle(Geom_Surface) thesurf = BRep_Tool::Surface (F);  // pas locface
 //  On y va
@@ -158,7 +158,7 @@ static Standard_Integer projface
 
     GeomAPI_ProjectPointOnSurf proj(P3D, thesurf, uf-du, ul+du, vf-dv, vl+dv);
     Standard_Integer sol, nPSurf = proj.NbPoints();
-    di<<" Found "<<nPSurf<<" Points"<<"\n";
+    di<<" Found "<<nPSurf<<" Points\n";
     for (sol = 1; sol <= nPSurf; sol ++) {
       di<<"n0 "<<sol<<" Distance "<<proj.Distance(sol);
       proj.Parameters(sol, U,V);
@@ -188,7 +188,7 @@ static Standard_Integer projcurve
   (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
 //  admet une EDGE ou une CURVE
-  if (argc < 5) { di<<"Give : EDGE X Y Z  or  CURVE3D X Y Z  or  CURVE3D first last X Y Z"<<"\n";  return 1 /* Error */; }
+  if (argc < 5) { di<<"Give : EDGE X Y Z  or  CURVE3D X Y Z  or  CURVE3D first last X Y Z\n";  return 1 /* Error */; }
   const char * arg1 = argv[1];
   Standard_Integer i0 = 0;
   TopoDS_Shape Shape = DBRep::Get(arg1);
@@ -200,13 +200,13 @@ static Standard_Integer projcurve
       C = BRep_Tool::Curve (E,cf,cl);
       di<<"Edge "<<arg1<<" Params from "<<cf<<" to "<<cl<<"\n";
     } else {
-      di<<"SHAPE "<<arg1<<" Not an EDGE"<<"\n"; return 1 /* Error */;
+      di<<"SHAPE "<<arg1<<" Not an EDGE\n"; return 1 /* Error */;
     }
   } else {
     const char* a1 = arg1;
     C = DrawTrSurf::GetCurve (a1);
     if (C.IsNull())
-      {  di<<arg1<<" neither EDGE nor CURVE 3D"<<"\n"; return 1 /* Error */;  }
+      {  di<<arg1<<" neither EDGE nor CURVE 3D\n"; return 1 /* Error */;  }
     cf = C->FirstParameter();  cl = C->LastParameter();
     if (argc >= 7) { cf = Draw::Atof (argv[2]);  cl = Draw::Atof (argv[3]); i0 = 2; }
     di<<"Curve 3D "<<arg1<<" Params from "<<cf<<" to "<<cl<<"\n";
@@ -224,18 +224,18 @@ static Standard_Integer projcurve
 
   dist = ShapeAnalysis_Curve().Project (C,P3D,BRepBuilderAPI::Precision(),res,param, cf,cl);
   res.Coord(X,Y,Z);
-  di<<"Result : "<<X<<"  "<<Y<<"  "<<Z<<"\n"<<"Param = "<<param<<"  Gap = "<<dist<<"\n";
+  di<<"Result : "<<X<<"  "<<Y<<"  "<<Z<<"\nParam = "<<param<<"  Gap = "<<dist<<"\n";
   return 0;
 }
 
 static Standard_Integer anaface
   (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
-  if (argc < 2) { di<<"donner un nom de face"<<"\n"; return 1 /* Error */; }
+  if (argc < 2) { di<<"donner un nom de face\n"; return 1 /* Error */; }
   Standard_CString arg1 = argv[1];
   TopoDS_Shape Shape = DBRep::Get(arg1);
-  if (Shape.IsNull()) { di<<arg1<<" inconnu"<<"\n"; return 1 /* Error */; }
-//  if (Shape.ShapeType() != TopAbs_FACE) { di<<"Pas une FACE"<<"\n"; return 1 /* Error */; }
+  if (Shape.IsNull()) { di<<arg1<<" inconnu\n"; return 1 /* Error */; }
+//  if (Shape.ShapeType() != TopAbs_FACE) { di<<"Pas une FACE\n"; return 1 /* Error */; }
 
 //  On regarde les wires, sont-ils bien fermes
   Standard_Integer nbw = 0, nbe = 0;
@@ -252,7 +252,7 @@ static Standard_Integer anaface
     }
     di<<"\n";
   }
-  else { di<<"Analyse Wires, Ignore Faces"<<"\n"; }
+  else { di<<"Analyse Wires, Ignore Faces\n"; }
   Standard_Boolean iasurf = !surface.IsNull();
 //:sw  if (!Face.IsNull()) STW.SetFace (Face);
 //:sw  else STW.SetPrecision (BRepBuilderAPI::Precision());
@@ -260,8 +260,8 @@ static Standard_Integer anaface
   for (TopExp_Explorer exp(Shape,TopAbs_WIRE); exp.More(); exp.Next()) {
     TopoDS_Wire Wire = TopoDS::Wire   (exp.Current());  nbw ++;  nbe = 0;
     di<<"WIRE "<<nbw;
-    if (Wire.Orientation() == TopAbs_FORWARD) di<<" (FWD)"<<"\n";
-    else di<<" (REV)"<<"\n";
+    if (Wire.Orientation() == TopAbs_FORWARD) di<<" (FWD)\n";
+    else di<<" (REV)\n";
     gp_Pnt   fin,debut;
     gp_Pnt2d finuv,debuv;  gp_XY baseuv;
     TopoDS_Vertex fv,lv;
@@ -271,7 +271,7 @@ static Standard_Integer anaface
     Standard_Real u1= 0.,u2= 0.,v1= 0.,v2= 0.,umin= 0.,umax= 0.,vmin= 0.,vmax= 0., totcross= 0.;
 
 //:sw    STW.ClearWire();  STW.Load (Wire);
-//    if (STW.Reorder()) di<<"Wire reordered to explore"<<"\n";
+//    if (STW.Reorder()) di<<"Wire reordered to explore\n";
 //    for (TopExp_Explorer exe(Wire.Oriented(TopAbs_FORWARD),TopAbs_EDGE); exe.More(); exe.Next()) {
 //      TopoDS_Edge Edge = TopoDS::Edge (exe.Current());  nbe ++;
 //:sw    for (nbe = 1; nbe <= STW.NbEdges(); nbe ++) {
@@ -283,14 +283,14 @@ static Standard_Integer anaface
       di<<"Wire "<<nbw<<", Edge "<<nbe;
       if (Edge.Orientation() == TopAbs_FORWARD) di<<" (FWD";
       else di<<" (REV";
-      di<<" , Tol= "<<BRep_Tool::Tolerance (Edge)<<" )"<<"\n";
+      di<<" , Tol= "<<BRep_Tool::Tolerance (Edge)<<" )\n";
       Standard_Real f3d,l3d,f2d,l2d;
       Handle(Geom_Curve) curve3d = BRep_Tool::Curve (Edge,f3d,l3d);
       Handle(Geom2d_Curve) curve2d;
       if (iasurf) curve2d = BRep_Tool::CurveOnSurface(Edge,Face,f2d,l2d);
       Standard_Boolean ia2d = !curve2d.IsNull(); iaw2d |= ia2d;
-      if (!ia2d) di<<"--  No PCurve"<<"\n";
-      if (curve3d.IsNull()) di<<"-- no Curve 3d"<<"\n";
+      if (!ia2d) di<<"--  No PCurve\n";
+      if (curve3d.IsNull()) di<<"-- no Curve 3d\n";
 
 //      On va tacher de calculer les positions et les comparer
       gp_Pnt2d fuv,luv;
@@ -357,32 +357,32 @@ static Standard_Integer anaface
       Standard_Real difu = umax - umin, difv = vmax - vmin;
       GProp_GProps G;
       BRepGProp::SurfaceProperties(Face,G);
-      if (G.Mass() > 0) di<<"GProps:Mass Out"<<"\n";
-      else di<<"GProps:Mass In"<<"\n";
+      if (G.Mass() > 0) di<<"GProps:Mass Out\n";
+      else di<<"GProps:Mass In\n";
 ///  return (G.Mass() > 0);
       BRepTopAdaptor_FClass2d fcl (Face,BRep_Tool::Tolerance(Face));
-      if (fcl.PerformInfinitePoint () == TopAbs_OUT) di<<"Classifier Infinite : Out"<<"\n";
-      else di<<"Classifier Infinite : In"<<"\n";
+      if (fcl.PerformInfinitePoint () == TopAbs_OUT) di<<"Classifier Infinite : Out\n";
+      else di<<"Classifier Infinite : In\n";
       gp_Pnt2d pcl;
       pcl.SetCoord(umin-difu,vmin-difv);
-      if (fcl.Perform (pcl) == TopAbs_OUT) di<<"Classifier UMin-VMin : Out"<<"\n";
+      if (fcl.Perform (pcl) == TopAbs_OUT) di<<"Classifier UMin-VMin : Out\n";
       pcl.SetCoord(umin-difu,vmax+difv);
-      if (fcl.Perform (pcl) == TopAbs_OUT) di<<"Classifier UMin-VMax : Out"<<"\n";
+      if (fcl.Perform (pcl) == TopAbs_OUT) di<<"Classifier UMin-VMax : Out\n";
       pcl.SetCoord(umax+difu,vmin-difv);
-      if (fcl.Perform (pcl) == TopAbs_OUT) di<<"Classifier UMax-VMin : Out"<<"\n";
+      if (fcl.Perform (pcl) == TopAbs_OUT) di<<"Classifier UMax-VMin : Out\n";
       pcl.SetCoord(umax+difu,vmax+difv);
-      if (fcl.Perform (pcl) == TopAbs_OUT) di<<"Classifier UMax-VMax : Out"<<"\n";
+      if (fcl.Perform (pcl) == TopAbs_OUT) di<<"Classifier UMax-VMax : Out\n";
     }
   }
-  if (ShapeAnalysis::IsOuterBound (Face)) di<<"ShapeAnalysis: Outer Bound"<<"\n";
-  else di<<"ShapeAnalysis: Not Outer Bound"<<"\n";
-  di<<" Total "<<nbw<<" Wire(s)"<<"\n";
+  if (ShapeAnalysis::IsOuterBound (Face)) di<<"ShapeAnalysis: Outer Bound\n";
+  else di<<"ShapeAnalysis: Not Outer Bound\n";
+  di<<" Total "<<nbw<<" Wire(s)\n";
   return 0;
 }
 
 static Standard_Integer XSHAPE_statshape(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
-  if (argc < 2) { di<<"ShapeName; + options : prefix for particular cases : what to get"<<"\n"; return 1 /* Error */; }
+  if (argc < 2) { di<<"ShapeName; + options : prefix for particular cases : what to get\n"; return 1 /* Error */; }
   Standard_CString arg1 = argv[1];
   Standard_CString arg2 = NULL;
   Standard_CString arg3 = NULL;
@@ -404,61 +404,61 @@ static Standard_Integer XSHAPE_statshape(Draw_Interpretor& di, Standard_Integer
   }
   analyzer.Perform(Shape);
   
-  di<<"Count    Item\n-----    ----"<<"\n";
+  di<<"Count    Item\n-----    ----\n";
   nb = analyzer.NbEdges();
-  if(nb>0) di<<nb<<"   "<<" EDGE (Oriented)"<<"\n";
+  if(nb>0) di<<nb<<"    EDGE (Oriented)\n";
   nb = analyzer.NbSharedEdges();
-  if(nb>0) di<<nb<<"   "<<" EDGE (Shared)"<<"\n";
+  if(nb>0) di<<nb<<"    EDGE (Shared)\n";
   nb = analyzer.NbFreeEdges();
-  if(nb>0) di<<nb<<"   "<<" EDGE (Free)"<<"\n";
+  if(nb>0) di<<nb<<"    EDGE (Free)\n";
   nb = analyzer.NbFaces();
-  if(nb>0) di<<nb<<"   "<<" FACE"<<"\n";
+  if(nb>0) di<<nb<<"    FACE\n";
   nb = analyzer.NbFreeFaces();
-  if(nb>0) di<<nb<<"   "<<" FACE (Free)"<<"\n";
+  if(nb>0) di<<nb<<"    FACE (Free)\n";
   nb = analyzer.NbFreeWires();
-  if(nb>0) di<<nb<<"   "<<" WIRE (Free)"<<"\n";
+  if(nb>0) di<<nb<<"    WIRE (Free)\n";
   nb = analyzer.NbShells();
-  if(nb>0) di<<nb<<"   "<<" SHELL"<<"\n";
+  if(nb>0) di<<nb<<"    SHELL\n";
   nb = analyzer.NbSolids();
-  if(nb>0) di<<nb<<"   "<<" SOLID"<<"\n";
+  if(nb>0) di<<nb<<"    SOLID\n";
   nb = analyzer.NbVertices();
-  if(nb>0) di<<nb<<"   "<<" VERTEX (Oriented)"<<"\n";
+  if(nb>0) di<<nb<<"    VERTEX (Oriented)\n";
   nb = analyzer.NbSharedVertices();
-  if(nb>0) di<<nb<<"   "<<" VERTEX (Shared)"<<"\n";
+  if(nb>0) di<<nb<<"    VERTEX (Shared)\n";
   nb = analyzer.NbWires();
-  if(nb>0) di<<nb<<"   "<<" WIRE"<<"\n";
+  if(nb>0) di<<nb<<"    WIRE\n";
   nb = analyzer.NbFaceWithSevWires();
-  if(nb>0) di<<nb<<"   "<<"Face with more than one wire"<<"\n";
+  if(nb>0) di<<nb<<"   Face with more than one wire\n";
   nb = analyzer.NbNoPCurve();
-  if(nb>0) di<<nb<<"   "<<"No pcurve"<<"\n";
+  if(nb>0) di<<nb<<"   No pcurve\n";
   nb = analyzer.NbSolidsWithVoids();
-  if(nb>0) di<<nb<<"   "<<"SOLID with voids"<<"\n";
+  if(nb>0) di<<nb<<"   SOLID with voids\n";
   nb = analyzer.NbWireWitnSeam();
-  if(nb>0) di<<nb<<"   "<<"Wire(s) with one seam edge"<<"\n";
+  if(nb>0) di<<nb<<"   Wire(s) with one seam edge\n";
   nb = analyzer.NbWireWithSevSeams();
-  if(nb>0) di<<nb<<"   "<<"Wire(s) with several seam edges"<<"\n";
+  if(nb>0) di<<nb<<"   Wire(s) with several seam edges\n";
   nb = analyzer.NbBigSplines();
-  if(nb>0) di<<nb<<"   "<<"bigspl : BSpline > 8192 poles"<<"\n";
+  if(nb>0) di<<nb<<"   bigspl : BSpline > 8192 poles\n";
   nb = analyzer.NbBezierSurf();
-  if(nb>0) di<<nb<<"   "<<"bezsur : BezierSurface"<<"\n";
+  if(nb>0) di<<nb<<"   bezsur : BezierSurface\n";
   nb = analyzer.NbBSplibeSurf();
-  if(nb>0) di<<nb<<"   "<<"bspsur : BSplineSurface"<<"\n";
+  if(nb>0) di<<nb<<"   bspsur : BSplineSurface\n";
   nb = analyzer.NbC0Curves();
-  if(nb>0) di<<nb<<"   "<<"c0curv : Curve Only C0"<<"\n";
+  if(nb>0) di<<nb<<"   c0curv : Curve Only C0\n";
   nb = analyzer.NbC0Surfaces();
-  if(nb>0) di<<nb<<"   "<<"c0surf : Surface Only C0"<<"\n";
+  if(nb>0) di<<nb<<"   c0surf : Surface Only C0\n";
   nb = analyzer.NbIndirectSurf();
-  if(nb>0) di<<nb<<"   "<<"indsur : Indirect Surface"<<"\n";
+  if(nb>0) di<<nb<<"   indsur : Indirect Surface\n";
   nb = analyzer.NbOffsetCurves();
-  if(nb>0) di<<nb<<"   "<<"ofcur  : Offset Curve(s)"<<"\n";
+  if(nb>0) di<<nb<<"   ofcur  : Offset Curve(s)\n";
   nb = analyzer.NbOffsetSurf();
-  if(nb>0) di<<nb<<"   "<<"ofsur  : Offset Surface"<<"\n";
+  if(nb>0) di<<nb<<"   ofsur  : Offset Surface\n";
   nb = analyzer.NbTrimmedCurve2d();
-  if(nb>0) di<<nb<<"   "<<"trc2d  : Trimmed Curve2d"<<"\n";
+  if(nb>0) di<<nb<<"   trc2d  : Trimmed Curve2d\n";
   nb = analyzer.NbTrimmedCurve3d();
-  if(nb>0) di<<nb<<"   "<<"trc3d  : Trimmed Curve3d"<<"\n";
+  if(nb>0) di<<nb<<"   trc3d  : Trimmed Curve3d\n";
   nb = analyzer.NbTrimSurf();
-  if(nb>0) di<<nb<<"   "<<"trimsu : RectangularTrimmedSurface"<<"\n";
+  if(nb>0) di<<nb<<"   trimsu : RectangularTrimmedSurface\n";
   
   if(arg3 ==NULL) return 0;
   
@@ -519,12 +519,12 @@ static Standard_Integer XSHAPE_comptoledge
            "Deviation is computed by nbpoints sample points (default is 371).\n"
            "Gives the max, min and average value on all edges in the shape\n"
            "If prefix is defined, edges with maximal real tolerance and\n"
-           "relation (and corresponding faces) will be saved with such names\n" << "\n"; 
+           "relation (and corresponding faces) will be saved with such names\n\n"; 
     return 0; 
   }
 
   TopoDS_Shape shape = DBRep::Get(argv[1]);
-  if (shape.IsNull()) { di << "Shape name \"" << argv[1] << "\" is invalid" << "\n"; return 1; }
+  if (shape.IsNull()) { di << "Shape name \"" << argv[1] << "\" is invalid\n"; return 1; }
   Standard_Integer nbpnts = 371;
   Standard_CString prefix = 0;
   if ( argc >2 ) {
@@ -558,7 +558,7 @@ static Standard_Integer XSHAPE_comptoledge
     }
     num++;
   }
-  if ( ! num ) { di << "No edges found in the shape" << "\n"; return 1; }
+  if ( ! num ) { di << "No edges found in the shape\n"; return 1; }
   
   di << "Edges tolerance computed by " << nbpnts << " points: \n"
           "MAX=" << max << " AVG=" << ave/num << " MIN=" << min << "\n"; 
@@ -626,11 +626,11 @@ static Standard_Integer freebounds (Draw_Interpretor& di,
   TopoDS_Shape wires = F.GetClosedWires();
   Sprintf (name, "%s_c", a[1]);
   DBRep::Set (name, wires);
-  di << name << " - closed wires" << "\n";
+  di << name << " - closed wires\n";
   wires = F.GetOpenWires();
   Sprintf (name, "%s_o", a[1]);
   DBRep::Set (name, wires);
-  di << name << " - open wires" << "\n";
+  di << name << " - open wires\n";
 
   return 0;
 }
@@ -664,7 +664,7 @@ static Standard_Integer FreeBoundsProps(Draw_Interpretor& di,
                                        Standard_Integer n, const char** a)
 {
   if ( (n < 2)||(n > 5) ) {
-    di<<"Usage : freeprops shapename [tolerance [splitclosed [splitopen]]]"<<"\n";
+    di<<"Usage : freeprops shapename [tolerance [splitclosed [splitopen]]]\n";
     return 1;
   }
 
@@ -690,10 +690,10 @@ static Standard_Integer FreeBoundsProps(Draw_Interpretor& di,
 
   Standard_Integer nb = analyzer.NbClosedFreeBounds();
   di<<"\n";
-  di<<" \t"<<"Area mm2"<<"\t"<<"Length mm"<<"\t"<<"Ratio L/W"<<"\t"<<"Width mm"<<"\t"<<"Nb noth"<<"\n";
+  di<<" \tArea mm2\tLength mm\tRatio L/W\tWidth mm\tNb noth\n";
   B.MakeCompound(closed);
   if (nb) {
-    di<<"Closed bounds properties"<<"\n";
+    di<<"Closed bounds properties\n";
     for (Standard_Integer i=1; i <= nb; i++) {
       Handle(ShapeAnalysis_FreeBoundData) fbd = analyzer.ClosedFreeBound(i);
       PrintProps(i, fbd, di);
@@ -704,7 +704,7 @@ static Standard_Integer FreeBoundsProps(Draw_Interpretor& di,
   nb = analyzer.NbOpenFreeBounds();
   B.MakeCompound(open);
   if (nb) {
-    di<<"Open bounds properties"<<"\n";
+    di<<"Open bounds properties\n";
     for (Standard_Integer i=1; i <= nb; i++) {
       Handle(ShapeAnalysis_FreeBoundData) fbd = analyzer.OpenFreeBound(i);
       PrintProps(i, fbd, di);
@@ -717,7 +717,7 @@ static Standard_Integer FreeBoundsProps(Draw_Interpretor& di,
   di << name << " - closed wires,  ";
   DBRep::Set(name, closed);
   Sprintf (name, "%s_o",a[1]);
-  di << name << " - closed wires " << "\n";
+  di << name << " - closed wires \n";
   DBRep::Set(name, open);
   return 0;
 }
@@ -748,11 +748,11 @@ static Standard_Integer closefreebounds (Draw_Interpretor& di,
   TopoDS_Shape wires = F.GetClosedWires();
   Sprintf (name, "%s_c", a[1]);
   DBRep::Set (name, wires);
-  di << name << " - closed wires" << "\n";
+  di << name << " - closed wires\n";
   wires = F.GetOpenWires();
   Sprintf (name, "%s_o", a[1]);
   DBRep::Set (name, wires);
-  di << name << " - open wires" << "\n";
+  di << name << " - open wires\n";
 
   return 0;
 }
@@ -824,11 +824,11 @@ static Standard_Integer getareacontour (Draw_Interpretor& di,
   if (n < 2) return 1;
   TopoDS_Shape shape = DBRep::Get(a[1]);
   if (shape.IsNull()) {
-    di<<"Shape is not defined"<<"\n";
+    di<<"Shape is not defined\n";
     return 1;
   }
   if(shape.ShapeType() != TopAbs_WIRE) {
-    di<<"invalid type of argument"<<"\n";
+    di<<"invalid type of argument\n";
     return 1;
   }
   //Handle(ShapeExtend_WireData) asewd = new ShapeExtend_WireData(TopoDS::Wire(shape));
@@ -843,7 +843,7 @@ static Standard_Integer checkselfintersection
 {
   if (argc < 2) 
   { 
-      di<<"Call please \"checkselfintersection wire [face]\""<<"\n";  
+      di<<"Call please \"checkselfintersection wire [face]\"\n";  
       return 1; 
   }
 
@@ -852,7 +852,7 @@ static Standard_Integer checkselfintersection
   TopoDS_Shape wire = DBRep::Get(arg1);
   if (wire.IsNull() || wire.ShapeType() != TopAbs_WIRE)
   { 
-      di<<"A null shape or not a wire is used."<<"\n";  
+      di<<"A null shape or not a wire is used.\n";  
       return 2; 
   }
 
@@ -864,7 +864,7 @@ static Standard_Integer checkselfintersection
       face = DBRep::Get(arg2);
       if (face.IsNull() || face.ShapeType() != TopAbs_FACE)
       { 
-          di<<"A null shape or not a face is used."<<"\n";  
+          di<<"A null shape or not a face is used.\n";  
           return 3; 
       }
   }
@@ -877,7 +877,7 @@ static Standard_Integer checkselfintersection
           face = mkFace.Face();
       else
       { 
-          di<<"Can't make a face for the wire. Provide please a face for analysis."<<"\n";  
+          di<<"Can't make a face for the wire. Provide please a face for analysis.\n";  
           return 4; 
       }
   }
@@ -886,9 +886,9 @@ static Standard_Integer checkselfintersection
   Standard_Boolean result = analyser.CheckSelfIntersection();
 
   if (result == Standard_True)
-      di<<"A self-intersecting wire."<<"\n";
+      di<<"A self-intersecting wire.\n";
   else
-      di<<"Not self-intersecting wire."<<"\n";
+      di<<"Not self-intersecting wire.\n";
   return 0;
 }
 
@@ -896,7 +896,7 @@ static Standard_Integer checkedge(Draw_Interpretor& di, Standard_Integer argc, c
 {
   if (argc < 2) 
   { 
-    di<<"Call please \"checkedge edge [face]\""<<"\n";  
+    di<<"Call please \"checkedge edge [face]\"\n";  
     return 1;
   }
 
@@ -905,7 +905,7 @@ static Standard_Integer checkedge(Draw_Interpretor& di, Standard_Integer argc, c
   TopoDS_Shape edge = DBRep::Get(arg1);
   if (edge.IsNull() || edge.ShapeType() != TopAbs_EDGE)
   { 
-    di<<"A null shape or not an edge is used."<<"\n";  
+    di<<"A null shape or not an edge is used.\n";  
     return 2;
   }
 
@@ -917,7 +917,7 @@ static Standard_Integer checkedge(Draw_Interpretor& di, Standard_Integer argc, c
     face = DBRep::Get(arg2);
     if (face.IsNull() || face.ShapeType() != TopAbs_FACE)
     { 
-      di<<"A null shape or not a face is used."<<"\n";  
+      di<<"A null shape or not a face is used.\n";  
       return 3;
     }
   }
index 0569c300dce236364dbbc7b4bfcec4d0bc270df4..4037073ec416499c699fe9551cf588b064ca2142 100644 (file)
@@ -70,15 +70,15 @@ static Standard_Integer ContToInteger( const GeomAbs_Shape Cont)
 
 static Standard_Integer directfaces(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
-  if (argc < 3) { di<<"Donner un nom de SHAPE + un nom de RESULTAT"<<"\n"; return 1 /* Error */; }
+  if (argc < 3) { di<<"Donner un nom de SHAPE + un nom de RESULTAT\n"; return 1 /* Error */; }
   Standard_CString arg1 = argv[1];
   Standard_CString arg2 = argv[2];
   TopoDS_Shape Shape = DBRep::Get(arg2);
   if (Shape.IsNull()) { di<<"Shape unknown : "<<arg2<<"\n"; return 1 /* Error */; }
 
   TopoDS_Shape result = ShapeCustom::DirectFaces (Shape);
-  if (result.IsNull()) { di<<"NO RESULT"<<"\n"; return 1; }
-  else if (result == Shape) { di<<"No modif"<<"\n"; return 0; }
+  if (result.IsNull()) { di<<"NO RESULT\n"; return 1; }
+  else if (result == Shape) { di<<"No modif\n"; return 0; }
   di<<"DirectFaces -> Result : "<<arg1<<"\n";
   DBRep::Set (arg1,result);
   return 0; // Done
@@ -271,7 +271,7 @@ static void expsurf(const Handle(Geom_Surface)& aSurface, TColStd_Array2OfIntege
 static Standard_Integer expshape(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc <4) {
-    di << "Incorrect number of arguments. Must be 3" << "\n";
+    di << "Incorrect number of arguments. Must be 3\n";
     return 1 /* Error */;
   }
   Standard_CString arg2 = argv[1];
@@ -290,7 +290,7 @@ static Standard_Integer expshape(Draw_Interpretor& di, Standard_Integer argc, co
     else if (strcmp(argv[k],"G1") == 0)  aCont3 = GeomAbs_C0;
     else if (strcmp(argv[k],"G2") == 0)  aCont3 = GeomAbs_C1;
     else {
-      di<< "Invalid argument Cont3e" << "\n"; return 1; }
+      di<< "Invalid argument Cont3e\n"; return 1; }
 
 
   }
@@ -339,7 +339,7 @@ static Standard_Integer expshape(Draw_Interpretor& di, Standard_Integer argc, co
   //if(NbSurf.Value(2,1) !=0)
   di<< "Number of Bezier surfaces with degree more then "<< Degree << " - " <<NbSurf.Value(2,1)<<"\n";
   //if(NbSurf.Value(2,3) !=0)
-  di<< "Number of Rational Bezier surfaces " << " - " <<NbSurf.Value(2,3)<<"\n";
+  di<< "Number of Rational Bezier surfaces  - " <<NbSurf.Value(2,3)<<"\n";
   //if(NbSurf.Value(2,4) !=0)
   di<< "Number of Bezier surfaces with continuity less than specified - " << NbSurf.Value(2,4)<<"\n";
 
@@ -359,7 +359,7 @@ static Standard_Integer expshape(Draw_Interpretor& di, Standard_Integer argc, co
   //if(NbCurv.Value(2,1) !=0)
   di<< "Number of Bezier curves with degree more then - "<< Degree << " - " <<NbCurv.Value(2,1)<<"\n";
   //if(NbCurv.Value(2,3) !=0)
-  di<< "Number of Rational Bezier curves " << " - " <<NbCurv.Value(2,3)<<"\n"; 
+  di<< "Number of Rational Bezier curves  - " <<NbCurv.Value(2,3)<<"\n"; 
   //if(NbCurv.Value(2,4) !=0)
   di<< "Number of  Bezier curves with less continuity - " << NbCurv.Value(2,4)<<"\n";
 
@@ -375,9 +375,9 @@ static Standard_Integer expshape(Draw_Interpretor& di, Standard_Integer argc, co
   // if(NbCurv2d.Value(1,4) !=0)
   di<< "Number of  BSpline pcurves with less continuity - " << NbCurv2d.Value(1,4)<<"\n";
   //if(NbCurv2d.Value(2,1) !=0)
-  di<< "Number of Bezier pcurves with degree more then "<< Degree <<" - " <<" - " <<NbCurv2d.Value(2,1)<<"\n";
+  di<< "Number of Bezier pcurves with degree more then "<< Degree <<" -  - " <<NbCurv2d.Value(2,1)<<"\n";
   //if(NbCurv2d.Value(2,3) !=0)
-  di<< "Number of Rational Bezier pcurves " << " - " <<NbCurv2d.Value(2,3)<<"\n";
+  di<< "Number of Rational Bezier pcurves  - " <<NbCurv2d.Value(2,3)<<"\n";
   //if(NbCurv2d.Value(2,4) !=0)
   di<< "Number of  Bezier pcurves with less continuity - " << NbCurv2d.Value(2,4)<<"\n";
 
@@ -389,7 +389,7 @@ static Standard_Integer expshape(Draw_Interpretor& di, Standard_Integer argc, co
 static Standard_Integer scaleshape(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc !=4) {
-    di << "Incorrect number of arguments. Must be 4" << "\n";
+    di << "Incorrect number of arguments. Must be 4\n";
     return 1 /* Error */;
   }
   Standard_CString arg2 = argv[2];
@@ -397,15 +397,15 @@ static Standard_Integer scaleshape(Draw_Interpretor& di, Standard_Integer argc,
   if (Shape.IsNull()) { di << "Shape unknown: " << arg2 << "\n"; return 1 /* Error */; }
 
   TopoDS_Shape result = ShapeCustom::ScaleShape (Shape, Draw::Atof(argv[3]));
-  if (result.IsNull()) { di << "NO RESULT" << "\n"; return 1; }
-  else if (result == Shape) { di << "NO MODIFICATIONS" << "\n"; return 0; }
+  if (result.IsNull()) { di << "NO RESULT\n"; return 1; }
+  else if (result == Shape) { di << "NO MODIFICATIONS\n"; return 0; }
   DBRep::Set (argv[1],result);
   return 0;
 }
 static Standard_Integer BSplRes(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 11) {
-    di << "Incorrect number of arguments. Must be 10" << "\n";
+    di << "Incorrect number of arguments. Must be 10\n";
     return 1 /* Error */;
   }
   Standard_CString arg2 = argv[2];
@@ -420,7 +420,7 @@ static Standard_Integer BSplRes(Draw_Interpretor& di, Standard_Integer argc, con
   else if (strcmp(argv[7],"G1") == 0)  aCont3 = GeomAbs_C0;
   else if (strcmp(argv[7],"G2") == 0)  aCont3 = GeomAbs_C1;
   else {
-    di<< "Invalid argument Cont3e" << "\n"; return 1; }
+    di<< "Invalid argument Cont3e\n"; return 1; }
   GeomAbs_Shape aCont2;
   if(strcmp(argv[8],"C0") == 0)  aCont2 = GeomAbs_C0;
   else if (strcmp(argv[8],"C1") == 0)  aCont2 = GeomAbs_C1;
@@ -430,13 +430,13 @@ static Standard_Integer BSplRes(Draw_Interpretor& di, Standard_Integer argc, con
   else if (strcmp(argv[8],"G1") == 0)  aCont2 = GeomAbs_C0;
   else if (strcmp(argv[8],"G2") == 0)  aCont2 = GeomAbs_C1;
   else {
-    di<< "Invalid argument Cont3e" << "\n"; return 1; }
+    di<< "Invalid argument Cont3e\n"; return 1; }
 
   Handle(ShapeCustom_RestrictionParameters) aParameters = new ShapeCustom_RestrictionParameters;
   TopoDS_Shape result = ShapeCustom::BSplineRestriction (Shape, Draw::Atof(argv[3]), Draw::Atof(argv[4]), Draw::Atoi(argv[5]),Draw::Atoi(argv[6]),aCont3,aCont2,(Standard_Boolean) Draw::Atoi(argv[9]),(Standard_Boolean) Draw::Atoi(argv[10]),aParameters);
-  if (result.IsNull()) { di << "NO RESULT" << "\n"; return 1; }
+  if (result.IsNull()) { di << "NO RESULT\n"; return 1; }
   else if (result == Shape) { 
-    di << "NO MODIFICATIONS" << "\n";
+    di << "NO MODIFICATIONS\n";
     DBRep::Set (argv[1],result); return 0; 
   }
   ShapeFix::SameParameter(result,Standard_False);
@@ -447,7 +447,7 @@ static Standard_Integer BSplRes(Draw_Interpretor& di, Standard_Integer argc, con
 
 static Standard_Integer convtorevol(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
-  if (argc < 3) { di<<"Convert surfaces to revolution: convtorevol result shape"<<"\n"; return 1; }
+  if (argc < 3) { di<<"Convert surfaces to revolution: convtorevol result shape\n"; return 1; }
 
   Standard_CString arg1 = argv[1];
   Standard_CString arg2 = argv[2];
@@ -455,8 +455,8 @@ static Standard_Integer convtorevol(Draw_Interpretor& di, Standard_Integer argc,
   if (Shape.IsNull()) { di<<"Shape unknown : "<<arg2<<"\n"; return 1; }
 
   TopoDS_Shape result = ShapeCustom::ConvertToRevolution (Shape);
-  if (result.IsNull()) { di<<"NO RESULT"<<"\n"; return 1; }
-  else if (result == Shape) { di<<"No modif"<<"\n"; return 0; }
+  if (result.IsNull()) { di<<"NO RESULT\n"; return 1; }
+  else if (result == Shape) { di<<"No modif\n"; return 0; }
   di<<"ConvertToRevolution -> Result : "<<arg1<<"\n";
   DBRep::Set (arg1,result);
   return 0; // Done
index 00d5c60969c4a17d67e218ebc224d512114b50e9..ef5c82907e7d5d5d70af59620b1acf9ce1d811de 100644 (file)
@@ -26,10 +26,10 @@ static Standard_Integer sortcompound (Draw_Interpretor& di, Standard_Integer arg
 {
   Standard_CString arg1 = argv[1];
   if (argc < 2) {
-    di<<"Give shape name. As is, just displays shape type"<<"\n";
-    di<<" or add result_name type [mode]"<<"\n";
-    di<<" Type : v (vertex)  e (edge)  w (wire)  f (face)  s (shell)  so (solid)"<<"\n";
-    di<<" Mode : n (normal, by default)  e (explore)  c (compound)  x (explore+comp)"<<"\n";
+    di<<"Give shape name. As is, just displays shape type\n";
+    di<<" or add result_name type [mode]\n";
+    di<<" Type : v (vertex)  e (edge)  w (wire)  f (face)  s (shell)  so (solid)\n";
+    di<<" Mode : n (normal, by default)  e (explore)  c (compound)  x (explore+comp)\n";
     return 0;
   }
   TopoDS_Shape Shape = DBRep::Get(arg1);
@@ -41,9 +41,9 @@ static Standard_Integer sortcompound (Draw_Interpretor& di, Standard_Integer arg
       TopAbs_ShapeEnum ts = sbx.ShapeType(Shape,i);
       //cout<<"   Type "<<(i ? " (via Compound) : " : "(True) : ");
       if (i == 0) {
-       di<<"   Type "<<"(True) : ";
+       di<<"   Type (True) : ";
       } else {
-       di<<"   Type "<<" (via Compound) : ";
+       di<<"   Type  (via Compound) : ";
       }
       switch (ts) {
        case TopAbs_SHAPE  : di<<"SHAPE (empty)"; break;
@@ -83,7 +83,7 @@ static Standard_Integer sortcompound (Draw_Interpretor& di, Standard_Integer arg
     }
     ShapeExtend_Explorer sbx;
     Shape = sbx.SortedCompound (Shape,tse,modexp,modcom);
-    if ( Shape.IsNull()) { di<<"Empty result"<<"\n"; return 0; }
+    if ( Shape.IsNull()) { di<<"Empty result\n"; return 0; }
     DBRep::Set(argv[2],Shape);
   }
   return 0; // Done
index b975a51c2cf9576de096c4044f6dc0c38a0c6dbe..e37b7c0c4450809b2e3190d14d92434cb0acf330 100644 (file)
@@ -79,11 +79,11 @@ static Standard_Integer edgesameparam (Draw_Interpretor& di, Standard_Integer ar
 //  const Standard_CString arg1 = argv[1];
   const Standard_CString arg2 (argc > 2 ? argv[2] : NULL);
 //        ****    Edge:SameParameter         ****
-  if (argc < 2) { di<<"shapename ,  option f to force, else only Edges not-SameParameter are computed"<<"\n"; return 1 /* Error */; }
+  if (argc < 2) { di<<"shapename ,  option f to force, else only Edges not-SameParameter are computed\n"; return 1 /* Error */; }
   TopoDS_Shape Shape = DBRep::Get(argv[1]);
 
   if (!ShapeFix::SameParameter(Shape, (argc > 2 && arg2[0] == 'f') , BRepBuilderAPI::Precision()) )
-    di<<"Some edges were not processed"<<"\n";
+    di<<"Some edges were not processed\n";
   di<<"\n";
   return 0; // Done
 }
@@ -96,11 +96,11 @@ static Standard_Integer edgesameparam (Draw_Interpretor& di, Standard_Integer ar
 static Standard_Integer settolerance (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<    "myshape val   : forces tolerances at <val>"<<"\n"
-      <<      "myshape < max : sets maximum tolerance to <max>"<<"\n"
-       <<    "myshape > min : sets minimum tolerance to <min>"<<"\n"
-         <<  "myshape min max : bounds tolerances between <min> and <max>"<<"\n"
-           <<"myshape mode=v-e-f other args : idem but only on vertex-edge-face"<<"\n";
+    di<<    "myshape val   : forces tolerances at <val>\n"
+      <<      "myshape < max : sets maximum tolerance to <max>\n"
+       <<    "myshape > min : sets minimum tolerance to <min>\n"
+         <<  "myshape min max : bounds tolerances between <min> and <max>\n"
+           <<"myshape mode=v-e-f other args : idem but only on vertex-edge-face\n";
     return (argc < 2 ? 0 : 1 /* Error */);
   }
   Standard_CString arg1 = argv[1];
@@ -140,15 +140,15 @@ static Standard_Integer settolerance (Draw_Interpretor& di, Standard_Integer arg
 static Standard_Integer stwire (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 2) { // help
-    di<<"Donner nom shape depart + nom shape resultat + option"<<"\n";
+    di<<"Donner nom shape depart + nom shape resultat + option\n";
     di<<"Options de chargement :  x add connected  (sinon add simple)\n"
       <<  "Options de traitement :  l fix little/BRepBuilderAPI\n"
       <<"Options de sortie : aucune make simple\n"
       <<"  m MakeAPI r avec reorder  v vertex\n"
-      <<"Autres (se cumulent) :  q quid(stats)"<<"\n";
+      <<"Autres (se cumulent) :  q quid(stats)\n";
     return 0;
   }
-  if (argc < 4) { di<<"stwire tout court pour help"<<"\n"; return 1 /* Error */; }
+  if (argc < 4) { di<<"stwire tout court pour help\n"; return 1 /* Error */; }
   Standard_CString arg1 = argv[1];
   Standard_CString arg2 = argv[2];
 
@@ -170,7 +170,7 @@ static Standard_Integer stwire (Draw_Interpretor& di, Standard_Integer argc, con
     }
   }
   TopoDS_Shape Shape = DBRep::Get(arg1);
-  if (Shape.IsNull()) { di<<arg1<<" inconnu"<<"\n"; return 1 /* Error */; }
+  if (Shape.IsNull()) { di<<arg1<<" inconnu\n"; return 1 /* Error */; }
 
 //  On y va
   Handle(ShapeExtend_WireData) sbwd = new ShapeExtend_WireData;
@@ -188,7 +188,7 @@ static Standard_Integer stwire (Draw_Interpretor& di, Standard_Integer argc, con
   }
   if (awire.IsNull()) {
     di<<"Neither FACE nor WIRE : "<<arg1<<"\n";
-    di<<"Considering as list of edges ..."<<"\n";
+    di<<"Considering as list of edges ...\n";
     awire = Shape;
 //    return 1 /* Error */;
   }
@@ -239,7 +239,7 @@ static Standard_Integer stwire (Draw_Interpretor& di, Standard_Integer argc, con
       else di<<" FWD";
       di<<" ordered to "<<iord<<" Gap="<<WO.Gap(i)<<"\n";
     }
-    di<<"Reorder not yet done"<<"\n";
+    di<<"Reorder not yet done\n";
     sfw->FixReorder (WO);
 //   Mais on n execute pas
   }
@@ -282,13 +282,13 @@ static Standard_Integer stwire (Draw_Interpretor& di, Standard_Integer argc, con
       Standard_Integer stat = sawv.Data (i,pos,upre,ufol);
       di<<i<<" : ";
       switch (stat) {
-      case 0 : di<<"Same Vertex"<<"\n"; break;
-      case 1 : di<<"Same Coords with recorded precisions (but not Same Vertex)"<<"\n"; break;
-      case 2 : di<<"Close (with preci="<< saw->Precision()<<")"<<"\n"; break;
+      case 0 : di<<"Same Vertex\n"; break;
+      case 1 : di<<"Same Coords with recorded precisions (but not Same Vertex)\n"; break;
+      case 2 : di<<"Close (with preci="<< saw->Precision()<<")\n"; break;
       case 3 : di<<"End of "<<i<<" OK, Start of "<<(i == nb ? 1 : i+1)<<" at U="<<ufol; break;
       case 4 : di<<"End of "<<i<<" at U="<<upre<<", Start of "<<(i == nb ? 1 : i+1)<<" OK"; break;
       case 5 : di<<"Intersection, End of "<<i<<" at U="<<upre<<", Start of "<<(i == nb ? 1 : i+1)<<" at U="<<ufol; break;
-       default : di<<"Disjoined"<<"\n";
+       default : di<<"Disjoined\n";
       }
       if (stat >= 3 && stat <= 5) di<<"\n   - Position : "<<pos.X()<<"  "<<pos.Y()<<"  "<<pos.Z()<<"\n";
     }
@@ -318,13 +318,13 @@ static Standard_Integer stwire (Draw_Interpretor& di, Standard_Integer argc, con
       }
       result = CW.Wire (num);
     }
-    else di << "Cannot apply Correct_Wire: face not defined" << "\n";
+    else di << "Cannot apply Correct_Wire: face not defined\n";
   }
   */
   else if (om) result = sbwd->WireAPIMake();
   else         result = sbwd->Wire();
   if (result.IsNull()) {
-    di<<"Pas de resultat, desole"<<"\n";
+    di<<"Pas de resultat, desole\n";
     return 1;  // Fail
   }
   DBRep::Set (arg2,result);
@@ -338,7 +338,7 @@ static Standard_Integer stwire (Draw_Interpretor& di, Standard_Integer argc, con
 
 static Standard_Integer reface (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
-  if (argc < 3) { di<<"Donner un nom de SHAPE (SHELL ou FACE) + un nom de RESULTAT"<<"\n"; return 1 /* Error */; }
+  if (argc < 3) { di<<"Donner un nom de SHAPE (SHELL ou FACE) + un nom de RESULTAT\n"; return 1 /* Error */; }
   Standard_CString arg1 = argv[1];
   Standard_CString arg2 = argv[2];
   TopoDS_Shape Shape = DBRep::Get(arg1);
@@ -391,7 +391,7 @@ static Standard_Integer reface (Draw_Interpretor& di, Standard_Integer argc, con
     DBRep::Set (arg2,resh.Apply (Shape,TopAbs_FACE,2));
     return 0; // Done
   }
-  else di<<"ShapeFix_Face n a rien trouve a redire"<<"\n";
+  else di<<"ShapeFix_Face n a rien trouve a redire\n";
   return 0;
 }
 
@@ -465,20 +465,20 @@ static Standard_Integer fixshape (Draw_Interpretor& di, Standard_Integer argc, c
 
   if ( par <2 ) {
     di << "Use: " << argv[0] << " result shape [tolerance [max_tolerance]] [switches]\n"
-      "[-maxtaila <degrees>] [-maxtailw <width>]" << "\n";
-    di << "Switches allow to tune parameters of ShapeFix" << "\n"; 
-    di << "The following syntax is used: <symbol><parameter>" << "\n"; 
-    di << "- symbol may be - to set parameter off, + to set on or * to set default" << "\n"; 
-    di << "- parameters are identified by letters:" << "\n"; 
-    di << "  l - FixLackingMode" << "\n"; 
-    di << "  o - FixOrientationMode" << "\n"; 
-    di << "  h - FixShiftedMode" << "\n"; 
-    di << "  m - FixMissingSeamMode" << "\n"; 
-    di << "  d - FixDegeneratedMode" << "\n"; 
-    di << "  s - FixSmallMode" << "\n"; 
-    di << "  i - FixSelfIntersectionMode" << "\n"; 
-    di << "  n - FixNotchedEdgesMode" << "\n"; 
-    di << "For enhanced message output, use switch '+?'" << "\n"; 
+      "[-maxtaila <degrees>] [-maxtailw <width>]\n";
+    di << "Switches allow to tune parameters of ShapeFix\n"; 
+    di << "The following syntax is used: <symbol><parameter>\n"; 
+    di << "- symbol may be - to set parameter off, + to set on or * to set default\n"; 
+    di << "- parameters are identified by letters:\n"; 
+    di << "  l - FixLackingMode\n"; 
+    di << "  o - FixOrientationMode\n"; 
+    di << "  h - FixShiftedMode\n"; 
+    di << "  m - FixMissingSeamMode\n"; 
+    di << "  d - FixDegeneratedMode\n"; 
+    di << "  s - FixSmallMode\n"; 
+    di << "  i - FixSelfIntersectionMode\n"; 
+    di << "  n - FixNotchedEdgesMode\n"; 
+    di << "For enhanced message output, use switch '+?'\n"; 
     return 1;
   }
 
@@ -546,7 +546,7 @@ Standard_Integer fixgaps(Draw_Interpretor& di, Standard_Integer n, const char**
   
   TopoDS_Shape S = DBRep::Get(a[2]);
   if (S.IsNull()) {
-    di << " Shape is null" << "\n";
+    di << " Shape is null\n";
     return 1;
   }
 
@@ -555,7 +555,7 @@ Standard_Integer fixgaps(Draw_Interpretor& di, Standard_Integer n, const char**
   SFWF->SetPrecision(prec);
   if ( SFWF->FixWireGaps() ) {
     DBRep::Set(a[1],SFWF->Shape());
-    di<<" Wireframe gaps fixed on shape"<<"\n";
+    di<<" Wireframe gaps fixed on shape\n";
   }
 
   return 0;
@@ -572,7 +572,7 @@ Standard_Integer fixsmall(Draw_Interpretor& di, Standard_Integer n, const char**
   
   TopoDS_Shape S = DBRep::Get(a[2]);
   if (S.IsNull()) {
-    di << " Shape is null" << "\n";
+    di << " Shape is null\n";
     return 1;
   }
 
@@ -582,7 +582,7 @@ Standard_Integer fixsmall(Draw_Interpretor& di, Standard_Integer n, const char**
   
   if (SFWF.FixSmallEdges()) {
     DBRep::Set(a[1],SFWF.Shape());
-    di<<" Small edges fixed on shape"<<"\n";
+    di<<" Small edges fixed on shape\n";
   }
 
   return 0;
@@ -596,7 +596,7 @@ Standard_Integer fixsmall(Draw_Interpretor& di, Standard_Integer n, const char**
 static Standard_Integer fixsmalledges(Draw_Interpretor& di, Standard_Integer n, const char** a)
 {
   if( n < 3) {
-    di<<"Invalid number of arguments"<<"\n";
+    di<<"Invalid number of arguments\n";
     return 1;
   }
   TopoDS_Shape Sh = DBRep::Get(a[2]);
@@ -641,19 +641,19 @@ static Standard_Integer fixsmalledges(Draw_Interpretor& di, Standard_Integer n,
 static Standard_Integer checkoverlapedges(Draw_Interpretor& di, Standard_Integer n, const char** a)
 {
    if( n < 3) {
-     di<<"Invalid number of arguments"<<"\n";
+     di<<"Invalid number of arguments\n";
      return 1;
    }
    TopoDS_Shape Sh1 = DBRep::Get(a[1]);
    TopoDS_Shape Sh2 = DBRep::Get(a[2]);
    if(Sh1.IsNull() || Sh2.IsNull()) {
-     di<<"Invalid arguments"<<"\n";
+     di<<"Invalid arguments\n";
      return 1;
    }
    TopoDS_Edge e1 = TopoDS::Edge(Sh1);
    TopoDS_Edge e2 = TopoDS::Edge(Sh2);
    if(e1.IsNull() || e2.IsNull()) {
-     di<<"Invalid type of arguments"<<"\n";
+     di<<"Invalid type of arguments\n";
      return 1;
    }
 
@@ -680,14 +680,14 @@ static Standard_Integer checkoverlapedges(Draw_Interpretor& di, Standard_Integer
    ShapeAnalysis_Edge sae;
    if(sae.CheckOverlapping(e1,e2,aTol,aDistDomain)) {
      if(aDistDomain ==0.0)
-       di<<"Edges is overlaping comletly"<<"\n";
+       di<<"Edges is overlaping comletly\n";
      else {
-        di<<"Edges is overlaped"<<"\n";
+        di<<"Edges is overlaped\n";
         di<<"with tolerance = "<<aTol<<"\n";
         di<<"on segment length = "<<aDistDomain<<"\n";
      }
    }
-   else di<<"Edges is not overlaped"<<"\n";
+   else di<<"Edges is not overlaped\n";
    return 0;
 }
 
@@ -699,14 +699,14 @@ static Standard_Integer checkoverlapedges(Draw_Interpretor& di, Standard_Integer
 static Standard_Integer checkfclass2d(Draw_Interpretor& di, Standard_Integer n, const char** a)
 {
   if( n < 4) {
-    di<<"Invalid number of arguments"<<"\n";
+    di<<"Invalid number of arguments\n";
     return 1;
   }
   TopoDS_Shape Sh1 = DBRep::Get(a[1]);
   Standard_Real ucoord = Draw::Atof(a[2]);
   Standard_Real vcoord = Draw::Atof(a[3]);
   if(Sh1.IsNull() || Sh1.ShapeType()!= TopAbs_FACE) {
-    di<<"Invalid arguments"<<"\n";
+    di<<"Invalid arguments\n";
     return 1;
   }
   TopoDS_Face aFace = TopoDS::Face(Sh1);
@@ -714,25 +714,25 @@ static Standard_Integer checkfclass2d(Draw_Interpretor& di, Standard_Integer n,
   BRepTopAdaptor_FClass2d f2d(aFace,Precision::Confusion());
   TopAbs_State stat = f2d.Perform(p2d);
   if(stat == TopAbs_OUT)
-    di<<"Point is OUT"<<"\n";
+    di<<"Point is OUT\n";
   else if(stat == TopAbs_IN)
-    di<<"Point is IN"<<"\n";
+    di<<"Point is IN\n";
   else if(stat == TopAbs_ON)
-    di<<"Point is ON"<<"\n";
+    di<<"Point is ON\n";
   else
-    di<<"Point is UNKNOWN"<<"\n";
+    di<<"Point is UNKNOWN\n";
   return 0;
 }
 
 static Standard_Integer connectedges(Draw_Interpretor& di, Standard_Integer n, const char** a)
 {
   if( n < 3) {
-    di<<"Invalid number of arguments. Should be : result shape [toler shared]"<<"\n";
+    di<<"Invalid number of arguments. Should be : result shape [toler shared]\n";
     return 1;
   }
   TopoDS_Shape aSh1 = DBRep::Get(a[2]);
   if(aSh1.IsNull()) {
-    di<<"Shape is null"<<"\n";
+    di<<"Shape is null\n";
     return 1;
   }
   Standard_Real aTol = Precision::Confusion();
@@ -760,7 +760,7 @@ static Standard_Integer connectedges(Draw_Interpretor& di, Standard_Integer n, c
   for( ; i <= aSeqWires->Length() ; i++)
   {
     TopoDS_Shape aW = aSeqWires->Value(i);
-    di<<"Wire - "<<i<<" : "<<"\n";
+    di<<"Wire - "<<i<<" : \n";
     
     TopExp_Explorer aExp1(aW, TopAbs_EDGE);
     for( ; aExp1.More(); aExp1.Next())
index 4c7e596ab62e3668c28f08f10ec70c44468ed1f6..bdce11fc190ee316a1409d8cae6218c0a6f5e841 100644 (file)
@@ -31,7 +31,7 @@
 static Standard_Integer ApplySequence(Draw_Interpretor& di,
                                      Standard_Integer argc, const char** argv)
 {
-  if (argc < 4) { di<<"Specify result, shape, resource name and prefix (optional)"<<"\n"; return 1 /* Error */; }
+  if (argc < 4) { di<<"Specify result, shape, resource name and prefix (optional)\n"; return 1 /* Error */; }
   Standard_CString arg1 = argv[1];
   Standard_CString arg2 = argv[2];
   Standard_CString arg3 = argv[3];
@@ -47,10 +47,10 @@ static Standard_Integer ApplySequence(Draw_Interpretor& di,
   TopoDS_Shape result = context->Result();
 //  seq.PrintPreparationResult ();
   if ( result.IsNull() ) {
-    di << "No result" << "\n";
+    di << "No result\n";
   }
   else if ( result == Shape ) {
-    di << "Shape not modified" << "\n";
+    di << "Shape not modified\n";
   }
   DBRep::Set (arg1,result);
   return 0;
index 9a1f281b6f8e0aa2a54fe29918c2cb199cde4c24..28751b6dc82505ec47cce86a1dfb39b91e34c95d 100644 (file)
@@ -29,7 +29,7 @@
 //=======================================================================
 static Standard_Integer ApplySequence(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
-  if (argc < 4) { di<<"Specify result, shape, resource name and prefix (optional)"<<"\n"; return 1 /* Error */; }
+  if (argc < 4) { di<<"Specify result, shape, resource name and prefix (optional)\n"; return 1 /* Error */; }
   Standard_CString arg1 = argv[1];
   Standard_CString arg2 = argv[2];
   Standard_CString arg3 = argv[3];
index d92b161e9369fba978bb81f624eebbcf1354bb2b..25490490f30bbde2b56785bcf06de76c93258bde 100644 (file)
 static Standard_Integer XSHAPE_edge
   (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
-  if (argc < 2) { di<<"donner un nom de shape"<<"\n"; return 1 /* Error */; }
+  if (argc < 2) { di<<"donner un nom de shape\n"; return 1 /* Error */; }
   Standard_CString arg1 = argv[1];
   TopoDS_Shape Shape = DBRep::Get(arg1);
-  if (Shape.IsNull()) { di<<arg1<<" inconnu"<<"\n"; return 1 /* Error */; }
+  if (Shape.IsNull()) { di<<arg1<<" inconnu\n"; return 1 /* Error */; }
   Standard_Integer nbe = 0, nbf = 0;  Standard_Real f3d,l3d;
 
   for (TopExp_Explorer exp(Shape,TopAbs_EDGE); exp.More(); exp.Next()) {
@@ -84,11 +84,11 @@ static Standard_Integer XSHAPE_explorewire
   (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   char nomsh[30];
-  if (argc < 2) { di<<"donner un nom de wire"<<"\n"; return 1 /* Error */; }
+  if (argc < 2) { di<<"donner un nom de wire\n"; return 1 /* Error */; }
   Standard_CString arg1 = argv[1];
   TopoDS_Shape Shape = DBRep::Get(arg1);
-  if (Shape.IsNull()) { di<<arg1<<" inconnu"<<"\n"; return 1 /* Error */; }
-  if (Shape.ShapeType() != TopAbs_WIRE) { di<<"Pas un WIRE"<<"\n"; return 1 /* Error */; }
+  if (Shape.IsNull()) { di<<arg1<<" inconnu\n"; return 1 /* Error */; }
+  if (Shape.ShapeType() != TopAbs_WIRE) { di<<"Pas un WIRE\n"; return 1 /* Error */; }
   TopoDS_Wire W = TopoDS::Wire (Shape);
   TopoDS_Face F;
   if (argc > 2) {
@@ -106,11 +106,11 @@ static Standard_Integer XSHAPE_explorewire
   }
   int* nbs = new int[nbe+1];  for (i = 0; i <= nbe; i ++) nbs[i] = 0;
 
-  di<<"TopoDS_Iterator(EDGE)  donne "<<nbe<<" Edges dont "<<num<<" distinctes"<<"\n";
+  di<<"TopoDS_Iterator(EDGE)  donne "<<nbe<<" Edges dont "<<num<<" distinctes\n";
   nbe = num;
   nbw = 0;
   for (TopExp_Explorer exe(W.Oriented(TopAbs_FORWARD),TopAbs_EDGE); exe.More(); exe.Next()) nbw ++;
-  di<<"TopExp_Explorer(EDGE)  donne "<<nbw<<" Edges"<<"\n";
+  di<<"TopExp_Explorer(EDGE)  donne "<<nbw<<" Edges\n";
   nbw = 0;
   BRepTools_WireExplorer bwe;
   if (F.IsNull()) bwe.Init(W);
@@ -121,16 +121,16 @@ static Standard_Integer XSHAPE_explorewire
     num = map.FindIndex(E);
     nbs[num] ++;
   }
-  di<<"BRepTools_WireExplorer donne "<<nbw<<" Edges"<<"\n";
-  di<<"Par rapport a la map, edges sautees par WE en NOWE_num, passees > 1 fois en MULTWE_num"<<"\n";
-  if (nbs[0] > 0) di<<"NB : Edge n0 0 comptee "<<nbs[0]<<" fois"<<"\n";
+  di<<"BRepTools_WireExplorer donne "<<nbw<<" Edges\n";
+  di<<"Par rapport a la map, edges sautees par WE en NOWE_num, passees > 1 fois en MULTWE_num\n";
+  if (nbs[0] > 0) di<<"NB : Edge n0 0 comptee "<<nbs[0]<<" fois\n";
   for (i = 1; i <= nbe; i ++) {
     if (nbs[i] < 1) {
-      di<<"Edge n0 "<<i<<" pas vue par WE"<<"\n";
+      di<<"Edge n0 "<<i<<" pas vue par WE\n";
       Sprintf (nomsh,"NOWE_%d",i);
       DBRep::Set (nomsh,map.FindKey(i));
     } else if (nbs[i] > 1) {
-      di<<"Edge n0 "<<i<<" vue par WE : "<<nbs[i]<<" fois"<<"\n";
+      di<<"Edge n0 "<<i<<" vue par WE : "<<nbs[i]<<" fois\n";
       Sprintf (nomsh,"MULT_%d",i);
       DBRep::Set (nomsh,map.FindKey(i));
     }
@@ -144,20 +144,20 @@ static Standard_Integer XSHAPE_explorewire
 static Standard_Integer XSHAPE_ssolid
   (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
-  if (argc < 3) { di<<"Give new solid name + shell name"<<"\n"; return 1 /* Error */; }
+  if (argc < 3) { di<<"Give new solid name + shell name\n"; return 1 /* Error */; }
   Standard_CString arg1 = argv[1];
   TopoDS_Shape Shape = DBRep::Get(arg1);
   if (Shape.IsNull()) { di<<"Shape unknown : "<<arg1<<"\n"; return 1 /* Error */; }
   TopAbs_ShapeEnum shen = Shape.ShapeType();
   if (shen == TopAbs_SOLID) {
-    di<<" Already a Solide ! nothing done"<<"\n";
+    di<<" Already a Solide ! nothing done\n";
     return 0;
   }
   if (shen != TopAbs_SHELL) {
-    di<<" Not a Shell"<<"\n";  return 1 /* Error */;
+    di<<" Not a Shell\n";  return 1 /* Error */;
   }
   if (!Shape.Free ()) {
-    di<<"Shape non Free -> Freeing"<<"\n";
+    di<<"Shape non Free -> Freeing\n";
     Shape.Free(Standard_True);
   }
   TopoDS_Shell sh = TopoDS::Shell (Shape);
@@ -171,7 +171,7 @@ static Standard_Integer XSHAPE_ssolid
   if (bsc3d.State() == TopAbs_IN) {
 //         Ensuite, inverser C-A-D REPRENDRE LES SHELLS
 //         (l inversion du solide n est pas bien prise en compte)
-    di<<"NB : Shell to be reversed"<<"\n";
+    di<<"NB : Shell to be reversed\n";
     TopoDS_Solid soli2;
     B.MakeSolid (soli2);    // on recommence
     sh.Reverse();
@@ -190,7 +190,7 @@ static Standard_Integer XSHAPE_edgeregul
   Standard_Real tolang = Precision::Angular(); // = Interface_Static::RVal("XSTEP.encoderegularity.angle");
 //  if (argc < 3) di<<"Current value for regularity angle : "<<tolang<<"\n";
   if (argc < 3) {
-    di<<"Donner nom de shape.\n + option : angle en radian, sinon la valeur courante est prise"<<"\n";
+    di<<"Donner nom de shape.\n + option : angle en radian, sinon la valeur courante est prise\n";
     return 0;
   }
   Standard_CString arg1 = argv[1];
@@ -233,10 +233,10 @@ static Standard_Integer samerange (Draw_Interpretor& di,  Standard_Integer argc,
     DrawTrSurf::Set(argv[1],NewC2d);
   }
   else {
-    di << "Apply BRepLib::SameRange() to shape or GeomLib::SameRange() to pcurve:" << "\n";
-    di << "> samerange shape" << "\n";
-    di << "or" << "\n";
-    di << "> samerange newcurve curve2d first last newfirst newlast" << "\n";
+    di << "Apply BRepLib::SameRange() to shape or GeomLib::SameRange() to pcurve:\n";
+    di << "> samerange shape\n";
+    di << "or\n";
+    di << "> samerange newcurve curve2d first last newfirst newlast\n";
   }
   
   return 0;
index d4f9bd4e5bb589cd1f57d65b721493d166ced632..c7a7e5a22797f6ed79d042efc3bcb0034746ecc1 100644 (file)
@@ -93,14 +93,14 @@ static Standard_Integer DT_ShapeDivide (Draw_Interpretor& di,
   // a[n-1]= Tolerance
    
   if (n<3) {
-    di << "bad number of arguments" <<"\n";
+    di << "bad number of arguments\n";
     return 1;
   } 
   
   // try to read a shape:
   TopoDS_Shape inputShape=DBRep::Get(a[2]);
   if (inputShape.IsNull()) {
-    di << "Unknown shape"<< "\n";
+    di << "Unknown shape\n";
     return 1;
   }
   // a[2] is a shape. managing:
@@ -120,23 +120,23 @@ static Standard_Integer DT_ShapeDivide (Draw_Interpretor& di,
   tool.Perform();
   TopoDS_Shape res = tool.Result();
 
-  if ( tool.Status ( ShapeExtend_OK ) ) di << "Status: OK" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE1 ) ) di << "Status: DONE1" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE2 ) ) di << "Status: DONE2" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE3 ) ) di << "Status: DONE3" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE4 ) ) di << "Status: DONE4" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE5 ) ) di << "Status: DONE5" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE6 ) ) di << "Status: DONE6" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE7 ) ) di << "Status: DONE7" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE8 ) ) di << "Status: DONE8" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL1 ) ) di << "Status: FAIL1" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL2 ) ) di << "Status: FAIL2" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL3 ) ) di << "Status: FAIL3" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL4 ) ) di << "Status: FAIL4" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL5 ) ) di << "Status: FAIL5" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL6 ) ) di << "Status: FAIL6" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL7 ) ) di << "Status: FAIL7" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL8 ) ) di << "Status: FAIL8" << "\n";
+  if ( tool.Status ( ShapeExtend_OK ) ) di << "Status: OK\n";
+  if ( tool.Status ( ShapeExtend_DONE1 ) ) di << "Status: DONE1\n";
+  if ( tool.Status ( ShapeExtend_DONE2 ) ) di << "Status: DONE2\n";
+  if ( tool.Status ( ShapeExtend_DONE3 ) ) di << "Status: DONE3\n";
+  if ( tool.Status ( ShapeExtend_DONE4 ) ) di << "Status: DONE4\n";
+  if ( tool.Status ( ShapeExtend_DONE5 ) ) di << "Status: DONE5\n";
+  if ( tool.Status ( ShapeExtend_DONE6 ) ) di << "Status: DONE6\n";
+  if ( tool.Status ( ShapeExtend_DONE7 ) ) di << "Status: DONE7\n";
+  if ( tool.Status ( ShapeExtend_DONE8 ) ) di << "Status: DONE8\n";
+  if ( tool.Status ( ShapeExtend_FAIL1 ) ) di << "Status: FAIL1\n";
+  if ( tool.Status ( ShapeExtend_FAIL2 ) ) di << "Status: FAIL2\n";
+  if ( tool.Status ( ShapeExtend_FAIL3 ) ) di << "Status: FAIL3\n";
+  if ( tool.Status ( ShapeExtend_FAIL4 ) ) di << "Status: FAIL4\n";
+  if ( tool.Status ( ShapeExtend_FAIL5 ) ) di << "Status: FAIL5\n";
+  if ( tool.Status ( ShapeExtend_FAIL6 ) ) di << "Status: FAIL6\n";
+  if ( tool.Status ( ShapeExtend_FAIL7 ) ) di << "Status: FAIL7\n";
+  if ( tool.Status ( ShapeExtend_FAIL8 ) ) di << "Status: FAIL8\n";
 
   // fixes
   
@@ -150,23 +150,23 @@ static Standard_Integer DT_ShapeConvertRev (Draw_Interpretor& di,
                                         Standard_Integer n, const char** a)
 {
   if (n<5) {
-    di << "bad number of arguments" <<"\n";
+    di << "bad number of arguments\n";
     return 1;
   } 
   
   // try to read a shape:
   TopoDS_Shape inputShape=DBRep::Get(a[2]);
   if (inputShape.IsNull()) {
-    di << "Unknown shape"<< "\n";
+    di << "Unknown shape\n";
     return 1;
   }
   
   Standard_Integer c2d = Draw::Atoi(a[3]);
   Standard_Integer c3d = Draw::Atoi(a[4]);
   TopoDS_Shape revsh = ShapeCustom::ConvertToRevolution (inputShape);
-  if (revsh.IsNull()) { di<<"NO RESULT"<<"\n"; return 1; }
-  else if (revsh == inputShape) { di<<"No modif"<<"\n";}
-  else di<<"ConvertToRevolution -> Result : "<<"\n";
+  if (revsh.IsNull()) { di<<"NO RESULT\n"; return 1; }
+  else if (revsh == inputShape) { di<<"No modif\n";}
+  else di<<"ConvertToRevolution -> Result : \n";
   
   ShapeUpgrade_ShapeConvertToBezier tool(revsh);
   tool.SetSurfaceConversion(Standard_True);
@@ -184,23 +184,23 @@ static Standard_Integer DT_ShapeConvertRev (Draw_Interpretor& di,
   tool.Perform();
   TopoDS_Shape res = tool.Result();
   
-  if ( tool.Status ( ShapeExtend_OK ) ) di << "Status: OK" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE1 ) ) di << "Status: DONE1" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE2 ) ) di << "Status: DONE2" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE3 ) ) di << "Status: DONE3" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE4 ) ) di << "Status: DONE4" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE5 ) ) di << "Status: DONE5" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE6 ) ) di << "Status: DONE6" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE7 ) ) di << "Status: DONE7" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE8 ) ) di << "Status: DONE8" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL1 ) ) di << "Status: FAIL1" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL2 ) ) di << "Status: FAIL2" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL3 ) ) di << "Status: FAIL3" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL4 ) ) di << "Status: FAIL4" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL5 ) ) di << "Status: FAIL5" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL6 ) ) di << "Status: FAIL6" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL7 ) ) di << "Status: FAIL7" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL8 ) ) di << "Status: FAIL8" << "\n";
+  if ( tool.Status ( ShapeExtend_OK ) ) di << "Status: OK\n";
+  if ( tool.Status ( ShapeExtend_DONE1 ) ) di << "Status: DONE1\n";
+  if ( tool.Status ( ShapeExtend_DONE2 ) ) di << "Status: DONE2\n";
+  if ( tool.Status ( ShapeExtend_DONE3 ) ) di << "Status: DONE3\n";
+  if ( tool.Status ( ShapeExtend_DONE4 ) ) di << "Status: DONE4\n";
+  if ( tool.Status ( ShapeExtend_DONE5 ) ) di << "Status: DONE5\n";
+  if ( tool.Status ( ShapeExtend_DONE6 ) ) di << "Status: DONE6\n";
+  if ( tool.Status ( ShapeExtend_DONE7 ) ) di << "Status: DONE7\n";
+  if ( tool.Status ( ShapeExtend_DONE8 ) ) di << "Status: DONE8\n";
+  if ( tool.Status ( ShapeExtend_FAIL1 ) ) di << "Status: FAIL1\n";
+  if ( tool.Status ( ShapeExtend_FAIL2 ) ) di << "Status: FAIL2\n";
+  if ( tool.Status ( ShapeExtend_FAIL3 ) ) di << "Status: FAIL3\n";
+  if ( tool.Status ( ShapeExtend_FAIL4 ) ) di << "Status: FAIL4\n";
+  if ( tool.Status ( ShapeExtend_FAIL5 ) ) di << "Status: FAIL5\n";
+  if ( tool.Status ( ShapeExtend_FAIL6 ) ) di << "Status: FAIL6\n";
+  if ( tool.Status ( ShapeExtend_FAIL7 ) ) di << "Status: FAIL7\n";
+  if ( tool.Status ( ShapeExtend_FAIL8 ) ) di << "Status: FAIL8\n";
 
   // fixes
   
@@ -218,7 +218,7 @@ static Standard_Integer DT_ShapeConvertRev (Draw_Interpretor& di,
 
     TopoDS_Face  inputFace = TopoDS::Face(inputShape);
     if (inputFace.IsNull()) {
-      di << a[2] << " is not a face" << "\n";
+      di << a[2] << " is not a face\n";
       return 1;
     }
 
@@ -238,21 +238,21 @@ static Standard_Integer DT_ShapeConvertRev (Draw_Interpretor& di,
       ShapeUpgrade_Error theError=theTool.Error();
       di << "Not done: error=";
       if (theError==ShapeUpgrade_Done) 
-       di << "Done"<<"\n";
+       di << "Done\n";
       else if (theError==ShapeUpgrade_NotDone) 
-       di << "NotDone"<<"\n";
+       di << "NotDone\n";
       else if (theError==ShapeUpgrade_EmptyShell) 
-       di << "EmptyShell"<<"\n";
+       di << "EmptyShell\n";
       else if (theError==ShapeUpgrade_InvalidCriterion) 
-       di << "InvalidCriterion"<<"\n";
+       di << "InvalidCriterion\n";
       else if (theError==ShapeUpgrade_InvalidGridSurface) 
-       di << "InvalidGridSurface"<<"\n";
+       di << "InvalidGridSurface\n";
       else if (theError==ShapeUpgrade_DegeneratedEdge) 
-       di << "DegeneratedEdge"<<"\n";
+       di << "DegeneratedEdge\n";
       else if (theError==ShapeUpgrade_NoSurface) 
-       di << "NoSurface"<<"\n";
+       di << "NoSurface\n";
       else if (theError==ShapeUpgrade_NoTolerance) 
-       di << "NoTolerance"<<"\n";
+       di << "NoTolerance\n";
       return 1;
     }   
     TopoDS_Shell res = theTool.Shell();
@@ -281,7 +281,7 @@ static Standard_Integer DT_ShapeConvertRev (Draw_Interpretor& di,
       if (n>=5) {
        TopoDS_Shape inputBoundary=DBRep::Get(a[3]);
        if (inputBoundary.IsNull()) {
-         di << "Invalid Boundary" << "\n";
+         di << "Invalid Boundary\n";
          return 1;
        }
        TopoDS_Wire WireBoundary = TopoDS::Wire(inputBoundary);
@@ -289,7 +289,7 @@ static Standard_Integer DT_ShapeConvertRev (Draw_Interpretor& di,
          // DT_ShapeDivide result Surface Wire Surf Tol
          Handle(Geom_Surface) WireSupport = DrawTrSurf::GetSurface(a[4]);
          if (WireSupport.IsNull()) {
-           di << "Invalid Surface supporting the Wire" << "\n";
+           di << "Invalid Surface supporting the Wire\n";
            return 1;
          }
          theTool.SetBoundary(WireBoundary, WireSupport);
@@ -307,14 +307,14 @@ static Standard_Integer DT_ShapeConvertRev (Draw_Interpretor& di,
       // DT_ShapeDivide result NbU NbV {Surf_u_v...} Face Tol
       // DT_ShapeDivide result NbU NbV {Surf_u_v...} Wire Surf Tol
       if (n<6) {
-       di << "bad number of arguments for grid input" <<"\n";
+       di << "bad number of arguments for grid input\n";
        return 1;
       }
       // number of surf:
       Standard_Integer NbU=Draw::Atoi(a[2]);
       Standard_Integer NbV=Draw::Atoi(a[3]);
       if (n < 4+NbU*NbV+1) {
-       di << "bad number of arguments" <<"\n";
+       di << "bad number of arguments\n";
        return 1;
       }
       
@@ -333,7 +333,7 @@ static Standard_Integer DT_ShapeConvertRev (Draw_Interpretor& di,
       if (n>=6+NbU*NbV) {
        TopoDS_Shape inputBoundary=DBRep::Get(a[4+NbU*NbV]);
        if (inputBoundary.IsNull()) {
-         di << "Invalid Boundary" << "\n";
+         di << "Invalid Boundary\n";
          return 1;
        }
        TopoDS_Wire  WireBoundary = TopoDS::Wire(inputBoundary);
@@ -341,7 +341,7 @@ static Standard_Integer DT_ShapeConvertRev (Draw_Interpretor& di,
          // DT_ShapeDivide result Surface Wire Surf Tol
          Handle(Geom_Surface) WireSupport = DrawTrSurf::GetSurface(a[4+NbU*NbV+1]);
          if (WireSupport.IsNull()) {
-           di << "Invalid Surface supporting the Wire" << "\n";
+           di << "Invalid Surface supporting the Wire\n";
            return 1;
          }
          theTool.SetBoundary(WireBoundary, WireSupport);
@@ -359,21 +359,21 @@ static Standard_Integer DT_ShapeConvertRev (Draw_Interpretor& di,
       ShapeUpgrade_Error theError=theTool.Error();
       di << "Not done: error=";
       if (theError==ShapeUpgrade_Done) 
-       di << "Done"<<"\n";
+       di << "Done\n";
       else if (theError==ShapeUpgrade_NotDone) 
-       di << "NotDone"<<"\n";
+       di << "NotDone\n";
       else if (theError==ShapeUpgrade_EmptyShell) 
-       di << "EmptyShell"<<"\n";
+       di << "EmptyShell\n";
       else if (theError==ShapeUpgrade_InvalidCriterion) 
-       di << "InvalidCriterion"<<"\n";
+       di << "InvalidCriterion\n";
       else if (theError==ShapeUpgrade_InvalidGridSurface) 
-       di << "InvalidGridSurface"<<"\n";
+       di << "InvalidGridSurface\n";
       else if (theError==ShapeUpgrade_DegeneratedEdge) 
-       di << "DegeneratedEdge"<<"\n";
+       di << "DegeneratedEdge\n";
       else if (theError==ShapeUpgrade_NoSurface) 
-       di << "NoSurface"<<"\n";
+       di << "NoSurface\n";
       else if (theError==ShapeUpgrade_NoTolerance) 
-       di << "NoTolerance"<<"\n";
+       di << "NoTolerance\n";
       return 1;
     }   
     
@@ -388,14 +388,14 @@ static Standard_Integer DT_ShapeConvert (Draw_Interpretor& di,
                                         Standard_Integer n, const char** a)
 {
   if (n<5) {
-    di << "bad number of arguments" <<"\n";
+    di << "bad number of arguments\n";
     return 1;
   } 
   
   // try to read a shape:
   TopoDS_Shape inputShape=DBRep::Get(a[2]);
   if (inputShape.IsNull()) {
-    di << "Unknown shape"<< "\n";
+    di << "Unknown shape\n";
     return 1;
   }
   
@@ -411,23 +411,23 @@ static Standard_Integer DT_ShapeConvert (Draw_Interpretor& di,
   tool.Perform();
   TopoDS_Shape res = tool.Result();
   
-  if ( tool.Status ( ShapeExtend_OK ) ) di << "Status: OK" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE1 ) ) di << "Status: DONE1" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE2 ) ) di << "Status: DONE2" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE3 ) ) di << "Status: DONE3" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE4 ) ) di << "Status: DONE4" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE5 ) ) di << "Status: DONE5" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE6 ) ) di << "Status: DONE6" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE7 ) ) di << "Status: DONE7" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE8 ) ) di << "Status: DONE8" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL1 ) ) di << "Status: FAIL1" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL2 ) ) di << "Status: FAIL2" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL3 ) ) di << "Status: FAIL3" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL4 ) ) di << "Status: FAIL4" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL5 ) ) di << "Status: FAIL5" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL6 ) ) di << "Status: FAIL6" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL7 ) ) di << "Status: FAIL7" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL8 ) ) di << "Status: FAIL8" << "\n";
+  if ( tool.Status ( ShapeExtend_OK ) ) di << "Status: OK\n";
+  if ( tool.Status ( ShapeExtend_DONE1 ) ) di << "Status: DONE1\n";
+  if ( tool.Status ( ShapeExtend_DONE2 ) ) di << "Status: DONE2\n";
+  if ( tool.Status ( ShapeExtend_DONE3 ) ) di << "Status: DONE3\n";
+  if ( tool.Status ( ShapeExtend_DONE4 ) ) di << "Status: DONE4\n";
+  if ( tool.Status ( ShapeExtend_DONE5 ) ) di << "Status: DONE5\n";
+  if ( tool.Status ( ShapeExtend_DONE6 ) ) di << "Status: DONE6\n";
+  if ( tool.Status ( ShapeExtend_DONE7 ) ) di << "Status: DONE7\n";
+  if ( tool.Status ( ShapeExtend_DONE8 ) ) di << "Status: DONE8\n";
+  if ( tool.Status ( ShapeExtend_FAIL1 ) ) di << "Status: FAIL1\n";
+  if ( tool.Status ( ShapeExtend_FAIL2 ) ) di << "Status: FAIL2\n";
+  if ( tool.Status ( ShapeExtend_FAIL3 ) ) di << "Status: FAIL3\n";
+  if ( tool.Status ( ShapeExtend_FAIL4 ) ) di << "Status: FAIL4\n";
+  if ( tool.Status ( ShapeExtend_FAIL5 ) ) di << "Status: FAIL5\n";
+  if ( tool.Status ( ShapeExtend_FAIL6 ) ) di << "Status: FAIL6\n";
+  if ( tool.Status ( ShapeExtend_FAIL7 ) ) di << "Status: FAIL7\n";
+  if ( tool.Status ( ShapeExtend_FAIL8 ) ) di << "Status: FAIL8\n";
 
   // fixes
   
@@ -440,13 +440,13 @@ static Standard_Integer DT_SplitAngle(Draw_Interpretor& di,
                                      Standard_Integer n, const char** a)
 {
   if (n<3) {
-    di << "bad number of arguments" <<"\n";
+    di << "bad number of arguments\n";
     return 1;
   }
   
   TopoDS_Shape inputShape=DBRep::Get(a[2]);
   if (inputShape.IsNull()) {
-    di << "Unknown shape"<< "\n";
+    di << "Unknown shape\n";
     return 1;
   }
   
@@ -460,23 +460,23 @@ static Standard_Integer DT_SplitAngle(Draw_Interpretor& di,
   tool.Perform();
   TopoDS_Shape res = tool.Result();
 
-  if ( tool.Status ( ShapeExtend_OK ) ) di << "Status: OK" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE1 ) ) di << "Status: DONE1" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE2 ) ) di << "Status: DONE2" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE3 ) ) di << "Status: DONE3" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE4 ) ) di << "Status: DONE4" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE5 ) ) di << "Status: DONE5" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE6 ) ) di << "Status: DONE6" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE7 ) ) di << "Status: DONE7" << "\n";
-  if ( tool.Status ( ShapeExtend_DONE8 ) ) di << "Status: DONE8" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL1 ) ) di << "Status: FAIL1" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL2 ) ) di << "Status: FAIL2" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL3 ) ) di << "Status: FAIL3" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL4 ) ) di << "Status: FAIL4" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL5 ) ) di << "Status: FAIL5" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL6 ) ) di << "Status: FAIL6" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL7 ) ) di << "Status: FAIL7" << "\n";
-  if ( tool.Status ( ShapeExtend_FAIL8 ) ) di << "Status: FAIL8" << "\n";
+  if ( tool.Status ( ShapeExtend_OK ) ) di << "Status: OK\n";
+  if ( tool.Status ( ShapeExtend_DONE1 ) ) di << "Status: DONE1\n";
+  if ( tool.Status ( ShapeExtend_DONE2 ) ) di << "Status: DONE2\n";
+  if ( tool.Status ( ShapeExtend_DONE3 ) ) di << "Status: DONE3\n";
+  if ( tool.Status ( ShapeExtend_DONE4 ) ) di << "Status: DONE4\n";
+  if ( tool.Status ( ShapeExtend_DONE5 ) ) di << "Status: DONE5\n";
+  if ( tool.Status ( ShapeExtend_DONE6 ) ) di << "Status: DONE6\n";
+  if ( tool.Status ( ShapeExtend_DONE7 ) ) di << "Status: DONE7\n";
+  if ( tool.Status ( ShapeExtend_DONE8 ) ) di << "Status: DONE8\n";
+  if ( tool.Status ( ShapeExtend_FAIL1 ) ) di << "Status: FAIL1\n";
+  if ( tool.Status ( ShapeExtend_FAIL2 ) ) di << "Status: FAIL2\n";
+  if ( tool.Status ( ShapeExtend_FAIL3 ) ) di << "Status: FAIL3\n";
+  if ( tool.Status ( ShapeExtend_FAIL4 ) ) di << "Status: FAIL4\n";
+  if ( tool.Status ( ShapeExtend_FAIL5 ) ) di << "Status: FAIL5\n";
+  if ( tool.Status ( ShapeExtend_FAIL6 ) ) di << "Status: FAIL6\n";
+  if ( tool.Status ( ShapeExtend_FAIL7 ) ) di << "Status: FAIL7\n";
+  if ( tool.Status ( ShapeExtend_FAIL8 ) ) di << "Status: FAIL8\n";
 
   // fixes
   
@@ -502,7 +502,7 @@ static Standard_Integer DT_PlaneDividedFace (Draw_Interpretor& di,
   // a[3]= Tolerance
 
   if (n !=4) {
-    di << "bad number of arguments" <<"\n";
+    di << "bad number of arguments\n";
     return 1;
   }
 
@@ -510,7 +510,7 @@ static Standard_Integer DT_PlaneDividedFace (Draw_Interpretor& di,
   TopoDS_Shape inputShape=DBRep::Get(a[2]);
   TopoDS_Face  inputFace = TopoDS::Face(inputShape);
   if (inputFace.IsNull()) {
-    di << a[2] << " is not a face" << "\n";
+    di << a[2] << " is not a face\n";
     return 1;
   }
 
@@ -520,7 +520,7 @@ static Standard_Integer DT_PlaneDividedFace (Draw_Interpretor& di,
   //theTool.SetTolerance(Tol);
   theTool.Build();
   if (!theTool.IsDone()) {
-    di << "Not done" << "\n";
+    di << "Not done\n";
     return 1;
   }    
 
@@ -555,7 +555,7 @@ static Standard_Integer DT_PlaneGridShell (Draw_Interpretor& di,
   Standard_Integer NbU=Draw::Atoi(a[2]);
   Standard_Integer NbV=Draw::Atoi(a[3]);
   if (n != 4+NbU+NbV+1) {
-    di << "bad number of arguments" <<"\n";
+    di << "bad number of arguments\n";
     return 1;
   }
 
@@ -595,21 +595,21 @@ static Standard_Integer DT_PlaneFaceCommon (Draw_Interpretor& di,
   // a[3]= input Shell
 
   if (n !=4) {
-    di << "bad number of arguments" <<"\n";
+    di << "bad number of arguments\n";
     return 1;
   }
 
   TopoDS_Shape inputShape= DBRep::Get(a[2]);
   TopoDS_Face  inputFace = TopoDS::Face(inputShape);
   if (inputFace.IsNull()) {
-    di << a[2] << " is not a face" << "\n";
+    di << a[2] << " is not a face\n";
     return 1;
   }
 
   inputShape = DBRep::Get(a[3]);
   TopoDS_Shell inputShell = TopoDS::Shell(inputShape);
   if (inputShell.IsNull()) {
-    di << a[3] << " is not a shell" << "\n";
+    di << a[3] << " is not a shell\n";
     return 1;
   }
 
@@ -636,7 +636,7 @@ static Standard_Integer DT_SplitCurve (Draw_Interpretor& di,
   // a[2]= Tolerance
 
   if (n < 3) {
-    di << "bad number of arguments" <<"\n";
+    di << "bad number of arguments\n";
     return 1;
   }
 
@@ -681,7 +681,7 @@ static Standard_Integer DT_SplitCurve2d (Draw_Interpretor& di,
   // a[2]= Tolerance
 
   if (n < 3) {
-    di << "bad number of arguments" <<"\n";
+    di << "bad number of arguments\n";
     return 1;
   }
 
@@ -724,18 +724,18 @@ static Standard_Integer DT_SplitWire (Draw_Interpretor& di,
 {
 
   if (n <3) {
-    di << "bad number of arguments" <<"\n";
+    di << "bad number of arguments\n";
     return 1;
   }
 
   TopoDS_Face source = TopoDS::Face(DBRep::Get(a[2]));
   if(source.IsNull()) {
-    di <<"Shape is not face"<<"\n";
+    di <<"Shape is not face\n";
     return 1;
   }
   TopoDS_Iterator wi(source);
   if(!wi.More()) {
-    di <<"Shape is face without wire"<<"\n";
+    di <<"Shape is face without wire\n";
     return 1;
   }
   
@@ -758,13 +758,13 @@ static Standard_Integer DT_SplitFace (Draw_Interpretor& di,
 {
 
   if (n <3) {
-    di << "bad number of arguments" <<"\n";
+    di << "bad number of arguments\n";
     return 1;
   }
 
   TopoDS_Face source = TopoDS::Face(DBRep::Get(a[2]));
   if(source.IsNull()) {
-    di <<"Shape is not face"<<"\n";
+    di <<"Shape is not face\n";
     return 1;
   } 
   Handle(ShapeUpgrade_ShapeDivideContinuity) tool = new ShapeUpgrade_FaceDivideContinuity;
@@ -779,23 +779,23 @@ static Standard_Integer DT_SplitFace (Draw_Interpretor& di,
   TopoDS_Shape result = tool->Result();
   
   
-  if ( tool->Status ( ShapeExtend_OK ) ) di << "Status: OK" << "\n";
-  if ( tool->Status ( ShapeExtend_DONE1 ) ) di << "Status: DONE1" << "\n";
-  if ( tool->Status ( ShapeExtend_DONE2 ) ) di << "Status: DONE2" << "\n";
-  if ( tool->Status ( ShapeExtend_DONE3 ) ) di << "Status: DONE3" << "\n";
-  if ( tool->Status ( ShapeExtend_DONE4 ) ) di << "Status: DONE4" << "\n";
-  if ( tool->Status ( ShapeExtend_DONE5 ) ) di << "Status: DONE5" << "\n";
-  if ( tool->Status ( ShapeExtend_DONE6 ) ) di << "Status: DONE6" << "\n";
-  if ( tool->Status ( ShapeExtend_DONE7 ) ) di << "Status: DONE7" << "\n";
-  if ( tool->Status ( ShapeExtend_DONE8 ) ) di << "Status: DONE8" << "\n";
-  if ( tool->Status ( ShapeExtend_FAIL1 ) ) di << "Status: FAIL1" << "\n";
-  if ( tool->Status ( ShapeExtend_FAIL2 ) ) di << "Status: FAIL2" << "\n";
-  if ( tool->Status ( ShapeExtend_FAIL3 ) ) di << "Status: FAIL3" << "\n";
-  if ( tool->Status ( ShapeExtend_FAIL4 ) ) di << "Status: FAIL4" << "\n";
-  if ( tool->Status ( ShapeExtend_FAIL5 ) ) di << "Status: FAIL5" << "\n";
-  if ( tool->Status ( ShapeExtend_FAIL6 ) ) di << "Status: FAIL6" << "\n";
-  if ( tool->Status ( ShapeExtend_FAIL7 ) ) di << "Status: FAIL7" << "\n";
-  if ( tool->Status ( ShapeExtend_FAIL8 ) ) di << "Status: FAIL8" << "\n";
+  if ( tool->Status ( ShapeExtend_OK ) ) di << "Status: OK\n";
+  if ( tool->Status ( ShapeExtend_DONE1 ) ) di << "Status: DONE1\n";
+  if ( tool->Status ( ShapeExtend_DONE2 ) ) di << "Status: DONE2\n";
+  if ( tool->Status ( ShapeExtend_DONE3 ) ) di << "Status: DONE3\n";
+  if ( tool->Status ( ShapeExtend_DONE4 ) ) di << "Status: DONE4\n";
+  if ( tool->Status ( ShapeExtend_DONE5 ) ) di << "Status: DONE5\n";
+  if ( tool->Status ( ShapeExtend_DONE6 ) ) di << "Status: DONE6\n";
+  if ( tool->Status ( ShapeExtend_DONE7 ) ) di << "Status: DONE7\n";
+  if ( tool->Status ( ShapeExtend_DONE8 ) ) di << "Status: DONE8\n";
+  if ( tool->Status ( ShapeExtend_FAIL1 ) ) di << "Status: FAIL1\n";
+  if ( tool->Status ( ShapeExtend_FAIL2 ) ) di << "Status: FAIL2\n";
+  if ( tool->Status ( ShapeExtend_FAIL3 ) ) di << "Status: FAIL3\n";
+  if ( tool->Status ( ShapeExtend_FAIL4 ) ) di << "Status: FAIL4\n";
+  if ( tool->Status ( ShapeExtend_FAIL5 ) ) di << "Status: FAIL5\n";
+  if ( tool->Status ( ShapeExtend_FAIL6 ) ) di << "Status: FAIL6\n";
+  if ( tool->Status ( ShapeExtend_FAIL7 ) ) di << "Status: FAIL7\n";
+  if ( tool->Status ( ShapeExtend_FAIL8 ) ) di << "Status: FAIL8\n";
 
   // fixes
   
@@ -821,7 +821,7 @@ static Standard_Integer DT_SplitSurface (Draw_Interpretor& di,
   // a[4+nbU*nbV]= Tolerance
 
   if (n <4) {
-    di << "bad number of arguments" <<"\n";
+    di << "bad number of arguments\n";
     return 1;
   }
 
@@ -835,7 +835,7 @@ static Standard_Integer DT_SplitSurface (Draw_Interpretor& di,
 /* 
   if ( GS.IsNull()) {
     // Case of composite grid surface
-    di << "composite surf" << "\n";
+    di << "composite surf\n";
     Standard_Integer      nbU=Draw::Atoi(a[2]);
     Standard_Integer      nbV=Draw::Atoi(a[3]);
     if (nbU==0 || nbV==0) return 1;
@@ -847,14 +847,14 @@ static Standard_Integer DT_SplitSurface (Draw_Interpretor& di,
        theGrid->SetValue(iu,iv,GS);
       }
     }
-    di << "appel a SplitSurface::Init" << "\n";
+    di << "appel a SplitSurface::Init\n";
     theTool->Init(theGrid);
   }
   else {*/
     // Case of single surface
-  di << "single surf" << "\n";
+  di << "single surf\n";
   
-  di << "appel a SplitSurface::Init" << "\n";
+  di << "appel a SplitSurface::Init\n";
   theTool->Init(GS);
   if(Split ==1) {
     Handle(TColStd_HSequenceOfReal) spval = new TColStd_HSequenceOfReal;
@@ -863,10 +863,10 @@ static Standard_Integer DT_SplitSurface (Draw_Interpretor& di,
     theTool->SetVSplitValues(spval);
   }
 
-  di << "appel a SplitSurface::Build" << "\n";
+  di << "appel a SplitSurface::Build\n";
   theTool->Build(Standard_True);
 
-  di << "appel a SplitSurface::GlobalU/VKnots" << "\n";
+  di << "appel a SplitSurface::GlobalU/VKnots\n";
   Handle(ShapeExtend_CompositeSurface) Grid = theTool->ResSurfaces();
   Handle(TColStd_HArray1OfReal) GlobalU=Grid->UJointValues();
   Handle(TColStd_HArray1OfReal) GlobalV=Grid->VJointValues();
@@ -881,10 +881,10 @@ static Standard_Integer DT_SplitSurface (Draw_Interpretor& di,
     di  <<" "<< GlobalV->Value(iv);
   di <<"\n";
 
-di << "appel a Surfaces" << "\n";
+di << "appel a Surfaces\n";
   Handle(TColGeom_HArray2OfSurface) theSurfaces= Grid->Patches();
 
-di << "transfert resultat" << "\n";
+di << "transfert resultat\n";
   Standard_Integer NbRow=theSurfaces->ColLength();
   Standard_Integer NbCol=theSurfaces->RowLength();
   for (Standard_Integer irow=1; irow<=NbRow; irow++) {
@@ -909,7 +909,7 @@ static Standard_Integer offset2dcurve
   (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 4) {
-    di<<"result + curve + offset"<<"\n";
+    di<<"result + curve + offset\n";
     
     return 1 /* Error */;    
   }
@@ -932,7 +932,7 @@ static Standard_Integer offsetcurve
   (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 5) {
-    di<<"result + curve + offset + Dir"<<"\n";
+    di<<"result + curve + offset + Dir\n";
     
     return 1 /* Error */;    
   }
@@ -957,14 +957,14 @@ static Standard_Integer splitface
   (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 5) {
-    di << "Split face: splitface result face [u usplit1 usplit2...] [v vsplit1 vsplit2 ...]" << "\n";
+    di << "Split face: splitface result face [u usplit1 usplit2...] [v vsplit1 vsplit2 ...]\n";
     return 1;    
   }
   
   TopoDS_Shape aLocalShape = DBRep::Get(argv[2]) ;
   TopoDS_Face face = TopoDS::Face ( aLocalShape );
   if ( face.IsNull() ) {
-    di << argv[2] << " is not Face" << "\n";
+    di << argv[2] << " is not Face\n";
     return 1;
   }
   
@@ -1006,21 +1006,21 @@ static Standard_Integer splitface
       Standard_Real val = Draw::Atof ( argv[i] );
       TColStd_SequenceOfReal &vals = ( byV ? vval : uval );
       if ( vals.Length() >0 && val - vals.Last() < Precision::PConfusion() ) {
-       di << "Values should be sorted in increasing order; skipped" << "\n";
+       di << "Values should be sorted in increasing order; skipped\n";
        continue;
       }
       if ( ( byV && ( val < Vf+Precision::PConfusion() || 
                      val > Vl-Precision::PConfusion() ) ) ||
            (!byV && ( val < Uf+Precision::PConfusion() || 
                      val > Ul-Precision::PConfusion() ) ) ) {
-       di << "Values should be inside range of surface; skipped" << "\n";
+       di << "Values should be inside range of surface; skipped\n";
        continue; 
       }
       vals.Append ( val );
     }
   }
   if ( uval.Length() <1 && vval.Length() <1 ) {
-    di << "No splitting defined" << "\n";
+    di << "No splitting defined\n";
     return 1;
   }
   if ( uval.Length() >0 ) {
@@ -1065,7 +1065,7 @@ static Standard_Integer splitface
   }
 
   Handle(ShapeExtend_CompositeSurface) Grid = new ShapeExtend_CompositeSurface;
-  if ( ! Grid->Init ( AS ) ) di << "Grid badly connected!" << "\n";
+  if ( ! Grid->Init ( AS ) ) di << "Grid badly connected!\n";
 
   ShapeFix_ComposeShell SUCS;
   TopLoc_Location l;
@@ -1074,23 +1074,23 @@ static Standard_Integer splitface
   SUCS.SetContext( RS );
   SUCS.Perform ();
   
-  if ( SUCS.Status ( ShapeExtend_OK ) ) di << "Status: OK" << "\n";
-  if ( SUCS.Status ( ShapeExtend_DONE1 ) ) di << "Status: DONE1" << "\n";
-  if ( SUCS.Status ( ShapeExtend_DONE2 ) ) di << "Status: DONE2" << "\n";
-  if ( SUCS.Status ( ShapeExtend_DONE3 ) ) di << "Status: DONE3" << "\n";
-  if ( SUCS.Status ( ShapeExtend_DONE4 ) ) di << "Status: DONE4" << "\n";
-  if ( SUCS.Status ( ShapeExtend_DONE5 ) ) di << "Status: DONE5" << "\n";
-  if ( SUCS.Status ( ShapeExtend_DONE6 ) ) di << "Status: DONE6" << "\n";
-  if ( SUCS.Status ( ShapeExtend_DONE7 ) ) di << "Status: DONE7" << "\n";
-  if ( SUCS.Status ( ShapeExtend_DONE8 ) ) di << "Status: DONE8" << "\n";
-  if ( SUCS.Status ( ShapeExtend_FAIL1 ) ) di << "Status: FAIL1" << "\n";
-  if ( SUCS.Status ( ShapeExtend_FAIL2 ) ) di << "Status: FAIL2" << "\n";
-  if ( SUCS.Status ( ShapeExtend_FAIL3 ) ) di << "Status: FAIL3" << "\n";
-  if ( SUCS.Status ( ShapeExtend_FAIL4 ) ) di << "Status: FAIL4" << "\n";
-  if ( SUCS.Status ( ShapeExtend_FAIL5 ) ) di << "Status: FAIL5" << "\n";
-  if ( SUCS.Status ( ShapeExtend_FAIL6 ) ) di << "Status: FAIL6" << "\n";
-  if ( SUCS.Status ( ShapeExtend_FAIL7 ) ) di << "Status: FAIL7" << "\n";
-  if ( SUCS.Status ( ShapeExtend_FAIL8 ) ) di << "Status: FAIL8" << "\n";
+  if ( SUCS.Status ( ShapeExtend_OK ) ) di << "Status: OK\n";
+  if ( SUCS.Status ( ShapeExtend_DONE1 ) ) di << "Status: DONE1\n";
+  if ( SUCS.Status ( ShapeExtend_DONE2 ) ) di << "Status: DONE2\n";
+  if ( SUCS.Status ( ShapeExtend_DONE3 ) ) di << "Status: DONE3\n";
+  if ( SUCS.Status ( ShapeExtend_DONE4 ) ) di << "Status: DONE4\n";
+  if ( SUCS.Status ( ShapeExtend_DONE5 ) ) di << "Status: DONE5\n";
+  if ( SUCS.Status ( ShapeExtend_DONE6 ) ) di << "Status: DONE6\n";
+  if ( SUCS.Status ( ShapeExtend_DONE7 ) ) di << "Status: DONE7\n";
+  if ( SUCS.Status ( ShapeExtend_DONE8 ) ) di << "Status: DONE8\n";
+  if ( SUCS.Status ( ShapeExtend_FAIL1 ) ) di << "Status: FAIL1\n";
+  if ( SUCS.Status ( ShapeExtend_FAIL2 ) ) di << "Status: FAIL2\n";
+  if ( SUCS.Status ( ShapeExtend_FAIL3 ) ) di << "Status: FAIL3\n";
+  if ( SUCS.Status ( ShapeExtend_FAIL4 ) ) di << "Status: FAIL4\n";
+  if ( SUCS.Status ( ShapeExtend_FAIL5 ) ) di << "Status: FAIL5\n";
+  if ( SUCS.Status ( ShapeExtend_FAIL6 ) ) di << "Status: FAIL6\n";
+  if ( SUCS.Status ( ShapeExtend_FAIL7 ) ) di << "Status: FAIL7\n";
+  if ( SUCS.Status ( ShapeExtend_FAIL8 ) ) di << "Status: FAIL8\n";
 
   TopoDS_Shape sh = SUCS.Result();
   ShapeFix::SameParameter ( sh, Standard_False );
@@ -1115,7 +1115,7 @@ static Standard_Integer converttobspline
   
   TopoDS_Shape inputShape=DBRep::Get(argv[2]);
   if (inputShape.IsNull()) {
-    di << "Unknown shape"<< "\n";
+    di << "Unknown shape\n";
     return 1;
   }
   TopoDS_Shape revsh = ShapeCustom::ConvertToRevolution (inputShape);
@@ -1135,13 +1135,13 @@ static Standard_Integer splitclosed (Draw_Interpretor& di,
                                     const char** argv)
 {
   if (argc<3) {
-    di << "bad number of arguments" <<"\n";
+    di << "bad number of arguments\n";
     return 1;
   }
   
   TopoDS_Shape inputShape=DBRep::Get(argv[2]);
   if (inputShape.IsNull()) {
-    di << "Unknown shape"<< "\n";
+    di << "Unknown shape\n";
     return 1;
   }
   
@@ -1159,13 +1159,13 @@ static Standard_Integer splitarea (Draw_Interpretor& di,
                                     const char** argv)
 {
   if (argc<4) {
-    di << "bad number of arguments" <<"\n";
+    di << "bad number of arguments\n";
     return 1;
   }
   
   TopoDS_Shape inputShape=DBRep::Get(argv[2]);
   if (inputShape.IsNull()) {
-    di << "Unknown shape"<< "\n";
+    di << "Unknown shape\n";
     return 1;
   }
   Standard_Real aMaxArea = Draw::Atof(argv[3]);
@@ -1190,13 +1190,13 @@ static Standard_Integer removeinternalwires (Draw_Interpretor& di,
                                              const char** argv)
 {
   if (argc<4) {
-    di << "bad number of arguments" <<"\n";
+    di << "bad number of arguments\n";
     return 1;
   }
   Standard_Real aMinArea = Draw::Atof(argv[2]);
   TopoDS_Shape inputShape=DBRep::Get(argv[3]);
   if (inputShape.IsNull()) {
-    di << "Unknown shape"<< "\n";
+    di << "Unknown shape\n";
     return 1;
   }
   Handle(ShapeUpgrade_RemoveInternalWires) aTool;
@@ -1204,7 +1204,7 @@ static Standard_Integer removeinternalwires (Draw_Interpretor& di,
   if(inputShape.ShapeType() < TopAbs_WIRE)
      aTool = new ShapeUpgrade_RemoveInternalWires(inputShape);
   else {
-   di<<"Invalid type of first shape: should be FACE,SHELL,SOLID or COMPOUND"<<"\n";
+   di<<"Invalid type of first shape: should be FACE,SHELL,SOLID or COMPOUND\n";
    return 1;
   }
   
@@ -1233,17 +1233,17 @@ static Standard_Integer removeinternalwires (Draw_Interpretor& di,
   else
     aTool->Perform();
   if(aTool->Status(ShapeExtend_FAIL1))
-     di<<"Initial shape has invalid type"<<"\n";
+     di<<"Initial shape has invalid type\n";
   else if(aTool->Status(ShapeExtend_FAIL2))
-     di<<"Specified sub-shape is not belonged to whole shape"<<"\n";   
+     di<<"Specified sub-shape is not belonged to whole shape\n";   
   if(aTool->Status(ShapeExtend_DONE1)) {
     const TopTools_SequenceOfShape& aRemovedWires =aTool->RemovedWires(); 
-     di<<aRemovedWires.Length()<<" internal wires were removed"<<"\n";
+     di<<aRemovedWires.Length()<<" internal wires were removed\n";
     
   }
   if(aTool->Status(ShapeExtend_DONE2)) {
     const TopTools_SequenceOfShape& aRemovedFaces =aTool->RemovedFaces(); 
-     di<<aRemovedFaces.Length()<<" small faces were removed"<<"\n";
+     di<<aRemovedFaces.Length()<<" small faces were removed\n";
     
   }   
   TopoDS_Shape res = aTool->GetResult();
@@ -1258,7 +1258,7 @@ static Standard_Integer removeloc (Draw_Interpretor& di,
                                    const char** argv)
 {
   if (argc<3) {
-    di << "bad number of arguments. Should be:  removeloc res shape" <<"\n";
+    di << "bad number of arguments. Should be:  removeloc res shape\n";
     return 1;
   }
   
@@ -1352,7 +1352,7 @@ static Standard_Integer copytranslate(Draw_Interpretor& di,
                                    const char** argv)
 {
   if (argc<6) {
-    di << "bad number of arguments. Should be:  removeloc res shape dx dyy dz" <<"\n";
+    di << "bad number of arguments. Should be:  removeloc res shape dx dyy dz\n";
     return 1;
   }
   TopoDS_Shape aShape = DBRep::Get(argv[2]);
index 45325a2ba8bc60a2ee9b3e7004f711429b8dec8b..2601afa44c31a0c39ca2a08315adb440746455be 100644 (file)
@@ -205,7 +205,7 @@ ShapeUpgrade_SplitSurfaceContinuity::ShapeUpgrade_SplitSurfaceContinuity()
   if(mySurface->IsKind(STANDARD_TYPE(Geom_BSplineSurface)))
     MyBSpline = Handle(Geom_BSplineSurface)::DownCast(mySurface->Copy());
   if (MyBSpline.IsNull()) {
-//    if (ShapeUpgrade::Debug()) cout<<". "<<" Surface is not a Bspline"<<endl;
+//    if (ShapeUpgrade::Debug()) cout<<".  Surface is not a Bspline"<<endl;
     return;
   } 
   if(mySurface->Continuity() >= myCriterion) {
index 182d623a2c3646d4bd665f327ec96becac8dba4c..697a8f07a5ba32d49fa8f77b180d910639a44d58 100644 (file)
@@ -1623,8 +1623,8 @@ static Standard_Boolean ORientation (const TDF_Label&                L,
          CS =  FindSubShapeInAncestor(aShape, AS);
 // <=== end 21.10.2009
 #ifdef OCCT_DEBUG_OR
-       cout << "ORIENTATION: Selection" <<" TShape = " <<CS.TShape() <<" Orientation = " << CS.Orientation() <<endl;
-       cout << "ORIENTATION: Context " << "ShapeType = "<<AS.ShapeType() << " TShape = " <<AS.TShape() <<endl;
+       cout << "ORIENTATION: Selection TShape = " <<CS.TShape() <<" Orientation = " << CS.Orientation() <<endl;
+       cout << "ORIENTATION: Context ShapeType = "<<AS.ShapeType() << " TShape = " <<AS.TShape() <<endl;
        DbgTools_Write(AS, "Orientation_Cnt.brep");
 #endif
        if(!CS.IsNull()) {
@@ -1783,7 +1783,7 @@ static Standard_Boolean WireIN(const TDF_Label&                L,
        }
 
 #ifdef OCCT_DEBUG_WIN
-    cout <<"WIREIN: " << " Internal Map ext = " << aSet.Map().Extent()<<endl;
+    cout <<"WIREIN:  Internal Map ext = " << aSet.Map().Extent()<<endl;
     TopTools_MapIteratorOfMapOfShape it1 (aSet.Map());
     for (int i=1;it1.More();it1.Next(),i++) {
       cout << "Map("<<i<<"): TShape = " << it1.Key().TShape() << " Orient = " << it1.Key().Orientation() <<" Type = " <<
@@ -1928,7 +1928,7 @@ static Standard_Boolean ShellIN(const TDF_Label&                L,
        }
 
 #ifdef OCCT_DEBUG_SHELL
-    cout <<"SHELLIN: " << " Internal Map ext = " << aSet.Map().Extent()<<endl;
+    cout <<"SHELLIN:  Internal Map ext = " << aSet.Map().Extent()<<endl;
     TopTools_MapIteratorOfMapOfShape it1 (aSet.Map());
     for (int i=1;it1.More();it1.Next(),i++) {
       cout << "Map("<<i<<"): TShape = " << it1.Key().TShape() << " Orient = " << it1.Key().Orientation() <<" Type = " <<
index d18f7661cb9a57f307cc2ae5562fcb89552796d8..bcfe1b8e5b85a499a06253b690bb7f23c158f1d4 100644 (file)
@@ -374,7 +374,7 @@ Standard_Boolean TNaming_Selector::Select (const TopoDS_Shape& Selection,
   if(!Selection.IsSame(aSelection) && Selection.ShapeType() != TopAbs_COMPOUND) {
     TCollection_AsciiString entry;
     TDF_Tool::Entry(NS->Label(), entry);
-    cout << "Selection is Not Same (NSLabel = " <<entry<<"): " << "TShape1 = " << 
+    cout << "Selection is Not Same (NSLabel = " <<entry<<"): TShape1 = " << 
       Selection.TShape()->This() << " TShape2 = " <<aSelection.TShape()->This() <<endl;
   }
 #endif
index e08e766678f202aafe3dbfedc90c31e8c69124a4..b764d296b7b46dd7c11d66692e5f34f7f69a9567 100644 (file)
@@ -160,9 +160,9 @@ static Standard_Integer newModel (Draw_Interpretor& di, Standard_Integer argc, c
     DD = new DDocStd_DrawDocument(D);
     TDataStd_Name::Set(D->GetData()->Root(),argv[1]);
     Draw::Set(argv[1],DD);
-    di << "document " << argv[1] << " created" << "\n";
+    di << "document " << argv[1] << " created\n";
   }
-  else di << argv[1] << " is already a document" << "\n";
+  else di << argv[1] << " is already a document\n";
 
   return 0;
 }
@@ -197,7 +197,7 @@ static Standard_Integer saveModel (Draw_Interpretor& di, Standard_Integer argc,
     isSaved = aModel->Save();
   
   if (!isSaved) {
-    di << "Error: Document not saved" << "\n";
+    di << "Error: Document not saved\n";
     return 1;
   }
   return 0;
@@ -232,7 +232,7 @@ static Standard_Integer loadModel (Draw_Interpretor& di, Standard_Integer argc,
   
   
   if (!isLoaded) {
-    di << "Error: Document not loaded" << "\n";
+    di << "Error: Document not loaded\n";
     return 1;
   }
   return 0;
@@ -267,7 +267,7 @@ static Standard_Integer addObj (Draw_Interpretor& di, Standard_Integer argc, con
     new TObjDRAW_Object( aModel->GetMainPartition()->NewLabel() );
   if ( tObj.IsNull() )
   {
-    di << "Error: Object not created" << "\n";
+    di << "Error: Object not created\n";
     return 1;
   }
   tObj->SetName( argv[2] );
@@ -297,7 +297,7 @@ static Standard_Integer setVal (Draw_Interpretor& di, Standard_Integer argc, con
   Handle(TObjDRAW_Object) tObj = getObjByName( argv[1], argv[2] );
   if ( tObj.IsNull() )
   {
-    di << "Error: Object " << argv[2] << " not found" << "\n";
+    di << "Error: Object " << argv[2] << " not found\n";
     return 1;
   }
   if ( !strcmp(argv[3],"-r") )
@@ -325,7 +325,7 @@ static Standard_Integer getVal (Draw_Interpretor& di, Standard_Integer argc, con
   Handle(TObjDRAW_Object) tObj = getObjByName( argv[1], argv[2] );
   if ( tObj.IsNull() )
   {
-    di << "Error: Object " << argv[2] << " not found" << "\n";
+    di << "Error: Object " << argv[2] << " not found\n";
     return 1;
   }
   if ( !strcmp(argv[3],"-i") )
@@ -357,7 +357,7 @@ static Standard_Integer setRef (Draw_Interpretor& di, Standard_Integer argc, con
   Handle(TObjDRAW_Object) tObj2 = getObjByName( argv[1], argv[3] );
   if ( tObj1.IsNull() || tObj2.IsNull() )
   {
-    di << "Error: Object " << argv[2] << " or object " << argv[3] << " not found" << "\n";
+    di << "Error: Object " << argv[2] << " or object " << argv[3] << " not found\n";
     return 1;
   }
   tObj1->SetRef( tObj2 );
@@ -376,7 +376,7 @@ static Standard_Integer getRef (Draw_Interpretor& di, Standard_Integer argc, con
   Handle(TObjDRAW_Object) tObj = getObjByName( argv[1], argv[2] );
   if ( tObj.IsNull() )
   {
-    di << "Error: Object " << argv[2] << " not found" << "\n";
+    di << "Error: Object " << argv[2] << " not found\n";
     return 1;
   }
   Handle(TObj_Object) aRefObj = tObj->GetRef();
@@ -403,13 +403,13 @@ static Standard_Integer addChild (Draw_Interpretor& di, Standard_Integer argc, c
   Handle(TObjDRAW_Object) tObj = getObjByName( argv[1], argv[2] );
   if ( tObj.IsNull() )
   {
-    di << "Error: Object " << argv[2] << " not found" << "\n";
+    di << "Error: Object " << argv[2] << " not found\n";
     return 1;
   }
   Handle(TObj_Object) chldObj = tObj->AddChild();
   if ( chldObj.IsNull() )
   {
-    di << "Error: No child object created" << "\n";
+    di << "Error: No child object created\n";
     return 1;
   }
   chldObj->SetName( new TCollection_HExtendedString( argv[3] ) );
@@ -428,7 +428,7 @@ static Standard_Integer getChild (Draw_Interpretor& di, Standard_Integer argc, c
   Handle(TObjDRAW_Object) tObj = getObjByName( argv[1], argv[2] );
   if ( tObj.IsNull() )
   {
-    di << "Error: Object " << argv[2] << " not found" << "\n";
+    di << "Error: Object " << argv[2] << " not found\n";
     return 1;
   }
   Handle(TObj_ObjectIterator) anItr = tObj->GetChildren();
@@ -511,7 +511,7 @@ void TObjDRAW::Factory(Draw_Interpretor& theDI)
   TObjDRAW::Init(theDI);
 
 #ifdef OCCT_DEBUG
-      theDI << "Draw Plugin : All TKTObjDRAW commands are loaded" << "\n";
+      theDI << "Draw Plugin : All TKTObjDRAW commands are loaded\n";
 #endif
 }
 
index c58d2401ed3a8d0f628ed2bc2d618bc72653bd2d..30c00a0ab48c16fcbc6c00551258f393c8a60704 100644 (file)
@@ -253,7 +253,7 @@ Standard_Integer TOPOC(Draw_Interpretor& interpretor,Standard_Integer na,const c
        }
       }
       if ( !eca && !esa ) {
-       interpretor<<"edge "<<ie<<" has no ancestors"<<"\n";
+       interpretor<<"edge "<<ie<<" has no ancestors\n";
       }
     }
   }
@@ -334,9 +334,9 @@ Standard_Integer TOPOSETCOMMANDS(TestTopOpe_BOOP& PT,Standard_Integer na,const c
 { 
   switch(na) {
   case 1:
-    di<<"toposet <kind> <index> <tol>"<<"\n";
-    di<<"toposet <kind = Point> <index> <x> <y> <z>"<<"\n";
-    di<<"kind = p | c | s | v | e | f | w "<<"\n";
+    di<<"toposet <kind> <index> <tol>\n";
+    di<<"toposet <kind = Point> <index> <x> <y> <z>\n";
+    di<<"kind = p | c | s | v | e | f | w \n";
     return 1;
   case 4:
     if(!strcasecmp(a[1],"p"))
@@ -368,23 +368,23 @@ Standard_Integer TOPOSETCOMMANDS(TestTopOpe_BOOP& PT,Standard_Integer na,const c
 void TOPOHELP(TestTopOpe_BOOP& PT, Draw_Interpretor& di)
 {
   di<<"\n";
-  di<<"Help on topo command :"<<"\n";
-  di<<"----------------------"<<"\n";
+  di<<"Help on topo command :\n";
+  di<<"----------------------\n";
   for (Standard_Integer ic=0;ic<PT.Tnb();ic++) di<<PT.Tkeys(ic).ToCString()<<" : "<<PT.Thelp(ic).ToCString()<<"\n";
-  di<<"args :"<<"\n";
-  di<<"-2d -no2d : produce (or not) 2d curves in section"<<"\n";
-  di<<"-a : section curves approximated (default)"<<"\n";
-  di<<"-p : section curve discretisated"<<"\n";
-  di<<"-tx [default] | tol1 tol2 : set approximation tolerances"<<"\n";
-  di<<"-ti [shape] | tol1 tol2 : set intersection tolerances"<<"\n";
-  di<<"-c 0/[1] : clear view before displaying result"<<"\n";
-  di<<"-m [0]/1 : execute methods / explode methods"<<"\n";
-  di<<"-f [name] : retrieve shape/index <name> among input shapes (exploration index)"<<"\n";
-  di<<"-v [0]/1 : do not trace / trace methods name"<<"\n";
-  di<<"-d : dump all control variables"<<"\n";
-  di<<"-i : initialize control variables to default values"<<"\n";
-  di<<"-h : help"<<"\n";
-  di<<"----------------------"<<"\n";
+  di<<"args :\n";
+  di<<"-2d -no2d : produce (or not) 2d curves in section\n";
+  di<<"-a : section curves approximated (default)\n";
+  di<<"-p : section curve discretisated\n";
+  di<<"-tx [default] | tol1 tol2 : set approximation tolerances\n";
+  di<<"-ti [shape] | tol1 tol2 : set intersection tolerances\n";
+  di<<"-c 0/[1] : clear view before displaying result\n";
+  di<<"-m [0]/1 : execute methods / explode methods\n";
+  di<<"-f [name] : retrieve shape/index <name> among input shapes (exploration index)\n";
+  di<<"-v [0]/1 : do not trace / trace methods name\n";
+  di<<"-d : dump all control variables\n";
+  di<<"-i : initialize control variables to default values\n";
+  di<<"-h : help\n";
+  di<<"----------------------\n";
 }
 
 // -------------------------------------------------------
index b0ca3e45b31f018ce166487ec10465627ff4a1d7..1879250e1d589f93b67628bbe4b5fbb790020d56 100644 (file)
@@ -139,13 +139,13 @@ Standard_Integer regularize(Draw_Interpretor& di, Standard_Integer n, const char
   TopoDS_Shape aLocalShape = DBRep::Get(a[1]);
   TopoDS_Face fa = TopoDS::Face(aLocalShape);
 //  TopoDS_Face fa = TopoDS::Face(DBRep::Get(a[1]));
-  if (fa.IsNull()) {di<<"null face"<<"\n"; return 1;}
+  if (fa.IsNull()) {di<<"null face\n"; return 1;}
   
   TopTools_DataMapOfShapeListOfShape ESplits;
   TopTools_ListOfShape lof;  
   TopOpeBRepTool::Regularize(fa, lof, ESplits);  
   Standard_Integer nfa = lof.Extent();
-  di<<"face gives "<<nfa<<" newfaces"<<"\n";
+  di<<"face gives "<<nfa<<" newfaces\n";
   
   Standard_Integer i = 0;
   TopTools_ListIteratorOfListOfShape itlof(lof) ;
@@ -158,7 +158,7 @@ Standard_Integer regularize(Draw_Interpretor& di, Standard_Integer n, const char
   BRep_Builder BB;
   TopoDS_Compound CC; BB.MakeCompound(CC);
   for (itlof.Initialize(lof); itlof.More(); itlof.Next()) BB.Add(CC, itlof.Value());
-  di<<"resulting compound is cmp"<<"\n";
+  di<<"resulting compound is cmp\n";
   TCollection_AsciiString aa = TCollection_AsciiString("cmp");
   FUN_draw(aa,CC);  
   
@@ -171,20 +171,20 @@ static Standard_Integer splitF(Draw_Interpretor& di, Standard_Integer n, const c
   TopoDS_Shape aLocalShape = DBRep::Get(a[1]);
   const TopoDS_Face& fa = TopoDS::Face(aLocalShape);
 //  const TopoDS_Face& fa = TopoDS::Face(DBRep::Get(a[1]));
-  if (fa.IsNull()) {di<<"null face"<<"\n"; return 1;}
+  if (fa.IsNull()) {di<<"null face\n"; return 1;}
   
   TopTools_ListOfShape fsplits;
 //  Standard_Boolean splitok = FUN_tool_SplitF(fa,fsplits);
   Standard_Boolean splitok = TopOpeBRepTool_REGUS::SplitF(fa,fsplits);
   
-  if (!splitok) {di<<"no splits"<<"\n"; return 0;}
-  di<<"fa gives "<<fsplits.Extent()<<" splits"<<"\n";
+  if (!splitok) {di<<"no splits\n"; return 0;}
+  di<<"fa gives "<<fsplits.Extent()<<" splits\n";
   
   BRep_Builder BB;
   TopoDS_Compound CC; BB.MakeCompound(CC);
   for (TopTools_ListIteratorOfListOfShape it(fsplits); it.More(); it.Next()) BB.Add(CC, it.Value());
   
-  di<<"resulting compound is cmp"<<"\n";
+  di<<"resulting compound is cmp\n";
   TCollection_AsciiString aa = TCollection_AsciiString("cmp");
   FUN_draw(aa,CC); 
   return 0;
@@ -195,10 +195,10 @@ static Standard_Integer regush(Draw_Interpretor& di, Standard_Integer n, const c
 {
   if (n < 2) return 1;
   const TopoDS_Shape& sha = DBRep::Get(a[1]);
-  if (sha.IsNull()) {di<<"null shape"<<"\n"; return 1;}
+  if (sha.IsNull()) {di<<"null shape\n"; return 1;}
   TopExp_Explorer ex(sha, TopAbs_SOLID);
   const TopoDS_Solid& so = TopoDS::Solid(ex.Current());
-  if (so.IsNull()) {di<<"no solid"<<"\n"; return 1;}
+  if (so.IsNull()) {di<<"no solid\n"; return 1;}
   
   TopTools_DataMapOfShapeListOfShape FSplits;
   TopTools_DataMapOfShapeListOfShape OldSheNewShe;
@@ -207,7 +207,7 @@ static Standard_Integer regush(Draw_Interpretor& di, Standard_Integer n, const c
   TopoDS_Compound CC; BB.MakeCompound(CC);
   Standard_Integer nshe = 0;
   Standard_Boolean regu = TopOpeBRepTool::RegularizeShells(so,OldSheNewShe,FSplits);
-  if (!regu) {di<<"solid gives no new shell"<<"\n";}
+  if (!regu) {di<<"solid gives no new shell\n";}
   else {  
     Standard_Integer noldshe = OldSheNewShe.Extent();
     TopTools_DataMapIteratorOfDataMapOfShapeListOfShape ite(OldSheNewShe);
@@ -222,7 +222,7 @@ static Standard_Integer regush(Draw_Interpretor& di, Standard_Integer n, const c
       }
     } // i = 1..noldshe
     di <<"noldshe = "<<noldshe<<" gives nshe = "<<nshe<<"\n";
-    di<<"resulting compound is cmp"<<"\n";
+    di<<"resulting compound is cmp\n";
     TCollection_AsciiString aa = TCollection_AsciiString("cmp");
     FUN_draw(aa,CC);  
   }
@@ -233,10 +233,10 @@ Standard_Integer reguso(Draw_Interpretor& di, Standard_Integer n, const char** a
 {
   if (n < 2) return 1;
   const TopoDS_Shape& sha = DBRep::Get(a[1]);
-  if (sha.IsNull()) {di<<"null shape"<<"\n"; return 1;}
+  if (sha.IsNull()) {di<<"null shape\n"; return 1;}
   TopExp_Explorer ex(sha, TopAbs_SOLID);
   const TopoDS_Solid& so = TopoDS::Solid(ex.Current());
-  if (so.IsNull()) {di<<"no solid"<<"\n"; return 1;}
+  if (so.IsNull()) {di<<"no solid\n"; return 1;}
   
   TopTools_DataMapOfShapeListOfShape FSplits;
   TopTools_DataMapOfShapeListOfShape OldSheNewShe;
@@ -245,7 +245,7 @@ Standard_Integer reguso(Draw_Interpretor& di, Standard_Integer n, const char** a
   TopoDS_Compound CC; BB.MakeCompound(CC);
 //  Standard_Integer nshe = 0;
   Standard_Boolean regu = TopOpeBRepTool::RegularizeShells(so,OldSheNewShe,FSplits);
-  if (!regu) {di<<"solid gives no new shell"<<"\n";}
+  if (!regu) {di<<"solid gives no new shell\n";}
   else {  
     TopTools_DataMapIteratorOfDataMapOfShapeListOfShape itm(OldSheNewShe);
     
@@ -270,8 +270,8 @@ Standard_Integer reguso(Draw_Interpretor& di, Standard_Integer n, const char** a
       aBBuilder.Add(aCompound,spli);
       nSo++;
     } 
-    di<<"so gives "<<nSo<<" new solids"<<"\n";
-    di<<"resulting compound is cmp"<<"\n";
+    di<<"so gives "<<nSo<<" new solids\n";
+    di<<"resulting compound is cmp\n";
     TCollection_AsciiString aa = TCollection_AsciiString("cmp");
     FUN_draw(aa, aCompound);
   }
@@ -357,7 +357,7 @@ static Standard_Integer purge(Draw_Interpretor& di, Standard_Integer n, const ch
   TopTools_ListIteratorOfListOfShape itw(lWs);  
   for (; itw.More(); itw.Next()) BB.Add(newF, TopoDS::Wire(itw.Value()));
 
-  di <<"New face built is newF"<<"\n";
+  di <<"New face built is newF\n";
   TCollection_AsciiString aa("newF");
   FUN_draw(aa, newF);
   return 0;  
@@ -376,12 +376,12 @@ Standard_Integer correctONISO(Draw_Interpretor& di, Standard_Integer n, const ch
 
   FC2D_Prepare(F,F);
 
-  if (F.IsNull() || Fsp.IsNull()) {di<<"NULL shape(s)"<<"\n";return 1;}
+  if (F.IsNull() || Fsp.IsNull()) {di<<"NULL shape(s)\n";return 1;}
 
   TopOpeBRepTool::CorrectONUVISO(F,Fsp);
   TCollection_AsciiString aa("newFsp");
   FUN_draw(aa,Fsp);
-  di<<"-> newFsp"<<"\n";
+  di<<"-> newFsp\n";
   
   return 0;  
 }
@@ -406,8 +406,8 @@ static Standard_Integer isclosingE(Draw_Interpretor& di, Standard_Integer n, con
                  Standard_SStream aSStream;
                  TopAbs::Print(oriE,aSStream);
                  di << aSStream;
-                 di<<" closing edge"<<"\n";}
-  else di <<"edge is NOT closing edge"<<"\n";
+                 di<<" closing edge\n";}
+  else di <<"edge is NOT closing edge\n";
   return 0;
 }
 
@@ -417,9 +417,9 @@ static Standard_Integer compareshsh(Draw_Interpretor& di, Standard_Integer n, co
   TopoDS_Shape sh1 = DBRep::Get(a[1]);
   TopoDS_Shape sh2 = DBRep::Get(a[2]);
   Standard_Boolean issame = sh1.IsSame(sh2); 
-  if (issame) di<<" same shapes"<<"\n";
-  else        di <<" shapes are not same"<<"\n";
-  Standard_Boolean isequal = sh1.IsEqual(sh2); if (isequal) di<<" equal shapes"<<"\n";
+  if (issame) di<<" same shapes\n";
+  else        di <<" shapes are not same\n";
+  Standard_Boolean isequal = sh1.IsEqual(sh2); if (isequal) di<<" equal shapes\n";
   return 0;
 }
 static Standard_Integer pcurveedgeonface(Draw_Interpretor& di, Standard_Integer n, const char** a)
@@ -458,12 +458,12 @@ static Standard_Integer orivine(Draw_Interpretor& di, Standard_Integer n, const
 //  TopoDS_Edge ed = TopoDS::Edge(DBRep::Get(a[2]));
 
   Standard_Integer ori = TopOpeBRepTool_TOOL::OriinSor(v,ed);
-  if      (ori==0) di<<"v not in ed"<<"\n";
-  else if (ori==1)  di<<"v FORWARD in ed"<<"\n";
-  else if (ori==2)  di<<"v REVERSED in ed"<<"\n";
-  else if (ori==3)  di<<"v INTERNAL in ed"<<"\n";
-  else if (ori==4)  di<<"v EXTERNAL in ed"<<"\n";
-  else if (ori==5)  di<<"v CLOSING in ed"<<"\n";
+  if      (ori==0) di<<"v not in ed\n";
+  else if (ori==1)  di<<"v FORWARD in ed\n";
+  else if (ori==2)  di<<"v REVERSED in ed\n";
+  else if (ori==3)  di<<"v INTERNAL in ed\n";
+  else if (ori==4)  di<<"v EXTERNAL in ed\n";
+  else if (ori==5)  di<<"v CLOSING in ed\n";
   return 0;
 }
 
@@ -486,12 +486,12 @@ static Standard_Integer vine(Draw_Interpretor& di, Standard_Integer n, const cha
   di << "p2df";FUN_cout(p2df,di); di << "p2dl";FUN_cout(p2dl,di);di<<"\n";  
   
   Standard_Integer ori = TopOpeBRepTool_TOOL::OriinSor(v,ed);
-  if      (ori==0)  {di<<"v not in ed"<<"\n"; return 0;}
-  else if (ori==1)  di<<"v FORWARD in ed"<<"\n";
-  else if (ori==2)  di<<"v REVERSED in ed"<<"\n";
-  else if (ori==3)  di<<"v INTERNAL in ed"<<"\n";
-  else if (ori==4)  di<<"v EXTERNAL in ed"<<"\n";
-  else if (ori==5)  di<<"v CLOSING in ed"<<"\n";
+  if      (ori==0)  {di<<"v not in ed\n"; return 0;}
+  else if (ori==1)  di<<"v FORWARD in ed\n";
+  else if (ori==2)  di<<"v REVERSED in ed\n";
+  else if (ori==3)  di<<"v INTERNAL in ed\n";
+  else if (ori==4)  di<<"v EXTERNAL in ed\n";
+  else if (ori==5)  di<<"v CLOSING in ed\n";
 
   if ((ori == 1) || (ori == 2)) {
     Standard_Real par = TopOpeBRepTool_TOOL::ParE(ori,ed);//FUN_tool_parOnE(ind,ed,fa);
@@ -516,8 +516,8 @@ static Standard_Integer issubshape(Draw_Interpretor& di, Standard_Integer n, con
   for (; ex.More(); ex.Next())
     if (ex.Current().IsSame(subshape)) {issubs = Standard_True; break;}
   
-  if (issubs) di<<" is subshape"<<"\n";
-  else        di<<" is NOT subshape"<<"\n";
+  if (issubs) di<<" is subshape\n";
+  else        di<<" is NOT subshape\n";
   return 0;
 }
 
@@ -633,10 +633,10 @@ static Standard_Integer pntonc(Draw_Interpretor& di, Standard_Integer n, const c
   if (n < 3) return 1;
   Standard_Real x = Draw::Atof(a[1]);
   Handle(Geom_Curve) C = DrawTrSurf::GetCurve(a[2]);
-  if (C.IsNull()) {di<<"null curve"<<"\n"; return 1;}
+  if (C.IsNull()) {di<<"null curve\n"; return 1;}
   gp_Pnt p = C->Value(x);
   di<<"point on curve of parameter "<<x<<" =("<<p.X()<<",";
-  di<<p.Y()<<","<<p.Z()<<")"<<"\n";
+  di<<p.Y()<<","<<p.Z()<<")\n";
   return 0;
 }
 
@@ -645,14 +645,14 @@ static Standard_Integer pntonc2d(Draw_Interpretor& di, Standard_Integer n, const
   if (n < 4) return 1;
   Standard_Real x = Draw::Atof(a[1]);
   Handle(Geom2d_Curve) C2d = DrawTrSurf::GetCurve2d(a[2]);
-  if (C2d.IsNull()) {di<<"null curve"<<"\n"; return 1;}
+  if (C2d.IsNull()) {di<<"null curve\n"; return 1;}
   Handle(Geom_Surface) S   = DrawTrSurf::GetSurface(a[3]);
-  if (S.IsNull()) {di<<"null surface"<<"\n"; return 1;}
+  if (S.IsNull()) {di<<"null surface\n"; return 1;}
   gp_Pnt2d p2d = C2d->Value(x);
-  di<<"point on curve of parameter "<<x<<" =("<<p2d.X()<<","<<p2d.Y()<<")"<<"\n";
+  di<<"point on curve of parameter "<<x<<" =("<<p2d.X()<<","<<p2d.Y()<<")\n";
   gp_Pnt p = S->Value(p2d.X(),p2d.Y());
   di<<"point on curve of parameter "<<x<<" =("<<p.X()<<",";
-  di<<p.Y()<<","<<p.Z()<<")"<<"\n";    
+  di<<p.Y()<<","<<p.Z()<<")\n";        
   return 0;                                                      
 }
 
@@ -667,7 +667,7 @@ static Standard_Integer projponf(Draw_Interpretor& di, Standard_Integer n, const
   TopoDS_Face f = TopoDS::Face(aLocalShape);
   //
   if (f.IsNull()) {
-    di<<"null shape"<<"\n";
+    di<<"null shape\n";
     return 1;
   }
   //
@@ -699,18 +699,18 @@ static Standard_Integer projponf(Draw_Interpretor& di, Standard_Integer n, const
   ok = FUN_tool_projPonF(p, f, uv, dist, anExtFlag, anExtAlgo);
   //
   if (!ok) {
-    di<<"projection failed"<<"\n"; 
+    di<<"projection failed\n"; 
     return 1;
   }
   //
   ok = FUN_tool_value(uv,f,pproj);
   if (!ok) {
-    di<<"projection failed"<<"\n"; 
+    di<<"projection failed\n"; 
     return 1;
   }
   //
   di<<"proj dist = "<<dist<<" uvproj = ("<<uv.X()<<" "<<uv.Y();
-  di<<"); pproj = ("<<pproj.X()<<" "<<pproj.Y()<<" "<<pproj.Z()<<")"<<"\n";
+  di<<"); pproj = ("<<pproj.X()<<" "<<pproj.Y()<<" "<<pproj.Z()<<")\n";
   return 0;
 }  
 
@@ -718,7 +718,7 @@ static Standard_Integer solidclassifier(Draw_Interpretor& di, Standard_Integer n
 {
   if (n < 4) return 1;
   TopoDS_Shape s = DBRep::Get(a[1]);
-  if (s.IsNull()) {di<<"null shape"<<"\n";return 1;}
+  if (s.IsNull()) {di<<"null shape\n";return 1;}
   gp_Pnt p; DrawTrSurf::GetPoint(a[2], p);
   Standard_Real tol = Draw::Atof(a[3]);
   
@@ -726,7 +726,7 @@ static Standard_Integer solidclassifier(Draw_Interpretor& di, Standard_Integer n
   TopAbs_State sta = TopAbs_UNKNOWN;
   if      (s.ShapeType() == TopAbs_SOLID) soclassi.Classify(TopoDS::Solid(s),p,tol);
   else if (s.ShapeType() == TopAbs_SHELL) soclassi.Classify(TopoDS::Shell(s),p,tol);
-  else {di<<"shape is not a solid nor a shell => KO"<<"\n"; return 1;}
+  else {di<<"shape is not a solid nor a shell => KO\n"; return 1;}
   
   sta = soclassi.State();
   di<<"point is ";
@@ -734,7 +734,7 @@ static Standard_Integer solidclassifier(Draw_Interpretor& di, Standard_Integer n
   Standard_SStream aSStream;
   TopAbs::Print(sta,aSStream);
   di << aSStream;
-  di<<" shape s"<<"\n";
+  di<<" shape s\n";
   return 0;
 }
 
@@ -742,7 +742,7 @@ static Standard_Integer class3dclassifier(Draw_Interpretor& di, Standard_Integer
 {
   if (n < 4) return 1;
   TopoDS_Shape s = DBRep::Get(a[1]);
-  if (s.IsNull()) {di<<"null shape"<<"\n";return 1;}
+  if (s.IsNull()) {di<<"null shape\n";return 1;}
   gp_Pnt p; DrawTrSurf::GetPoint(a[2], p);
   Standard_Real tol = Draw::Atof(a[3]);
   
@@ -756,22 +756,22 @@ static Standard_Integer class3dclassifier(Draw_Interpretor& di, Standard_Integer
   Standard_SStream aSStream;
   TopAbs::Print(sta,aSStream);
   di << aSStream;
-  di<<" shape s"<<"\n";
+  di<<" shape s\n";
   return 0;
 }
 static Standard_Integer shapeclassifier(Draw_Interpretor& di, Standard_Integer n, const char** a)
 {
   if (n < 3) return 1;
   TopoDS_Shape sh = DBRep::Get(a[1]);
-  if (sh.IsNull()) {di<<"null shape"<<"\n";return 1;}
+  if (sh.IsNull()) {di<<"null shape\n";return 1;}
   TopoDS_Shape shref = DBRep::Get(a[2]);
-  if (shref.IsNull()) {di<<"null reference shape"<<"\n";return 1;}
+  if (shref.IsNull()) {di<<"null reference shape\n";return 1;}
   Standard_Boolean hastoavoid = (n > 3);
   TopTools_ListOfShape toavoid;
   if (hastoavoid) {
     for (Standard_Integer i=3; i<=n; i++) {
       TopoDS_Shape shtoavoid = DBRep::Get(a[i]); 
-      if (shtoavoid.IsNull()) {di<<"null toavoid shape"<<"\n";return 1;}    
+      if (shtoavoid.IsNull()) {di<<"null toavoid shape\n";return 1;}    
       toavoid.Append(shtoavoid);
     }
   }
@@ -787,7 +787,7 @@ static Standard_Integer shapeclassifier(Draw_Interpretor& di, Standard_Integer n
   Standard_SStream aSStream;
   TopAbs::Print(sta,aSStream);
   di << aSStream;
-  di<<" shape ref"<<"\n";
+  di<<" shape ref\n";
   return 0;
 }
 
@@ -797,7 +797,7 @@ static Standard_Integer curvature(Draw_Interpretor& di, Standard_Integer n, cons
   TopoDS_Shape aLocalShape = DBRep::Get(a[1]);
   TopoDS_Face f = TopoDS::Face(aLocalShape);
 //  TopoDS_Face f = TopoDS::Face(DBRep::Get(a[1]));
-  if (f.IsNull()) {di<<"null shape"<<"\n";return 1;}
+  if (f.IsNull()) {di<<"null shape\n";return 1;}
   Standard_Real x = Draw::Atof(a[2]);
   Standard_Real y = Draw::Atof(a[3]);
   Standard_Real z = Draw::Atof(a[4]);
@@ -806,9 +806,9 @@ static Standard_Integer curvature(Draw_Interpretor& di, Standard_Integer n, cons
   Handle(Geom_Surface) su = BRep_Tool::Surface(f);
   GeomAPI_IntCS intcs(line,su);
   Standard_Boolean done = intcs.IsDone();
-  if (!done) {di<<"intersection point on surface not found"<<"\n"; return 1;}
+  if (!done) {di<<"intersection point on surface not found\n"; return 1;}
   Standard_Integer npnts = intcs.NbPoints();
-  if (npnts < 1) {di<<"intersection point on surface not found"<<"\n"; return 1;}
+  if (npnts < 1) {di<<"intersection point on surface not found\n"; return 1;}
   
   Standard_Real tol = Precision::Confusion();
   BRepLProp_SLProps props(BS,2,tol);
@@ -816,10 +816,10 @@ static Standard_Integer curvature(Draw_Interpretor& di, Standard_Integer n, cons
   for (Standard_Integer i = 1; i <= npnts; i++) {
     gp_Pnt p = intcs.Point(i);
     Standard_Real u,v,w; intcs.Parameters(i,u,v,w);
-    di<<"point("<<i<<") = { ("<<p.X()<<" "<<p.Y()<<" "<<p.Z()<<"), ("<<u<<" "<<v<<") }"<<"\n"; 
+    di<<"point("<<i<<") = { ("<<p.X()<<" "<<p.Y()<<" "<<p.Z()<<"), ("<<u<<" "<<v<<") }\n"; 
     props.SetParameters(u,v);
     Standard_Boolean curdef = props.IsCurvatureDefined();
-    if (!curdef) {di<<"!IsCurvatureDefined"<<"\n"; continue;}
+    if (!curdef) {di<<"!IsCurvatureDefined\n"; continue;}
     Standard_Boolean umbilic = props.IsUmbilic();
     if (umbilic) { 
       D1 = gp_Dir(0,0,1);
@@ -830,9 +830,9 @@ static Standard_Integer curvature(Draw_Interpretor& di, Standard_Integer n, cons
       props.CurvatureDirections(D1,D2);
     }
     Norm = gp_Dir(D1^D2); 
-    di<<"D1  = ("<<D1.X()<<" "<<D1.Y()<<" "<<D1.Z()<<" "<<")"<<"\n";
-    di<<"D2  = ("<<D2.X()<<" "<<D2.Y()<<" "<<D2.Z()<<" "<<")"<<"\n";
-    di<<"Norm  = ("<<Norm.X()<<" "<<Norm.Y()<<" "<<Norm.Z()<<" "<<")"<<"\n";
+    di<<"D1  = ("<<D1.X()<<" "<<D1.Y()<<" "<<D1.Z()<<" )\n";
+    di<<"D2  = ("<<D2.X()<<" "<<D2.Y()<<" "<<D2.Z()<<" )\n";
+    di<<"Norm  = ("<<Norm.X()<<" "<<Norm.Y()<<" "<<Norm.Z()<<" )\n";
   } // i
   return 0;
 }
index 6abafe80bb22ca3a766c3cbb1cd477894ffebe45..68db59338db9d742fbbaa5cf280fd036778f0006 100644 (file)
@@ -564,83 +564,83 @@ void OthersCommands_help(const char* CommandName,const char* syntaxe = "");
 //-----------------------------------------------------------------------
 static void tsee_help(const char* CommandName, Draw_Interpretor& di)
 {
-  di<<""<<"\n";
-  di<<"tsee : Draw entities of data structure (DS) loaded by TestTopOpe::CurrentDS()."<<"\n";
-  di<<"DS entities are shapes and geometries accessed by a <type> and an <index>."<<"\n";
-  di<<"basic usage :"<<"\n";
-  di<<"              tsee <type> <index1 index2 ...>"<<"\n";
-  di<<"<type>  = so sh f w e v s for solid/shell/face/wire/edge/vertex/shape"<<"\n";
-  di<<"          su cu p for surface/curve/point (N.B : su is NYI)"<<"\n";
-  di<<"<index> = integer"<<"\n";
-  di<<"example : 'tsee e 3' will draw the edge of index 3"<<"\n";
-  di<<"          'tsee e 3 6' will draw the edges of index 3 and 6"<<"\n";
-  di<<"          'tsee e' will draw all the edges."<<"\n";
-  di<<""<<"\n";
-  di<<"Index values of DS entities may be given by the 'tds' command which prints"<<"\n";
-  di<<"the content of the DS for each shape and geometry type."<<"\n";
-  di<<"Entities are drawn with a specific color according to their type."<<"\n";
-  di<<""<<"\n";
-  di<<"Naming : "<<"\n";
-  di<<"'tsee <t> <i>' creates the drawable object named <t>_<i>."<<"\n";
-  di<<"This name is displayed near the entity in one if the forms : "<<"\n";
-  di<<"     *<t>_<i> meaning entity belongs to the first shape of current operation."<<"\n";
-  di<<"     <t>_<i>* meaning entity belongs to the second shape of current operation."<<"\n";
-  di<<""<<"\n";
-  di<<"Same Domain shapes : "<<"\n";
-  di<<"'tsee <type> sd' to display all shapes of <type> having same domain data."<<"\n";
-  di<<"example : 'tsee e sd' to display all edges sharing a 1d geometric domain"<<"\n";
-  di<<"          with other edges."<<"\n";
-  di<<""<<"\n";
-  di<<"Optional flags :"<<"\n";
+  di<<"\n";
+  di<<"tsee : Draw entities of data structure (DS) loaded by TestTopOpe::CurrentDS().\n";
+  di<<"DS entities are shapes and geometries accessed by a <type> and an <index>.\n";
+  di<<"basic usage :\n";
+  di<<"              tsee <type> <index1 index2 ...>\n";
+  di<<"<type>  = so sh f w e v s for solid/shell/face/wire/edge/vertex/shape\n";
+  di<<"          su cu p for surface/curve/point (N.B : su is NYI)\n";
+  di<<"<index> = integer\n";
+  di<<"example : 'tsee e 3' will draw the edge of index 3\n";
+  di<<"          'tsee e 3 6' will draw the edges of index 3 and 6\n";
+  di<<"          'tsee e' will draw all the edges.\n";
+  di<<"\n";
+  di<<"Index values of DS entities may be given by the 'tds' command which prints\n";
+  di<<"the content of the DS for each shape and geometry type.\n";
+  di<<"Entities are drawn with a specific color according to their type.\n";
+  di<<"\n";
+  di<<"Naming : \n";
+  di<<"'tsee <t> <i>' creates the drawable object named <t>_<i>.\n";
+  di<<"This name is displayed near the entity in one if the forms : \n";
+  di<<"     *<t>_<i> meaning entity belongs to the first shape of current operation.\n";
+  di<<"     <t>_<i>* meaning entity belongs to the second shape of current operation.\n";
+  di<<"\n";
+  di<<"Same Domain shapes : \n";
+  di<<"'tsee <type> sd' to display all shapes of <type> having same domain data.\n";
+  di<<"example : 'tsee e sd' to display all edges sharing a 1d geometric domain\n";
+  di<<"          with other edges.\n";
+  di<<"\n";
+  di<<"Optional flags :\n";
   OthersCommands_help(CommandName);
-  di<<"Other types :"<<"\n";
-  di<<"'tsee fev' : displays all faces,then edges,then vertices."<<"\n";
-  di<<"'tsee es <i>' displays edge described as section edge <i>."<<"\n";
-  di<<"      The name of a section edge likes t_i<j>,where :"<<"\n";
-  di<<"         - i is the edge index in the set of section edge,"<<"\n";
-  di<<"         - j is edge index in the DS (as any edge)."<<"\n";
-  di<<""<<"\n";
+  di<<"Other types :\n";
+  di<<"'tsee fev' : displays all faces,then edges,then vertices.\n";
+  di<<"'tsee es <i>' displays edge described as section edge <i>.\n";
+  di<<"      The name of a section edge likes t_i<j>,where :\n";
+  di<<"         - i is the edge index in the set of section edge,\n";
+  di<<"         - j is edge index in the DS (as any edge).\n";
+  di<<"\n";
 }
 
 static void tseei_help(Draw_Interpretor& di)
 {
-  di<<""<<"\n";
-  di<<"tseei : Draws entities of data structure (DS) loaded by TestTopOpe::CurrentDS()."<<"\n";
-  di<<"Draws the objects appearing in interferences DS objects."<<"\n";
-  di<<"See command 'tsee' for discussion about DS objects."<<"\n";
+  di<<"\n";
+  di<<"tseei : Draws entities of data structure (DS) loaded by TestTopOpe::CurrentDS().\n";
+  di<<"Draws the objects appearing in interferences DS objects.\n";
+  di<<"See command 'tsee' for discussion about DS objects.\n";
   di<<"\n";
 }
 
 static void tki_help(Draw_Interpretor& di)
 {
-  di<<""<<"\n";
-  di<<"tki,tkig,tkis : Groups interferences of DS objects"<<"\n";
-  di<<"  by geometry (g),or support (s),and index."<<"\n";
-  di<<"See command 'tsee' for discussion about DS objects."<<"\n";
-  di<<"(Test of class TopOpeBRepDS_TKI)"<<"\n";
+  di<<"\n";
+  di<<"tki,tkig,tkis : Groups interferences of DS objects\n";
+  di<<"  by geometry (g),or support (s),and index.\n";
+  di<<"See command 'tsee' for discussion about DS objects.\n";
+  di<<"(Test of class TopOpeBRepDS_TKI)\n";
   di<<"\n";
 }
 
 static void tds_help(Draw_Interpretor& di)
 {
-  di<<""<<"\n";
-  di<<"tds : dump current DS (loaded by CurrentDS())"<<"\n";
-  di<<"basic usage : tds <-arg> type <index1 index2 ...>"<<"\n";
   di<<"\n";
-  di<<"Description of curve geometry (type = c) : <-arg>  = -t -k -s -l"<<"\n";
-  di<<"\t-k : print only the curve with keep = Standard_True"<<"\n";
-  di<<"\t-l : (long) print all poles and knots for BSplines curves"<<"\n";
-  di<<"\t-s : (short) print only 4 poles and 4 knots for BSplines curves"<<"\n";
-  di<<"on shapes (type = s|so|sh|f|w|e|v) : <-arg>  = -ssi"<<"\n";
-  di<<"\t-ssi : print only ShapeShapeInterferences"<<"\n";
-  di<<""<<"\n";
-  di<<"See command 'tsee' for discussion about type and <index1 index2 ...>."<<"\n";
+  di<<"tds : dump current DS (loaded by CurrentDS())\n";
+  di<<"basic usage : tds <-arg> type <index1 index2 ...>\n";
+  di<<"\n";
+  di<<"Description of curve geometry (type = c) : <-arg>  = -t -k -s -l\n";
+  di<<"\t-k : print only the curve with keep = Standard_True\n";
+  di<<"\t-l : (long) print all poles and knots for BSplines curves\n";
+  di<<"\t-s : (short) print only 4 poles and 4 knots for BSplines curves\n";
+  di<<"on shapes (type = s|so|sh|f|w|e|v) : <-arg>  = -ssi\n";
+  di<<"\t-ssi : print only ShapeShapeInterferences\n";
+  di<<"\n";
+  di<<"See command 'tsee' for discussion about type and <index1 index2 ...>.\n";
   di<<"\n";
 }
 
 typedef Standard_Integer (*tf_SeeShape)(const Standard_Integer I,const TopoDS_Shape& S);
 extern void OthersCommands_flags(Standard_Integer& na,const char** a,TestTopOpeDraw_Displayer& TD);
-void COUTNOHDS(Draw_Interpretor& di) {di<<"no current HDS"<<"\n";}
+void COUTNOHDS(Draw_Interpretor& di) {di<<"no current HDS\n";}
 Standard_Integer tsee_SeeShapefunc(Draw_Interpretor& di,Standard_Integer na_in,const char** a,tf_SeeShape SeeShapefunc)
 {
   if (na_in == 1 || (na_in == 2 && !strcasecmp(a[1],"-h"))) {
@@ -899,7 +899,7 @@ Standard_Integer SeeShapeISI(const Standard_Integer I,const TopoDS_Shape& S,Draw
 //    TopOpeBRepDS_Kind kk = (TopOpeBRepDS_Kind)ITLOKK.Value(); Standard_Integer ii = ITLOII.Value();
     TopOpeBRepDS::Print(kk,ii,cout,""," ");
   }
-  if (ya) di<<"\n"; else di<<"no shape interference"<<"\n";
+  if (ya) di<<"\n"; else di<<"no shape interference\n";
   
   ITLOKK.Initialize(LOKK); ITLOII.Initialize(LOII);
   for(; ITLOKK.More(),ITLOII.More(); ITLOKK.Next(),ITLOII.Next()) {
@@ -1117,7 +1117,7 @@ Standard_Integer TPPE(Draw_Interpretor& di,Standard_Integer na,const char** a)
   Standard_Integer ie = Draw::Atoi(a[4]);
   ok = ok && (ip >= 1); ok = ok && (ie >= 1);
   if (!ok) {
-    di <<" bad data"<<"\n";
+    di <<" bad data\n";
     return 1;
   }
   
@@ -1126,7 +1126,7 @@ Standard_Integer TPPE(Draw_Interpretor& di,Standard_Integer na,const char** a)
     ok = Standard_True;
     ok = ok && (ip <= HDS->NbPoints());
     if (ok) pds = HDS->Point(ip).Point();
-    if (!ok) di<<" geometry "<<ip<<" is not a point"<<"\n";
+    if (!ok) di<<" geometry "<<ip<<" is not a point\n";
   }
   if (!strcmp("v",a[1])){
     ok = Standard_True;
@@ -1136,7 +1136,7 @@ Standard_Integer TPPE(Draw_Interpretor& di,Standard_Integer na,const char** a)
       ok = ok && (sh.ShapeType() == TopAbs_VERTEX);
       if (ok) pds =BRep_Tool::Pnt(TopoDS::Vertex(sh));
     }
-    if (!ok) di<<" shape "<<ip<<" is not a vertex"<<"\n";
+    if (!ok) di<<" shape "<<ip<<" is not a vertex\n";
   } 
   if (!strcmp("e",a[3])){
     ok = ok && (ie <= HDS->NbShapes());
@@ -1145,7 +1145,7 @@ Standard_Integer TPPE(Draw_Interpretor& di,Standard_Integer na,const char** a)
       ok = ok && (sh.ShapeType() == TopAbs_EDGE);
       if (ok) ed = TopoDS::Edge(sh);
     }
-    if (!ok) di<<" shape "<<ie<<" is not an edge"<<"\n";
+    if (!ok) di<<" shape "<<ie<<" is not an edge\n";
     
   } else ok = Standard_False;
   
@@ -1171,7 +1171,7 @@ Standard_Integer TPPE(Draw_Interpretor& di,Standard_Integer na,const char** a)
     char* ppp = (char *)pp.ToCString(); 
     DrawTrSurf::Set(ppp,pproj);
     di<<"dist point "<<ip<<" on edge "<<ie<<" = "<<dmin<<"\n";
-  } else di<<"projection failed"<<"\n";
+  } else di<<"projection failed\n";
   
   return ok;
 } // TPPE
@@ -1180,7 +1180,7 @@ void FUN_ChkIntgInterf(Draw_Interpretor& di) //***Check Integrity Interference
 {
   if ( PHDSD == NULL ) return;
   PHDSD->CurrentHDS()->ChkIntg();
-  di<<"Check interference integrity completed"<<"\n";
+  di<<"Check interference integrity completed\n";
 }
 
 void FUN_ChkIntgSamDomain(Draw_Interpretor& di) //***Check Integrity SameDomain
@@ -1188,7 +1188,7 @@ void FUN_ChkIntgSamDomain(Draw_Interpretor& di) //***Check Integrity SameDomain
   if ( PHDSD == NULL ) return;
   TopOpeBRepDS_Check C(PHDSD->CurrentHDS());
   if(C.ChkIntgSamDom())
-    di<<"Check SameDomain integrity completed"<<"\n";
+    di<<"Check SameDomain integrity completed\n";
 }
 
 void FUN_ChkIntg(Draw_Interpretor& di) //***Check Integrity
@@ -1203,7 +1203,7 @@ void FUN_ChkVertex(Draw_Interpretor& di) //***Check Vertex SameDomain
   if ( PHDSD == NULL ) return;
   TopOpeBRepDS_Check C(PHDSD->CurrentHDS());
   if(C.OneVertexOnPnt())
-    di<<"Check Structure Vertex SameDomain Complete"<<"\n";
+    di<<"Check Structure Vertex SameDomain Complete\n";
 }
 
 //---------------------------------------------------------
@@ -1223,10 +1223,10 @@ Standard_Integer topochk(Draw_Interpretor& di,Standard_Integer na,const char** a
   }
   else if(!strcmp (a[1],"-s")) ::FUN_ChkVertex(di);
   else {
-    di<<"option : -i   = check DS full integrity"<<"\n";
-    di<<"option : -ii  = check only interferences"<<"\n";
-    di<<"option : -isd = check only SameDomain data"<<"\n"<<"\n";
-    di<<"option : -s   = check only SameDomain data on vertex"<<"\n";
+    di<<"option : -i   = check DS full integrity\n";
+    di<<"option : -ii  = check only interferences\n";
+    di<<"option : -isd = check only SameDomain data\n\n";
+    di<<"option : -s   = check only SameDomain data on vertex\n";
     return 1;
   }
   return 0;
@@ -1246,7 +1246,7 @@ Standard_Integer SeeShapeTCX(const Standard_Integer I,const TopoDS_Shape& S)
 
 static void tcx_help(Draw_Interpretor& di)
 {
-  di<<"tcx : function not documented"<<"\n";
+  di<<"tcx : function not documented\n";
 }
 
 //-----------------------------------------------------------------------
index f7777d5ff0dff111ad54a0f2f3c78f533144afaf..6c6c4196fbeca4f54ae53593dcafb89188302153 100644 (file)
@@ -64,17 +64,17 @@ static Standard_Integer SetName(const Standard_Character *C, Draw_Interpretor& d
 static void Mes_help(Draw_Interpretor& di)
 {
   di<<"\n";
-  di<<"mesure M : create/reset measurement M "<<"\n";
-  di<<"mesure reset : reinitialize all measurements"<<"\n";
-  di<<"mesure M n t : add data [n t] to M"<<"\n";
-  di<<"mesure range M : sort indexes 'min max' of M"<<"\n";
-  di<<"mesure minmax M : take 'xmin ymin xmax ymax' from M"<<"\n";
-  di<<"mesure xy <i> M : take 'x y' = M(i)"<<"\n";
-  di<<"seem M : visualize M"<<"\n";
-  di<<"seemx M fx : visualize M with factor in x"<<"\n";
-  di<<"seemx M fy : visualize M with factor in y"<<"\n";
-  di<<"seemxy M fx fy : visualize M with factor in x,y"<<"\n";
-  di<<""<<"\n";
+  di<<"mesure M : create/reset measurement M \n";
+  di<<"mesure reset : reinitialize all measurements\n";
+  di<<"mesure M n t : add data [n t] to M\n";
+  di<<"mesure range M : sort indexes 'min max' of M\n";
+  di<<"mesure minmax M : take 'xmin ymin xmax ymax' from M\n";
+  di<<"mesure xy <i> M : take 'x y' = M(i)\n";
+  di<<"seem M : visualize M\n";
+  di<<"seemx M fx : visualize M with factor in x\n";
+  di<<"seemx M fy : visualize M with factor in y\n";
+  di<<"seemxy M fx fy : visualize M with factor in x,y\n";
+  di<<"\n";
 }
 
 // ----------------------------------------------------------------------
index 564930988940389ab0878f07c074f209968a1ff2..a6e377fedb436e7146050327001c6520f593577a 100644 (file)
@@ -113,7 +113,7 @@ Standard_Integer DOTVIEW(Draw_Interpretor&, Standard_Integer narg, const char**
 }
 
 Standard_Integer VECTEUR(Draw_Interpretor& di, Standard_Integer , const char** ) {
-  di << "Pick positions with button "<<"\n";
+  di << "Pick positions with button \n";
   Standard_Integer id,X,Y,b;
   gp_Trsf T;
   gp_Pnt P1,P2,PP1,PP2;
@@ -240,12 +240,12 @@ Standard_Integer GRILLE(Draw_Interpretor& di, Standard_Integer narg, const char*
     return 1;
   if(nbx) dx = (xmax-xmin)/nbx; else dx=0;
   if(nby) dy = (ymax-ymin)/nby; else dy=0;
-  di<<"compound CE"<<"\n";
+  di<<"compound CE\n";
   for(Standard_Real x=xmin; x<xmax; x+=dx) { 
     for(Standard_Real y=ymin; y<ymax; y+=dx) { 
       //-- cout<<x<<" "<<y<<" "<<zmin<<"   "<<x<<" "<<y<<" "<<zmax<<"\n";
       di<<"line l "<<x<<" "<<y<<" "<<zmin<<" 0 0 1;mkedge e l 0 ";
-      di<<zmax-zmin<<" ;orient e EXTERNAL; add e CE"<<"\n";
+      di<<zmax-zmin<<" ;orient e EXTERNAL; add e CE\n";
       if(dy==0) y=ymax;
     } 
     if(dx==0) x=xmax;
@@ -257,7 +257,7 @@ Standard_Integer GETP3D(Draw_Interpretor& di, Standard_Integer /*narg*/, const c
 {
   TopoDS_Shape V = DBRep::Get(a[1]);
   if (V.IsNull()) {
-    di<<"null shape"<<"\n";
+    di<<"null shape\n";
     return 1;
   }
   gp_Pnt pV = BRep_Tool::Pnt(TopoDS::Vertex(V));
@@ -280,8 +280,8 @@ Standard_Integer CHROBOOP(Draw_Interpretor& di, Standard_Integer n, const char**
     else
       Draw_Chrono = (*a[1] == '1');
     
-    if (Draw_Chrono) di << "Chronometers activated."<<"\n";
-    else di << "Chronometers desactivated."<<"\n";
+    if (Draw_Chrono) di << "Chronometers activated.\n";
+    else di << "Chronometers desactivated.\n";
   }
   else {
     Handle(Draw_Drawable3D) D = Draw::Get(a[1]);
index dd1f267c78e751dca007468a602ab0e679a04963..90bf8246c843f44469e249554b7ed690a5ec8820 100644 (file)
@@ -122,9 +122,9 @@ Standard_Boolean VarsTopo::GetC2D() const
 void VarsTopo::DumpOCT(Standard_OStream& OS) const
 {
   if (myOCT == TopOpeBRepTool_APPROX) 
-    OS<<"section curves approximated"<<"\n";
+    OS<<"section curves approximated\n";
   if (myOCT == TopOpeBRepTool_BSPLINE1) 
-    OS<<"section curves discretizated"<<"\n";
+    OS<<"section curves discretizated\n";
 }
 
 void VarsTopo::DumpC2D(Standard_OStream& OS) const
@@ -140,24 +140,24 @@ void VarsTopo::DumpC2D(Standard_OStream& OS) const
 void VarsTopo::DumpTolx(Standard_OStream& OS) const
 {
   OS<<"approximation tolerances : ";
-  OS<<"(3d "<<mytol3x<<"), (2d "<<mytol2x<<")"<<"\n";
+  OS<<"(3d "<<mytol3x<<"), (2d "<<mytol2x<<")\n";
 }
 
 void VarsTopo::DumpToli(Standard_OStream& OS) const
 {
   if (myforcetoli) {
     OS<<"intersection tolerances : ";
-    OS<<"(tolarc "<<mytolarc<<"), (toltan "<<mytoltan<<")"<<"\n";
+    OS<<"(tolarc "<<mytolarc<<"), (toltan "<<mytoltan<<")\n";
   }
   else {
-    OS<<"intersection with shape tolerances"<<"\n";
+    OS<<"intersection with shape tolerances\n";
   }
 }
 
 void VarsTopo::DumpClear(Standard_OStream& OS) const
 {
-  if (myclear) OS<<"clear ON"<<"\n";
-  else         OS<<"clear OFF"<<"\n";
+  if (myclear) OS<<"clear ON\n";
+  else         OS<<"clear OFF\n";
 }
 
 void VarsTopo::DumpMode(Standard_OStream& OS) const
index 37525670af213c1cc79dc78176b3c42ef021d0c1..fc83cacf0f6a2cd15b65642aa6aedbd4d1e780a1 100644 (file)
@@ -316,7 +316,7 @@ Standard_Boolean TopOpeBRepBuild_Builder::ToSplit(const TopoDS_Shape& S,const To
 #ifdef OCCT_DEBUG
   Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(S,iS);
   if (tSPS) { 
-    cout<<"tosplit "<<tosplit<<" : "<<"!issplit "<<(!issplit);
+    cout<<"tosplit "<<tosplit<<" : !issplit "<<(!issplit);
     cout<<" && (hasgeom || hassame) ("<<hasgeom<<" || "<<hassame<<")"<<endl;
   }
 #endif
index 58b43a58981a08e87bd723c00f10632b9795c9c5..62d0b163abb2afd097ae7a1fb04ae5c06d2f353b 100644 (file)
@@ -62,7 +62,7 @@ Standard_Boolean TopOpeBRepBuild_Builder::GToSplit(const TopoDS_Shape& S,const T
   Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(S,iS);
   if (tSPS) { 
     cout<<"GToSplit ";GdumpSHA(S);cout<<" ";TopAbs::Print(TB,cout);
-    cout<<" "<<tosplit<<" : "<<"!issplit "<<(!issplit);
+    cout<<" "<<tosplit<<" : !issplit "<<(!issplit);
     cout<<" && (facshap || hasgeom || hassame) ";
     cout<<"("<<facshap<<" || "<<hasgeom<<" || "<<hassame<<")"<<endl;
     cout.flush();
@@ -87,7 +87,7 @@ Standard_Boolean TopOpeBRepBuild_Builder::GToSplit(const TopoDS_Shape& S,const T
     } //CONTEXT
     Standard_Boolean tosplitH = tosplit || hasON; //CONTEXT
     if(tSPS){cout<<"GToSplit context SPEON";} //CONTEXT
-    if(tSPS){cout<<" "<<tosplitH<<" : "<<"tosplit "<<tosplit;} //CONTEXT
+    if(tSPS){cout<<" "<<tosplitH<<" : tosplit "<<tosplit;} //CONTEXT
     if(tSPS){cout<<" || hasON "<<hasON<<endl;} //CONTEXT
   } //CONTEXT
 #endif
index 827ee1428f890adc09bf316e81c05b3b8248aa1f..49d779e33024fc7f99956eb5e7658c0e8a0f7373 100644 (file)
@@ -321,7 +321,7 @@ const TopTools_ListOfShape & TopOpeBRepBuild_WireEdgeSet::MakeNeighboursList(con
          cout<<" parEE "<<parEE<<endl;
          cout<<"  puEE,pvEE "<<pEE.X()<<" "<<pEE.Y();
          cout<<" d1uEE,d1vEE "<<d1EE.X()<<" "<<d1EE.Y()<<endl;
-         cout<<"  --> cross "<<" "<<cross<<endl;
+         cout<<"  --> cross  "<<cross<<endl;
 
          if ( t2 ) cout<<" t2 --> on garde EE"<<endl<<endl;
          else    cout<<" t2 --> on vire EE"<<endl<<endl;
index 46bd8413d3707ba958ba87005565613ea8466fc6..6de4673f1f21026293176a906297158a8ccb20db 100644 (file)
@@ -557,7 +557,7 @@ Standard_OStream& TopOpeBRepDS_Check::PrintMap(TopOpeBRepDS_DataMapOfCheckStatus
   DMI.Initialize(MapStat);
   if(DMI.More()) {
     Standard_Boolean b = Standard_True;
-    OS<<" "<<eltstr<<"\t"<<"(/"<<MapStat.Extent()<<")\tnumber ";
+    OS<<" "<<eltstr<<"\t(/"<<MapStat.Extent()<<")\tnumber ";
     
     PrintElts(MapStat, TopOpeBRepDS_OK,  b, OS);
     if(!b) OS<<" = OK"<<endl;
index 04dba2e7d920f67cee5fc0c462b030ccace27598..1a4976fc74ce35401cc9aefe091d46e03da07de5 100644 (file)
@@ -688,7 +688,7 @@ Standard_OStream& TopOpeBRepDS_Dumper::DumpSectionEdge(const TopOpeBRepDS_Kind
   
   OS<<endl;
   TCollection_AsciiString s = "---- ";
-  OS<<s<<"Section Edges"<<" : "<<nse<<" edges"<<endl;
+  OS<<s<<"Section Edges : "<<nse<<" edges"<<endl;
   for(Standard_Integer i = 1; i <= nse; i++) {
     DumpSectionEdge(K,i,OS);
   }
index 0ade94da36d12fd8b59774a3706e7af38a80442a..ddb8c8df6d5055a84f515428b6799b2a91034e62 100644 (file)
@@ -88,7 +88,7 @@ Standard_OStream& TopOpeBRepDS_EdgeVertexInterference::Dump
   (Standard_OStream& OS) const
 {
 #ifdef OCCT_DEBUG
-  OS<<"EVI"<<" ";
+  OS<<"EVI ";
   TopOpeBRepDS_ShapeShapeInterference::Dump(OS);
   OS<<" "<<myParam<<" ";
 #endif
index 4e2f8bdacd087ce361d1d4a32f12cd2d8698d96a..ea4f3851c4b639037a07e88c4519ffc51a52258f 100644 (file)
@@ -74,7 +74,7 @@ Standard_OStream& TopOpeBRepDS_ShapeShapeInterference::Dump
   (Standard_OStream& OS) const
 {
 #ifdef OCCT_DEBUG
-  OS<<"("; TopOpeBRepDS::Print(myC,OS); OS<<")"<<" ";
+  OS<<"("; TopOpeBRepDS::Print(myC,OS); OS<<") ";
   if (myGBound) OS<<"(Gb 1) ";
   else          OS<<"(Gb 0) ";
   TopOpeBRepDS_Interference::Dump(OS);
index 7c9e8e3cedcbe50103f8d0d8d4c9f1473cdc8b8a..719c82772b49b2f54716f1bb6e1e809f2377b9c2 100644 (file)
@@ -739,7 +739,7 @@ Standard_Boolean TopOpeBRepTool_REGUS::NearestF(const TopoDS_Edge& e, const TopT
       if (!ok) {FUN_Raise(); return Standard_False;}
     }
 #ifdef OCCT_DEBUG
-    if (trc) cout<<"   ang("<<"f"<<FUN_adds(fref)<<",f"<<FUN_adds(ffound)<<")="<<angfound<<endl;
+    if (trc) cout<<"   ang(f"<<FUN_adds(fref)<<",f"<<FUN_adds(ffound)<<")="<<angfound<<endl;
 #endif
     break;
   }
@@ -770,7 +770,7 @@ Standard_Boolean TopOpeBRepTool_REGUS::NearestF(const TopoDS_Edge& e, const TopT
       if (!ok) {FUN_Raise(); return Standard_False;}
     }
 #ifdef OCCT_DEBUG
-    if (trc) cout<<"   ang("<<"f"<<FUN_adds(fref)<<",f"<<FUN_adds(fi)<<")="<<angi<<endl;
+    if (trc) cout<<"   ang(f"<<FUN_adds(fref)<<",f"<<FUN_adds(fi)<<")="<<angi<<endl;
 #endif
     if (angi > angfound) continue; 
     angfound = angi;
index 0b520df0fe9f51655821f95f82caead15ad4eb3a..700ddfc2d302186b2c9295a6668b3435a85756f1 100644 (file)
@@ -931,7 +931,7 @@ Standard_Boolean TopOpeBRepTool_REGUW::AddNewConnexity(const TopoDS_Vertex& v, c
   Standard_Boolean trc = TopOpeBRepTool_GettraceREGUFA(); 
   if (trc) 
     {cout<<"** setting new connexity : v"<<FUN_adds(v)<<" is ";FUN_tro(OriKey);
-     cout<<" in "<<" e"<<FUN_adds(e);FUN_tool_tori(e.Orientation());
+     cout<<" in  e"<<FUN_adds(e);FUN_tool_tori(e.Orientation());
      TopoDS_Vertex vclo; Standard_Boolean cloE = TopOpeBRepTool_TOOL::ClosedE(e,vclo); if (cloE) cout<<" closed";
      Standard_Boolean dgE = BRep_Tool::Degenerated(e); if (dgE) cout<<" degenerated";cout<<endl;}
 #endif
index b9cc28a21eb81aba90b795aabf6f738fccaf8803..8c07693b3a9f1f981bfff7d5d73b57c817bd85e3 100644 (file)
@@ -433,7 +433,7 @@ void  TopTools_ShapeSet::Dump(Standard_OStream& OS)const
 
   myLocations.Dump(OS);
 
-  OS << endl;
+  OS << "\n";
 }
 
 
@@ -452,9 +452,9 @@ void  TopTools_ShapeSet::Write(Standard_OStream& OS)
 
   // write the copyright
   if (myFormatNb == 2)
-    OS << "\n" << Version2 << endl;
+    OS << "\n" << Version2 << "\n";
   else
-    OS << "\n" << Version << endl;
+    OS << "\n" << Version << "\n";
 
   //-----------------------------------------
   // write the locations
@@ -470,7 +470,7 @@ void  TopTools_ShapeSet::Write(Standard_OStream& OS)
   }
 
   if (!myProgress.IsNull() && myProgress->UserBreak()) {
-    OS << "Interrupted by the user"<<endl;
+    OS << "Interrupted by the user\n";
     OS.imbue (anOldLocale);
     return;
   }
@@ -538,7 +538,7 @@ void  TopTools_ShapeSet::Write(Standard_OStream& OS)
     OS << "\n";
   }
   
-  OS << endl;
+  OS << "\n";
   OS.precision(prec);
   OS.imbue (anOldLocale);
 
@@ -547,7 +547,7 @@ void  TopTools_ShapeSet::Write(Standard_OStream& OS)
     myProgress->EndScope();
     myProgress->Show();
     if (myProgress->UserBreak())
-      OS << "Interrupted by the user"<<endl;
+      OS << "Interrupted by the user\n";
   }
 }
 
index 062256304b2c8d2742be2a3156585e0b3e5c261e..316fd1441ca38346eac035c47b122ca344e430b0 100644 (file)
@@ -3074,7 +3074,7 @@ Standard_Integer VTexture (Draw_Interpretor& theDi, Standard_Integer theArgsNb,
   {
     if (theArgsNb < 2)
     {
-      std::cout << theArgv[0] << ": " << " invalid arguments.\n";
+      std::cout << theArgv[0] << ":  invalid arguments.\n";
       std::cout << "Type help for more information.\n";
       return 1;
     }
@@ -3111,7 +3111,7 @@ Standard_Integer VTexture (Draw_Interpretor& theDi, Standard_Integer theArgsNb,
     // equal to -scale, -origin, -repeat options of vtexture command
     if (theArgsNb < 2 || theArgsNb > 4)
     {
-      std::cout << theArgv[0] << ": " << " invalid arguments.\n";
+      std::cout << theArgv[0] << ":  invalid arguments.\n";
       std::cout << "Type help for more information.\n";
       return 1;
     }
@@ -3189,7 +3189,7 @@ Standard_Integer VTexture (Draw_Interpretor& theDi, Standard_Integer theArgsNb,
   Handle(AIS_InteractiveContext) anAISContext = ViewerTest::GetAISContext();
   if (anAISContext.IsNull())
   {
-    std::cout << aCommandName << ": " << " please use 'vinit' command to initialize view.\n";
+    std::cout << aCommandName << ":  please use 'vinit' command to initialize view.\n";
     return 1;
   }
 
@@ -3237,8 +3237,8 @@ Standard_Integer VTexture (Draw_Interpretor& theDi, Standard_Integer theArgsNb,
 
     if (aTextureArg.IsEmpty())
     {
-      std::cout << aCommandName << ": " << " Texture mapping disabled.\n";
-      std::cout << "To enable it, use 'vtexture NameOfShape NameOfTexture'\n" << "\n";
+      std::cout << aCommandName << ":  Texture mapping disabled.\n";
+      std::cout << "To enable it, use 'vtexture NameOfShape NameOfTexture'\n\n";
 
       anAISContext->SetDisplayMode (aTexturedIO, AIS_Shaded, Standard_False);
       if (aPreviousMode == 3)
@@ -3255,14 +3255,14 @@ Standard_Integer VTexture (Draw_Interpretor& theDi, Standard_Integer theArgsNb,
       {
         TCollection_AsciiString aTextureFolder = Graphic3d_TextureRoot::TexturesFolder();
 
-        theDi << "\n Files in current directory : \n" << "\n";
+        theDi << "\n Files in current directory : \n\n";
         theDi.Eval ("glob -nocomplain *");
 
         TCollection_AsciiString aCmnd ("glob -nocomplain ");
         aCmnd += aTextureFolder;
         aCmnd += "/* ";
 
-        theDi << "Files in " << aTextureFolder.ToCString() << " : \n" << "\n";
+        theDi << "Files in " << aTextureFolder.ToCString() << " : \n\n";
         theDi.Eval (aCmnd.ToCString());
         return 0;
       }
@@ -3840,15 +3840,15 @@ static int VPerf(Draw_Interpretor& di, Standard_Integer , const char** argv) {
   myTimer.Start();
 
   if (Draw::Atoi(argv[3])==1 ) {
-    di<<" Primitives sensibles OFF"<<"\n";
+    di<<" Primitives sensibles OFF\n";
     TheAISContext()->Deactivate(aIO);
   }
   else {
-    di<<" Primitives sensibles ON"<<"\n";
+    di<<" Primitives sensibles ON\n";
   }
   // Movement par transformation
   if(Draw::Atoi(argv[2]) ==1) {
-    di<<" Calcul par Transformation"<<"\n";
+    di<<" Calcul par Transformation\n";
     for (Standard_Real myAngle=0;Angle<10*2*M_PI; myAngle++) {
 
       Angle=Step*myAngle;
@@ -3860,7 +3860,7 @@ static int VPerf(Draw_Interpretor& di, Standard_Integer , const char** argv) {
     }
   }
   else {
-    di<<" Calcul par Locations"<<"\n";
+    di<<" Calcul par Locations\n";
     gp_Trsf myAngleTrsf;
     myAngleTrsf.SetRotation(gp_Ax1(gp_Pnt(0,0,0),gp_Dir(0,0,1) ), Step  );
     TopLoc_Location myDeltaAngle (myAngleTrsf);
@@ -3880,7 +3880,7 @@ static int VPerf(Draw_Interpretor& di, Standard_Integer , const char** argv) {
   }
   a3DView() -> Redraw();
   myTimer.Stop();
-  di<<" Temps ecoule "<<"\n";
+  di<<" Temps ecoule \n";
   myTimer.Show();
   return 0;
 }
@@ -3891,7 +3891,7 @@ static int VPerf(Draw_Interpretor& di, Standard_Integer , const char** argv) {
 //==================================================================================
 static int VAnimation (Draw_Interpretor& di, Standard_Integer argc, const char** argv) {
   if (argc != 5) {
-    di<<"Use: "<<argv[0]<<" CrankArmFile CylinderHeadFile PropellerFile EngineBlockFile"<<"\n";
+    di<<"Use: "<<argv[0]<<" CrankArmFile CylinderHeadFile PropellerFile EngineBlockFile\n";
     return 1;
   }
 
@@ -3916,7 +3916,7 @@ static int VAnimation (Draw_Interpretor& di, Standard_Integer argc, const char**
   BRepTools::Read(Propeller,argv[3],B);
   BRepTools::Read(EngineBlock,argv[4],B);
 
-  if (CrankArm.IsNull() || CylinderHead.IsNull() || Propeller.IsNull() || EngineBlock.IsNull()) {di<<" Syntaxe error:loading failure."<<"\n";}
+  if (CrankArm.IsNull() || CylinderHead.IsNull() || Propeller.IsNull() || EngineBlock.IsNull()) {di<<" Syntaxe error:loading failure.\n";}
 
 
   OSD_Timer myTimer;
@@ -4082,15 +4082,15 @@ static int VActivatedMode (Draw_Interpretor& di, Standard_Integer argc, const ch
     const Standard_Boolean HaveToSet = (strcasecmp(argv[0],"vsetam") == 0);
     // verification des arguments
     if (HaveToSet) {
-      if (argc<2||argc>3) { di<<" Syntaxe error"<<"\n";return 1;}
+      if (argc<2||argc>3) { di<<" Syntaxe error\n";return 1;}
       ThereIsName = (argc == 3);
     }
     else {
       // vunsetam
-      if (argc>1) {di<<" Syntaxe error"<<"\n";return 1;}
+      if (argc>1) {di<<" Syntaxe error\n";return 1;}
       else {
-        di<<" R.A.Z de tous les modes de selecion"<<"\n";
-        di<<" Fermeture du Context local"<<"\n";
+        di<<" R.A.Z de tous les modes de selecion\n";
+        di<<" Fermeture du Context local\n";
         if (TheAISContext()->HasOpenedContext())
           TheAISContext()->CloseLocalContext();
       }
@@ -4752,7 +4752,7 @@ Standard_Boolean ViewerTest::PickShapes (const TopAbs_ShapeEnum TheType,
 
   Standard_Integer Taille = thearr->Length();
   if(Taille>1)
-    cout<<" WARNING : Pick with Shift+ MB1 for Selection of more than 1 object"<<"\n";
+    cout<<" WARNING : Pick with Shift+ MB1 for Selection of more than 1 object\n";
 
   // step 1: prepare the data
   Standard_Integer curindex = TheAISContext()->OpenLocalContext();
@@ -4962,7 +4962,7 @@ static int VIOTypes( Draw_Interpretor& di, Standard_Integer , const char** )
     Colum[i].Center(20,' ');
   for(i=0;i<=2;i++)
     di<<"|"<<Colum[i].ToCString();
-  di<<"|"<<"\n";
+  di<<"|\n";
 
   di<<BlankLine.ToCString()<<"\n";
 
@@ -4986,7 +4986,7 @@ static int VIOTypes( Draw_Interpretor& di, Standard_Integer , const char** )
       curcolum[j].Center(20,' ');
       di<<"|"<<curcolum[j].ToCString();
     }
-    di<<"|"<<"\n";
+    di<<"|\n";
   }
   di<<BlankLine.ToCString()<<"\n";
 
@@ -5005,7 +5005,7 @@ static int VIOTypes( Draw_Interpretor& di, Standard_Integer , const char** )
       curcolum[j].Center(20,' ');
       di<<"|"<<curcolum[j].ToCString();
     }
-    di<<"|"<<"\n";
+    di<<"|\n";
   }
   di<<BlankLine.ToCString()<<"\n";
   // les IO de type objet...
@@ -5022,7 +5022,7 @@ static int VIOTypes( Draw_Interpretor& di, Standard_Integer , const char** )
       curcolum[j].Center(20,' ');
       di<<"|"<<curcolum[j].ToCString();
     }
-    di<<"|"<<"\n";
+    di<<"|\n";
   }
   di<<BlankLine.ToCString()<<"\n";
   // les contraintes et dimensions.
@@ -5041,7 +5041,7 @@ static int VIOTypes( Draw_Interpretor& di, Standard_Integer , const char** )
       curcolum[j].Center(20,' ');
       di<<"|"<<curcolum[j].ToCString();
     }
-    di<<"|"<<"\n";
+    di<<"|\n";
   }
   di<<BlankLine.ToCString()<<"\n";
 
@@ -5185,7 +5185,7 @@ static int VBsdf (Draw_Interpretor& theDi,
   ViewerTest_DoubleMapOfInteractiveAndName& aMap = GetMapOfAIS();
   if (!aMap.IsBound2 (aName) )
   {
-    std::cerr << "Use 'vdisplay' before" << "\n";
+    std::cerr << "Use 'vdisplay' before\n";
     return 1;
   }
 
@@ -5914,7 +5914,7 @@ static Standard_Boolean IsValid(const TopTools_ListOfShape& theArgs,
     }
   } else {
 #ifdef OCCT_DEBUG
-    cout <<"DONT_SWITCH_IS_VALID non positionne"<<"\n";
+    cout <<"DONT_SWITCH_IS_VALID non positionne\n";
 #endif
   }
   Standard_Boolean IsValid = Standard_True;
@@ -5946,7 +5946,7 @@ static Standard_Integer TDraft(Draw_Interpretor& di, Standard_Integer argc, cons
   TopoDS_Face Face    = TopoDS::Face(face);
   TopoDS_Shape Plane  = GetShapeFromName(argv[3]);
   if (Plane.IsNull ()) {
-    di << "TEST : Plane is NULL" << "\n";
+    di << "TEST : Plane is NULL\n";
     return 1;
   }
   anAngle = Draw::Atof(argv[4]);
@@ -5964,7 +5964,7 @@ static Standard_Integer TDraft(Draw_Interpretor& di, Standard_Integer argc, cons
   TopoDS_Face face2 = TopoDS::Face(Plane);
   if(!AIS::GetPlaneFromFace(face2, aPln, aSurf, aSurfType, Offset))
     {
-      di << "TEST : Can't find plane" << "\n";
+      di << "TEST : Can't find plane\n";
       return 1;
     }
 
@@ -5978,20 +5978,20 @@ static Standard_Integer TDraft(Draw_Interpretor& di, Standard_Integer argc, cons
   BRepOffsetAPI_DraftAngle Draft (Solid);
 
   if(Abs(anAngle)< Precision::Angular()) {
-    di << "TEST : NULL angle" << "\n";
+    di << "TEST : NULL angle\n";
     return 1;}
 
   if(Rev) anAngle = - anAngle;
   Draft.Add (Face, aDir, anAngle, aPln);
   Draft.Build ();
   if (!Draft.IsDone())  {
-    di << "TEST : Draft Not DONE " << "\n";
+    di << "TEST : Draft Not DONE \n";
     return 1;
   }
   TopTools_ListOfShape Larg;
   Larg.Append(Solid);
   if (!IsValid(Larg,Draft.Shape(),Standard_True,Standard_False)) {
-    di << "TEST : DesignAlgo returns Not valid" << "\n";
+    di << "TEST : DesignAlgo returns Not valid\n";
     return 1;
   }
 
@@ -6072,7 +6072,7 @@ void ViewerTest::Factory(Draw_Interpretor& theDI)
   ViewerTest::AviCommands(theDI);
 
 #ifdef OCCT_DEBUG
-      theDI << "Draw Plugin : OCC V2d & V3d commands are loaded" << "\n";
+      theDI << "Draw Plugin : OCC V2d & V3d commands are loaded\n";
 #endif
 }
 
index c2003a772445024a21c423bff8f38ebf54162cef..b955e106c06449c4e3896e80e16e999b15da1ee6 100644 (file)
@@ -165,7 +165,7 @@ static int VTrihedron2D (Draw_Interpretor& di, Standard_Integer argc, const char
 
 {
   // Verification des arguments
-  if ( argc!=2) {di<<argv[0]<<" error"<<"\n"; return 1;}
+  if ( argc!=2) {di<<argv[0]<<" error\n"; return 1;}
 
   // Declarations
   Standard_Integer myCurrentIndex;
@@ -176,7 +176,7 @@ static int VTrihedron2D (Draw_Interpretor& di, Standard_Integer argc, const char
   myCurrentIndex=TheAISContext()->IndexOfCurrentLocal();
   // On active les modes de selections faces.
   TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(4) );
-  di<<" Select a face ."<<"\n";
+  di<<" Select a face .\n";
 
   // Boucle d'attente waitpick.
   Standard_Integer argccc = 5;
@@ -388,7 +388,7 @@ static int VSize (Draw_Interpretor& di, Standard_Integer argc, const char** argv
   Quantity_NameOfColor         col = Quantity_NOC_BLACK ;
 
   // Verification des arguments
-  if ( argc>3 ) {di<<argv[0]<<" Syntaxe error"<<"\n"; return 1;}
+  if ( argc>3 ) {di<<argv[0]<<" Syntaxe error\n"; return 1;}
 
   // Verification du nombre d'arguments
   if (argc==1)      {ThereIsName=Standard_False;value=100;}
@@ -533,7 +533,7 @@ static int VPlaneTrihedron (Draw_Interpretor& di, Standard_Integer argc, const c
 
 {
   // Verification des arguments
-  if ( argc!=2) {di<<argv[0]<<" error"<<"\n"; return 1;}
+  if ( argc!=2) {di<<argv[0]<<" error\n"; return 1;}
 
   // Declarations
   Standard_Integer myCurrentIndex;
@@ -565,7 +565,7 @@ static int VPlaneTrihedron (Draw_Interpretor& di, Standard_Integer argc, const c
       it.Next();
   }
 
-  di<<" Select a plane."<<"\n";
+  di<<" Select a plane.\n";
   // Boucle d'attente waitpick.
   Standard_Integer argccc = 5;
   const char *bufff[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -620,7 +620,7 @@ static int VAxisBuilder(Draw_Interpretor& di, Standard_Integer argc, const char*
   Standard_Integer MyCurrentIndex;
 
   // Verification
-  if (argc<2 || argc>8 ) {di<<" Syntaxe error"<<"\n";return 1;}
+  if (argc<2 || argc>8 ) {di<<" Syntaxe error\n";return 1;}
   if (argc==8) HasArg=Standard_True;
   else HasArg=Standard_False;
 
@@ -655,7 +655,7 @@ static int VAxisBuilder(Draw_Interpretor& di, Standard_Integer argc, const char*
       // Active le mode edge et le mode vertex
       TheAISContext()->ActivateStandardMode(AIS_Shape::SelectionType(1) );
       TheAISContext()->ActivateStandardMode(AIS_Shape::SelectionType(2) );
-      di<<" Select an edge or a vertex."<<"\n";
+      di<<" Select an edge or a vertex.\n";
 
       // Boucle d'attente waitpick.
       Standard_Integer argcc = 5;
@@ -677,7 +677,7 @@ static int VAxisBuilder(Draw_Interpretor& di, Standard_Integer argc, const char*
       if (ShapeA.ShapeType()==TopAbs_VERTEX) {
         // on desactive le mode edge
         TheAISContext()->DeactivateStandardMode(AIS_Shape::SelectionType(2) );
-        di<<" Select a different vertex."<<"\n";
+        di<<" Select a different vertex.\n";
 
         TopoDS_Shape ShapeB;
         do {
@@ -736,7 +736,7 @@ static int VAxisBuilder(Draw_Interpretor& di, Standard_Integer argc, const char*
 
       // Active le mode edge
       TheAISContext()->ActivateStandardMode(AIS_Shape::SelectionType(2) );
-      di<<" Select an edge."<<"\n";
+      di<<" Select an edge.\n";
 
       // Boucle d'attente waitpick.
       Standard_Integer argcc = 5;
@@ -752,7 +752,7 @@ static int VAxisBuilder(Draw_Interpretor& di, Standard_Integer argc, const char*
       // Active le mode vertex et deactive edges
       TheAISContext()->DeactivateStandardMode(AIS_Shape::SelectionType(2) );
       TheAISContext()->ActivateStandardMode(AIS_Shape::SelectionType(1) );
-      di<<" Select a vertex."<<"\n";
+      di<<" Select a vertex.\n";
 
       // Boucle d'attente waitpick.
       Standard_Integer argccc = 5;
@@ -792,7 +792,7 @@ static int VAxisBuilder(Draw_Interpretor& di, Standard_Integer argc, const char*
 
       // Active le mode edge
       TheAISContext()->ActivateStandardMode(AIS_Shape::SelectionType(2) );
-      di<<" Select an edge."<<"\n";
+      di<<" Select an edge.\n";
 
       // Boucle d'attente waitpick.
       Standard_Integer argcc = 5;
@@ -808,7 +808,7 @@ static int VAxisBuilder(Draw_Interpretor& di, Standard_Integer argc, const char*
       // Active le mode vertex et deactive edges
       TheAISContext()->DeactivateStandardMode(AIS_Shape::SelectionType(2) );
       TheAISContext()->ActivateStandardMode(AIS_Shape::SelectionType(1) );
-      di<<" Slect a vertex."<<"\n";
+      di<<" Slect a vertex.\n";
 
       // Boucle d'attente waitpick.
       Standard_Integer argccc = 5;
@@ -873,7 +873,7 @@ static int VPointBuilder(Draw_Interpretor& di, Standard_Integer argc, const char
   Standard_Integer myCurrentIndex;
 
   // Verification
-  if (argc<2 || argc>5 ) {di<<" Syntaxe error"<<"\n";return 1;}
+  if (argc<2 || argc>5 ) {di<<" Syntaxe error\n";return 1;}
   if (argc==5) HasArg=Standard_True;
   else HasArg=Standard_False;
 
@@ -900,7 +900,7 @@ static int VPointBuilder(Draw_Interpretor& di, Standard_Integer argc, const char
     // Active le mode Vertex et Edges
     TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(1) );
     TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2) );
-    di<<" Select a vertex or an edge(build the middle)"<<"\n";
+    di<<" Select a vertex or an edge(build the middle)\n";
 
     // Boucle d'attente waitpick.
     Standard_Integer argcc = 5;
@@ -1064,21 +1064,21 @@ static Standard_Integer VPlaneBuilder (Draw_Interpretor& /*di*/,
            Abs(aCartPointB->Z()-aCartPointA->Z())<=Precision::Confusion())
         {
           // B=A
-          std::cout<<"vplane error: same points"<<"\n";return 1;
+          std::cout<<"vplane error: same points\n";return 1;
         }
         if(Abs(aCartPointC->X()-aCartPointA->X())<=Precision::Confusion() &&
            Abs(aCartPointC->Y()-aCartPointA->Y())<=Precision::Confusion() &&
            Abs(aCartPointC->Z()-aCartPointA->Z())<=Precision::Confusion())
         {
           // C=A
-          std::cout<<"vplane error: same points"<<"\n";return 1;
+          std::cout<<"vplane error: same points\n";return 1;
         }
         if(Abs(aCartPointC->X()-aCartPointB->X())<=Precision::Confusion() &&
            Abs(aCartPointC->Y()-aCartPointB->Y())<=Precision::Confusion() &&
            Abs(aCartPointC->Z()-aCartPointB->Z())<=Precision::Confusion())
         {
           // C=B
-          std::cout<<"vplane error: same points"<<"\n";return 1;
+          std::cout<<"vplane error: same points\n";return 1;
         }
 
         gp_Pnt A = aCartPointA->Pnt();
@@ -1549,7 +1549,7 @@ static Standard_Integer VPlaneBuilder (Draw_Interpretor& /*di*/,
         }
         else
         {
-          std::cout<<" vplanepara: error"<<"\n";return 1;
+          std::cout<<" vplanepara: error\n";return 1;
         }
       }
     }
@@ -1850,7 +1850,7 @@ static int VLineBuilder(Draw_Interpretor& di, Standard_Integer argc, const char*
 {
   Standard_Integer myCurrentIndex;
   // Verifications
-  if (argc!=4 && argc!=8 && argc!=2 )  {di<<"vline error: number of arguments not correct "<<"\n";return 1; }
+  if (argc!=4 && argc!=8 && argc!=2 )  {di<<"vline error: number of arguments not correct \n";return 1; }
   // Fermeture des contextes
   TheAISContext()->CloseAllContexts();
 
@@ -1872,11 +1872,11 @@ static int VLineBuilder(Draw_Interpretor& di, Standard_Integer argc, const char*
         if (theShapeA.IsNull() ||
           (!(theShapeB->Type()==AIS_KOI_Datum && theShapeB->Signature()==1)))
         {
-          di <<"vline error: wrong type of 2de argument."<<"\n";
+          di <<"vline error: wrong type of 2de argument.\n";
           return 1;
         }
       }
-    else {di <<"vline error: wrong type of 1st argument."<<"\n";return 1; }
+    else {di <<"vline error: wrong type of 1st argument.\n";return 1; }
     // Les deux parametres sont du bon type. On verifie que les points ne sont pas confondus
     Handle(AIS_Point) theAISPointA= Handle(AIS_Point)::DownCast (theShapeA);
     Handle(AIS_Point) theAISPointB= Handle(AIS_Point)::DownCast (theShapeB);
@@ -1891,7 +1891,7 @@ static int VLineBuilder(Draw_Interpretor& di, Standard_Integer argc, const char*
 
     if (myCartPointB->X()==myCartPointA->X() && myCartPointB->Y()==myCartPointA->Y() && myCartPointB->Z()==myCartPointA->Z() ) {
       // B=A
-      di<<"vline error: same points"<<"\n";return 1;
+      di<<"vline error: same points\n";return 1;
     }
     // Les deux points sont OK...Construction de l'AIS_Line (en faite, le segment AB)
     Handle(AIS_Line) theAISLine= new AIS_Line(myCartPointA,myCartPointB );
@@ -1930,7 +1930,7 @@ static int VLineBuilder(Draw_Interpretor& di, Standard_Integer argc, const char*
 
     // Active le mode Vertex.
     TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(1) );
-    di<<" Select a vertex "<<"\n";
+    di<<" Select a vertex \n";
 
     // Boucle d'attente waitpick.
     Standard_Integer argcc = 5;
@@ -1947,7 +1947,7 @@ static int VLineBuilder(Draw_Interpretor& di, Standard_Integer argc, const char*
     // ShapeA est un Vertex
     if (ShapeA.ShapeType()==TopAbs_VERTEX ) {
 
-      di<<" Select a different vertex."<<"\n";
+      di<<" Select a different vertex.\n";
 
       TopoDS_Shape ShapeB;
       do {
@@ -1982,7 +1982,7 @@ static int VLineBuilder(Draw_Interpretor& di, Standard_Integer argc, const char*
 
     }
     else  {
-      di<<"vline error."<<"\n";
+      di<<"vline error.\n";
     }
 
   }
@@ -3250,7 +3250,7 @@ static int VComputeHLR (Draw_Interpretor& di,
   if ( argc != 3 &&  argc != 12 )
   {
     di << "Usage: " << argv[0] << " ShapeName HlrName "
-       << "[ eye_x eye_y eye_z dir_x dir_y dir_z upx upy upz ]" << "\n"
+       << "[ eye_x eye_y eye_z dir_x dir_y dir_z upx upy upz ]\n"
        << "                    ShapeName - name of the initial shape\n"
        << "                    HlrName - result hlr object from initial shape\n"
        << "                    eye, dir are eye position and look direction\n"
@@ -4179,13 +4179,13 @@ static Standard_Integer VDisconnect (Draw_Interpretor& di,
   Handle(AIS_InteractiveContext) aContext = ViewerTest::GetAISContext();
   if (aContext.IsNull())
   {
-    std::cout << argv[0] << "ERROR : use 'vinit' command before " << "\n";
+    std::cout << argv[0] << "ERROR : use 'vinit' command before \n";
     return 1;
   }
   
   if (argc != 3)
   {
-    std::cout << "ERROR : Usage : " << argv[0] << " name object" << "\n";
+    std::cout << "ERROR : Usage : " << argv[0] << " name object\n";
     return 1;
   }
 
@@ -4198,14 +4198,14 @@ static Standard_Integer VDisconnect (Draw_Interpretor& di,
   Handle(AIS_MultipleConnectedInteractive) anAssembly;
   if (!aMap.IsBound2 (aName) )
   {
-    std::cout << "Use 'vdisplay' before" << "\n";
+    std::cout << "Use 'vdisplay' before\n";
     return 1;
   }
 
   anAssembly = Handle(AIS_MultipleConnectedInteractive)::DownCast (aMap.Find2 (aName));
   if (anAssembly.IsNull())
   {
-    di << "Not an assembly" << "\n";
+    di << "Not an assembly\n";
     return 1;
   }
 
@@ -4228,7 +4228,7 @@ static Standard_Integer VDisconnect (Draw_Interpretor& di,
     }
     else
     {
-      std::cout << "Use 'vdisplay' before" << "\n";
+      std::cout << "Use 'vdisplay' before\n";
       return 1;
     }    
   }
@@ -4256,7 +4256,7 @@ static Standard_Integer VAddConnected (Draw_Interpretor& di,
   Handle(AIS_InteractiveContext) aContext = ViewerTest::GetAISContext();
   if (aContext.IsNull())
   {
-    std::cout << argv[0] << "error : use 'vinit' command before " << "\n";
+    std::cout << argv[0] << "error : use 'vinit' command before \n";
     return 1;
   }
   
@@ -4277,21 +4277,21 @@ static Standard_Integer VAddConnected (Draw_Interpretor& di,
   Handle(AIS_MultipleConnectedInteractive) anAssembly;
   if (!aMap.IsBound2 (aName) )
   {
-    std::cout << "Use 'vdisplay' before" << "\n";
+    std::cout << "Use 'vdisplay' before\n";
     return 1;
   }
 
   anAssembly = Handle(AIS_MultipleConnectedInteractive)::DownCast (aMap.Find2 (aName));
   if (anAssembly.IsNull())
   {
-    di << "Not an assembly" << "\n";
+    di << "Not an assembly\n";
     return 1;
   }
 
   Handle(AIS_InteractiveObject) anIObj;
   if (!aMap.IsBound2 (anObject))
   {
-      std::cout << "Use 'vdisplay' before" << "\n";
+      std::cout << "Use 'vdisplay' before\n";
       return 1; 
   }
 
@@ -4319,13 +4319,13 @@ static Standard_Integer VListConnected (Draw_Interpretor& /*di*/,
   Handle(AIS_InteractiveContext) aContext = ViewerTest::GetAISContext();
   if (aContext.IsNull())
   {
-    std::cout << argv[0] << "ERROR : use 'vinit' command before " << "\n";
+    std::cout << argv[0] << "ERROR : use 'vinit' command before \n";
     return 1;
   }
   
   if (argc != 2)
   {
-    std::cout << "ERROR : Usage : " << argv[0] << " name" << "\n";
+    std::cout << "ERROR : Usage : " << argv[0] << " name\n";
     return 1;
   }
 
@@ -4336,14 +4336,14 @@ static Standard_Integer VListConnected (Draw_Interpretor& /*di*/,
   Handle(AIS_MultipleConnectedInteractive) anAssembly;
   if (!aMap.IsBound2 (aName) )
   {
-    std::cout << "Use 'vdisplay' before" << "\n";
+    std::cout << "Use 'vdisplay' before\n";
     return 1;
   }
 
   anAssembly = Handle(AIS_MultipleConnectedInteractive)::DownCast (aMap.Find2 (aName));
   if (anAssembly.IsNull())
   {
-    std::cout << "Not an assembly" << "\n";
+    std::cout << "Not an assembly\n";
     return 1;
   }
 
@@ -4916,7 +4916,7 @@ static Standard_Integer VObjZLayer (Draw_Interpretor& di,
   ViewerTest_DoubleMapOfInteractiveAndName& aMap = GetMapOfAIS();
   if (!aMap.IsBound2 (aName))
   {
-    di << "Use 'vdisplay' before" << "\n";
+    di << "Use 'vdisplay' before\n";
     return 1;
   }
 
index 140ef984ab8f07ad0f79df89f802e474da5cc038..51222c98bab24adac44eb5ce4cd949484149da63 100644 (file)
@@ -866,7 +866,7 @@ static int VDiameterDimBuilder(Draw_Interpretor& di, Standard_Integer argc, cons
   // Verification
   if (argc != 2)
   {
-    di<<" vdiameterdim error"<<"\n";
+    di<<" vdiameterdim error\n";
     return 1;
   }
 
@@ -878,7 +878,7 @@ static int VDiameterDimBuilder(Draw_Interpretor& di, Standard_Integer argc, cons
   
   // Activate 'edge' selection mode
   TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2) );
-  di<<" Select an circled edge."<<"\n";
+  di<<" Select an circled edge.\n";
   
   // Loop that will handle the picking.
   Standard_Integer argcc = 5;
@@ -895,13 +895,13 @@ static int VDiameterDimBuilder(Draw_Interpretor& di, Standard_Integer argc, cons
 
   if (aShape.IsNull())
   {
-    di << argv[0] << ": no shape is selected." << "\n";
+    di << argv[0] << ": no shape is selected.\n";
     return 1;
   }
 
   if (aShape.ShapeType() != TopAbs_EDGE)
   {
-    di << " vdiameterdim error: the selection of a face or an edge was expected." << "\n";
+    di << " vdiameterdim error: the selection of a face or an edge was expected.\n";
     return 1;
   }
 
@@ -910,7 +910,7 @@ static int VDiameterDimBuilder(Draw_Interpretor& di, Standard_Integer argc, cons
 
   if (aCurve.GetType() != GeomAbs_Circle)
   {
-    di << "vdiameterdim error: the edge is not a circular one." << "\n";
+    di << "vdiameterdim error: the edge is not a circular one.\n";
     return 1;
   }
 
@@ -939,7 +939,7 @@ static int VConcentricBuilder(Draw_Interpretor& di, Standard_Integer argc, const
   Standard_Integer myCurrentIndex;
   
   // Verification
-  if (argc!=2) {di<<"vconcentric  error."<<"\n";return 1;}
+  if (argc!=2) {di<<"vconcentric  error.\n";return 1;}
   // Fermeture des contextes locaux
   TheAISContext()->CloseAllContexts();
   // Ouverture d'un contexte local et recuperation de son index.
@@ -948,7 +948,7 @@ static int VConcentricBuilder(Draw_Interpretor& di, Standard_Integer argc, const
   
   // On active les modes de selections Edges et Faces.
   TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2) );
-  di<<" Select a circled edge."<<"\n";
+  di<<" Select a circled edge.\n";
   
   // Boucle d'attente waitpick.
   Standard_Integer argcc = 5;
@@ -965,7 +965,7 @@ static int VConcentricBuilder(Draw_Interpretor& di, Standard_Integer argc, const
   // ==================
   if (ShapeA.ShapeType()==TopAbs_EDGE  ) {
     TheAISContext()->DeactivateStandardMode (AIS_Shape::SelectionType(4) );
-    di<<" Select an edge."<<"\n";
+    di<<" Select an edge.\n";
     
     // Boucle d'attente waitpick.
     Standard_Integer argccc = 5;
@@ -979,7 +979,7 @@ static int VConcentricBuilder(Draw_Interpretor& di, Standard_Integer argc, const
       ShapeB = TheAISContext()->SelectedShape();
     }
     if (ShapeB.ShapeType()!=TopAbs_EDGE  ) {
-      di<<" vconcentric error: select an edge."<<"\n";return 1;
+      di<<" vconcentric error: select an edge.\n";return 1;
     }
      
     // Construction du plane.
@@ -1004,7 +1004,7 @@ static int VConcentricBuilder(Draw_Interpretor& di, Standard_Integer argc, const
   
   
   else {
-    di<<" vconcentric  error: the selection of a face or an edge was expected."<<"\n";return 1;
+    di<<" vconcentric  error: the selection of a face or an edge was expected.\n";return 1;
   }
   
   return 0;
@@ -1025,7 +1025,7 @@ static int VEqualDistRelation(Draw_Interpretor& di, Standard_Integer argc, const
   Standard_Integer myCurrentIndex;
   
   // Verification
-  if (argc!=2) {di<<" vequaldistrelation error: no arguments allowed."<<"\n";return 1;}
+  if (argc!=2) {di<<" vequaldistrelation error: no arguments allowed.\n";return 1;}
   
   // Fermeture des contextes locaux
   TheAISContext()->CloseAllContexts();
@@ -1037,7 +1037,7 @@ static int VEqualDistRelation(Draw_Interpretor& di, Standard_Integer argc, const
   // On active les modes de selections Edges et Vertexes.
   TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2) );
   TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(1) );
-  di<<" Select an edge or a vertex"<<"\n";
+  di<<" Select an edge or a vertex\n";
   
   // Boucle d'attente waitpick.
   Standard_Integer argc1 = 5;
@@ -1051,7 +1051,7 @@ static int VEqualDistRelation(Draw_Interpretor& di, Standard_Integer argc, const
     ShapeA = TheAISContext()->SelectedShape();
   }
   
-  di<<" Select an edge or a vertex"<<"\n";
+  di<<" Select an edge or a vertex\n";
   // Boucle d'attente waitpick.
   Standard_Integer argc2 = 5;
   const char *buf2[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -1069,12 +1069,12 @@ static int VEqualDistRelation(Draw_Interpretor& di, Standard_Integer argc, const
     // A et B sont des edges ils doivent etre paralleles
     BRepExtrema_ExtCC myDeltaEdge (TopoDS::Edge(ShapeA) ,TopoDS::Edge(ShapeB)  );
     // on verifie qu'ils sont pas paralleles.
-    if (!myDeltaEdge.IsParallel() ) {di<<"vequaldist error: non parallel edges."<<"\n";return 1; }
+    if (!myDeltaEdge.IsParallel() ) {di<<"vequaldist error: non parallel edges.\n";return 1; }
     
   }
   
   
-  di<<" Select an edge or a vertex"<<"\n";
+  di<<" Select an edge or a vertex\n";
   // Boucle d'attente waitpick.
   Standard_Integer argc3 = 5;
   const char *buf3[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -1087,7 +1087,7 @@ static int VEqualDistRelation(Draw_Interpretor& di, Standard_Integer argc, const
     ShapeC = TheAISContext()->SelectedShape();
   }
   
-  di<<" Select an edge or a vertex"<<"\n";
+  di<<" Select an edge or a vertex\n";
   // Boucle d'attente waitpick.
   Standard_Integer argc4 = 5;
   const char *buf4[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -1104,7 +1104,7 @@ static int VEqualDistRelation(Draw_Interpretor& di, Standard_Integer argc, const
     // C et D sont des edges ils doivent etre paralleles
     BRepExtrema_ExtCC myDeltaEdge2 (TopoDS::Edge(ShapeC) ,TopoDS::Edge(ShapeD)  );
     // on verifie qu'ils sont pas paralleles.
-    if (!myDeltaEdge2.IsParallel() ) {di<<"vequaldist error: non parallel edges."<<"\n";return 1; }
+    if (!myDeltaEdge2.IsParallel() ) {di<<"vequaldist error: non parallel edges.\n";return 1; }
     
   }
   
@@ -1182,7 +1182,7 @@ static int VEqualRadiusRelation(Draw_Interpretor& di, Standard_Integer argc, con
   Standard_Integer myCurrentIndex;
   
   // Verification
-  if (argc!=2) {di<<" vequalrad error: no arguments allowed."<<"\n";return 1;}
+  if (argc!=2) {di<<" vequalrad error: no arguments allowed.\n";return 1;}
   
   // Fermeture des contextes locaux
   TheAISContext()->CloseAllContexts();
@@ -1193,7 +1193,7 @@ static int VEqualRadiusRelation(Draw_Interpretor& di, Standard_Integer argc, con
   
   // On active les modes de selections Edges.
   TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2) );
-  di<<" Select an circled edge "<<"\n";
+  di<<" Select an circled edge \n";
   
   // Boucle d'attente waitpick.
   Standard_Integer argc1 = 5;
@@ -1207,7 +1207,7 @@ static int VEqualRadiusRelation(Draw_Interpretor& di, Standard_Integer argc, con
     ShapeA = TheAISContext()->SelectedShape();
   }
   
-  di<<" Select the last circled edge."<<"\n";
+  di<<" Select the last circled edge.\n";
   // Boucle d'attente waitpick.
   Standard_Integer argc2 = 5;
   const char *buf2[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -1255,7 +1255,7 @@ static int VFixRelation(Draw_Interpretor& di, Standard_Integer argc, const char*
   Standard_Integer myCurrentIndex;
   
   // Verification
-  if (argc!=2) {di<<" vfix  error: no arguments allowed."<<"\n";return 1;}
+  if (argc!=2) {di<<" vfix  error: no arguments allowed.\n";return 1;}
   
   // Fermeture des contextes locaux
   TheAISContext()->CloseAllContexts();
@@ -1266,7 +1266,7 @@ static int VFixRelation(Draw_Interpretor& di, Standard_Integer argc, const char*
   
   // On active les modes de selections edge.
   TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2) );
-  di<<" Select an edge. "<<"\n";
+  di<<" Select an edge. \n";
   
   // Boucle d'attente waitpick.
   Standard_Integer argc1 = 5;
@@ -1316,7 +1316,7 @@ static int VIdenticRelation(Draw_Interpretor& di, Standard_Integer argc, const c
   Standard_Integer myCurrentIndex;
   
   // Verification
-  if (argc!=2) {di<<" videntity error: no arguments allowed."<<"\n";return 1;}
+  if (argc!=2) {di<<" videntity error: no arguments allowed.\n";return 1;}
   
   // Fermeture des contextes locaux
   TheAISContext()->CloseAllContexts();
@@ -1329,7 +1329,7 @@ static int VIdenticRelation(Draw_Interpretor& di, Standard_Integer argc, const c
   TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2) );
   TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(1) );
   TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(4) );
-  di<<" Select an edge, a face or a vertex. "<<"\n";
+  di<<" Select an edge, a face or a vertex. \n";
   
   // Boucle d'attente waitpick.
   Standard_Integer argc1 = 5;
@@ -1343,7 +1343,7 @@ static int VIdenticRelation(Draw_Interpretor& di, Standard_Integer argc, const c
     ShapeA = TheAISContext()->SelectedShape();
   }
   
-  di<<" Select an edge, a face or a vertex. "<<"\n";
+  di<<" Select an edge, a face or a vertex. \n";
   // Boucle d'attente waitpick.
   Standard_Integer argc2 = 5;
   const char *buf2[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -1468,7 +1468,7 @@ static int VLenghtDimension(Draw_Interpretor& di, Standard_Integer argc, const c
   TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(4));
 
   // First shape picking
-  di << " Select an edge, a face or a vertex. " << "\n";
+  di << " Select an edge, a face or a vertex. \n";
   // Loop that will handle the picking.
   Standard_Integer argc1 = 5;
   const char *buf1[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -1489,7 +1489,7 @@ static int VLenghtDimension(Draw_Interpretor& di, Standard_Integer argc, const c
   }
 
   // Second shape picking
-  di << " Select an edge, a face or a vertex. " << "\n";
+  di << " Select an edge, a face or a vertex. \n";
   // Loop that will handle the picking.
   Standard_Integer argc2 = 5;
   const char *buf2[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -1519,7 +1519,7 @@ static int VLenghtDimension(Draw_Interpretor& di, Standard_Integer argc, const c
 
       if (!myDeltaEdge.IsParallel())
       {
-        di << argv[0] << " error: non parallel edges." << "\n";
+        di << argv[0] << " error: non parallel edges.\n";
         return 1;
       }
 
@@ -1571,7 +1571,7 @@ static int VLenghtDimension(Draw_Interpretor& di, Standard_Integer argc, const c
 
       if (!aDeltaEdgeFace.IsParallel())
       {
-        di << argv[0] << "error: the edge isn't parallel to the face;can't compute the distance." << "\n";
+        di << argv[0] << "error: the edge isn't parallel to the face;can't compute the distance.\n";
         return 1;
       }
 
@@ -1669,7 +1669,7 @@ static int VLenghtDimension(Draw_Interpretor& di, Standard_Integer argc, const c
 
       if (!aDeltaEdgeFace.IsParallel())
       {
-        di << argv[0] << " error: the edge isn't parallel to the face;can't compute the distance. " << "\n";
+        di << argv[0] << " error: the edge isn't parallel to the face;can't compute the distance. \n";
         return 1;
       }
 
@@ -1715,7 +1715,7 @@ static int VLenghtDimension(Draw_Interpretor& di, Standard_Integer argc, const c
 
       if (!aDeltaFaceFace.IsParallel())
       {
-        di << argv[0] << " error: the faces are not parallel. "<<"\n";
+        di << argv[0] << " error: the faces are not parallel. \n";
         return 1;
       }
 
@@ -1744,7 +1744,7 @@ static int VRadiusDimBuilder(Draw_Interpretor& di, Standard_Integer argc, const
   // Verification
   if (argc != 2)
   {
-    di << argv[0] << " error: wrong number of parameters." << "\n";
+    di << argv[0] << " error: wrong number of parameters.\n";
     return 1;
   }
 
@@ -1758,7 +1758,7 @@ static int VRadiusDimBuilder(Draw_Interpretor& di, Standard_Integer argc, const
   // Current selection modes - faces and edges
   TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2));
   TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(4));
-  di << " Select a circled edge or face." << "\n";
+  di << " Select a circled edge or face.\n";
 
   // Loop that will be handle picking.
   Standard_Integer argcc = 5;
@@ -1776,13 +1776,13 @@ static int VRadiusDimBuilder(Draw_Interpretor& di, Standard_Integer argc, const
 
   if (aShape.IsNull())
   {
-    di << argv[0] << ": no shape is selected." << "\n";
+    di << argv[0] << ": no shape is selected.\n";
     return 1;
   }
 
   if (aShape.ShapeType() != TopAbs_EDGE && aShape.ShapeType() != TopAbs_FACE)
   {
-    di << argv[0] << " error: the selection of a face or an edge was expected." << "\n";
+    di << argv[0] << " error: the selection of a face or an edge was expected.\n";
     return 1;
   }
 
@@ -1803,7 +1803,7 @@ static int VRadiusDimBuilder(Draw_Interpretor& di, Standard_Integer argc, const
   BRepAdaptor_Curve aCurve (anEdge);
   if (aCurve.GetType() != GeomAbs_Circle)
   {
-    di << argv[0] << " error: the edge is not a circular one." << "\n";
+    di << argv[0] << " error: the edge is not a circular one.\n";
     return 1;
   }
   // Close the context
@@ -1830,7 +1830,7 @@ static int VOffsetDimBuilder(Draw_Interpretor& di, Standard_Integer argc, const
   Standard_Real    theDist;
   
   // Verification
-  if (argc!=2) {di<<" voffsetdim error"<<"\n";return 1;}
+  if (argc!=2) {di<<" voffsetdim error\n";return 1;}
   
   // Fermeture des contextes locaux
   TheAISContext()->CloseAllContexts();
@@ -1841,7 +1841,7 @@ static int VOffsetDimBuilder(Draw_Interpretor& di, Standard_Integer argc, const
   
   // On active les modes de selections Faces.
   TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(4) );
-  di<<" Select a face."<<"\n";
+  di<<" Select a face.\n";
   
   // Boucle d'attente waitpick.
   Standard_Integer argcc = 5;
@@ -1855,7 +1855,7 @@ static int VOffsetDimBuilder(Draw_Interpretor& di, Standard_Integer argc, const
     ShapeA = TheAISContext()->SelectedShape();
   }
   
-  di<<" Select a face."<<"\n";
+  di<<" Select a face.\n";
   // Boucle d'attente waitpick.
   Standard_Integer argccc = 5;
   const char *bufff[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -1877,7 +1877,7 @@ static int VOffsetDimBuilder(Draw_Interpretor& di, Standard_Integer argc, const
     
     BRepExtrema_ExtFF myDeltaFaceFace  (FaceA ,FaceB );
     // On verifie que les deux faces sont bien parelles.
-    if (!myDeltaFaceFace.IsParallel() ) {di<<"vdistdim error: the faces are not parallel. "<<"\n";return 1; }
+    if (!myDeltaFaceFace.IsParallel() ) {di<<"vdistdim error: the faces are not parallel. \n";return 1; }
     
     // On saisit la distance et on l'arrondit!
     theDist=Round (sqrt (myDeltaFaceFace.SquareDistance(1))*10. )/10.;
@@ -1896,7 +1896,7 @@ static int VOffsetDimBuilder(Draw_Interpretor& di, Standard_Integer argc, const
   }
   
   else {
-    di<<" voffsetdim error: the selection of a face was expected."<<"\n";return 1;
+    di<<" voffsetdim error: the selection of a face was expected.\n";return 1;
   }
   
   return 0;
@@ -1917,7 +1917,7 @@ static int VParallelBuilder(Draw_Interpretor& di, Standard_Integer argc, const c
   Standard_Integer myCurrentIndex;
  
   // Verification
-  if (argc!=2) {di<<" vparallel error"<<"\n";return 1;}
+  if (argc!=2) {di<<" vparallel error\n";return 1;}
   
   // Fermeture des contextes locaux
   TheAISContext()->CloseAllContexts();
@@ -1929,7 +1929,7 @@ static int VParallelBuilder(Draw_Interpretor& di, Standard_Integer argc, const c
   // On active les modes de selections Edges.
   TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2) );
   TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(4) );
-  di<<" Select an edge or a face "<<"\n";
+  di<<" Select an edge or a face \n";
   
   // Boucle d'attente waitpick.
   Standard_Integer argcc = 5;
@@ -1949,7 +1949,7 @@ static int VParallelBuilder(Draw_Interpretor& di, Standard_Integer argc, const c
     
     // desactivation du mode face
     TheAISContext()->DeactivateStandardMode (AIS_Shape::SelectionType(4) );
-    di<<" Select a second edge"<<"\n";
+    di<<" Select a second edge\n";
     // Boucle d'attente waitpick.
     Standard_Integer argccc = 5;
     const char *bufff[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -1967,7 +1967,7 @@ static int VParallelBuilder(Draw_Interpretor& di, Standard_Integer argc, const c
     TopoDS_Edge  EdgeB=TopoDS::Edge(ShapeB);
     BRepExtrema_ExtCC myDeltaEdge (EdgeA ,EdgeB );
     // on verifie qu'ils ne sont pas paralleles.
-    if (!myDeltaEdge.IsParallel() ) {di<<"vparallel error: non parallel edges."<<"\n";return 1; }
+    if (!myDeltaEdge.IsParallel() ) {di<<"vparallel error: non parallel edges.\n";return 1; }
     
     
     // On recupere les  vertexes extremites des edge A et B.
@@ -1997,7 +1997,7 @@ static int VParallelBuilder(Draw_Interpretor& di, Standard_Integer argc, const c
     
     // desactivation du mode edge
     TheAISContext()->DeactivateStandardMode (AIS_Shape::SelectionType(2) );
-    di<<" Select a second edge"<<"\n";
+    di<<" Select a second edge\n";
     // Boucle d'attente waitpick.
     Standard_Integer argccc = 5;
     const char *bufff[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -2015,7 +2015,7 @@ static int VParallelBuilder(Draw_Interpretor& di, Standard_Integer argc, const c
     
     BRepExtrema_ExtFF myDeltaFaceFace  (FaceA ,FaceB );
     // On verifie que les deux faces sont bien parelles.
-    if (!myDeltaFaceFace.IsParallel() ) {di<<"vdistdim error: the faces are not parallel. "<<"\n";return 1; }
+    if (!myDeltaFaceFace.IsParallel() ) {di<<"vdistdim error: the faces are not parallel. \n";return 1; }
     
     // recuperation des edges des faces.
     TopExp_Explorer FaceExpA(FaceA,TopAbs_EDGE);
@@ -2065,7 +2065,7 @@ static int VPerpendicularBuilder(Draw_Interpretor& di, Standard_Integer argc, co
   Standard_Integer myCurrentIndex;
  
   // Verification
-  if (argc!=2) {di<<" vortho error"<<"\n";return 1;}
+  if (argc!=2) {di<<" vortho error\n";return 1;}
   
   // Fermeture des contextes locaux
   TheAISContext()->CloseAllContexts();
@@ -2077,7 +2077,7 @@ static int VPerpendicularBuilder(Draw_Interpretor& di, Standard_Integer argc, co
   // On active les modes de selections Edges.
   TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2) );
   TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(4) );
-  di<<" Select an edge or a face "<<"\n";
+  di<<" Select an edge or a face \n";
   
   // Boucle d'attente waitpick.
   Standard_Integer argcc = 5;
@@ -2097,7 +2097,7 @@ static int VPerpendicularBuilder(Draw_Interpretor& di, Standard_Integer argc, co
     
     // desactivation du mode face
     TheAISContext()->DeactivateStandardMode (AIS_Shape::SelectionType(4) );
-    di<<" Select a second edge"<<"\n";
+    di<<" Select a second edge\n";
     // Boucle d'attente waitpick.
     Standard_Integer argccc = 5;
     const char *bufff[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -2145,7 +2145,7 @@ static int VPerpendicularBuilder(Draw_Interpretor& di, Standard_Integer argc, co
     
     // desactivation du mode edge
     TheAISContext()->DeactivateStandardMode (AIS_Shape::SelectionType(2) );
-    di<<" Select a second edge"<<"\n";
+    di<<" Select a second edge\n";
     // Boucle d'attente waitpick.
     Standard_Integer argccc = 5;
     const char *bufff[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -2207,7 +2207,7 @@ static int VTangentBuilder(Draw_Interpretor& di, Standard_Integer argc, const ch
   Standard_Integer myCurrentIndex;
  
   // Verification
-  if (argc!=2) {di<<" vtangent error"<<"\n";return 1;}
+  if (argc!=2) {di<<" vtangent error\n";return 1;}
   
   // Fermeture des contextes locaux
   TheAISContext()->CloseAllContexts();
@@ -2219,7 +2219,7 @@ static int VTangentBuilder(Draw_Interpretor& di, Standard_Integer argc, const ch
   // On active les modes de selections Edges.
   TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2) );
   TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(4) );
-  di<<" Select two coplanar edges(First the circular edge then the tangent edge) or two faces "<<"\n";
+  di<<" Select two coplanar edges(First the circular edge then the tangent edge) or two faces \n";
   
   // Boucle d'attente waitpick.
   Standard_Integer argcc = 5;
@@ -2239,7 +2239,7 @@ static int VTangentBuilder(Draw_Interpretor& di, Standard_Integer argc, const ch
     
     // desactivation du mode face
     TheAISContext()->DeactivateStandardMode (AIS_Shape::SelectionType(4) );
-    di<<" Select a second edge"<<"\n";
+    di<<" Select a second edge\n";
     // Boucle d'attente waitpick.
     Standard_Integer argccc = 5;
     const char *bufff[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -2284,7 +2284,7 @@ static int VTangentBuilder(Draw_Interpretor& di, Standard_Integer argc, const ch
     
     // desactivation du mode edge
     TheAISContext()->DeactivateStandardMode (AIS_Shape::SelectionType(2) );
-    di<<" Select a second edge"<<"\n";
+    di<<" Select a second edge\n";
     // Boucle d'attente waitpick.
     Standard_Integer argccc = 5;
     const char *bufff[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -2345,7 +2345,7 @@ static int VSymmetricBuilder(Draw_Interpretor& di, Standard_Integer argc, const
   Standard_Integer myCurrentIndex;
  
   // Verification
-  if (argc!=2) {di<<" vSymmetric error"<<"\n";return 1;}
+  if (argc!=2) {di<<" vSymmetric error\n";return 1;}
   
   // Fermeture des contextes locaux
   TheAISContext()->CloseAllContexts();
@@ -2356,7 +2356,7 @@ static int VSymmetricBuilder(Draw_Interpretor& di, Standard_Integer argc, const
   
   // On active les modes de selections
   TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2) );
-  di<<" Select an edge:the axis of symetry "<<"\n";
+  di<<" Select an edge:the axis of symetry \n";
   
   // Boucle d'attente waitpick.
   Standard_Integer argcc = 5;
@@ -2375,7 +2375,7 @@ static int VSymmetricBuilder(Draw_Interpretor& di, Standard_Integer argc, const
   // On active les modes de selections
   TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(2) );
   TheAISContext()->ActivateStandardMode (AIS_Shape::SelectionType(1) );
-  di<<" Select two edges or two vertices. "<<"\n";
+  di<<" Select two edges or two vertices. \n";
   
   // Boucle d'attente waitpick.
   Standard_Integer argcc2 = 5;
@@ -2399,7 +2399,7 @@ static int VSymmetricBuilder(Draw_Interpretor& di, Standard_Integer argc, const
     
     // desactivation du mode vertex
     TheAISContext()->DeactivateStandardMode (AIS_Shape::SelectionType(1) );
-    di<<" Select a second edge"<<"\n";
+    di<<" Select a second edge\n";
     // Boucle d'attente waitpick.
     Standard_Integer argccc = 5;
     const char *bufff[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -2419,8 +2419,8 @@ static int VSymmetricBuilder(Draw_Interpretor& di, Standard_Integer argc, const
     BRepExtrema_ExtCC myDeltaEdgeAB (EdgeA ,EdgeB );
     BRepExtrema_ExtCC myDeltaEdgeAC (EdgeA ,EdgeC );
     // on verifie qu'ils  sont paralleles.
-    if (!myDeltaEdgeAB.IsParallel() ) {di<<"vsymetric error: non parallel edges."<<"\n";return 1; }
-    if (!myDeltaEdgeAC.IsParallel() ) {di<<"vsymetric error: non parallel edges."<<"\n";return 1; }
+    if (!myDeltaEdgeAB.IsParallel() ) {di<<"vsymetric error: non parallel edges.\n";return 1; }
+    if (!myDeltaEdgeAC.IsParallel() ) {di<<"vsymetric error: non parallel edges.\n";return 1; }
     // on recupere les vertexs
     TopoDS_Vertex  Va,Vb,Vc,Vd;
     TopExp::Vertices(EdgeB,Va,Vb );
@@ -2449,7 +2449,7 @@ static int VSymmetricBuilder(Draw_Interpretor& di, Standard_Integer argc, const
     
     // desactivation du mode edge
     TheAISContext()->DeactivateStandardMode (AIS_Shape::SelectionType(2) );
-    di<<" Select a second edge"<<"\n";
+    di<<" Select a second edge\n";
     // Boucle d'attente waitpick.
     Standard_Integer argccc = 5;
     const char *bufff[] = { "VPick", "X", "VPickY","VPickZ", "VPickShape" };
@@ -2638,7 +2638,7 @@ static int VMoveDim (Draw_Interpretor& theDi, Standard_Integer theArgNum, const
     }
     if (!isPicked)
     {
-      theDi << theArgVec[0] << ": no dimension or relation is selected." << "\n";
+      theDi << theArgVec[0] << ": no dimension or relation is selected.\n";
       return 1;
     }
   }
index 8a3cdc160b2e41d933d7299fadc704643221319f..0cceba06b60469ce932f6ac0dd59f713295583d3 100644 (file)
@@ -935,7 +935,7 @@ static int VHLRType (Draw_Interpretor& di, Standard_Integer argc, const char** a
 
       if (!aMap.IsBound2 (aName))
       {
-        di << argv[0] << ":" << " Wrong shape name:" << aName.ToCString() << ".\n";
+        di << argv[0] << ": Wrong shape name:" << aName.ToCString() << ".\n";
         continue;
       }
       Handle(AIS_Shape) anAISObject =
@@ -1281,7 +1281,7 @@ static int VViewList (Draw_Interpretor& theDi, Standard_Integer theArgsNb, const
           if (isTreeView)
           {
             TCollection_AsciiString aContextName(aContextIter.Key1());
-            theDi << " " << aContextName.Split(aDriverIter.Key1().Length() + 1) << ":" << "\n";
+            theDi << " " << aContextName.Split(aDriverIter.Key1().Length() + 1) << ":\n";
           }
 
           for (NCollection_DoubleMap <TCollection_AsciiString, Handle(V3d_View)>::Iterator
@@ -1293,7 +1293,7 @@ static int VViewList (Draw_Interpretor& theDi, Standard_Integer theArgsNb, const
               if (isTreeView)
               {
                 if (aViewIter.Value() == ViewerTest::CurrentView())
-                  theDi << "  " << aViewName.Split(aContextIter.Key1().Length() + 1) << "(*)" << "\n";
+                  theDi << "  " << aViewName.Split(aContextIter.Key1().Length() + 1) << "(*)\n";
                 else
                   theDi << "  " << aViewName.Split(aContextIter.Key1().Length() + 1) << "\n";
               }
@@ -1733,7 +1733,7 @@ static int ViewProject(Draw_Interpretor& di, const V3d_TypeOfOrientation ori)
 {
   if ( ViewerTest::CurrentView().IsNull() )
   {
-    di<<"Call vinit before this command, please"<<"\n";
+    di<<"Call vinit before this command, please\n";
     return 1;
   }
 
@@ -1827,39 +1827,39 @@ static int VBack(Draw_Interpretor& di, Standard_Integer , const char** )
 static int VHelp(Draw_Interpretor& di, Standard_Integer , const char** )
 {
 
-  di << "Q : Quit the application" << "\n";
-
-  di << "========================="<<"\n";
-  di << "F : FitAll" << "\n";
-  di << "T : TopView" << "\n";
-  di << "B : BottomView" << "\n";
-  di << "R : RightView" << "\n";
-  di << "L : LeftView" << "\n";
-  di << "A : AxonometricView" << "\n";
-  di << "D : ResetView" << "\n";
-
-  di << "========================="<<"\n";
-  di << "S : Shading" << "\n";
-  di << "W : Wireframe" << "\n";
-  di << "H : HidelLineRemoval" << "\n";
-  di << "U : Unset display mode" << "\n";
-  di << "Delete : Remove selection from viewer" << "\n";
-
-  di << "========================="<<"\n";
-  di << "Selection mode "<<"\n";
-  di << "0 : Shape" <<"\n";
-  di << "1 : Vertex" <<"\n";
-  di << "2 : Edge" <<"\n";
-  di << "3 : Wire" <<"\n";
-  di << "4 : Face" <<"\n";
-  di << "5 : Shell" <<"\n";
-  di << "6 : Solid" <<"\n";
-  di << "7 : Compound" <<"\n";
-
-  di << "========================="<<"\n";
-  di << "Z : Switch Z clipping On/Off" << "\n";
-  di << ", : Hilight next detected" << "\n";
-  di << ". : Hilight previous detected" << "\n";
+  di << "Q : Quit the application\n";
+
+  di << "=========================\n";
+  di << "F : FitAll\n";
+  di << "T : TopView\n";
+  di << "B : BottomView\n";
+  di << "R : RightView\n";
+  di << "L : LeftView\n";
+  di << "A : AxonometricView\n";
+  di << "D : ResetView\n";
+
+  di << "=========================\n";
+  di << "S : Shading\n";
+  di << "W : Wireframe\n";
+  di << "H : HidelLineRemoval\n";
+  di << "U : Unset display mode\n";
+  di << "Delete : Remove selection from viewer\n";
+
+  di << "=========================\n";
+  di << "Selection mode \n";
+  di << "0 : Shape\n";
+  di << "1 : Vertex\n";
+  di << "2 : Edge\n";
+  di << "3 : Wire\n";
+  di << "4 : Face\n";
+  di << "5 : Shell\n";
+  di << "6 : Solid\n";
+  di << "7 : Compound\n";
+
+  di << "=========================\n";
+  di << "Z : Switch Z clipping On/Off\n";
+  di << ", : Hilight next detected\n";
+  di << ". : Hilight previous detected\n";
 
   return 0;
 }
@@ -2657,7 +2657,7 @@ static int VPick(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 { if (ViewerTest::CurrentView().IsNull() ) return 1;
 
 if ( argc < 4 ) {
-  di << argv[0] << "Invalid number of arguments" << "\n";
+  di << argv[0] << "Invalid number of arguments\n";
   return 1;
 }
 
@@ -2676,8 +2676,8 @@ static int VSetBg(Draw_Interpretor& di, Standard_Integer argc, const char** argv
 {
   if (argc < 2 || argc > 3)
   {
-    di << "Usage : " << argv[0] << " imagefile [filltype] : Load image as background" << "\n";
-    di << "filltype can be one of CENTERED, TILED, STRETCH, NONE" << "\n";
+    di << "Usage : " << argv[0] << " imagefile [filltype] : Load image as background\n";
+    di << "filltype can be one of CENTERED, TILED, STRETCH, NONE\n";
     return 1;
   }
 
@@ -2699,7 +2699,7 @@ static int VSetBg(Draw_Interpretor& di, Standard_Integer argc, const char** argv
     else
     {
       di << "Wrong fill type : " << szType << "\n";
-      di << "Must be one of CENTERED, TILED, STRETCH, NONE" << "\n";
+      di << "Must be one of CENTERED, TILED, STRETCH, NONE\n";
       return 1;
     }
   }
@@ -2719,8 +2719,8 @@ static int VSetBgMode(Draw_Interpretor& di, Standard_Integer argc, const char**
 {
   if (argc != 2)
   {
-    di << "Usage : " << argv[0] << " filltype : Change background image mode" << "\n";
-    di << "filltype must be one of CENTERED, TILED, STRETCH, NONE" << "\n";
+    di << "Usage : " << argv[0] << " filltype : Change background image mode\n";
+    di << "filltype must be one of CENTERED, TILED, STRETCH, NONE\n";
     return 1;
   }
 
@@ -2739,7 +2739,7 @@ static int VSetBgMode(Draw_Interpretor& di, Standard_Integer argc, const char**
   else
   {
     di << "Wrong fill type : " << szType << "\n";
-    di << "Must be one of CENTERED, TILED, STRETCH, NONE" << "\n";
+    di << "Must be one of CENTERED, TILED, STRETCH, NONE\n";
     return 1;
   }
   Handle(V3d_View) V3dView = ViewerTest::CurrentView();
@@ -2755,10 +2755,10 @@ static int VSetGradientBg(Draw_Interpretor& di, Standard_Integer argc, const cha
 {
   if (argc != 8 )
   {
-    di << "Usage : " << argv[0] << " R1 G1 B1 R2 G2 B2 Type : Mount gradient background" << "\n";
-    di << "R1,G1,B1,R2,G2,B2 = [0..255]" << "\n";
-    di << "Type must be one of 0 = NONE, 1 = HOR, 2 = VER, 3 = DIAG1, 4 = DIAG2" << "\n";
-    di << "                    5 = CORNER1, 6 = CORNER2, 7 = CORNER3, 8 = CORNER4" << "\n";
+    di << "Usage : " << argv[0] << " R1 G1 B1 R2 G2 B2 Type : Mount gradient background\n";
+    di << "R1,G1,B1,R2,G2,B2 = [0..255]\n";
+    di << "Type must be one of 0 = NONE, 1 = HOR, 2 = VER, 3 = DIAG1, 4 = DIAG2\n";
+    di << "                    5 = CORNER1, 6 = CORNER2, 7 = CORNER3, 8 = CORNER4\n";
     return 1;
   }
 
@@ -2784,9 +2784,9 @@ static int VSetGradientBg(Draw_Interpretor& di, Standard_Integer argc, const cha
     int aType = Draw::Atoi(argv[7]);
     if( aType < 0 || aType > 8 )
     {
-      di << "Wrong fill type " << "\n";
-      di << "Must be one of 0 = NONE, 1 = HOR, 2 = VER, 3 = DIAG1, 4 = DIAG2" << "\n";
-      di << "               5 = CORNER1, 6 = CORNER2, 7 = CORNER3, 8 = CORNER4" << "\n";
+      di << "Wrong fill type \n";
+      di << "Must be one of 0 = NONE, 1 = HOR, 2 = VER, 3 = DIAG1, 4 = DIAG2\n";
+      di << "               5 = CORNER1, 6 = CORNER2, 7 = CORNER3, 8 = CORNER4\n";
       return 1;
     }
 
@@ -2807,9 +2807,9 @@ static int VSetGradientBgMode(Draw_Interpretor& di, Standard_Integer argc, const
 {
   if (argc != 2 )
   {
-    di << "Usage : " << argv[0] << " Type : Change gradient background fill type" << "\n";
-    di << "Type must be one of 0 = NONE, 1 = HOR, 2 = VER, 3 = DIAG1, 4 = DIAG2" << "\n";
-    di << "                    5 = CORNER1, 6 = CORNER2, 7 = CORNER3, 8 = CORNER4" << "\n";
+    di << "Usage : " << argv[0] << " Type : Change gradient background fill type\n";
+    di << "Type must be one of 0 = NONE, 1 = HOR, 2 = VER, 3 = DIAG1, 4 = DIAG2\n";
+    di << "                    5 = CORNER1, 6 = CORNER2, 7 = CORNER3, 8 = CORNER4\n";
     return 1;
   }
 
@@ -2824,9 +2824,9 @@ static int VSetGradientBgMode(Draw_Interpretor& di, Standard_Integer argc, const
     int aType = Draw::Atoi(argv[1]);
     if( aType < 0 || aType > 8 )
     {
-      di << "Wrong fill type " << "\n";
-      di << "Must be one of 0 = NONE, 1 = HOR, 2 = VER, 3 = DIAG1, 4 = DIAG2" << "\n";
-      di << "               5 = CORNER1, 6 = CORNER2, 7 = CORNER3, 8 = CORNER4" << "\n";
+      di << "Wrong fill type \n";
+      di << "Must be one of 0 = NONE, 1 = HOR, 2 = VER, 3 = DIAG1, 4 = DIAG2\n";
+      di << "               5 = CORNER1, 6 = CORNER2, 7 = CORNER3, 8 = CORNER4\n";
       return 1;
     }
 
@@ -2847,8 +2847,8 @@ static int VSetColorBg(Draw_Interpretor& di, Standard_Integer argc, const char**
 {
   if (argc != 4 )
   {
-    di << "Usage : " << argv[0] << " R G B : Set color background" << "\n";
-    di << "R,G,B = [0..255]" << "\n";
+    di << "Usage : " << argv[0] << " R G B : Set color background\n";
+    di << "R,G,B = [0..255]\n";
     return 1;
   }
 
@@ -2936,7 +2936,7 @@ static int VScale(Draw_Interpretor& di, Standard_Integer argc, const char** argv
   if ( V3dView.IsNull() ) return 1;
 
   if ( argc != 4 ) {
-    di << argv[0] << "Invalid number of arguments" << "\n";
+    di << argv[0] << "Invalid number of arguments\n";
     return 1;
   }
   V3dView->SetAxialScale( Draw::Atof(argv[1]),  Draw::Atof(argv[2]),  Draw::Atof(argv[3]) );
@@ -3267,13 +3267,13 @@ static int VZoom( Draw_Interpretor& di, Standard_Integer argc, const char** argv
   if ( argc == 2 ) {
     Standard_Real coef = Draw::Atof(argv[1]);
     if ( coef <= 0.0 ) {
-      di << argv[1] << "Invalid value" << "\n";
+      di << argv[1] << "Invalid value\n";
       return 1;
     }
     V3dView->SetZoom( Draw::Atof(argv[1]) );
     return 0;
   } else {
-    di << argv[0] << " Invalid number of arguments" << "\n";
+    di << argv[0] << " Invalid number of arguments\n";
     return 1;
   }
 }
@@ -3291,7 +3291,7 @@ static int VPan( Draw_Interpretor& di, Standard_Integer argc, const char** argv
     V3dView->Pan( Draw::Atoi(argv[1]), Draw::Atoi(argv[2]) );
     return 0;
   } else {
-    di << argv[0] << " Invalid number of arguments" << "\n";
+    di << argv[0] << " Invalid number of arguments\n";
     return 1;
   }
 }
@@ -4053,7 +4053,7 @@ static int VGraduatedTrihedron (Draw_Interpretor& /*theDi*/, Standard_Integer th
   Handle(AIS_InteractiveContext) anAISContext = ViewerTest::GetAISContext();
   if (anAISContext.IsNull())
   {
-    std::cout << theArgs[0] << ": " << " please use 'vinit' command to initialize view.\n";
+    std::cout << theArgs[0] << ":  please use 'vinit' command to initialize view.\n";
     return 1;
   }
 
@@ -5775,7 +5775,7 @@ static Standard_Integer VSelect (Draw_Interpretor& di,
 {
   if(argc < 3)
   {
-    di << "Usage : " << argv[0] << " x1 y1 [x2 y2 [... xn yn]] [shift_selection = 1|0]" << "\n";
+    di << "Usage : " << argv[0] << " x1 y1 [x2 y2 [... xn yn]] [shift_selection = 1|0]\n";
     return 1;
   }
 
@@ -5847,7 +5847,7 @@ static Standard_Integer VMoveTo (Draw_Interpretor& di,
 {
   if(argc != 3)
   {
-    di << "Usage : " << argv[0] << " x y" << "\n";
+    di << "Usage : " << argv[0] << " x y\n";
     return 1;
   }
 
@@ -6108,8 +6108,8 @@ static Standard_Integer VZClipping (Draw_Interpretor& di,
 {
   if(argc>4)
   {
-    di << "Usage : " << argv[0] << " [mode] [depth  width]" << "\n"
-      <<"mode = OFF|BACK|FRONT|SLICE depth = [0..1] width = [0..1]" << "\n";
+    di << "Usage : " << argv[0] << " [mode] [depth  width]\n"
+      <<"mode = OFF|BACK|FRONT|SLICE depth = [0..1] width = [0..1]\n";
     return -1;
   }
   Handle(AIS_InteractiveContext) aContext = ViewerTest::GetAISContext();
@@ -6170,8 +6170,8 @@ static Standard_Integer VZClipping (Draw_Interpretor& di,
       }
       if (aStatus != 1)
       {
-        di << "Bad mode; Usage : " << argv[0] << " [mode] [depth width]" << "\n"
-          << "mode = OFF|BACK|FRONT|SLICE depth = [0..1] width = [0..1]" << "\n";
+        di << "Bad mode; Usage : " << argv[0] << " [mode] [depth width]\n"
+          << "mode = OFF|BACK|FRONT|SLICE depth = [0..1] width = [0..1]\n";
         return 1;
       }
       aView->SetZClippingType(aZClippingMode);
@@ -6192,14 +6192,14 @@ static Standard_Integer VZClipping (Draw_Interpretor& di,
 
       if(aDepth<0. || aDepth>1.)
       {
-        di << "Bad depth; Usage : " << argv[0] << " [mode] [depth width]" << "\n"
-        << "mode = OFF|BACK|FRONT|SLICE depth = [0..1] width = [0..1]" << "\n";
+        di << "Bad depth; Usage : " << argv[0] << " [mode] [depth width]\n"
+        << "mode = OFF|BACK|FRONT|SLICE depth = [0..1] width = [0..1]\n";
         return 1;
       }
       if(aWidth<0. || aWidth>1.)
       {
-        di << "Bad width; Usage : " << argv[0] << " [mode] [depth width]" << "\n"
-        << "mode = OFF|BACK|FRONT|SLICE depth = [0..1] width = [0..1]" << "\n";
+        di << "Bad width; Usage : " << argv[0] << " [mode] [depth width]\n"
+        << "mode = OFF|BACK|FRONT|SLICE depth = [0..1] width = [0..1]\n";
         return 1;
       }
 
@@ -6244,7 +6244,7 @@ static Standard_Integer VAntialiasing (Draw_Interpretor& di,
 {
   if(argc > 2)
   {
-    di << "Usage : " << argv[0] << " [1|0]" << "\n";
+    di << "Usage : " << argv[0] << " [1|0]\n";
     return 1;
   }
 
@@ -7068,7 +7068,7 @@ static int VAutoZFit (Draw_Interpretor& theDi, Standard_Integer theArgsNb, const
 
   if (theArgsNb < 2)
   {
-    theDi << "Auto z-fit mode: " << "\n"
+    theDi << "Auto z-fit mode: \n"
           << "On: " << (aCurrentView->AutoZFitMode() ? "enabled" : "disabled") << "\n"
           << "Scale: " << aScale << "\n";
     return 0;
@@ -8768,13 +8768,13 @@ static Standard_Integer VXRotate (Draw_Interpretor& di,
   Handle(AIS_InteractiveContext) aContext = ViewerTest::GetAISContext();
   if (aContext.IsNull())
   {
-    di << argv[0] << "ERROR : use 'vinit' command before " << "\n";
+    di << argv[0] << "ERROR : use 'vinit' command before \n";
     return 1;
   }
   
   if (argc != 3)
   {
-    di << "ERROR : Usage : " << argv[0] << " name angle" << "\n";
+    di << "ERROR : Usage : " << argv[0] << " name angle\n";
     return 1;
   }
 
@@ -8786,7 +8786,7 @@ static Standard_Integer VXRotate (Draw_Interpretor& di,
   Handle(AIS_InteractiveObject) anIObj;
   if (!aMap.IsBound2 (aName) )
   {
-    di << "Use 'vdisplay' before" << "\n";
+    di << "Use 'vdisplay' before\n";
     return 1;
   }
   else
index 07af5d2e43d32c0f062264c4e1a116cfa18b3952..77a357f29b20a3cf3999dbd44cb14e6c13c990ae 100644 (file)
 
 Standard_OStream& Vrml::VrmlHeaderWriter(Standard_OStream& anOStream)
 {
-    anOStream << "#VRML V1.0 ascii" << endl;
-    anOStream <<  endl;
-    anOStream << "# Generated by Open CASCADE Technology " << OCC_VERSION_STRING << endl;
-    anOStream <<  endl;
+    anOStream << "#VRML V1.0 ascii\n";
+    anOStream <<  "\n";
+    anOStream << "# Generated by Open CASCADE Technology " << OCC_VERSION_STRING << "\n";
+    anOStream <<  "\n";
     return anOStream;
 }
 
 Standard_OStream& Vrml::CommentWriter(const Standard_CString  aComment,
                                            Standard_OStream& anOStream) 
 {
-    anOStream << "# " << aComment << endl;
+    anOStream << "# " << aComment << "\n";
     return anOStream;
 }
index abd038b5b615a7875fd3bf36335205e1a71d7758..d2e3ab06386471578c01752b2aada74b8cd21997 100644 (file)
@@ -80,42 +80,42 @@ Standard_OStream& Vrml_AsciiText::Print(Standard_OStream& anOStream) const
 {
  Standard_Integer i;
 
- anOStream  << "AsciiText {" << endl;
+ anOStream  << "AsciiText {\n";
 
  i = myString->Lower();
 
  if ( myString->Length() != 1 || myString->Value(i) != "" )
    {
-    anOStream  << "    string [" << endl << '\t';
+    anOStream  << "    string [\n\t";
 
     for ( i = myString->Lower(); i <= myString->Upper(); i++ )
        {
         anOStream << '"' << myString->Value(i) << '"';
         if ( i < myString->Length() )
-           anOStream  << ',' << endl << '\t';
+           anOStream  << ",\n\t";
         }
-    anOStream  << " ]" << endl;
+    anOStream  << " ]\n";
    }
 
  if ( Abs(mySpacing - 1 ) > 0.0001 )
    {
-    anOStream  << "    spacing" << "\t\t";
-    anOStream << mySpacing << endl;
+    anOStream  << "    spacing\t\t";
+    anOStream << mySpacing << "\n";
    }
 
   switch ( myJustification )
     {
-     case Vrml_LEFT: break; // anOStream  << "    justification" << "\t LEFT";
-     case Vrml_CENTER:        anOStream  << "    justification" << "\tCENTER" << endl; break;
-     case Vrml_RIGHT: anOStream  << "    justification" << "\tRIGHT" << endl; break; 
+     case Vrml_LEFT: break; // anOStream  << "    justification\t LEFT";
+     case Vrml_CENTER:        anOStream  << "    justification\tCENTER\n"; break;
+     case Vrml_RIGHT: anOStream  << "    justification\tRIGHT\n"; break; 
     }
 
  if ( Abs(myWidth - 0 ) > 0.0001 )
    {
-    anOStream  << "    width" << "\t\t";
-    anOStream << myWidth << endl;
+    anOStream  << "    width\t\t";
+    anOStream << myWidth << "\n";
    }
 
- anOStream  << '}' << endl;
+ anOStream  << "}\n";
  return anOStream;
 }
index aed135200ea32f4b28e713b37c5f0cad1744417f..c769d84912d15172bcf3f35a63599f35b973046f 100644 (file)
@@ -55,27 +55,27 @@ Vrml_Cone::Vrml_Cone(const Vrml_ConeParts aParts,
 
  Standard_OStream& Vrml_Cone::Print(Standard_OStream& anOStream) const
 {
- anOStream  << "Cone {" << endl;
+ anOStream  << "Cone {\n";
 
   switch ( myParts )
     {
-     case Vrml_ConeALL: break; // anOStream  << "    parts" << "\t\tALL ";
-     case Vrml_ConeSIDES:  anOStream  << "    parts" << "\t\tSIDES" << endl; break;
-     case Vrml_ConeBOTTOM: anOStream  << "    parts" << "\t\tBOTTOM" << endl; break; 
+     case Vrml_ConeALL: break; // anOStream  << "    parts\t\tALL ";
+     case Vrml_ConeSIDES:  anOStream  << "    parts\t\tSIDES\n"; break;
+     case Vrml_ConeBOTTOM: anOStream  << "    parts\t\tBOTTOM\n"; break; 
     }
 
  if ( Abs(myBottomRadius - 1 ) > 0.0001 )
    {
-    anOStream  << "    bottomRadius" << '\t';
-    anOStream << myBottomRadius << endl;
+    anOStream  << "    bottomRadius\t";
+    anOStream << myBottomRadius << "\n";
    }
 
  if ( Abs(myHeight - 2 ) > 0.0001 )
    {
-    anOStream  << "    height" << "\t\t";
-    anOStream << myHeight << endl;
+    anOStream  << "    height\t\t";
+    anOStream << myHeight << "\n";
    }
 
- anOStream  << '}' << endl;
+ anOStream  << "}\n";
  return anOStream;
 }
index 35c2cdbc59bcb402a63f9505213ec6736da5c04b..6645dd8b0ee61038a300164c6f35f4eb140a3916 100644 (file)
@@ -43,28 +43,28 @@ Standard_OStream& Vrml_Coordinate3::Print(Standard_OStream& anOStream) const
 {
  Standard_Integer i;
  
- anOStream  << "Coordinate3 {" << endl;
+ anOStream  << "Coordinate3 {\n";
  
  i = myPoint->Lower();
  if (  myPoint->Length() == 1 && Abs(myPoint->Value(i).X() - 0) < 0.0001 
                               && Abs(myPoint->Value(i).Y() - 0) < 0.0001 
                               && Abs(myPoint->Value(i).Z() - 0) < 0.0001 )
    {
-    anOStream << '}' << endl;
+    anOStream << "}\n";
     return anOStream;
    }
  else
    {
-    anOStream  << "    point [" << endl << '\t';
+    anOStream  << "    point [\n\t";
     for ( i = myPoint->Lower(); i <= myPoint->Upper(); i++ )
        {
         anOStream << myPoint->Value(i).X() << ' ' << myPoint->Value(i).Y() << ' ' << myPoint->Value(i).Z();
         if ( i < myPoint->Length() )
-           anOStream  << ',' << endl << '\t';
+           anOStream  << ",\n\t";
         }
-    anOStream  << " ]" << endl;
+    anOStream  << " ]\n";
    }
- anOStream << '}' << endl;
+ anOStream << "}\n";
 
  return anOStream;
 }
index 8a062058f7bb3a17b9751441956abcc5a246e897..79988707e954e42ed238b091e975e868a4170805 100644 (file)
@@ -55,27 +55,27 @@ Vrml_Cube::Vrml_Cube(const Standard_Real aWidth,
 
  Standard_OStream& Vrml_Cube::Print(Standard_OStream& anOStream) const
 {
- anOStream  << "Cube {" << endl;
+ anOStream  << "Cube {\n";
 
  if ( Abs(myWidth - 2) > 0.0001 )
    {
-    anOStream  << "    width" << '\t';
-    anOStream << myWidth << endl;
+    anOStream  << "    width\t";
+    anOStream << myWidth << "\n";
    }
 
  if ( Abs(myHeight - 2) > 0.0001 )
    {
-    anOStream  << "    height" << '\t';
-    anOStream << myHeight << endl;
+    anOStream  << "    height\t";
+    anOStream << myHeight << "\n";
    }
 
  if ( Abs(myDepth - 2) > 0.0001 )
    {
-    anOStream  << "    depth" << '\t';
-    anOStream << myDepth << endl;
+    anOStream  << "    depth\t";
+    anOStream << myDepth << "\n";
    }
 
- anOStream  << '}' << endl;
+ anOStream  << "}\n";
  return anOStream;
 
 }
index 6f622f95ae52fbb9135217d5096dec88e2fad863..77abdc4e48d0f0e143b9ce650959974cb12beccf 100644 (file)
@@ -55,29 +55,29 @@ Vrml_Cylinder::Vrml_Cylinder(const Vrml_CylinderParts aParts,
 
  Standard_OStream& Vrml_Cylinder::Print(Standard_OStream& anOStream) const
 {
-  anOStream  << "Cylinder {" << endl;
+  anOStream  << "Cylinder {\n";
 
   switch ( myParts )
     {
-     case Vrml_CylinderALL: break; // anOStream  << "\tparts" << "\tALL ";
-     case Vrml_CylinderSIDES:  anOStream  << "    parts" << "\tSIDES" << endl; break;
-     case Vrml_CylinderTOP:    anOStream  << "    parts" << "\tTOP" << endl; break; 
-     case Vrml_CylinderBOTTOM: anOStream  << "    parts" << "\tBOTTOM" << endl; break; 
+     case Vrml_CylinderALL: break; // anOStream  << "\tparts\tALL ";
+     case Vrml_CylinderSIDES:  anOStream  << "    parts\tSIDES\n"; break;
+     case Vrml_CylinderTOP:    anOStream  << "    parts\tTOP\n"; break; 
+     case Vrml_CylinderBOTTOM: anOStream  << "    parts\tBOTTOM\n"; break; 
     }
 
  if ( Abs(myRadius - 1) > 0.0001 )
    {
-    anOStream  << "    radius" << '\t';
-    anOStream << myRadius << endl;
+    anOStream  << "    radius\t";
+    anOStream << myRadius << "\n";
    }
 
  if ( Abs(myHeight - 2) > 0.0001 )
    {
-    anOStream  << "    height" << '\t';
-    anOStream << myHeight << endl;
+    anOStream  << "    height\t";
+    anOStream << myHeight << "\n";
    }
 
- anOStream  << '}' << endl;
+ anOStream  << "}\n";
  return anOStream;
 
 }
index 307190ba8a07c93544da10ce8a4b4227773f3419..3b24d06eb9f8a83dde27e3f6e17f8def9dba9639 100644 (file)
@@ -88,26 +88,26 @@ gp_Vec Vrml_DirectionalLight::Direction() const
 
 Standard_OStream& Vrml_DirectionalLight::Print(Standard_OStream& anOStream) const 
 {
- anOStream  << "DirectionalLight {" << endl;
+ anOStream  << "DirectionalLight {\n";
 
  if ( myOnOff != Standard_True )
    {
-    anOStream  << "    on" << "\t\t" << "FALSE" << endl;
-//    anOStream << myOnOff << endl;
+    anOStream  << "    on\t\tFALSE\n";
+//    anOStream << myOnOff << "\n";
    }
 
  if ( Abs(myIntensity - 1) > 0.0001 )
    {
-    anOStream  << "    intensity" << '\t';
-    anOStream << myIntensity << endl;
+    anOStream  << "    intensity\t";
+    anOStream << myIntensity << "\n";
    }
 
  if ( Abs(myColor.Red() - 1) > 0.0001 || 
       Abs(myColor.Green() - 1) > 0.0001 || 
       Abs(myColor.Blue() - 1) > 0.0001 )
    {
-    anOStream  << "    color" << '\t';
-    anOStream << myColor.Red() << ' ' << myColor.Green() << ' ' << myColor.Blue() << endl;
+    anOStream  << "    color\t";
+    anOStream << myColor.Red() << " " << myColor.Green() << " " << myColor.Blue() << "\n";
    }
 
  if ( Abs(myDirection.X() - 0) > 0.0001 || 
@@ -115,9 +115,9 @@ Standard_OStream& Vrml_DirectionalLight::Print(Standard_OStream& anOStream) cons
      Abs(myDirection.Z() + 1) > 0.0001 ) 
    {
     anOStream  << "    direction" << '\t';
-    anOStream << myDirection.X() << ' ' << myDirection.Y() << ' ' << myDirection.Z() << endl;
+    anOStream << myDirection.X() << " " << myDirection.Y() << " " << myDirection.Z() << "\n";
    }
 
- anOStream  << '}' << endl;
+ anOStream  << "}\n";
  return anOStream;
 }
index 72f8c455144145ac93e526458c1f038335ae07ad..48667c4380b8baf53116b8500c16ccf87eb8d7bd 100644 (file)
@@ -55,29 +55,29 @@ Vrml_FontStyle::Vrml_FontStyle(const Standard_Real aSize,
 
  Standard_OStream& Vrml_FontStyle::Print(Standard_OStream& anOStream) const
 {
- anOStream  << "FontStyle {" << endl;
+ anOStream  << "FontStyle {\n";
 
  if ( Abs(mySize - 10) > 0.0001 )
    {
-    anOStream  << "    size" << '\t';
-    anOStream <<  mySize  << endl;
+    anOStream  << "    size\t";
+    anOStream <<  mySize  << "\n";
    }
 
   switch ( myFamily )
     {
-     case Vrml_SERIF:      break; // anOStream  << "    family" << "\tSERIF ";
-     case Vrml_SANS:       anOStream  << "    family" << "\tSANS" << endl; break;
-     case Vrml_TYPEWRITER: anOStream  << "    family" << "\tTYPEWRITER" << endl; break; 
+     case Vrml_SERIF:      break; // anOStream  << "    family\tSERIF ";
+     case Vrml_SANS:       anOStream  << "    family\tSANS\n"; break;
+     case Vrml_TYPEWRITER: anOStream  << "    family\tTYPEWRITER\n"; break;
     }
 
   switch ( myStyle )
     {
-     case Vrml_NONE:   break; // anOStream  << "    style" << "\tSERIF ";
-     case Vrml_BOLD:   anOStream  << "    style" << "\tBOLD" << endl; break;
-     case Vrml_ITALIC: anOStream  << "    style" << "\tITALIC" << endl; break; 
+     case Vrml_NONE:   break; // anOStream  << "    style\tSERIF ";
+     case Vrml_BOLD:   anOStream  << "    style\tBOLD\n"; break;
+     case Vrml_ITALIC: anOStream  << "    style\tITALIC\n"; break;
     }
 
- anOStream  << '}' << endl;
+ anOStream  << "}\n";
  return anOStream;
 
 }
index e8fa500074e4422951880fe9980b3cd1d0c7e89d..f8425cc2db5d4c9a755eedde7ccb30d463cf8f06 100644 (file)
@@ -23,12 +23,12 @@ Standard_OStream& Vrml_Group::Print(Standard_OStream& anOStream)
 {
   if ( myFlagPrint == 0 )
     {
-      anOStream  << "Group {" << endl;
+      anOStream  << "Group {\n";
       myFlagPrint = 1;
     } //End of if
   else 
     {
-     anOStream  << '}' << endl;
+     anOStream  << "}\n";
      myFlagPrint = 0;
     }
  return anOStream;
index 97b8669151b7440d835122036ef3f3bf5d7210f7..39c5d0eb9d550bfae4a87ba072a4ae6afbc6c68e 100644 (file)
@@ -78,67 +78,67 @@ Handle(TColStd_HArray1OfInteger) Vrml_IndexedFaceSet::TextureCoordIndex() const
 Standard_OStream& Vrml_IndexedFaceSet::Print(Standard_OStream& anOStream) const 
 {
  Standard_Integer i;
- anOStream  << "IndexedFaceSet {" << endl;
+ anOStream  << "IndexedFaceSet {\n";
 
  if ( myCoordIndex->Length() != 1 || myCoordIndex->Value(myCoordIndex->Lower())!=0 )
   { 
-   anOStream  << "    coordIndex [" << endl << '\t';
+   anOStream  << "    coordIndex [\n\t";
     for ( i = myCoordIndex->Lower(); i <= myCoordIndex->Upper(); i++ )
        {
         anOStream << myCoordIndex->Value(i);
 
          if ( i < myCoordIndex->Length() )
-           anOStream  << ',';
+           anOStream  << ",";
        
          if ( myCoordIndex->Value(i) == -1 )
-           anOStream  << endl << '\t';
+           anOStream  << "\n\t";
        }
-    anOStream  << ']' << endl;
+    anOStream  << "]\n";
   }
 
  if ( myMaterialIndex->Length() != 1 || myMaterialIndex->Value(myMaterialIndex->Lower())!=-1 )
   { 
-    anOStream  << "    materialIndex [" << endl << '\t';
+    anOStream  << "    materialIndex [\n\t";
      for ( i=myMaterialIndex->Lower(); i <= myMaterialIndex->Upper(); i++ )
        {
         anOStream << myMaterialIndex->Value(i);
          if ( i < myMaterialIndex->Length() )
-             anOStream  << ',';
+             anOStream  << ",";
 
         if ( myMaterialIndex->Value(i) == -1 )
-           anOStream  << endl << '\t';
+           anOStream  << "\n\t";
         } // End of for
-     anOStream  << ']' << endl;
+     anOStream  << "]\n";
   }
 
  if ( myNormalIndex->Length() != 1 || myNormalIndex->Value(myNormalIndex->Lower())!=-1 )
   { 
-     anOStream  << "    normalIndex [" << endl << '\t';
+     anOStream  << "    normalIndex [\n\t";
      for ( i=myNormalIndex->Lower(); i <= myNormalIndex->Upper(); i++ )
        {
         anOStream << myNormalIndex->Value(i);
         if ( i < myNormalIndex->Length() )
-           anOStream  << ',';
+           anOStream  << ",";
 
         if ( myNormalIndex->Value(i) == -1 )
-           anOStream  << endl << '\t';
+           anOStream  << "\n\t";
         } // End of for
-     anOStream  << ']' << endl;
+     anOStream  << "]\n";
    }
  if ( myTextureCoordIndex->Length() != 1 || myTextureCoordIndex->Value(myTextureCoordIndex->Lower())!=-1 )
   { 
-     anOStream  << "    textureCoordIndex [" << endl << '\t';
+     anOStream  << "    textureCoordIndex [\n\t";
      for ( i=myTextureCoordIndex->Lower(); i <= myTextureCoordIndex->Upper(); i++ )
        {
         anOStream << myTextureCoordIndex->Value(i);
         if ( i < myTextureCoordIndex->Length() )
-           anOStream  << ',';
+           anOStream  << ",";
 
         if ( myTextureCoordIndex->Value(i) == -1 )
-           anOStream  << endl << '\t';
+           anOStream  << "\n\t";
         } // End of for
-      anOStream  << ']' << endl;
+      anOStream  << "]\n";
    }
-  anOStream  << '}' << endl;
+  anOStream  << "}\n";
  return anOStream;
 }
index 8da97bd653bcbc08b45ea4bf3d90832eaa228251..547fc8f9252889501cae59389d92c833da85ec57 100644 (file)
@@ -78,11 +78,11 @@ Standard_OStream& Vrml_IndexedLineSet::Print(Standard_OStream& anOStream) const
 {
  Standard_Integer i;
 
- anOStream  << "IndexedLineSet {" << endl;
+ anOStream  << "IndexedLineSet {" << '\n';
  
  if ( myCoordIndex->Length() != 1 || myCoordIndex->Value(myCoordIndex->Lower())!=0 )
   { 
-    anOStream  << "    coordIndex [" << endl << '\t';
+    anOStream  << "    coordIndex [" << '\n' << '\t';
     for ( i = myCoordIndex->Lower(); i <= myCoordIndex->Upper(); i++ )
        {
         anOStream << myCoordIndex->Value(i);
@@ -90,14 +90,14 @@ Standard_OStream& Vrml_IndexedLineSet::Print(Standard_OStream& anOStream) const
            anOStream  << ',';
 
         if ( myCoordIndex->Value(i) == -1 )
-           anOStream  << endl << '\t';
+           anOStream  << '\n' << '\t';
         }
-    anOStream  << ']' << endl;
+    anOStream  << ']' << '\n';
   }
 
  if ( myMaterialIndex->Length() != 1 || myMaterialIndex->Value(myMaterialIndex->Lower())!=-1 )
   { 
-    anOStream  << "    materialIndex [" << endl << '\t';
+    anOStream  << "    materialIndex [" << '\n' << '\t';
     for ( i = myMaterialIndex->Lower(); i <= myMaterialIndex->Upper(); i++ )
        {
         anOStream << myMaterialIndex->Value(i);
@@ -105,14 +105,14 @@ Standard_OStream& Vrml_IndexedLineSet::Print(Standard_OStream& anOStream) const
            anOStream  << ',' ;
 
         if ( myMaterialIndex->Value(i) == -1 )
-           anOStream  << endl << '\t';
+           anOStream  << '\n' << '\t';
         } // End of for
-     anOStream  << ']' << endl;
+     anOStream  << ']' << '\n';
   }
 
  if ( myNormalIndex->Length() != 1 || myNormalIndex->Value(myNormalIndex->Lower())!=-1 )
   { 
-    anOStream  << "    normalIndex [" << endl << '\t';
+    anOStream  << "    normalIndex [" << '\n' << '\t';
      for ( i=myNormalIndex->Lower(); i <= myNormalIndex->Upper(); i++ )
        {
         anOStream << myNormalIndex->Value(i);
@@ -120,25 +120,25 @@ Standard_OStream& Vrml_IndexedLineSet::Print(Standard_OStream& anOStream) const
            anOStream  << ',';
 
         if ( myNormalIndex->Value(i) == -1 )
-           anOStream  << endl << '\t';
+           anOStream  << '\n' << '\t';
         } // End of for
-     anOStream  << ']' << endl;
+     anOStream  << ']' << '\n';
   }
 
  if ( myTextureCoordIndex->Length() != 1 || myTextureCoordIndex->Value(myTextureCoordIndex->Lower())!=-1 )
   { 
-    anOStream  << "    textureCoordIndex [" << endl << '\t';
+    anOStream  << "    textureCoordIndex [\n\t";
      for ( i=myTextureCoordIndex->Lower(); i <= myTextureCoordIndex->Upper(); i++ )
        {
         anOStream << myTextureCoordIndex->Value(i);
         if ( i < myTextureCoordIndex->Length() )
-           anOStream  << ',';
+           anOStream  << ",";
 
         if ( myTextureCoordIndex->Value(i) == -1 )
-           anOStream  << endl << '\t';
+           anOStream  << "\n\t";
         } // End of for
-      anOStream  << ']' << endl;
+      anOStream  << "]\n";
   }
-  anOStream  << '}' << endl;
+  anOStream  << "}\n";
  return anOStream;
 }
index 07d14239db2e800c7fb384349b6f877d266f5fab..a362b98095df29c8ef5c1d107cef35ea8f67ab76 100644 (file)
@@ -32,14 +32,14 @@ Vrml_Info::Vrml_Info(const TCollection_AsciiString& aString)
 
  Standard_OStream& Vrml_Info::Print(Standard_OStream& anOStream) const
 {
- anOStream  << "Info {" << endl;
+ anOStream  << "Info {\n";
 
  if ( !(myString.IsEqual( "<Undefined info>") ) )
    {
-    anOStream  << "    string" << '\t';
-    anOStream << '"' << myString << '"' << endl;
+    anOStream  << "    string\t";
+    anOStream << '"' << myString << '"' << "\n";
    }
 
- anOStream  << '}' << endl;
+ anOStream  << "}\n";
  return anOStream;
 }
index 8938963afa77e46faab4d8a79c9b6dec70d27841..c4ba55e758192eb72eec3aeda506c45ce646e78d 100644 (file)
@@ -24,12 +24,12 @@ Vrml_Instancing::Vrml_Instancing(const TCollection_AsciiString& aString)
 
  Standard_OStream& Vrml_Instancing::DEF(Standard_OStream& anOStream) const
 {
- anOStream  << "DEF " << myName << endl;
+ anOStream  << "DEF " << myName << "\n";
  return anOStream;
 }
 
  Standard_OStream& Vrml_Instancing::USE(Standard_OStream& anOStream) const
 {
- anOStream  << "USE " << myName << endl;
+ anOStream  << "USE " << myName << "\n";
  return anOStream;
 }
index a3faa506644f6d57f8ef20ab2d88d7ef7dc3ee56..97b3e82469c00dc8636ce256529e390f5977df7f 100644 (file)
@@ -56,28 +56,28 @@ Vrml_LOD::Vrml_LOD(const Handle(TColStd_HArray1OfReal)& aRange,
  Standard_OStream& Vrml_LOD::Print(Standard_OStream& anOStream) const
 {
   Standard_Integer i;
-  anOStream  << "LOD {" << endl;
+  anOStream  << "LOD {\n";
   
   if ( myRangeFlag == Standard_True )
     { 
-      anOStream  << "    range [" << endl << "\t";
+      anOStream  << "    range [\n\t";
       for ( i = myRange->Lower(); i <= myRange->Upper(); i++ )
        {
          anOStream << myRange->Value(i);
          if ( i < myRange->Length() )
-           anOStream  << ',';
+           anOStream  << ",";
         }
-      anOStream  << " ]" << endl;
+      anOStream  << " ]\n";
     }
 
   if ( Abs(myCenter.X() - 0) > 0.0001 || 
       Abs(myCenter.Y() - 0) > 0.0001 || 
       Abs(myCenter.Z() - 0) > 0.0001 ) 
     {
-      anOStream  << "    center" << '\t';
-      anOStream << myCenter.X() << ' ' << myCenter.Y() << ' ' << myCenter.Z() << endl;
+      anOStream  << "    center\t";
+      anOStream << myCenter.X() << " " << myCenter.Y() << " " << myCenter.Z() << "\n";
     }
   
-  anOStream  << '}' << endl;
+  anOStream  << "}\n";
   return anOStream;
 }
index 828e917e32562691eb0aa7dd6e6963bf0c1321aa..64423d744ed93d18b78cfa26ef3bb5d914ce85ac 100644 (file)
@@ -148,7 +148,7 @@ Handle(TColStd_HArray1OfReal) Vrml_Material::Transparency() const
 Standard_OStream& Vrml_Material::Print(Standard_OStream& anOStream) const 
 {
  Standard_Integer i;
- anOStream  << "Material {" << endl;
+ anOStream  << "Material {\n";
 
  if ( myAmbientColor->Length() != 1 ||
      Abs(myAmbientColor->Value(myAmbientColor->Lower()).Red() - 0.2)    > 0.0001 ||
@@ -160,9 +160,9 @@ Standard_OStream& Vrml_Material::Print(Standard_OStream& anOStream) const
     {
      anOStream << myAmbientColor->Value(i).Red() << ' ' << myAmbientColor->Value(i).Green() << ' ' << myAmbientColor->Value(i).Blue();
      if ( i < myAmbientColor->Length() )
-       anOStream  << ',' << endl << '\t'; // ,,,,,,,,,,
+       anOStream  << ",\n\t"; // ,,,,,,,,,,
     }
-   anOStream  << " ]" << endl;
+   anOStream  << " ]\n";
   }
 
  if ( myDiffuseColor->Length() != 1 || 
@@ -175,9 +175,9 @@ Standard_OStream& Vrml_Material::Print(Standard_OStream& anOStream) const
     {
      anOStream << myDiffuseColor->Value(i).Red() << ' ' << myDiffuseColor->Value(i).Green() << ' ' << myDiffuseColor->Value(i).Blue();
      if ( i < myDiffuseColor->Length() )
-       anOStream  << ',' << endl << '\t';     
+       anOStream  << ",\n\t";
     }
-   anOStream  << " ]" << endl;
+   anOStream  << " ]\n";
   }
 
  if ( mySpecularColor->Length() != 1 || 
@@ -190,9 +190,9 @@ Standard_OStream& Vrml_Material::Print(Standard_OStream& anOStream) const
      {
      anOStream << mySpecularColor->Value(i).Red() << ' ' << mySpecularColor->Value(i).Green() << ' ' << mySpecularColor->Value(i).Blue();
      if ( i < mySpecularColor->Length() )
-       anOStream  << ',' << endl << "\t";     
+       anOStream  << ",\n\t";
      }
-   anOStream  << " ]" << endl;
+   anOStream  << " ]\n";
   }
 
  if ( myEmissiveColor->Length() != 1 || 
@@ -205,9 +205,9 @@ Standard_OStream& Vrml_Material::Print(Standard_OStream& anOStream) const
     {
      anOStream << myEmissiveColor->Value(i).Red() << ' ' << myEmissiveColor->Value(i).Green() << ' ' << myEmissiveColor->Value(i).Blue();
      if ( i < myEmissiveColor->Length() )
-       anOStream  << ',' << endl << "\t";     
+       anOStream  << ",\n\t";
     }
-   anOStream  << " ]" << endl;
+   anOStream  << " ]\n";
   }
 
  if ( myShininess->Length() != 1 ||  Abs(myShininess->Value(myShininess->Lower()) - 0.2) > 0.0001 )
@@ -219,7 +219,7 @@ Standard_OStream& Vrml_Material::Print(Standard_OStream& anOStream) const
        if ( i < myShininess->Length() )
           anOStream  << ", ";
       }
-    anOStream  << " ]" << endl;
+    anOStream  << " ]\n";
   }
 
  if ( myTransparency->Length() != 1 ||  Abs(myTransparency->Value(myTransparency->Lower()) - 0) > 0.0001 )
@@ -231,9 +231,9 @@ Standard_OStream& Vrml_Material::Print(Standard_OStream& anOStream) const
       if ( i < myTransparency->Length() )
          anOStream  << ", ";
      }
-    anOStream  << " ]" << endl;
+    anOStream  << " ]\n";
   } 
-  anOStream  << '}' << endl;
+  anOStream  << "}\n";
   
  return anOStream;
 }
index 59182b79008c62717a0fb2b06d936e77358276f1..8a3f471fb5c99ec5922f971be817438f03239348 100644 (file)
@@ -36,19 +36,19 @@ Vrml_MaterialBindingAndNormalBinding Vrml_MaterialBinding::Value() const
 
 Standard_OStream& Vrml_MaterialBinding::Print(Standard_OStream& anOStream) const 
 {
- anOStream  << "MaterialBinding {" << endl;
+ anOStream  << "MaterialBinding {\n";
  switch ( myValue )
    {
-   case Vrml_DEFAULT:  break; // anOStream  << "    value" << "\tDEFAULT";
-   case Vrml_OVERALL:            anOStream  << "    value" << "\tOVERALL" << endl; break;
-   case Vrml_PER_PART:           anOStream  << "    value" << "\tPER_PART" << endl; break;
-   case Vrml_PER_PART_INDEXED:   anOStream  << "    value" << "\tPER_PART_INDEXED" << endl; break;
-   case Vrml_PER_FACE:           anOStream  << "    value" << "\tPER_FACE" << endl; break;
-   case Vrml_PER_FACE_INDEXED:   anOStream  << "    value" << "\tPER_FACE_INDEXED" << endl; break;
-   case Vrml_PER_VERTEX:         anOStream  << "    value" << "\tPER_VERTEX" << endl; break;
-   case Vrml_PER_VERTEX_INDEXED: anOStream  << "    value" << "\tPER_VERTEX_INDEXED" << endl; break;
+   case Vrml_DEFAULT:  break; // anOStream  << "    value\tDEFAULT";
+   case Vrml_OVERALL:            anOStream  << "    value\tOVERALL\n"; break;
+   case Vrml_PER_PART:           anOStream  << "    value\tPER_PART\n"; break;
+   case Vrml_PER_PART_INDEXED:   anOStream  << "    value\tPER_PART_INDEXED\n"; break;
+   case Vrml_PER_FACE:           anOStream  << "    value\tPER_FACE\n"; break;
+   case Vrml_PER_FACE_INDEXED:   anOStream  << "    value\tPER_FACE_INDEXED\n"; break;
+   case Vrml_PER_VERTEX:         anOStream  << "    value\tPER_VERTEX\n"; break;
+   case Vrml_PER_VERTEX_INDEXED: anOStream  << "    value\tPER_VERTEX_INDEXED\n"; break;
    }
- anOStream  << '}' << endl;
+ anOStream  << "}\n";
  return anOStream;
 }
 
index 9768cb70619ebea570951ab185ef16bbd7b997d2..96d0b8fa00b1afeaa1158ee5b7f0d900990d6b71 100644 (file)
@@ -54,14 +54,14 @@ Vrml_MatrixTransform::Vrml_MatrixTransform()
  Standard_OStream& Vrml_MatrixTransform::Print(Standard_OStream& anOStream) const
 {
   Standard_Integer i,j;
-  anOStream  << "MatrixTransform {" << endl;
+  anOStream  << "MatrixTransform {\n";
 
   if ( Abs(myMatrix.Value(1,1) - 1) > 0.0000001 || Abs(myMatrix.Value(2,1) - 0) > 0.0000001 || Abs(myMatrix.Value(3,1) - 0) > 0.0000001 || 
        Abs(myMatrix.Value(1,2) - 0) > 0.0000001 || Abs(myMatrix.Value(2,2) - 1) > 0.0000001 || Abs(myMatrix.Value(3,2) - 0) > 0.0000001 || 
        Abs(myMatrix.Value(1,3) - 0) > 0.0000001 || Abs(myMatrix.Value(2,3) - 0) > 0.0000001 || Abs(myMatrix.Value(3,3) - 1) > 0.0000001 || 
        Abs(myMatrix.Value(1,4) - 0) > 0.0000001 || Abs(myMatrix.Value(2,4) - 0) > 0.0000001 || Abs(myMatrix.Value(3,4) - 0) > 0.0000001 )
     {
-      anOStream  << "    matrix" << '\t';
+      anOStream  << "    matrix\t";
 
       for ( j = 1; j <=4; j++ )
        {
@@ -72,15 +72,15 @@ Vrml_MatrixTransform::Vrml_MatrixTransform()
            }
          if (j!=4) 
            {
-             anOStream  << '0' << endl;
+             anOStream  << "0\n";
              anOStream  << "\t\t";
            }
          else 
            {
-             anOStream  << myMatrix.ScaleFactor() << endl;
+             anOStream  << myMatrix.ScaleFactor() << "\n";
            }
        }
     }
-  anOStream  << '}' << endl;
+  anOStream  << "}\n";
   return anOStream;
 }
index 3596c2fdcdbb3db1acf7314d306d40f9412fbc25..6aff57e94713ae575dacfec22020fe15b30f7166 100644 (file)
@@ -43,14 +43,14 @@ Standard_OStream& Vrml_Normal::Print(Standard_OStream& anOStream) const
 {
  Standard_Integer i;
 
- anOStream  << "Normal {" << endl;
+ anOStream  << "Normal {\n";
  i = myVector->Lower();
  if ( myVector->Length() == 1 && 
      Abs(myVector->Value(i).X() - 0) < 0.0001 && 
      Abs(myVector->Value(i).Y() - 0) < 0.0001 && 
      Abs(myVector->Value(i).Z() - 1) < 0.0001 )
    {
-    anOStream  << '}' << endl;
+    anOStream  << "}\n";
     return anOStream;
    }
  else 
@@ -58,13 +58,13 @@ Standard_OStream& Vrml_Normal::Print(Standard_OStream& anOStream) const
   anOStream  << "    vector [\n\t";
    for ( i = myVector->Lower(); i <= myVector->Upper(); i++ )
      {
-        anOStream << myVector->Value(i).X() << ' ' << myVector->Value(i).Y() << ' ' << myVector->Value(i).Z();
+        anOStream << myVector->Value(i).X() << " " << myVector->Value(i).Y() << " " << myVector->Value(i).Z();
       if ( i < myVector->Length() )
-        anOStream  << ',' << endl << '\t';
+        anOStream  << ",\n\t";
      }
-    anOStream << " ]" << endl;
+    anOStream << " ]\n";
   }  
-  anOStream  << '}' << endl;
+  anOStream  << "}\n";
 
  return anOStream;
 }
index ef030979c39e15405cb0e585eed7dc45af187f33..2f3620f6a29946b04bc1f2bd04d41ee807b88a95 100644 (file)
@@ -36,18 +36,18 @@ Vrml_MaterialBindingAndNormalBinding Vrml_NormalBinding::Value() const
 
 Standard_OStream& Vrml_NormalBinding::Print(Standard_OStream& anOStream) const 
 {
- anOStream  << "NormalBinding {" << endl;
+ anOStream  << "NormalBinding {\n";
  switch ( myValue )
    {
-   case Vrml_DEFAULT:  break; // anOStream  << "    value" << "\tDEFAULT";
-   case Vrml_OVERALL:            anOStream  << "    value" << "\tOVERALL" << endl; break;
-   case Vrml_PER_PART:           anOStream  << "    value" << "\tPER_PART" << endl; break;
-   case Vrml_PER_PART_INDEXED:   anOStream  << "    value" << "\tPER_PART_INDEXED" << endl; break;
-   case Vrml_PER_FACE:           anOStream  << "    value" << "\tPER_FACE" << endl; break;
-   case Vrml_PER_FACE_INDEXED:   anOStream  << "    value" << "\tPER_FACE_INDEXED" << endl; break;
-   case Vrml_PER_VERTEX:         anOStream  << "    value" << "\tPER_VERTEX" << endl; break;
-   case Vrml_PER_VERTEX_INDEXED: anOStream  << "    value" << "\tPER_VERTEX_INDEXED" << endl; break;
+   case Vrml_DEFAULT:  break; // anOStream  << "    value\tDEFAULT";
+   case Vrml_OVERALL:            anOStream  << "    value\tOVERALL\n"; break;
+   case Vrml_PER_PART:           anOStream  << "    value\tPER_PART\n"; break;
+   case Vrml_PER_PART_INDEXED:   anOStream  << "    value\tPER_PART_INDEXED\n"; break;
+   case Vrml_PER_FACE:           anOStream  << "    value\tPER_FACE\n"; break;
+   case Vrml_PER_FACE_INDEXED:   anOStream  << "    value\tPER_FACE_INDEXED\n"; break;
+   case Vrml_PER_VERTEX:         anOStream  << "    value\tPER_VERTEX\n"; break;
+   case Vrml_PER_VERTEX_INDEXED: anOStream  << "    value\tPER_VERTEX_INDEXED\n"; break;
    }
- anOStream  << '}' << endl;
+ anOStream  << "}\n";
  return anOStream;
 }
index 005a304aa784173977f0dcf05be659f0c8a1c65c..44f4a32d3202490fcc688df53bab3aa1938a6b86 100644 (file)
@@ -81,13 +81,13 @@ Standard_Real Vrml_OrthographicCamera::Height() const
 
 Standard_OStream& Vrml_OrthographicCamera::Print(Standard_OStream& anOStream) const 
 {
- anOStream  << "OrthographicCamera {" << endl;
+ anOStream  << "OrthographicCamera {\n";
  if ( Abs(myPosition.X() - 0) > 0.0001 || 
       Abs(myPosition.Y() - 0) > 0.0001 || 
       Abs(myPosition.Z() - 1) > 0.0001 )
    {
-    anOStream  << "    position" << "\t\t";
-    anOStream << myPosition.X() << ' ' << myPosition.Y() << ' ' << myPosition.Z() << endl;
+    anOStream  << "    position\t\t";
+    anOStream << myPosition.X() << " " << myPosition.Y() << " " << myPosition.Z() << "\n";
    }
 
  if ( Abs(myOrientation.RotationX() - 0) > 0.0001 || 
@@ -95,21 +95,21 @@ Standard_OStream& Vrml_OrthographicCamera::Print(Standard_OStream& anOStream) co
      Abs(myOrientation.RotationZ() - 1) > 0.0001 ||
      Abs(myOrientation.Angle() - 0) > 0.0001 )
    {
-    anOStream  << "    orientation" << "\t\t";
-    anOStream << myOrientation.RotationX() << ' ' << myOrientation.RotationY() << ' ';
-    anOStream << myOrientation.RotationZ() << ' ' << myOrientation.Angle() << endl;
+    anOStream  << "    orientation\t\t";
+    anOStream << myOrientation.RotationX() << " " << myOrientation.RotationY() << " ";
+    anOStream << myOrientation.RotationZ() << " " << myOrientation.Angle() << "\n";
    }
 
  if ( Abs(myFocalDistance - 5) > 0.0001 )
    {
-    anOStream  << "    focalDistance" << '\t';
-    anOStream << myFocalDistance << endl;
+    anOStream  << "    focalDistance\t";
+    anOStream << myFocalDistance << "\n";
    }
  if ( Abs(myHeight - 2) > 0.0001 )
    {
-    anOStream  << "    height" << "\t\t";
-    anOStream << myHeight << endl;
+    anOStream  << "    height\t\t";
+    anOStream << myHeight << "\n";
    }
- anOStream  << '}' << endl;
+ anOStream  << "}\n";
  return anOStream;
 }
index 6ee4eac164dbe17f2767ae14abcdc1b033a33190..c52dcee775451c10d0b00f30c38b71534ea1febb 100644 (file)
@@ -81,13 +81,13 @@ Standard_Real Vrml_PerspectiveCamera::Angle() const
 
 Standard_OStream& Vrml_PerspectiveCamera::Print(Standard_OStream& anOStream) const 
 {
- anOStream  << "PerspectiveCamera {" << endl;
+ anOStream  << "PerspectiveCamera {\n";
  if ( Abs(myPosition.X() - 0) > 0.0001 || 
       Abs(myPosition.Y() - 0) > 0.0001 || 
       Abs(myPosition.Z() - 1) > 0.0001 )
    {
-    anOStream  << "    position" << "\t\t";
-    anOStream << myPosition.X() << ' ' << myPosition.Y() << ' ' << myPosition.Z() << endl;
+    anOStream  << "    position\t\t";
+    anOStream << myPosition.X() << " " << myPosition.Y() << " " << myPosition.Z() << "\n";
    }
 
  if ( Abs(myOrientation.RotationX() - 0) > 0.0001 || 
@@ -95,21 +95,21 @@ Standard_OStream& Vrml_PerspectiveCamera::Print(Standard_OStream& anOStream) con
      Abs(myOrientation.RotationZ() - 1) > 0.0001 ||
      Abs(myOrientation.Angle() - 0) > 0.0001 )
    {
-    anOStream  << "    orientation" << "\t\t";
-    anOStream << myOrientation.RotationX() << ' ' << myOrientation.RotationY() << ' ';
-    anOStream << myOrientation.RotationZ() << ' ' << myOrientation.Angle() << endl;
+    anOStream  << "    orientation\t\t";
+    anOStream << myOrientation.RotationX() << " " << myOrientation.RotationY() << " ";
+    anOStream << myOrientation.RotationZ() << " " << myOrientation.Angle() << "\n";
    }
 
  if ( Abs(myFocalDistance - 5) > 0.0001 )
    {
-    anOStream  << "    focalDistance" << '\t';
-    anOStream << myFocalDistance << endl;
+    anOStream  << "    focalDistance\t";
+    anOStream << myFocalDistance << "\n";
    }
  if ( Abs(myHeightAngle - 0.785398) > 0.0000001 )
    {
-    anOStream  << "    heightAngle" << "\t\t";
-    anOStream << myHeightAngle << endl;
+    anOStream  << "    heightAngle\t\t";
+    anOStream << myHeightAngle << "\n";
    }
- anOStream  << '}' << endl;
+ anOStream  << "}\n";
  return anOStream;
 }
index 7a29ea74f8ed4802a15a4a3d44189ea3a58a5b0e..f5b22c39dc31679988a7b11d4922e537fa5f324c 100644 (file)
@@ -88,36 +88,36 @@ gp_Vec Vrml_PointLight::Location() const
 
 Standard_OStream& Vrml_PointLight::Print(Standard_OStream& anOStream) const 
 {
- anOStream  << "PointLight {" << endl;
+ anOStream  << "PointLight {\n";
 
  if ( myOnOff != Standard_True )
    {
-    anOStream  << "    on" << "\t\t" << "FALSE" << endl;
-//    anOStream << myOnOff << endl;
+    anOStream  << "    on\t\tFALSE\n";
+//    anOStream << myOnOff << "\n";
    }
 
  if ( Abs(myIntensity - 1) > 0.0001 )
    {
-    anOStream  << "    intensity" << '\t';
-    anOStream << myIntensity << endl;
+    anOStream  << "    intensity\t";
+    anOStream << myIntensity << "\n";
    }
 
  if ( Abs(myColor.Red() - 1) > 0.0001 || 
       Abs(myColor.Green() - 1) > 0.0001 || 
       Abs(myColor.Blue() - 1) > 0.0001 )
    {
-    anOStream  << "    color" << '\t';
-    anOStream << myColor.Red() << ' ' << myColor.Green() << ' ' << myColor.Blue() << endl;
+    anOStream  << "    color\t";
+    anOStream << myColor.Red() << " " << myColor.Green() << " " << myColor.Blue() << "\n";
    }
 
  if ( Abs(myLocation.X() - 0) > 0.0001 || 
      Abs(myLocation.Y() - 0) > 0.0001 || 
      Abs(myLocation.Z() - 1) > 0.0001 ) 
    {
-    anOStream  << "    location" << '\t';
-    anOStream << myLocation.X() << ' ' << myLocation.Y() << ' ' << myLocation.Z() << endl;
+    anOStream  << "    location\t";
+    anOStream << myLocation.X() << " " << myLocation.Y() << " " << myLocation.Z() << "\n";
    }
 
- anOStream  << '}' << endl;
+ anOStream  << "}\n";
  return anOStream;
 }
index feb46376508b1f40dd141b3ae09a7aed31399035..cc8cab902276bcb818e70e95c27ac969ddc422b1 100644 (file)
@@ -43,21 +43,21 @@ Standard_Integer Vrml_PointSet::NumPoints() const
 
 Standard_OStream& Vrml_PointSet::Print(Standard_OStream& anOStream) const 
 {
- anOStream  << "PointSet {" << endl;
+ anOStream  << "PointSet {\n";
  if ( myStartIndex != 0 || myNumPoints !=-1 )
   {
     if ( myStartIndex != 0)
       {
-       anOStream  << "    startIndex" << '\t';
-       anOStream << myStartIndex << endl;
+       anOStream  << "    startIndex\t";
+       anOStream << myStartIndex << "\n";
       }
     if ( myNumPoints != 0)
       {
-       anOStream  << "    numPoints" << '\t';
-       anOStream << myNumPoints << endl;
+       anOStream  << "    numPoints\t";
+       anOStream << myNumPoints << "\n";
       }
   }
- anOStream  << '}' << endl;
+ anOStream  << "}\n";
  return anOStream;
 }
 
index 0203e6a804c524b036c957af5f1874bcf24516a9..c6d205d6773221af0002c4698a86f2814b3e3c3a 100644 (file)
@@ -38,18 +38,18 @@ Vrml_Rotation::Vrml_Rotation(const Vrml_SFRotation& aRotation)
 
  Standard_OStream& Vrml_Rotation::Print(Standard_OStream& anOStream) const
 {
- anOStream  << "Rotation {" << endl;
+ anOStream  << "Rotation {\n";
 
  if ( Abs(myRotation.RotationX() - 0) > 0.0001 || 
      Abs(myRotation.RotationY() - 0) > 0.0001 || 
      Abs(myRotation.RotationZ() - 1) > 0.0001 ||
      Abs(myRotation.Angle() - 0) > 0.0001 ) 
    {
-    anOStream  << "    rotation" << '\t';
-    anOStream << myRotation.RotationX() << ' ' << myRotation.RotationY() << ' ';
-    anOStream << myRotation.RotationZ() << ' ' << myRotation.Angle() << endl;
+    anOStream  << "    rotation\t";
+    anOStream << myRotation.RotationX() << " " << myRotation.RotationY() << " ";
+    anOStream << myRotation.RotationZ() << " " << myRotation.Angle() << "\n";
    }
 
- anOStream  << '}' << endl;
+ anOStream  << "}\n";
  return anOStream;
 }
index d3eba32e3e91ea2786e99c33182a3965854addf1..c91858e7a49832e1fd31a31e69502a081cd673b7 100644 (file)
@@ -38,16 +38,16 @@ Vrml_Scale::Vrml_Scale(const gp_Vec& aScaleFactor)
 
  Standard_OStream& Vrml_Scale::Print(Standard_OStream& anOStream) const
 {
- anOStream  << "Scale {" << endl;
+ anOStream  << "Scale {\n";
 
  if ( Abs(myScaleFactor.X() - 1) > 0.0001 || 
      Abs(myScaleFactor.Y() - 1) > 0.0001 || 
      Abs(myScaleFactor.Z() - 1) > 0.0001 ) 
    {
-    anOStream  << "    scaleFactor" << '\t';
-    anOStream << myScaleFactor.X() << ' ' << myScaleFactor.Y() << ' ' << myScaleFactor.Z() << endl;
+    anOStream  << "    scaleFactor\t";
+    anOStream << myScaleFactor.X() << " " << myScaleFactor.Y() << " " << myScaleFactor.Z() << "\n";
    }
 
- anOStream  << '}' << endl;
+ anOStream  << "}\n";
  return anOStream;
 }
index 75962697e252521ada1627d4eb3698f81980b7dc..026d21159ca562d2072955485076d7ccd958b507 100644 (file)
@@ -40,19 +40,19 @@ Standard_OStream& Vrml_Separator::Print(Standard_OStream& anOStream)
 {
   if ( myFlagPrint == 0 )
     {
-      anOStream  << "Separator {" << endl;
+      anOStream  << "Separator {\n";
       if ( myRenderCulling != Vrml_AUTO )
        {
         if ( myRenderCulling == Vrml_ON )
-           anOStream  << "    renderCulling" << "\tON" << endl;
+           anOStream  << "    renderCulling\tON\n";
         else
-           anOStream  << "    renderCulling" << "\tOFF" << endl;
+           anOStream  << "    renderCulling\tOFF\n";
        }
       myFlagPrint = 1;
     } //End of if
   else 
     {
-     anOStream  << '}' << endl;
+     anOStream  << "}\n";
      myFlagPrint = 0;
     }
  return anOStream;
index 2e9b21df7c3e060ce277ca021f2eb32ea546f284..66db06d71ee59b05bb5cafadd296a1f18a7435bb 100644 (file)
@@ -67,32 +67,32 @@ Standard_Real Vrml_ShapeHints::Angle() const
 
 Standard_OStream& Vrml_ShapeHints::Print(Standard_OStream& anOStream) const 
 {
-  anOStream  << "ShapeHints {" << endl;
+  anOStream  << "ShapeHints {\n";
 
   switch ( myVertexOrdering )
     {
-     case Vrml_UNKNOWN_ORDERING: break; // anOStream  << "    vertexOrdering" << "\tUNKNOWN_ORDERING";
-     case Vrml_CLOCKWISE:        anOStream  << "    vertexOrdering" << "\tCLOCKWISE" << endl; break;
-     case Vrml_COUNTERCLOCKWISE: anOStream  << "    vertexOrdering" << "\tCOUNTERCLOCKWISE" << endl; break; 
+     case Vrml_UNKNOWN_ORDERING: break; // anOStream  << "    vertexOrdering\tUNKNOWN_ORDERING";
+     case Vrml_CLOCKWISE:        anOStream  << "    vertexOrdering\tCLOCKWISE\n"; break;
+     case Vrml_COUNTERCLOCKWISE: anOStream  << "    vertexOrdering\tCOUNTERCLOCKWISE\n"; break; 
     }
 
   switch ( myShapeType )
     {
-     case Vrml_UNKNOWN_SHAPE_TYPE: break; //anOStream  << "    shapeType" << "\t\tUNKNOWN_SHAPE_TYPE";
-     case Vrml_SOLID:              anOStream  << "    shapeType" << "\t\tSOLID" << endl; break;
+     case Vrml_UNKNOWN_SHAPE_TYPE: break; //anOStream  << "    shapeType\t\tUNKNOWN_SHAPE_TYPE";
+     case Vrml_SOLID:              anOStream  << "    shapeType\t\tSOLID\n"; break;
     }
 
   switch ( myFaceType )
     {
-     case Vrml_UNKNOWN_FACE_TYPE: anOStream  << "    faceType" << "\t\tUNKNOWN_FACE_TYPE" << endl; break;
-     case Vrml_CONVEX:            break; //anOStream  << "    faceType" << "\t\tCONVEX";
+     case Vrml_UNKNOWN_FACE_TYPE: anOStream  << "    faceType\t\tUNKNOWN_FACE_TYPE\n"; break;
+     case Vrml_CONVEX:            break; //anOStream  << "    faceType\t\tCONVEX";
     }
 
   if ( Abs(myAngle - 0.5) > 0.0001 )
     { 
-      anOStream  << "    creaseAngle\t" << '\t' << myAngle << endl;
+      anOStream  << "    creaseAngle\t\t" << myAngle << "\n";
     } 
-  anOStream  << '}' << endl;
+  anOStream  << "}\n";
   return anOStream;
 }
 
index 34d9a1876a7bcf1c1d9f2abd0f14ea0e604cf1e6..d73f4bc7b4a4a941fa280539d2a0f464a63f7253 100644 (file)
@@ -31,14 +31,14 @@ Vrml_Sphere::Vrml_Sphere(const Standard_Real aRadius)
 
  Standard_OStream& Vrml_Sphere::Print(Standard_OStream& anOStream) const
 {
- anOStream  << "Sphere {" << endl;
+ anOStream  << "Sphere {\n";
 
  if ( Abs(myRadius - 1) > 0.0001 )
    {
-    anOStream  << "    radius" << '\t';
-    anOStream << myRadius << endl;
+    anOStream  << "    radius\t";
+    anOStream << myRadius << "\n";
    }
 
- anOStream  << '}' << endl;
+ anOStream  << "}\n";
  return anOStream;
 }
index 3cacb32ad99bd265588f715ff2febd0ef3e9f33f..39f5b3aa521df3912390d24197b0b59d64ed12fb 100644 (file)
@@ -129,56 +129,56 @@ Standard_Real Vrml_SpotLight::CutOffAngle() const
 
 Standard_OStream& Vrml_SpotLight::Print(Standard_OStream& anOStream) const 
 {
- anOStream  << "SpotLight {" << endl;
+ anOStream  << "SpotLight {\n";
 
  if ( myOnOff != Standard_True )
    {
-    anOStream  << "    on" << "\t\t" << "FALSE" << endl;
-//    anOStream << myOnOff << endl;
+    anOStream  << "    on\t\tFALSE\n";
+//    anOStream << myOnOff << "\n";
    }
 
  if ( Abs(myIntensity - 1) > 0.0001 )
    {
-    anOStream  << "    intensity" << '\t';
-    anOStream << myIntensity << endl;
+    anOStream  << "    intensity\t";
+    anOStream << myIntensity << "\n";
    }
 
  if ( Abs(myColor.Red() - 1) > 0.0001 || 
      Abs(myColor.Green() - 1) > 0.0001 || 
      Abs(myColor.Blue() - 1) > 0.0001 )
    {
-    anOStream  << "    color" << '\t';
-    anOStream << myColor.Red() << ' ' << myColor.Green() << ' ' << myColor.Blue() << endl;
+    anOStream  << "    color\t";
+    anOStream << myColor.Red() << " " << myColor.Green() << " " << myColor.Blue() << "\n";
    }
 
  if ( Abs(myLocation.X() - 0) > 0.0001 || 
      Abs(myLocation.Y() - 0) > 0.0001 || 
      Abs(myLocation.Z() - 1) > 0.0001 ) 
    {
-    anOStream  << "    location" << '\t';
-    anOStream << myLocation.X() << ' ' << myLocation.Y() << ' ' << myLocation.Z() << endl;
+    anOStream  << "    location\t";
+    anOStream << myLocation.X() << " " << myLocation.Y() << " " << myLocation.Z() << "\n";
    }
 
  if ( Abs(myDirection.X() - 0) > 0.0001 || 
      Abs(myDirection.Y() - 0) > 0.0001 || 
      Abs(myDirection.Z() + 1) > 0.0001 ) 
    {
-    anOStream  << "    direction" << '\t';
-    anOStream << myDirection.X() << ' ' << myDirection.Y() << ' ' << myDirection.Z() << endl;
+    anOStream  << "    direction\t";
+    anOStream << myDirection.X() << " " << myDirection.Y() << " " << myDirection.Z() << "\n";
    }
 
  if ( Abs(myDropOffRate - 0) > 0.0001 )
    {
-    anOStream  << "    dropOffRate" << '\t';
-    anOStream << myDropOffRate << endl;
+    anOStream  << "    dropOffRate\t";
+    anOStream << myDropOffRate << "\n";
    }
 
  if ( Abs(myCutOffAngle - 0.785398) > 0.0000001 )
    {
-    anOStream  << "    cutOffAngle" << '\t';
-    anOStream << myCutOffAngle << endl;
+    anOStream  << "    cutOffAngle\t";
+    anOStream << myCutOffAngle << "\n";
    }
 
- anOStream  << '}' << endl;
+ anOStream  << "}\n";
  return anOStream;
 }
index 7609734cf80d8250234c86620ef20c7558f73856..11efaea6eb68ff23fc86fdf9fb850e19619e1ae2 100644 (file)
@@ -31,12 +31,12 @@ Vrml_Switch::Vrml_Switch(const Standard_Integer aWhichChild)
 
  Standard_OStream& Vrml_Switch::Print(Standard_OStream& anOStream) const
 {
-  anOStream  << "Switch {" << endl;
+  anOStream  << "Switch {\n";
   if ( myWhichChild != -1 )
     {
-      anOStream  << "    whichChild" << '\t';
-      anOStream << myWhichChild << endl;
+      anOStream  << "    whichChild\t";
+      anOStream << myWhichChild << "\n";
     }
- anOStream  << '}' << endl;
+ anOStream  << "}\n";
  return anOStream;
 }
index e7e37431f1ea45d11977300f5fa5d40c31176a59..6f12d260e05784e0b75edf6f6315fda022dd8fc5 100644 (file)
@@ -85,18 +85,18 @@ Vrml_Texture2::Vrml_Texture2(const TCollection_AsciiString& aFilename,
  Standard_OStream& Vrml_Texture2::Print(Standard_OStream& anOStream) const
 {
  Standard_Integer i;
- anOStream  << "Texture2 {" << endl;
+ anOStream  << "Texture2 {\n";
 
  if ( !(myFilename.IsEqual("") ) )
    {
-    anOStream  << "    filename" << '\t';
-    anOStream << '"' << myFilename << '"' << endl;
+    anOStream  << "    filename\t";
+    anOStream << '"' << myFilename << '"' << "\n";
    }
 
  if ( myImage->Width() != 0 || myImage->Height() != 0 || myImage->Number() != Vrml_NULL ) 
    {
-    anOStream  << "    image" << '\t';
-    anOStream <<  myImage->Width() << ' ' << myImage->Height() << ' ';
+    anOStream  << "    image\t";
+    anOStream <<  myImage->Width() << " " << myImage->Height() << " ";
 
     switch ( myImage->Number() )
       {
@@ -111,25 +111,25 @@ Vrml_Texture2::Vrml_Texture2(const TCollection_AsciiString& aFilename,
       { 
        for ( i = myImage->Array()->Lower(); i <= myImage->Array()->Upper(); i++ )
          {
-//         anOStream << ' ' << hex(myImage->Array()->Value(i),0);
-           anOStream << ' ' << myImage->Array()->Value(i);
+//         anOStream << " " << hex(myImage->Array()->Value(i),0);
+           anOStream << " " << myImage->Array()->Value(i);
          }
       }
-    anOStream  <<  endl;
+    anOStream  <<  "\n";
   }
 
   switch ( myWrapS )
     {
-     case Vrml_REPEAT: break; // anOStream  << "    wrapS" << "\tREPEAT ";
-     case Vrml_CLAMP: anOStream  << "    wrapS" << "\tCLAMP" << endl; break;
+     case Vrml_REPEAT: break; // anOStream  << "    wrapS\tREPEAT ";
+     case Vrml_CLAMP: anOStream  << "    wrapS\tCLAMP\n"; break;
     }
 
   switch ( myWrapT )
     {
-     case Vrml_REPEAT: break; // anOStream  << "    wrapT" << "\tREPEAT ";
-     case Vrml_CLAMP: anOStream  << "    wrapT" << "\tCLAMP" << endl; break;
+     case Vrml_REPEAT: break; // anOStream  << "    wrapT\tREPEAT ";
+     case Vrml_CLAMP: anOStream  << "    wrapT\tCLAMP\n"; break;
     }
 
- anOStream  << '}' << endl;
+ anOStream  << "}\n";
  return anOStream;
 }
index 94997c921a34d02253283bf6e57461499552f642..becb5ffb68bd1625ecfd0c9755eb98103082f279 100644 (file)
@@ -80,33 +80,33 @@ Vrml_Texture2Transform::Vrml_Texture2Transform(const gp_Vec2d& aTranslation,
 
  Standard_OStream& Vrml_Texture2Transform::Print(Standard_OStream& anOStream) const
 {
- anOStream  << "Texture2Transform {" << endl;
+ anOStream  << "Texture2Transform {\n";
 
  if ( Abs(myTranslation.X() - 0) > 0.0001 || Abs(myTranslation.Y() - 0) > 0.0001 ) 
    {
-    anOStream  << "    translation" << '\t';
-    anOStream << myTranslation.X() << ' ' << myTranslation.Y() << endl;
+    anOStream  << "    translation\t";
+    anOStream << myTranslation.X() << " " << myTranslation.Y() << "\n";
    }
 
  if ( Abs(myRotation - 0) > 0.0001 )
    {
-    anOStream  << "    rotation" << '\t';
-    anOStream << myRotation << endl;
+    anOStream  << "    rotation\t";
+    anOStream << myRotation << "\n";
    }
 
  if ( Abs(myScaleFactor.X() - 0) > 0.0001 || Abs(myScaleFactor.Y() - 0) > 0.0001 ) 
    {
-    anOStream  << "    scaleFactor" << '\t';
-    anOStream << myScaleFactor.X() << ' ' << myScaleFactor.Y() << endl;
+    anOStream  << "    scaleFactor\t";
+    anOStream << myScaleFactor.X() << " " << myScaleFactor.Y() << "\n";
    }
 
  if ( Abs(myCenter.X() - 0) > 0.0001 || Abs(myCenter.Y() - 0) > 0.0001 ) 
    {
-    anOStream  << "    center" << '\t';
-    anOStream << myCenter.X() << ' ' << myCenter.Y() << endl;
+    anOStream  << "    center\t";
+    anOStream << myCenter.X() << " " << myCenter.Y() << "\n";
    }
 
- anOStream  << '}' << endl;
+ anOStream  << "}\n";
  return anOStream;
 
 }
index 753f937d0ba4c19375a0239407711f64cc5f75b7..d4b533ea8dfa2719c16a00b3df292ef7e7db9237 100644 (file)
@@ -39,21 +39,21 @@ Vrml_TextureCoordinate2::Vrml_TextureCoordinate2(const Handle(TColgp_HArray1OfVe
  Standard_OStream& Vrml_TextureCoordinate2::Print(Standard_OStream& anOStream) const
 {
  Standard_Integer i;
- anOStream  << "TextureCoordinate2 {" << endl;
+ anOStream  << "TextureCoordinate2 {\n";
 
  if ( myPoint->Length() != 1 || Abs(myPoint->Value(myPoint->Lower()).X() - 0) > 0.0001 || 
                                 Abs(myPoint->Value(myPoint->Lower()).Y() - 0) > 0.0001 )
   { 
-   anOStream  << "    point [" << endl << '\t';
+   anOStream  << "    point [\n\t";
     for ( i = myPoint->Lower(); i <= myPoint->Upper(); i++ )
        {
-        anOStream << myPoint->Value(i).X() << ' ' << myPoint->Value(i).Y();
+        anOStream << myPoint->Value(i).X() << " " << myPoint->Value(i).Y();
 
          if ( i < myPoint->Length() )
-           anOStream  << ',' << endl << '\t';
+           anOStream  << ",\n\t";
        }
-    anOStream  << " ]" << endl;
+    anOStream  << " ]\n";
   }
-  anOStream  << '}' << endl;
+  anOStream  << "}\n";
  return anOStream;
 }
index ac671b82c98e08f4e237e295ddf9ceed97b86c4d..29ee339e4f695f0187b4942f007e3f8a881af503 100644 (file)
@@ -106,14 +106,14 @@ Vrml_Transform::Vrml_Transform(const gp_Vec& aTranslation,
 
  Standard_OStream& Vrml_Transform::Print(Standard_OStream& anOStream) const
 {
- anOStream  << "Transform {" << endl;
+ anOStream  << "Transform {\n";
 
  if ( Abs(myTranslation.X() - 0) > 0.0001 || 
      Abs(myTranslation.Y() - 0) > 0.0001 || 
      Abs(myTranslation.Z() - 0) > 0.0001 ) 
    {
-    anOStream  << "    translation" << "\t\t";
-    anOStream << myTranslation.X() << ' ' << myTranslation.Y() << ' ' << myTranslation.Z() << endl;
+    anOStream  << "    translation\t\t";
+    anOStream << myTranslation.X() << " " << myTranslation.Y() << " " << myTranslation.Z() << "\n";
    }
 
  if ( Abs(myRotation.RotationX() - 0) > 0.0001 || 
@@ -121,17 +121,17 @@ Vrml_Transform::Vrml_Transform(const gp_Vec& aTranslation,
       Abs(myRotation.RotationZ() - 1) > 0.0001 ||
       Abs(myRotation.Angle() - 0) > 0.0001 ) 
    {
-    anOStream  << "    rotation" << "\t\t";
-    anOStream << myRotation.RotationX() << ' ' << myRotation.RotationY() << ' ';
-    anOStream << myRotation.RotationZ() << ' ' << myRotation.Angle() << endl;
+    anOStream  << "    rotation\t\t";
+    anOStream << myRotation.RotationX() << " " << myRotation.RotationY() << " ";
+    anOStream << myRotation.RotationZ() << " " << myRotation.Angle() << "\n";
    }
 
  if ( Abs(myScaleFactor.X() - 1) > 0.0001 || 
      Abs(myScaleFactor.Y() - 1) > 0.0001 || 
      Abs(myScaleFactor.Z() - 1) > 0.0001 ) 
    {
-    anOStream  << "    scaleFactor" << "\t\t";
-    anOStream << myTranslation.X() << ' ' << myTranslation.Y() << ' ' << myTranslation.Z() << endl;
+    anOStream  << "    scaleFactor\t\t";
+    anOStream << myTranslation.X() << " " << myTranslation.Y() << " " << myTranslation.Z() << "\n";
    }
 
  if ( Abs(myScaleOrientation.RotationX() - 0) > 0.0001 || 
@@ -139,19 +139,19 @@ Vrml_Transform::Vrml_Transform(const gp_Vec& aTranslation,
      Abs(myScaleOrientation.RotationZ() - 1) > 0.0001 || 
      Abs(myScaleOrientation.Angle() - 0) > 0.0001 ) 
    {
-    anOStream  << "    scaleOrientation" << '\t';
-    anOStream << myScaleOrientation.RotationX() << ' ' << myScaleOrientation.RotationY() << ' ';
-    anOStream << myScaleOrientation.RotationZ() << ' ' << myScaleOrientation.Angle() << endl;
+    anOStream  << "    scaleOrientation\t";
+    anOStream << myScaleOrientation.RotationX() << " " << myScaleOrientation.RotationY() << " ";
+    anOStream << myScaleOrientation.RotationZ() << " " << myScaleOrientation.Angle() << "\n";
    }
 
  if ( Abs(myCenter.X() - 0) > 0.0001 || 
      Abs(myCenter.Y() - 0) > 0.0001 || 
      Abs(myCenter.Z() - 0) > 0.0001 ) 
    {
-    anOStream  << "    center" << "\t\t";
-    anOStream << myCenter.X() << ' ' << myCenter.Y() << ' ' << myCenter.Z() << endl;
+    anOStream  << "    center\t\t";
+    anOStream << myCenter.X() << " " << myCenter.Y() << " " << myCenter.Z() << "\n";
    }
 
- anOStream  << '}' << endl;
+ anOStream  << "}\n";
  return anOStream;
 }
index 6b465d799c321844486dd3c47a195ffda85fd7a8..794b8bf0ae28ba9d90072245f0957495102ab5f4 100644 (file)
@@ -23,12 +23,12 @@ Standard_OStream& Vrml_TransformSeparator::Print(Standard_OStream& anOStream)
 {
   if ( myFlagPrint == 0 )
     {
-      anOStream  << "TransformSeparator {" << endl;
+      anOStream  << "TransformSeparator {\n";
       myFlagPrint = 1;
     } 
   else 
     {
-      anOStream  << '}' << endl;
+      anOStream  << "}\n";
       myFlagPrint = 0;
     }
   return anOStream;
index 4f077ccc0f582818f259c07b8698884d7194af2c..c53c69dee4cff8fa834279c52328adf2dbb93294 100644 (file)
@@ -38,16 +38,16 @@ Vrml_Translation::Vrml_Translation(const gp_Vec& aTranslation)
 
  Standard_OStream& Vrml_Translation::Print(Standard_OStream& anOStream) const
 {
- anOStream  << "Translation {" << endl;
+ anOStream  << "Translation {\n";
 
  if ( Abs(myTranslation.X() - 0) > 0.0001 || 
      Abs(myTranslation.Y() - 0) > 0.0001 || 
      Abs(myTranslation.Z() - 0) > 0.0001 ) 
    {
-    anOStream  << "    translation" << '\t';
-    anOStream << myTranslation.X() << ' ' << myTranslation.Y() << ' ' << myTranslation.Z() << endl;
+    anOStream  << "    translation\t";
+    anOStream << myTranslation.X() << " " << myTranslation.Y() << " " << myTranslation.Z() << "\n";
    }
 
- anOStream  << '}' << endl;
+ anOStream  << "}\n";
  return anOStream;
 }
index 1fc95da08fa242e964553b479978ef9457ffa008..a92d176cf8cd74a0ee3d3c240d969c2769d5ddb3 100644 (file)
@@ -56,27 +56,27 @@ Vrml_WWWAnchor::Vrml_WWWAnchor(const TCollection_AsciiString& aName,
 
  Standard_OStream& Vrml_WWWAnchor::Print(Standard_OStream& anOStream) const
 {
- anOStream  << "WWWAnchor {" << endl;
+ anOStream  << "WWWAnchor {\n";
 
  if ( !(myName.IsEqual( "" ) ) )
    {
-    anOStream  << "    name" << '\t';
-    anOStream << '"' << myName << '"' << endl;
+    anOStream  << "    name\t";
+    anOStream << '"' << myName << '"' << "\n";
    }
 
  if ( !(myDescription.IsEqual("") ) )
    {
-    anOStream  << "    description" << '\t';
-    anOStream << '"' << myDescription << '"' << endl;
+    anOStream  << "    description\t";
+    anOStream << '"' << myDescription << '"' << "\n";
    }
 
  switch ( myMap )
     {
-     case Vrml_MAP_NONE: break; // anOStream  << "    map" << "\tNONE ";
-     case Vrml_POINT: anOStream  << "    map" << "\t\tPOINT" << endl; break;
+     case Vrml_MAP_NONE: break; // anOStream  << "    map\tNONE ";
+     case Vrml_POINT: anOStream  << "    map\t\tPOINT\n"; break;
     }
 
- anOStream  << '}' << endl;
+ anOStream  << "}\n";
  return anOStream;
 
 }
index 7724db797486a18c5acdafca2783fc3041396138..1a68bba216cd0688880783fce5f6023e3692e191 100644 (file)
@@ -65,30 +65,30 @@ gp_Vec Vrml_WWWInline::BboxCenter() const
 
 Standard_OStream& Vrml_WWWInline::Print(Standard_OStream& anOStream) const
 {
- anOStream  << "WWWInline {" << endl;
+ anOStream  << "WWWInline {\n";
 
  if ( !(myName.IsEqual ("") ) )
    {
-    anOStream  << "    name" << '\t';
-    anOStream << '"' << myName << '"' << endl;
+    anOStream  << "    name\t";
+    anOStream << '"' << myName << '"' << "\n";
    }
 
  if ( Abs(myBboxSize.X() - 0) > 0.0001 || 
      Abs(myBboxSize.Y() - 0) > 0.0001 || 
      Abs(myBboxSize.Z() - 0) > 0.0001 ) 
    {
-    anOStream  << "    bboxSize" << '\t';
-    anOStream << myBboxSize.X() << ' ' << myBboxSize.Y() << ' ' << myBboxSize.Z() << endl;
+    anOStream  << "    bboxSize\t";
+    anOStream << myBboxSize.X() << " " << myBboxSize.Y() << " " << myBboxSize.Z() << "\n";
    }
 
  if ( Abs(myBboxCenter.X() - 0) > 0.0001 || 
      Abs(myBboxCenter.Y() - 0) > 0.0001 || 
      Abs(myBboxCenter.Z() - 0) > 0.0001 ) 
    {
-    anOStream  << "    bboxCenter" << '\t';
-    anOStream << myBboxCenter.X() << ' ' << myBboxCenter.Y() << ' ' << myBboxCenter.Z() << endl;
+    anOStream  << "    bboxCenter\t";
+    anOStream << myBboxCenter.X() << " " << myBboxCenter.Y() << " " << myBboxCenter.Z() << "\n";
    }
 
- anOStream  << '}' << endl;
+ anOStream  << "}\n";
  return anOStream;
 }
index a1e3a5121002c1246e092b90591c2d1922a0d2c1..ef92b569c7002babcbf828a6c92021576ab53353 100644 (file)
@@ -145,7 +145,7 @@ Standard_OStream& operator << (Standard_OStream&     theOutput,
 
   aScene.myOutput = &theOutput;
   aScene.myNamedNodesOut.Clear();
-  theOutput << "#VRML V2.0 utf8" << endl << endl;
+  theOutput << "#VRML V2.0 utf8\n\n";
 
   // Real write
 
@@ -966,17 +966,17 @@ VrmlData_ErrorStatus VrmlData_Scene::WriteLine
     if (aCurrentIndent < 0)
       aCurrentIndent = 0;
     if (theLin0 == 0L && theLin1 == 0L)
-      (* myOutput) << endl;
+      (* myOutput) << "\n";
     else {
       const Standard_Integer nSpaces = Min (aCurrentIndent, sizeof(spaces)-1);
       (* myOutput) << &spaces[sizeof(spaces)-1 - nSpaces];
       if (theLin0) {
         (* myOutput) << theLin0;
         if (theLin1)
-          (* myOutput) << ' ' << theLin1;
+          (* myOutput) << " " << theLin1;
       } else
         (* myOutput) << theLin1;
-      (* myOutput) << endl;
+      (* myOutput) << "\n";
     }
     const int stat = myOutput->rdstate();
     if (stat & ios::badbit)
@@ -1075,7 +1075,7 @@ VrmlData_ErrorStatus VrmlData_Scene::WriteNode
 void VrmlData_Scene::Dump (Standard_OStream& theStream) const
 {
   theStream << " ===== Diagnostic Dump of a Scene (" << myAllNodes.Extent()
-            << " nodes)" << endl;
+            << " nodes)\n";
 
   /*
   Iterator anIterA(myAllNodes);
@@ -1194,9 +1194,9 @@ void dumpNodeHeader (Standard_OStream&                  theStream,
                      const char *                       theType,
                      const char *                       theName)
 {
-  theStream << theIndent << theType <<" node";
+  theStream << theIndent << theType << " node";
   if (theName[0] == '\0')
-    theStream << endl;
+    theStream << "\n";
   else
-    theStream << ": \"" << theName << '\"' << endl;
+    theStream << ": \"" << theName << "\"\n";
 }
index 46d8ed7bbbf5c56e38de057b8a58f5e467286d15..5405eac530244321c5ebcdbc0978224daf640f98 100644 (file)
 //=======================================================================
 static Standard_Integer newDoc (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
-  if (argc < 2) {di<<"Give document name"<<"\n";return 1;}
+  if (argc < 2) {di<<"Give document name\n";return 1;}
 
   Handle(TDocStd_Document) D;
   Handle(DDocStd_DrawDocument) DD;
@@ -119,10 +119,10 @@ static Standard_Integer newDoc (Draw_Interpretor& di, Standard_Integer argc, con
     DD = new DDocStd_DrawDocument(D);
     TDataStd_Name::Set(D->GetData()->Root(),argv[1]);
     Draw::Set(argv[1],DD);
-    di << "document " << argv[1] << " created" << "\n";
+    di << "document " << argv[1] << " created\n";
     //DDocStd::ReturnLabel(di,D->Main());
   }
-  else di << argv[1] << " is already a document" << "\n";
+  else di << argv[1] << " is already a document\n";
 
   return 0;
 }
@@ -152,7 +152,7 @@ static Standard_Integer saveDoc (Draw_Interpretor& di, Standard_Integer argc, co
     return 0;
   }
   if (!D->IsSaved()) {
-    di << "this document has never been saved" << "\n";
+    di << "this document has never been saved\n";
     return 1;
   }
   A->Save(D);
@@ -174,7 +174,7 @@ static Standard_Integer openDoc (Draw_Interpretor& di, Standard_Integer argc, co
 
   if ( argc != 3 )
   {
-    di << "invalid number of arguments. Usage:\t XOpen filename docname" << "\n";
+    di << "invalid number of arguments. Usage:\t XOpen filename docname\n";
     return 1;
   }
 
@@ -183,13 +183,13 @@ static Standard_Integer openDoc (Draw_Interpretor& di, Standard_Integer argc, co
 
   if ( DDocStd::GetDocument(DocName, D, Standard_False) )
   {
-    di << "document with name " << DocName << " already exists" << "\n";
+    di << "document with name " << DocName << " already exists\n";
     return 1;
   }
 
   if ( A->Open(Filename, D) != PCDM_RS_OK )
   {
-    di << "cannot open XDE document" << "\n";
+    di << "cannot open XDE document\n";
     return 1;
   }
 
@@ -197,7 +197,7 @@ static Standard_Integer openDoc (Draw_Interpretor& di, Standard_Integer argc, co
   TDataStd_Name::Set(D->GetData()->Root(), DocName);
   Draw::Set(DocName, DD);
 
-  di << "document " << DocName << " opened" << "\n";
+  di << "document " << DocName << " opened\n";
 
   return 0;
 }
@@ -209,12 +209,12 @@ static Standard_Integer openDoc (Draw_Interpretor& di, Standard_Integer argc, co
 static Standard_Integer dump (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc<2) {
-    di<<"Use: "<<argv[0]<<" Doc [int deep (0/1)]"<<"\n";
+    di<<"Use: "<<argv[0]<<" Doc [int deep (0/1)]\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   Handle(XCAFDoc_ShapeTool) myAssembly = XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
   Standard_Boolean deep = Standard_False;
@@ -304,7 +304,7 @@ static void StatAssembly(const TDF_Label L,
         if(i==1)
           di<<"\""<<Entry2.ToCString()<<"\"";
         else
-          di<<" "<<"\""<<Entry2.ToCString()<<"\"";
+          di<<" \""<<Entry2.ToCString()<<"\"";
       }
       di<<") ";
     }
@@ -331,12 +331,12 @@ static void StatAssembly(const TDF_Label L,
 static Standard_Integer statdoc (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc<2) {
-    di<<"Use: "<<argv[0]<<" Doc "<<"\n";
+    di<<"Use: "<<argv[0]<<" Doc \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   Standard_Boolean PrintStructMode = (argc==3);
   Handle(XCAFDoc_ShapeTool) aTool = XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
@@ -344,7 +344,7 @@ static Standard_Integer statdoc (Draw_Interpretor& di, Standard_Integer argc, co
   TDF_LabelSequence SeqLabels;
   aTool->GetShapes(SeqLabels);
   if(SeqLabels.Length()<=0) return 0;
-  if(PrintStructMode) di<<"\n"<<"Structure of shapes in the document:"<<"\n";
+  if(PrintStructMode) di<<"\nStructure of shapes in the document:\n";
   Standard_Integer level=0;
   Standard_Integer NbCentroidProp=0, NbVolumeProp=0, NbAreaProp=0;
   Standard_Integer NbShapesWithName=0, NbShapesWithColor=0, NbShapesWithLayer=0;
@@ -357,7 +357,7 @@ static Standard_Integer statdoc (Draw_Interpretor& di, Standard_Integer argc, co
                  NbShapesWithLayer, Doc, PrintStructMode, di);
   }
   Standard_Integer NbLabelsShape = 0;
-  di<<"\n"<<"Statistis of shapes in the document:"<<"\n";
+  di<<"\nStatistis of shapes in the document:\n";
   for(i=0; i<=20; i++) {
     if(HAI->Value(i)==0) break;
     //di<<"level N "<<i<<" :  number of labels with shape = "<<HAI->Value(i)<<"\n";
@@ -369,7 +369,7 @@ static Standard_Integer statdoc (Draw_Interpretor& di, Standard_Integer argc, co
   di<<"Number of labels with color link = "<<NbShapesWithColor<<"\n";
   di<<"Number of labels with layer link = "<<NbShapesWithLayer<<"\n";
 
-  di<<"\n"<<"Statistis of Props in the document:"<<"\n";
+  di<<"\nStatistis of Props in the document:\n";
   di<<"Number of Centroid Props = "<<NbCentroidProp<<"\n";
   di<<"Number of Volume Props = "<<NbVolumeProp<<"\n";
   di<<"Number of Area Props = "<<NbAreaProp<<"\n";
@@ -377,7 +377,7 @@ static Standard_Integer statdoc (Draw_Interpretor& di, Standard_Integer argc, co
   Handle(XCAFDoc_ColorTool) CTool = XCAFDoc_DocumentTool::ColorTool(Doc->Main());
   TDF_LabelSequence CLabels;
   CTool->GetColors(CLabels);
-  di<<"\n"<<"Number of colors = "<<CLabels.Length()<<"\n";
+  di<<"\nNumber of colors = "<<CLabels.Length()<<"\n";
   if(CLabels.Length()>0) {
     for(i=1; i<=CLabels.Length(); i++) {
       TDF_Label aLabel = CLabels.Value(i);
@@ -391,7 +391,7 @@ static Standard_Integer statdoc (Draw_Interpretor& di, Standard_Integer argc, co
   Handle(XCAFDoc_LayerTool) LTool = XCAFDoc_DocumentTool::LayerTool(Doc->Main());
   TDF_LabelSequence LLabels;
   LTool->GetLayerLabels(LLabels);
-  di<<"\n"<<"Number of layers = "<<LLabels.Length()<<"\n";
+  di<<"\nNumber of layers = "<<LLabels.Length()<<"\n";
   if(LLabels.Length()>0) {
     for(i=1; i<=LLabels.Length(); i++) {
       TDF_Label aLabel = LLabels.Value(i);
@@ -415,13 +415,13 @@ static Standard_Integer statdoc (Draw_Interpretor& di, Standard_Integer argc, co
 static Standard_Integer setPrs (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc <2) {
-    di<<"Use: "<<argv[0]<<" DocName [label1 label2 ...] "<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName [label1 label2 ...] \n";
     return 1;
   }
 
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   // collect sequence of labels to set presentation
   Handle(XCAFDoc_ShapeTool) shapes = XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
@@ -466,7 +466,7 @@ static Standard_Integer setPrs (Draw_Interpretor& di, Standard_Integer argc, con
 static Standard_Integer show (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc <2) {
-    di<<"Use: "<<argv[0]<<" DocName [label1 label2 ...] "<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName [label1 label2 ...] \n";
     return 1;
   }
 
@@ -538,13 +538,13 @@ static Standard_Integer show (Draw_Interpretor& di, Standard_Integer argc, const
 static Standard_Integer xwd (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc <3) {
-    di<<"Use: "<<argv[0]<<" DocName filename.{xwd|gif|bmp}"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName filename.{xwd|gif|bmp}\n";
     return 1;
   }
 
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   Handle(AIS_InteractiveContext) IC;
   if ( ! TPrsStd_AISViewer::Find ( Doc->GetData()->Root(), IC ) ) {
@@ -572,7 +572,7 @@ static Standard_Integer xwd (Draw_Interpretor& di, Standard_Integer argc, const
 //=======================================================================
 static Standard_Integer XAttributeValue (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
-  if ( argc <4 ) { di << "ERROR: Too few args" << "\n"; return 0; }
+  if ( argc <4 ) { di << "ERROR: Too few args\n"; return 0; }
   Handle(DDF_Browser) browser =
     Handle(DDF_Browser)::DownCast (Draw::Get(argv[1], Standard_True));
   if ( browser.IsNull() ) { di << "ERROR: Not a browser: " << argv[1] << "\n"; return 0; }
@@ -585,7 +585,7 @@ static Standard_Integer XAttributeValue (Draw_Interpretor& di, Standard_Integer
   TDF_AttributeIterator itr(lab,Standard_False);
   for (Standard_Integer i=1; itr.More() && i < num; i++) itr.Next();
 
-  if ( ! itr.More() ) { di << "ERROR: Attribute #" << num << " not found" << "\n"; return 0; }
+  if ( ! itr.More() ) { di << "ERROR: Attribute #" << num << " not found\n"; return 0; }
 
   const Handle(TDF_Attribute)& att = itr.Value();
   if ( att->IsKind(STANDARD_TYPE(TDataStd_TreeNode)) ) {
@@ -808,7 +808,7 @@ static Standard_Integer XAttributeValue (Draw_Interpretor& di, Standard_Integer
 static Standard_Integer setviewName (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc <2) {
-    di<<"Use: "<<argv[0]<<" (1/0)"<<"\n";
+    di<<"Use: "<<argv[0]<<" (1/0)\n";
     return 1;
   }
   Standard_Boolean mode = Standard_False;
@@ -825,8 +825,8 @@ static Standard_Integer setviewName (Draw_Interpretor& di, Standard_Integer argc
 
 static Standard_Integer getviewName (Draw_Interpretor&  di, Standard_Integer /*argc*/, const char** /*argv*/)
 {
-  if ( XCAFPrs::GetViewNameMode() ) di << "Display names ON"<< "\n";
-  else di << "Display names OFF"<< "\n";
+  if ( XCAFPrs::GetViewNameMode() ) di << "Display names ON\n";
+  else di << "Display names OFF\n";
   return 0;
 }
 
@@ -838,13 +838,13 @@ static Standard_Integer getviewName (Draw_Interpretor&  di, Standard_Integer /*a
 static Standard_Integer XSetTransparency (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<argv[0]<<" Doc Transparency [label1 label2 ...] "<<"\n";
+    di<<"Use: "<<argv[0]<<" Doc Transparency [label1 label2 ...] \n";
     return 1;
   }
 
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   const Standard_Real aTransparency = Draw::Atof(argv[2]);
 
@@ -916,7 +916,7 @@ static Standard_Integer XShowFaceBoundary (Draw_Interpretor& di,
   DDocStd::GetDocument (argv[1], aDoc);
   if (aDoc.IsNull())
   {
-    di << argv[1] << " is not a document" << "\n"; 
+    di << argv[1] << " is not a document\n"; 
     return 1;
   }
 
@@ -1165,7 +1165,7 @@ void XDEDRAW::Factory(Draw_Interpretor& theDI)
   XDEDRAW::Init(theDI);
 
 #ifdef OCCT_DEBUG
-      theDI << "Draw Plugin : All TKXDEDRAW commands are loaded" << "\n";
+      theDI << "Draw Plugin : All TKXDEDRAW commands are loaded\n";
 #endif
 }
 
index dea95ceb20b1433bd958637df0df78011bb396c9..669032413fc1c18e4485b13b1b137d0da3c57460 100644 (file)
 static Standard_Integer setColor (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 6) {
-    di<<"Use: "<<argv[0]<<" Doc {Label|Shape} R G B [curve|surf]"<<"\n";
+    di<<"Use: "<<argv[0]<<" Doc {Label|Shape} R G B [curve|surf]\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   
   TDF_Label aLabel;
   TDF_Tool::Label(Doc->GetData(), argv[2], aLabel);
@@ -63,12 +63,12 @@ static Standard_Integer setColor (Draw_Interpretor& di, Standard_Integer argc, c
 static Standard_Integer getColor (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=3) {
-    di<<"Use: "<<argv[0]<<" Doc Label"<<"\n";
+    di<<"Use: "<<argv[0]<<" Doc Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   TDF_Label aLabel;
   TDF_Tool::Label(Doc->GetData(), argv[2], aLabel);
@@ -84,12 +84,12 @@ static Standard_Integer getColor (Draw_Interpretor& di, Standard_Integer argc, c
 static Standard_Integer getShapeColor (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<argv[0]<<" Doc Label [curve|surf]"<<"\n";
+    di<<"Use: "<<argv[0]<<" Doc Label [curve|surf]\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   TDF_Label aLabel;
   TDF_Tool::Label(Doc->GetData(), argv[2], aLabel);
@@ -114,12 +114,12 @@ static Standard_Integer getShapeColor (Draw_Interpretor& di, Standard_Integer ar
 static Standard_Integer getAllColors (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=2) {
-    di<<"Use: "<<argv[0]<<" Doc "<<"\n";
+    di<<"Use: "<<argv[0]<<" Doc \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   TDF_Label aLabel;
   Handle(XCAFDoc_ColorTool) myColors = XCAFDoc_DocumentTool::ColorTool(Doc->Main());
@@ -141,12 +141,12 @@ static Standard_Integer getAllColors (Draw_Interpretor& di, Standard_Integer arg
 static Standard_Integer addColor (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=5) {
-    di<<"Use: "<<argv[0]<<" DocName R G B"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName R G B\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   TDF_Label aLabel;
   Handle(XCAFDoc_ColorTool) myColors = XCAFDoc_DocumentTool::ColorTool(Doc->Main());
@@ -163,12 +163,12 @@ static Standard_Integer addColor (Draw_Interpretor& di, Standard_Integer argc, c
 static Standard_Integer removeColor (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=3) {
-    di<<"Use: "<<argv[0]<<" DocName Label"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   TDF_Label aLabel;
   TDF_Tool::Label(Doc->GetData(), argv[2], aLabel);
@@ -181,12 +181,12 @@ static Standard_Integer removeColor (Draw_Interpretor& di, Standard_Integer argc
 static Standard_Integer findColor (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=5) {
-    di<<"Use: "<<argv[0]<<" DocName R G B"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName R G B\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   Handle(XCAFDoc_ColorTool) myColors = XCAFDoc_DocumentTool::ColorTool(Doc->Main());
   
@@ -201,12 +201,12 @@ static Standard_Integer findColor (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer unsetColor (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=4) {
-    di<<"Use: "<<argv[0]<<" DocName {Label|Shape} ColorType"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName {Label|Shape} ColorType\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   TDF_Label aLabel;
   TDF_Tool::Label(Doc->GetData(), argv[2], aLabel);
@@ -224,12 +224,12 @@ static Standard_Integer unsetColor (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer setVisibility (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc<3) {
-    di<<"Use: "<<argv[0]<<"DocName {Lable|Shape} [isvisible(1/0)]"<<"\n";
+    di<<"Use: "<<argv[0]<<"DocName {Lable|Shape} [isvisible(1/0)]\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_ColorTool) localTool = XCAFDoc_DocumentTool::ColorTool(Doc->Main());
   Standard_Boolean isvisible = Standard_False;
   if ( (argc==4) && (Draw::Atoi(argv[3])==1) ) isvisible = Standard_True;
@@ -244,7 +244,7 @@ static Standard_Integer setVisibility (Draw_Interpretor& di, Standard_Integer ar
     }
   }
   if ( aLabel.IsNull() ) {
-    di << " cannot find indicated label in document" << "\n";
+    di << " cannot find indicated label in document\n";
     return 1;
   }
   localTool->SetVisibility( aLabel, isvisible );
@@ -254,12 +254,12 @@ static Standard_Integer setVisibility (Draw_Interpretor& di, Standard_Integer ar
 static Standard_Integer getVisibility (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc<3) {
-    di<<"Use: "<<argv[0]<<"DocName {Lable|Shape}"<<"\n";
+    di<<"Use: "<<argv[0]<<"DocName {Lable|Shape}\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_ColorTool) localTool = XCAFDoc_DocumentTool::ColorTool(Doc->Main());
   TDF_Label aLabel;
   TDF_Tool::Label(Doc->GetData(), argv[2], aLabel);
@@ -271,7 +271,7 @@ static Standard_Integer getVisibility (Draw_Interpretor& di, Standard_Integer ar
     }
   }
   if ( aLabel.IsNull() ) {
-    di << " cannot find indicated label in document" << "\n";
+    di << " cannot find indicated label in document\n";
     return 1;
   }
   if (localTool->IsVisible( aLabel) ) di << 1;
@@ -282,12 +282,12 @@ static Standard_Integer getVisibility (Draw_Interpretor& di, Standard_Integer ar
 static Standard_Integer getStyledVisibility (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc<3) {
-    di<<"Use: "<<argv[0]<<"DocName Shape"<<"\n";
+    di<<"Use: "<<argv[0]<<"DocName Shape\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_ColorTool) localTool = XCAFDoc_DocumentTool::ColorTool(Doc->Main());
   TopoDS_Shape aShape;
   aShape = DBRep::Get(argv[2]);
@@ -299,12 +299,12 @@ static Standard_Integer getStyledVisibility (Draw_Interpretor& di, Standard_Inte
 static Standard_Integer getStyledcolor (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc<3) {
-    di<<"Use: "<<argv[0]<<" Doc shape colortype(s/c)"<<"\n";
+    di<<"Use: "<<argv[0]<<" Doc shape colortype(s/c)\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   TopoDS_Shape aShape;
   aShape = DBRep::Get(argv[2]);
 
@@ -329,12 +329,12 @@ static Standard_Integer getStyledcolor (Draw_Interpretor& di, Standard_Integer a
 static Standard_Integer setStyledcolor (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc<6) {
-    di<<"Use: "<<argv[0]<<" Doc shape R G B type(s/c)"<<"\n";
+    di<<"Use: "<<argv[0]<<" Doc shape R G B type(s/c)\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   TopoDS_Shape aShape;
   aShape = DBRep::Get(argv[2]);
 
@@ -349,7 +349,7 @@ static Standard_Integer setStyledcolor (Draw_Interpretor& di, Standard_Integer a
   Handle(XCAFDoc_ColorTool) localTool = XCAFDoc_DocumentTool::ColorTool(Doc->Main());
   if (!localTool->SetInstanceColor( aShape, type, col) ) 
   {
-    di << "cannot set color for the indicated component" << "\n";
+    di << "cannot set color for the indicated component\n";
     return 1;
   }
   return 0;
index ce5535748575bafb263ff559ac299ff00f691c54..d0aa39246c17391aa8e2127c8f9f79a4802ebfdc 100644 (file)
@@ -107,7 +107,7 @@ static Standard_Boolean SetCurrentWS (TCollection_AsciiString filename)
 static Standard_Integer SetCurWS (Draw_Interpretor& di , Standard_Integer argc, const char** argv)
 {
   if (argc <2) {
-    di<<"Use: "<<argv[0]<<" filename "<<"\n";
+    di<<"Use: "<<argv[0]<<" filename \n";
     return 1;
   }
   TCollection_AsciiString filename (argv[1]);
@@ -126,7 +126,7 @@ static Standard_Integer GetDicWSList (Draw_Interpretor& di, Standard_Integer /*a
   Handle(Dico_DictionaryOfTransient) DictWS = thedictws;
   if ( DictWS->IsEmpty() ) return 1;
   Dico_IteratorOfDictionaryOfTransient DicIt ( DictWS );
-  di << " The list of last translated files:" << "\n";
+  di << " The list of last translated files:\n";
   Standard_Integer num = 0;
   for (; DicIt.More() ; DicIt.Next(), num++ ) {
     TCollection_AsciiString strng ( DicIt.Name() );
@@ -156,7 +156,7 @@ static Standard_Integer GetCurWS (Draw_Interpretor& di, Standard_Integer /*argc*
 static Standard_Integer FromShape (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if ( argc <2 ) {
-    di << argv[0] << " shape: search for shape origin among all last tranalated files" << "\n";
+    di << argv[0] << " shape: search for shape origin among all last tranalated files\n";
     return 0;
   }
   
@@ -168,7 +168,7 @@ static Standard_Integer FromShape (Draw_Interpretor& di, Standard_Integer argc,
   Handle(XSControl_WorkSession) WS = XSDRAW::Session();
 
   Dico_IteratorOfDictionaryOfTransient DicIt ( DictWS );
-//  di << "Searching for shape among all the loaded files:" << "\n";
+//  di << "Searching for shape among all the loaded files:\n";
   Standard_Integer num = 0;
   for (; DicIt.More() ; DicIt.Next(), num++ ) {
     Handle(XSControl_WorkSession) CurrentWS = 
@@ -189,7 +189,7 @@ static Standard_Integer FromShape (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer ReadIges (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if ( argc <3 ) {
-    di << "Use: " << argv[0] << " Doc filename [mode]: read IGES file to a document" << "\n";
+    di << "Use: " << argv[0] << " Doc filename [mode]: read IGES file to a document\n";
     return 0;
   }
   
@@ -218,15 +218,15 @@ static Standard_Integer ReadIges (Draw_Interpretor& di, Standard_Integer argc, c
   if (modfic) readstat = reader.ReadFile (fnom.ToCString());
   else  if (XSDRAW::Session()->NbStartingEntities() > 0) readstat = IFSelect_RetDone;
   if (readstat != IFSelect_RetDone) {
-    if (modfic) di<<"Could not read file "<<fnom.ToCString()<<" , abandon"<<"\n";
-    else di<<"No model loaded"<<"\n";
+    if (modfic) di<<"Could not read file "<<fnom.ToCString()<<" , abandon\n";
+    else di<<"No model loaded\n";
     return 1;
   }
 
   Handle(TDocStd_Document) doc;
   if (!DDocStd::GetDocument(argv[1],doc,Standard_False)) {  
     Handle(TDocStd_Application) A;
-    if (!DDocStd::Find(A)) {di<<"No application found"<<"\n";return 1;}
+    if (!DDocStd::Find(A)) {di<<"No application found\n";return 1;}
     A->NewDocument("BinXCAF",doc);  
     TDataStd_Name::Set(doc->GetData()->Root(),argv[1]);  
     Handle(DDocStd_DrawDocument) DD = new DDocStd_DrawDocument(doc);  
@@ -234,7 +234,7 @@ static Standard_Integer ReadIges (Draw_Interpretor& di, Standard_Integer argc, c
 //     di << "Document saved with name " << argv[1];
   }
   if ( ! reader.Transfer ( doc ) ) {
-    di << "Cannot read any relevant data from the IGES file" << "\n";
+    di << "Cannot read any relevant data from the IGES file\n";
     return 1;
   }
   
@@ -253,14 +253,14 @@ static Standard_Integer ReadIges (Draw_Interpretor& di, Standard_Integer argc, c
 static Standard_Integer WriteIges (Draw_Interpretor& di, Standard_Integer argc, const char** argv) 
 {
   if ( argc <3 ) {
-    di << "Use: " << argv[0] << " Doc filename [mode]: write document to IGES file" << "\n";
+    di << "Use: " << argv[0] << " Doc filename [mode]: write document to IGES file\n";
     return 0;
   }
   
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
   if ( Doc.IsNull() ) {
-    di << argv[1] << " is not a document" << "\n";
+    di << argv[1] << " is not a document\n";
     return 1;
   }
   
@@ -284,8 +284,8 @@ static Standard_Integer WriteIges (Draw_Interpretor& di, Standard_Integer argc,
   writer.Transfer ( Doc );
 
   di << "Writig IGES model to file " << argv[2] << "\n";
-  if ( writer.Write ( argv[2] ) ) di<<" Write OK"<<"\n";
-  else di<<" Write failed"<<"\n";
+  if ( writer.Write ( argv[2] ) ) di<<" Write OK\n";
+  else di<<" Write failed\n";
 
   return 0;
 }
@@ -298,7 +298,7 @@ static Standard_Integer WriteIges (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer ReadStep (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if ( argc <3 ) {
-    di << "Use: " << argv[0] << " Doc filename [mode]: read STEP file to a document" << "\n";
+    di << "Use: " << argv[0] << " Doc filename [mode]: read STEP file to a document\n";
     return 0;
   }
   
@@ -329,15 +329,15 @@ static Standard_Integer ReadStep (Draw_Interpretor& di, Standard_Integer argc, c
   if (modfic) readstat = reader.ReadFile (fnom.ToCString());
   else  if (XSDRAW::Session()->NbStartingEntities() > 0) readstat = IFSelect_RetDone;
   if (readstat != IFSelect_RetDone) {
-    if (modfic) di<<"Could not read file "<<fnom.ToCString()<<" , abandon"<<"\n";
-    else di<<"No model loaded"<<"\n";
+    if (modfic) di<<"Could not read file "<<fnom.ToCString()<<" , abandon\n";
+    else di<<"No model loaded\n";
     return 1;
   }
 
   Handle(TDocStd_Document) doc;
   if (!DDocStd::GetDocument(argv[1],doc,Standard_False)) {  
     Handle(TDocStd_Application) A;
-    if (!DDocStd::Find(A)) {di<<"No application found"<<"\n";return 1;}
+    if (!DDocStd::Find(A)) {di<<"No application found\n";return 1;}
     A->NewDocument("BinXCAF",doc);  
     TDataStd_Name::Set(doc->GetData()->Root(),argv[1]);  
     Handle(DDocStd_DrawDocument) DD = new DDocStd_DrawDocument(doc);  
@@ -345,7 +345,7 @@ static Standard_Integer ReadStep (Draw_Interpretor& di, Standard_Integer argc, c
 //     di << "Document saved with name " << argv[1];
   }
   if ( ! reader.Transfer ( doc ) ) {
-    di << "Cannot read any relevant data from the STEP file" << "\n";
+    di << "Cannot read any relevant data from the STEP file\n";
     return 1;
   }
   
@@ -368,8 +368,8 @@ static Standard_Integer ReadStep (Draw_Interpretor& di, Standard_Integer argc, c
 static Standard_Integer WriteStep (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if ( argc <3 ) {
-    di << "Use: " << argv[0] << " Doc filename [mode [multifile_prefix [label]]]: write document to the STEP file" << "\n";
-    di << "mode can be: a or 0 : AsIs (default)" << "\n";
+    di << "Use: " << argv[0] << " Doc filename [mode [multifile_prefix [label]]]: write document to the STEP file\n";
+    di << "mode can be: a or 0 : AsIs (default)\n";
     di << "             f or 1 : FacettedBRep        s or 2 : ShellBasedSurfaceModel\n";
     di << "             m or 3 : ManifoldSolidBrep   w or 4 : GeometricCurveSet/WireFrame\n";
     di << "multifile_prefix: triggers writing assembly components as separate files,\n";
@@ -381,7 +381,7 @@ static Standard_Integer WriteStep (Draw_Interpretor& di, Standard_Integer argc,
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
   if ( Doc.IsNull() ) {
-    di << argv[1] << " is not a document" << "\n";
+    di << argv[1] << " is not a document\n";
     return 1;
   }
   Standard_CString multifile = 0;
@@ -404,7 +404,7 @@ static Standard_Integer WriteStep (Draw_Interpretor& di, Standard_Integer argc,
     case '3' : mode = STEPControl_ManifoldSolidBrep;       break;
     case 'w' :
     case '4' : mode = STEPControl_GeometricCurveSet;       break;
-    default :  di<<"3st arg = mode, incorrect [give fsmw]"<<"\n"; return 1;
+    default :  di<<"3st arg = mode, incorrect [give fsmw]\n"; return 1;
     }
     Standard_Boolean wrmode = Standard_True;
     for ( Standard_Integer i = 0; argv[k][i] ; i++ ) 
@@ -438,19 +438,19 @@ static Standard_Integer WriteStep (Draw_Interpretor& di, Standard_Integer argc,
   }
   if( !label.IsNull())
   {  
-    di << "Translating label "<< argv[k]<<" of document " << argv[1] << " to STEP" << "\n";
+    di << "Translating label "<< argv[k]<<" of document " << argv[1] << " to STEP\n";
     if(!writer.Transfer ( label, mode, multifile )) 
     {
-      di << "The label of document cannot be translated or gives no result" << "\n";
+      di << "The label of document cannot be translated or gives no result\n";
       return 1;
     }
 
   }
   else
   {
-    di << "Translating document " << argv[1] << " to STEP" << "\n";
+    di << "Translating document " << argv[1] << " to STEP\n";
     if ( ! writer.Transfer ( Doc, mode, multifile ) ) {
-      di << "The document cannot be translated or gives no result" << "\n";
+      di << "The document cannot be translated or gives no result\n";
     }
   }
   
@@ -458,16 +458,16 @@ static Standard_Integer WriteStep (Draw_Interpretor& di, Standard_Integer argc,
   di << "Writing STEP file " << argv[2] << "\n";
   IFSelect_ReturnStatus stat = writer.Write(argv[2]);
   switch (stat) {
-    case IFSelect_RetVoid : di<<"No file written"<<"\n"; break;
+    case IFSelect_RetVoid : di<<"No file written\n"; break;
     case IFSelect_RetDone : {
-      di<<"File "<<argv[2]<<" written"<<"\n";
+      di<<"File "<<argv[2]<<" written\n";
 
       Handle(STEPCAFControl_DictionaryOfExternFile) DicFile = writer.ExternFiles();
       FillDicWS( DicFile );
       AddWS( argv[2], XSDRAW::Session() );
       break;
     }
-    default : di<<"Error on writing file"<<"\n"; break;
+    default : di<<"Error on writing file\n"; break;
   }
   return 0;
 }
@@ -475,12 +475,12 @@ static Standard_Integer WriteStep (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer Expand (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<argv[0]<<" Doc recurs(0/1) or Doc recurs(0/1) label1 label2 ... or Doc recurs(0/1 shape1 shape2 ..."<<"\n";
+    di<<"Use: "<<argv[0]<<" Doc recurs(0/1) or Doc recurs(0/1) label1 label2 ... or Doc recurs(0/1 shape1 shape2 ...\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   Handle(XCAFDoc_ShapeTool) aShapeTool = XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
   Standard_Boolean recurs = Standard_False;
@@ -490,7 +490,7 @@ static Standard_Integer Expand (Draw_Interpretor& di, Standard_Integer argc, con
   if (argc == 3)
   {
     if(!XCAFDoc_Editor::Expand(Doc->Main(), recurs)){
-      di << "The shape is assembly or not compaund" << "\n";
+      di << "The shape is assembly or not compaund\n";
       return 1;
     }
   }
@@ -508,12 +508,12 @@ static Standard_Integer Expand (Draw_Interpretor& di, Standard_Integer argc, con
 
       if (!aLabel.IsNull()){
         if(!XCAFDoc_Editor::Expand(Doc->Main(), aLabel, recurs)){
-          di << "The shape is assembly or not compaund" << "\n";
+          di << "The shape is assembly or not compaund\n";
           return 1;
         }
       }
       else
-      { di << argv[i] << " is not a shape" << "\n"; return 1; }
+      { di << argv[i] << " is not a shape\n"; return 1; }
     }
   }
   return 0;
index 8636f2054a5548ab411786135ed773cbf92d2bcb..d6632738d33459962a00d37179fd832c4250f72c 100644 (file)
 static Standard_Integer DumpDGTs (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XDumpDGTs Doc shape/label/all\n";
+    di<<"Use: XDumpDGTs Doc shape/label/all\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool= XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -123,7 +123,7 @@ static Standard_Integer DumpDGTs (Draw_Interpretor& di, Standard_Integer argc, c
         {
           TCollection_AsciiString Entry;
           TDF_Tool::Entry(aLabels.Value(i), Entry);
-          di << "\n " << Entry << " Shape" << "."<< i;
+          di << "\n " << Entry << " Shape."<< i;
           flag = Standard_False;
         }
         TCollection_AsciiString Entry;
@@ -131,7 +131,7 @@ static Standard_Integer DumpDGTs (Draw_Interpretor& di, Standard_Integer argc, c
         di << "\n \t " << Entry;
         flag = Standard_False;
 
-        di << " Dimension" << "."<< i << "."<< j;
+        di << " Dimension."<< i << "."<< j;
         if (argc > 3)
         {
           di <<" (";
@@ -193,7 +193,7 @@ static Standard_Integer DumpDGTs (Draw_Interpretor& di, Standard_Integer argc, c
         {
           TCollection_AsciiString Entry;
           TDF_Tool::Entry(aLabels.Value(i), Entry);
-          di << "\n " << Entry << " Shape" << "."<< i;
+          di << "\n " << Entry << " Shape."<< i;
           flag = Standard_False;
         }
         TCollection_AsciiString Entry;
@@ -201,7 +201,7 @@ static Standard_Integer DumpDGTs (Draw_Interpretor& di, Standard_Integer argc, c
         di << "\n \t " << Entry;
         flag = Standard_False;
 
-        di << " GeomTolerance" << "."<< i << "."<< j;
+        di << " GeomTolerance."<< i << "."<< j;
         if (argc > 3)
         {
           di <<" (";
@@ -257,7 +257,7 @@ static Standard_Integer DumpDGTs (Draw_Interpretor& di, Standard_Integer argc, c
               TCollection_AsciiString anEntry;
               TDF_Tool::Entry(aNode->GetChild(k)->Label(), anEntry);
               di << "\n \t \t " << anEntry;
-              di << " Datum" << "."<< i << "."<< j << "."<< k;
+              di << " Datum."<< i << "."<< j << "."<< k;
               if (argc > 3)
               {
                 di <<" (";
@@ -299,7 +299,7 @@ static Standard_Integer DumpDGTs (Draw_Interpretor& di, Standard_Integer argc, c
           {
             TCollection_AsciiString Entry;
             TDF_Tool::Entry(aLabels.Value(i), Entry);
-            di << "\n " << Entry << " Shape" << "."<< i;
+            di << "\n " << Entry << " Shape."<< i;
             flag = Standard_False;
           }
           TCollection_AsciiString Entry;
@@ -307,7 +307,7 @@ static Standard_Integer DumpDGTs (Draw_Interpretor& di, Standard_Integer argc, c
           di << "\n \t " << Entry;
           flag = Standard_False;
 
-          di << " Datum target" << "."<< i << "."<< j;
+          di << " Datum target."<< i << "."<< j;
           if (argc > 3)
           {
             di <<" (";
@@ -339,12 +339,12 @@ static Standard_Integer DumpDGTs (Draw_Interpretor& di, Standard_Integer argc, c
 static Standard_Integer DumpNbDGTs (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 2) {
-    di<<"Use: "<<"XDumpNbDGTs Doc";
+    di<<"Use: XDumpNbDGTs Doc";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool= XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -403,12 +403,12 @@ static Standard_Integer DumpNbDGTs (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer addDim (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XAddDimension Doc shape/label [shape/label]\n";
+    di<<"Use: XAddDimension Doc shape/label [shape/label]\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -460,12 +460,12 @@ static Standard_Integer addDim (Draw_Interpretor& di, Standard_Integer argc, con
 static Standard_Integer addGTol (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XAddGeomTolerance Doc shape/label\n";
+    di<<"Use: XAddGeomTolerance Doc shape/label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -496,12 +496,12 @@ static Standard_Integer addGTol (Draw_Interpretor& di, Standard_Integer argc, co
 static Standard_Integer addDatum (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XAddDatum Doc shape/label\n";
+    di<<"Use: XAddDatum Doc shape/label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -532,12 +532,12 @@ static Standard_Integer addDatum (Draw_Interpretor& di, Standard_Integer argc, c
 static Standard_Integer setDatum (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 4) {
-    di<<"Use: "<<"XSetDatum Doc Datum_Label GeomTol_Label\n";
+    di<<"Use: XSetDatum Doc Datum_Label GeomTol_Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -564,12 +564,12 @@ static Standard_Integer setDatum (Draw_Interpretor& di, Standard_Integer argc, c
 static Standard_Integer getDatum (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XGetDatum Doc GeomTol_Label/Shape_Label\n";
+    di<<"Use: XGetDatum Doc GeomTol_Label/Shape_Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -599,12 +599,12 @@ static Standard_Integer getDatum (Draw_Interpretor& di, Standard_Integer argc, c
 static Standard_Integer addDatumModif (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 4) {
-    di<<"Use: "<<"XAddDatumModifier Doc Datum_Label mod1 mod2 ...\n";
+    di<<"Use: XAddDatumModifier Doc Datum_Label mod1 mod2 ...\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -634,12 +634,12 @@ static Standard_Integer addDatumModif (Draw_Interpretor& di, Standard_Integer ar
 static Standard_Integer getDatumModif (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XGetDatumModifiers Doc Datum_Label\n";
+    di<<"Use: XGetDatumModifiers Doc Datum_Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -690,12 +690,12 @@ static Standard_Integer getDatumModif (Draw_Interpretor& di, Standard_Integer ar
 static Standard_Integer setDatumName (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 4) {
-    di<<"Use: "<<"XSetDatumName Doc Datum_Label name\n";
+    di<<"Use: XSetDatumName Doc Datum_Label name\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -719,12 +719,12 @@ static Standard_Integer setDatumName (Draw_Interpretor& di, Standard_Integer arg
 static Standard_Integer getDatumName (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XGetDatumName Doc Datum_Label\n";
+    di<<"Use: XGetDatumName Doc Datum_Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -746,12 +746,12 @@ static Standard_Integer getDatumName (Draw_Interpretor& di, Standard_Integer arg
 static Standard_Integer setTypeOfTol (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 4) {
-    di<<"Use: "<<"XSetTypeOfTolerance Doc GTol_Label type\n";
+    di<<"Use: XSetTypeOfTolerance Doc GTol_Label type\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -778,12 +778,12 @@ static Standard_Integer setTypeOfTol (Draw_Interpretor& di, Standard_Integer arg
 static Standard_Integer getTypeOfTol (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XGetTypeOfTolerance Doc GTol_Label\n";
+    di<<"Use: XGetTypeOfTolerance Doc GTol_Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -823,12 +823,12 @@ static Standard_Integer getTypeOfTol (Draw_Interpretor& di, Standard_Integer arg
 static Standard_Integer setTypeOfTolVal (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 4) {
-    di<<"Use: "<<"XSetTypeOfToleranceValue Doc GTol_Label type\n";
+    di<<"Use: XSetTypeOfToleranceValue Doc GTol_Label type\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -855,12 +855,12 @@ static Standard_Integer setTypeOfTolVal (Draw_Interpretor& di, Standard_Integer
 static Standard_Integer getTypeOfTolVal (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XGetTypeOfToleranceValue Doc GTol_Label\n";
+    di<<"Use: XGetTypeOfToleranceValue Doc GTol_Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -887,12 +887,12 @@ static Standard_Integer getTypeOfTolVal (Draw_Interpretor& di, Standard_Integer
 static Standard_Integer setTolVal (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 4) {
-    di<<"Use: "<<"XSetToleranceValue Doc GTol_Label value\n";
+    di<<"Use: XSetToleranceValue Doc GTol_Label value\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -916,12 +916,12 @@ static Standard_Integer setTolVal (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer getTolVal (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XGetToleranceValue Doc GTol_Label\n";
+    di<<"Use: XGetToleranceValue Doc GTol_Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -943,12 +943,12 @@ static Standard_Integer getTolVal (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer setMatReq (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 4) {
-    di<<"Use: "<<"XSetTolMaterialReq Doc GTol_Label mod\n";
+    di<<"Use: XSetTolMaterialReq Doc GTol_Label mod\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -975,12 +975,12 @@ static Standard_Integer setMatReq (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer getMatReq (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XGetTolMaterialReq Doc GTol_Label\n";
+    di<<"Use: XGetTolMaterialReq Doc GTol_Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1007,12 +1007,12 @@ static Standard_Integer getMatReq (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer setZoneMod (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 4) {
-    di<<"Use: "<<"XSetTolZoneMod Doc GTol_Label mod\n";
+    di<<"Use: XSetTolZoneMod Doc GTol_Label mod\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1039,12 +1039,12 @@ static Standard_Integer setZoneMod (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer getZoneMod (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XGetTolZoneMod Doc GTol_Label\n";
+    di<<"Use: XGetTolZoneMod Doc GTol_Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1071,12 +1071,12 @@ static Standard_Integer getZoneMod (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer setZoneModVal (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 4) {
-    di<<"Use: "<<"XSetTolZoneModValue Doc GTol_Label val\n";
+    di<<"Use: XSetTolZoneModValue Doc GTol_Label val\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1100,12 +1100,12 @@ static Standard_Integer setZoneModVal (Draw_Interpretor& di, Standard_Integer ar
 static Standard_Integer getZoneModVal (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XGetTolZoneModValue Doc GTol_Label\n";
+    di<<"Use: XGetTolZoneModValue Doc GTol_Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1127,12 +1127,12 @@ static Standard_Integer getZoneModVal (Draw_Interpretor& di, Standard_Integer ar
 static Standard_Integer addTolModif (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 4) {
-    di<<"Use: "<<"XAddTolModifier Doc Tol_Label mod1 mod2 ...\n";
+    di<<"Use: XAddTolModifier Doc Tol_Label mod1 mod2 ...\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1162,12 +1162,12 @@ static Standard_Integer addTolModif (Draw_Interpretor& di, Standard_Integer argc
 static Standard_Integer getTolModif (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XGetTolModifiers Doc Tol_Label\n";
+    di<<"Use: XGetTolModifiers Doc Tol_Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1211,12 +1211,12 @@ static Standard_Integer getTolModif (Draw_Interpretor& di, Standard_Integer argc
 static Standard_Integer setTolMaxVal (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 4) {
-    di<<"Use: "<<"XSetTolMaxValue Doc Dim_Label val\n";
+    di<<"Use: XSetTolMaxValue Doc Dim_Label val\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1240,12 +1240,12 @@ static Standard_Integer setTolMaxVal (Draw_Interpretor& di, Standard_Integer arg
 static Standard_Integer getTolMaxVal (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XGetTolMaxValue Doc Dim_Label\n";
+    di<<"Use: XGetTolMaxValue Doc Dim_Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1267,12 +1267,12 @@ static Standard_Integer getTolMaxVal (Draw_Interpretor& di, Standard_Integer arg
 static Standard_Integer setDimType (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 4) {
-    di<<"Use: "<<"XSetDimensionType Doc Dim_Label type\n";
+    di<<"Use: XSetDimensionType Doc Dim_Label type\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1299,12 +1299,12 @@ static Standard_Integer setDimType (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer getDimType (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XGetDimensionType Doc Dim_Label\n";
+    di<<"Use: XGetDimensionType Doc Dim_Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1358,12 +1358,12 @@ static Standard_Integer getDimType (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer setDimVal (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 4) {
-    di<<"Use: "<<"XSetDimensionValue Doc Dim_Label val\n";
+    di<<"Use: XSetDimensionValue Doc Dim_Label val\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1387,12 +1387,12 @@ static Standard_Integer setDimVal (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer getDimVal (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XGetDimensionValue Doc Dim_Label\n";
+    di<<"Use: XGetDimensionValue Doc Dim_Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1414,12 +1414,12 @@ static Standard_Integer getDimVal (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer setDimQalif (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 4) {
-    di<<"Use: "<<"XSetDimensionQualifier Doc Dim_Label val\n";
+    di<<"Use: XSetDimensionQualifier Doc Dim_Label val\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1446,12 +1446,12 @@ static Standard_Integer setDimQalif (Draw_Interpretor& di, Standard_Integer argc
 static Standard_Integer getDimQalif (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XGetDimensionQualifier Doc Dim_Label\n";
+    di<<"Use: XGetDimensionQualifier Doc Dim_Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1480,12 +1480,12 @@ static Standard_Integer getDimQalif (Draw_Interpretor& di, Standard_Integer argc
 static Standard_Integer setDimRange (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 5) {
-    di<<"Use: "<<"XSetDimensionRange Doc Dim_Label low_val up_val\n";
+    di<<"Use: XSetDimensionRange Doc Dim_Label low_val up_val\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1513,12 +1513,12 @@ static Standard_Integer setDimRange (Draw_Interpretor& di, Standard_Integer argc
 static Standard_Integer getDimRange (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XGetDimensionRange Doc Dim_Label\n";
+    di<<"Use: XGetDimensionRange Doc Dim_Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1541,12 +1541,12 @@ static Standard_Integer getDimRange (Draw_Interpretor& di, Standard_Integer argc
 static Standard_Integer setDimPlusMinusTol (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 5) {
-    di<<"Use: "<<"XSetDimensionPlusMinusTol Doc Dim_Label low_val up_val\n";
+    di<<"Use: XSetDimensionPlusMinusTol Doc Dim_Label low_val up_val\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1574,12 +1574,12 @@ static Standard_Integer setDimPlusMinusTol (Draw_Interpretor& di, Standard_Integ
 static Standard_Integer getDimPlusMinusTol (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XGetDimensionPlusMinusTol Doc Dim_Label\n";
+    di<<"Use: XGetDimensionPlusMinusTol Doc Dim_Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1602,12 +1602,12 @@ static Standard_Integer getDimPlusMinusTol (Draw_Interpretor& di, Standard_Integ
 static Standard_Integer setDimClassTol (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 6) {
-    di<<"Use: "<<"XSetDimensionClassOfTol Doc Dim_Label ishole[1/0] formVar grade\n";
+    di<<"Use: XSetDimensionClassOfTol Doc Dim_Label ishole[1/0] formVar grade\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1634,12 +1634,12 @@ static Standard_Integer setDimClassTol (Draw_Interpretor& di, Standard_Integer a
 static Standard_Integer getDimClassTol (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XGetDimensionClassOfTol Doc Dim_Label\n";
+    di<<"Use: XGetDimensionClassOfTol Doc Dim_Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1757,12 +1757,12 @@ static Standard_Integer getDimClassTol (Draw_Interpretor& di, Standard_Integer a
 static Standard_Integer setDimNbOfDecimalPlaces (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 5) {
-    di<<"Use: "<<"XSetDimensionNbOfDecimalPlaces Doc Dim_Label l_val r_val\n";
+    di<<"Use: XSetDimensionNbOfDecimalPlaces Doc Dim_Label l_val r_val\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1786,12 +1786,12 @@ static Standard_Integer setDimNbOfDecimalPlaces (Draw_Interpretor& di, Standard_
 static Standard_Integer getDimNbOfDecimalPlaces (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XGetDimensionNbOfDecimalPlaces Doc Dim_Label\n";
+    di<<"Use: XGetDimensionNbOfDecimalPlaces Doc Dim_Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1815,12 +1815,12 @@ static Standard_Integer getDimNbOfDecimalPlaces (Draw_Interpretor& di, Standard_
 static Standard_Integer addDimModifier (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 4) {
-    di<<"Use: "<<"XAddDimensionModifiers Doc Dim_Label mod1 mod2 ...\n";
+    di<<"Use: XAddDimensionModifiers Doc Dim_Label mod1 mod2 ...\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1850,12 +1850,12 @@ static Standard_Integer addDimModifier (Draw_Interpretor& di, Standard_Integer a
 static Standard_Integer getDimModifier (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XGetDimensionModifiers Doc Dim_Label\n";
+    di<<"Use: XGetDimensionModifiers Doc Dim_Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1908,12 +1908,12 @@ static Standard_Integer getDimModifier (Draw_Interpretor& di, Standard_Integer a
 static Standard_Integer addDimPath (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 4) {
-    di<<"Use: "<<"XSetDimensionPath Doc Dim_Label path(edge)\n";
+    di<<"Use: XSetDimensionPath Doc Dim_Label path(edge)\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1941,12 +1941,12 @@ static Standard_Integer addDimPath (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer addDimPoints (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 5) {
-    di<<"Use: "<<"XSetDimensionPoints Doc Dim_Label v1 v2\n";
+    di<<"Use: XSetDimensionPoints Doc Dim_Label v1 v2\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -1978,12 +1978,12 @@ static Standard_Integer addDimPoints (Draw_Interpretor& di, Standard_Integer arg
 static Standard_Integer getDimPoints (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XGetDimensionPoints Doc Dim_Label\n";
+    di<<"Use: XGetDimensionPoints Doc Dim_Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -2010,12 +2010,12 @@ static Standard_Integer getDimPoints (Draw_Interpretor& di, Standard_Integer arg
 static Standard_Integer addDimDir (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 6) {
-    di<<"Use: "<<"XSetDimensionDir Doc Dim_Label x y z\n";
+    di<<"Use: XSetDimensionDir Doc Dim_Label x y z\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
@@ -2039,12 +2039,12 @@ static Standard_Integer addDimDir (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer getDimDir (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<"XSetDimensionDir Doc Dim_Label\n";
+    di<<"Use: XSetDimensionDir Doc Dim_Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_DimTolTool) aDimTolTool = XCAFDoc_DocumentTool::DimTolTool(Doc->Main());
   Handle(XCAFDoc_ShapeTool) aShapeTool= XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 
index 0fc6ff6a8534823d3fe2dfa7fd497c2fead1c73a..e28b2c632e1546c78ce108296d4620d90d7c2d6c 100644 (file)
 static Standard_Integer addLayer (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=3) {
-    di<<"Use: "<<argv[0]<<" DocName StringLayer "<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName StringLayer \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_LayerTool) localLayerTool = XCAFDoc_DocumentTool::LayerTool(Doc->Main());
   
   TCollection_ExtendedString aLayer = argv[2];
@@ -54,12 +54,12 @@ static Standard_Integer addLayer (Draw_Interpretor& di, Standard_Integer argc, c
 static Standard_Integer findLayer (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=3) {
-    di<<"Use: "<<argv[0]<<" DocName StringLayer "<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName StringLayer \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_LayerTool) localLayerTool = XCAFDoc_DocumentTool::LayerTool(Doc->Main());
   
   TCollection_ExtendedString aLayer = argv[2];
@@ -73,12 +73,12 @@ static Standard_Integer findLayer (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer removeLayer (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=3) {
-    di<<"Use: "<<argv[0]<<" DocName {Label|string}"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName {Label|string}\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_LayerTool) localLayerTool = XCAFDoc_DocumentTool::LayerTool(Doc->Main());
 
   TDF_Label aLabel;
@@ -96,14 +96,14 @@ static Standard_Integer removeLayer (Draw_Interpretor& di, Standard_Integer argc
 static Standard_Integer setLayer (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc<4) {
-    di<<"Use: "<<argv[0]<<" DocName {Shape|Label} StringLayer [shapeInOneLayer(0/1)]"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName {Shape|Label} StringLayer [shapeInOneLayer(0/1)]\n";
     return 1;
   }
   Standard_Boolean shapeInOneLayer = Standard_False;
   if ( (argc==5) && (Draw::Atoi(argv[4])==1) ) shapeInOneLayer = Standard_True;
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_LayerTool) localLayerTool = XCAFDoc_DocumentTool::LayerTool(Doc->Main());
   TDF_Label aLabel;
   TCollection_ExtendedString aLayer = argv[3];
@@ -125,13 +125,13 @@ static Standard_Integer setLayer (Draw_Interpretor& di, Standard_Integer argc, c
 static Standard_Integer getLayers (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=3) {
-    di<<"Use: "<<argv[0]<<" DocName {Shape|Label} "<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName {Shape|Label} \n";
     return 1;
   }
   //
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_LayerTool) localLayerTool = XCAFDoc_DocumentTool::LayerTool(Doc->Main());
   TDF_Label aLabel;
   Handle(TColStd_HSequenceOfExtendedString) aLayerS;
@@ -149,7 +149,7 @@ static Standard_Integer getLayers (Draw_Interpretor& di, Standard_Integer argc,
   if (!aLayerS.IsNull() && aLayerS->Length()!=0)
     for (; i <= aLayerS->Length(); i++) {
       TCollection_AsciiString Entry(aLayerS->Value(i),'?');
-      di << "\"" << Entry.ToCString() << "\"" << " ";
+      di << "\"" << Entry.ToCString() << "\" ";
     }
   return 0;
 }
@@ -158,12 +158,12 @@ static Standard_Integer getLayers (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer getLayerLabels (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=2) {
-    di<<"Use: "<<argv[0]<<" DocName"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_LayerTool) localLayerTool = XCAFDoc_DocumentTool::LayerTool(Doc->Main());
   TDF_LabelSequence aLabs;
   localLayerTool->GetLayerLabels(aLabs);
@@ -186,12 +186,12 @@ static Standard_Integer getLayerLabels (Draw_Interpretor& di, Standard_Integer a
 static Standard_Integer getOneLayer (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=3) {
-    di<<"Use: "<<argv[0]<<" DocName LayerLabel"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName LayerLabel\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_LayerTool) localLayerTool = XCAFDoc_DocumentTool::LayerTool(Doc->Main());
   TDF_Label aLabel;
   TDF_Tool::Label(Doc->GetData(), argv[2], aLabel);
@@ -208,14 +208,14 @@ static Standard_Integer getOneLayer (Draw_Interpretor& di, Standard_Integer argc
 static Standard_Integer setLinkLayer (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc<4) {
-    di<<"Use: "<<argv[0]<<" DocName {Shape|Label} LayerL [shapeInOneLayer(0/1)]"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName {Shape|Label} LayerL [shapeInOneLayer(0/1)]\n";
     return 1;
   }
   Standard_Boolean shapeInOneLayer = Standard_False;
   if ( (argc==5) && (Draw::Atoi(argv[4])==1) ) shapeInOneLayer = Standard_True;
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_LayerTool) localLayerTool = XCAFDoc_DocumentTool::LayerTool(Doc->Main());
   TDF_Label aLabel, layerLabel;
   TDF_Tool::Label(Doc->GetData(), argv[3], layerLabel);
@@ -239,12 +239,12 @@ static Standard_Integer setLinkLayer (Draw_Interpretor& di, Standard_Integer arg
 static Standard_Integer getAllLayers (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=2) {
-    di<<"Use: "<<argv[0]<<" DocName"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_LayerTool) localLayerTool = XCAFDoc_DocumentTool::LayerTool(Doc->Main());
   TDF_LabelSequence aLabs;
   localLayerTool->GetLayerLabels(aLabs);
@@ -270,12 +270,12 @@ static Standard_Integer getAllLayers (Draw_Interpretor& di, Standard_Integer arg
 static Standard_Integer unSetLayer (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=4) {
-    di<<"Use: "<<argv[0]<<" DocName {Shape|Label} stringL"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName {Shape|Label} stringL\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_LayerTool) localLayerTool = XCAFDoc_DocumentTool::LayerTool(Doc->Main());
   TDF_Label aLabel;
   TCollection_ExtendedString aLayer = argv[3];
@@ -297,12 +297,12 @@ static Standard_Integer unSetLayer (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer unSetAllLayers (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=3) {
-    di<<"Use: "<<argv[0]<<" DocName {Shape|Label}"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName {Shape|Label}\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_LayerTool) localLayerTool = XCAFDoc_DocumentTool::LayerTool(Doc->Main());
   TDF_Label aLabel;
 
@@ -323,12 +323,12 @@ static Standard_Integer unSetAllLayers (Draw_Interpretor& di, Standard_Integer a
 static Standard_Integer removeAllLayers (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=2) {
-    di<<"Use: "<<argv[0]<<" DocName"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_LayerTool) localLayerTool = XCAFDoc_DocumentTool::LayerTool(Doc->Main());
   
   TDF_LabelSequence aLabs;
@@ -349,12 +349,12 @@ static Standard_Integer removeAllLayers (Draw_Interpretor& di, Standard_Integer
 static Standard_Integer setVisibility (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc<3) {
-    di<<"Use: "<<argv[0]<<"DocName {layerLable|StringLayer} [isvisible(1/0)]"<<"\n";
+    di<<"Use: "<<argv[0]<<"DocName {layerLable|StringLayer} [isvisible(1/0)]\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_LayerTool) localLayerTool = XCAFDoc_DocumentTool::LayerTool(Doc->Main());
   Standard_Boolean isvisible = Standard_False;
   if ( (argc==4) && (Draw::Atoi(argv[3])==1) ) isvisible = Standard_True;
@@ -374,12 +374,12 @@ static Standard_Integer setVisibility (Draw_Interpretor& di, Standard_Integer ar
 static Standard_Integer isVisible (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=3) {
-    di<<"Use: "<<argv[0]<<" DocName {layerLable|StringLayer}"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName {layerLable|StringLayer}\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_LayerTool) localLayerTool = XCAFDoc_DocumentTool::LayerTool(Doc->Main());
 
   TDF_Label aLabel;
index a4c61af65e9fbefd55b492d697bfe55a0c8cf1a0..64c818cea69dc6fbb404114f8dc892abbe875dcb 100644 (file)
@@ -171,7 +171,7 @@ static Standard_Real CalculVolume(const TopoDS_Shape& So,
   
   localCentroid = localCentroid * (1./ myVolume);
   
-  di << "Centroid:" << "\n";
+  di << "Centroid:\n";
   di << "X=\t" << localCentroid.X() << "\n";
   di << "Y=\t" << localCentroid.Y() << "\n";
   di << "Z=\t" << localCentroid.Z() << "\n";
@@ -194,12 +194,12 @@ static Standard_Real CalculVolume(const TopoDS_Shape& So,
 static Standard_Integer SetProps (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 3) {
-    di<<"Use: "<<argv[0]<<" DocName {Shape|Label} [epsilon = 0.001]"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName {Shape|Label} [epsilon = 0.001]\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   
   Standard_Real Vres, Ares;
 
@@ -256,12 +256,12 @@ static Standard_Integer SetProps (Draw_Interpretor& di, Standard_Integer argc, c
 static Standard_Integer SetVolume (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=4) {
-    di<<"Use: "<<argv[0]<<" DocName {Label|Shape} volume"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName {Label|Shape} volume\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   
   Standard_Real res=0.;
 
@@ -294,12 +294,12 @@ static Standard_Integer SetVolume (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer SetArea (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=4) {
-    di<<"Use: "<<argv[0]<<" DocName {Label|Shape} area"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName {Label|Shape} area\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   
   Standard_Real res=0.;
 
@@ -331,12 +331,12 @@ static Standard_Integer SetArea (Draw_Interpretor& di, Standard_Integer argc, co
 static Standard_Integer SetCentroid (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=6) {
-    di<<"Use: "<<argv[0]<<" DocName {Label|Shape} x y z"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName {Label|Shape} x y z\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   
   gp_Pnt aPoint;
 
@@ -370,12 +370,12 @@ static Standard_Integer SetCentroid (Draw_Interpretor& di, Standard_Integer argc
 static Standard_Integer GetVolume (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=3) {
-    di<<"Use: "<<argv[0]<<" DocName {Shape|Label}"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName {Shape|Label}\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   
   TDF_Label aLabel;
   TDF_Tool::Label(Doc->GetData(), argv[2], aLabel);
@@ -406,12 +406,12 @@ static Standard_Integer GetVolume (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer GetArea (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=3) {
-    di<<"Use: "<<argv[0]<<" DocName {Shape|Label}"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName {Shape|Label}\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   
   TDF_Label aLabel;
   TDF_Tool::Label(Doc->GetData(), argv[2], aLabel);
@@ -442,12 +442,12 @@ static Standard_Integer GetArea (Draw_Interpretor& di, Standard_Integer argc, co
 static Standard_Integer GetCentroid (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=3) {
-    di<<"Use: "<<argv[0]<<" DocName {Shape|Label} "<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName {Shape|Label} \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   
   gp_Pnt aPoint;
   
@@ -481,17 +481,17 @@ static Standard_Integer GetCentroid (Draw_Interpretor& di, Standard_Integer argc
 static Standard_Integer CheckProps (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc <2) {
-    di << "Use: "<<argv[0]<<" DocName [ 0|deflection [Shape|Label] ]"<<"\n";
-    di << "     If second argument is 0, standard CADCADE tool is used for" << "\n";
-    di << "     computation of volume and CG." << "\n";
-    di << "     If second argument is not 0, it is treated as deflection" << "\n";
-    di << "     and computation is done by triangulations" << "\n";
-    di << "     If the second argument is negative, meshing is forced" << "\n";
+    di << "Use: "<<argv[0]<<" DocName [ 0|deflection [Shape|Label] ]\n";
+    di << "     If second argument is 0, standard CADCADE tool is used for\n";
+    di << "     computation of volume and CG.\n";
+    di << "     If second argument is not 0, it is treated as deflection\n";
+    di << "     and computation is done by triangulations\n";
+    di << "     If the second argument is negative, meshing is forced\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Standard_Boolean withVolFix = Standard_False;
   if ( argc >2 && Draw::Atof(argv[2]) != 0 ) withVolFix = Standard_True;
   Standard_Boolean wholeDoc = ( argc <4 );
@@ -515,7 +515,7 @@ static Standard_Integer CheckProps (Draw_Interpretor& di, Standard_Integer argc,
     STool->GetShapes(seq);
   }
   if ( wholeDoc ) {
-    di << "Label            Area defect   Volume defect    dX      dY      dZ    Name" << "\n";
+    di << "Label            Area defect   Volume defect    dX      dY      dZ    Name\n";
   }
   for ( Standard_Integer i=1; i <= seq.Length(); i++ ) {
     TDF_Label aLabel = seq(i);
@@ -661,7 +661,7 @@ static Standard_Integer CheckProps (Draw_Interpretor& di, Standard_Integer argc,
        //fflush ( stdout );
        di << ": ";
        di << Standard_Failure::Caught()->GetMessageString();
-       di<<" ** Skip"<<"\n";
+       di<<" ** Skip\n";
 #endif
       }
     }
@@ -693,7 +693,7 @@ static Standard_Integer CheckProps (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer ShapeVolume (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=3) {
-    di<<"Use: "<<argv[0]<<" Shape deflection "<<"\n";
+    di<<"Use: "<<argv[0]<<" Shape deflection \n";
     return 1;
   }
   TopoDS_Shape aShape = DBRep::Get(argv[1]);
@@ -808,12 +808,12 @@ static Standard_Integer ShapeMassProps (Draw_Interpretor& di, Standard_Integer a
 {
   
   if (argc <2) {
-    di << "Use: "<<argv[0]<<" DocName [deflection [Shape|Label] ]"<<"\n";
-    di << "     If second argument is 0, standard CADCADE tool is used for" << "\n";
-    di << "     computation of volume and CG." << "\n";
-    di << "     If second argument is not 0, it is treated as deflection" << "\n";
-    di << "     and computation is done by triangulations" << "\n";
-    di << "     If the second argument is negative, meshing is forced" << "\n";
+    di << "Use: "<<argv[0]<<" DocName [deflection [Shape|Label] ]\n";
+    di << "     If second argument is 0, standard CADCADE tool is used for\n";
+    di << "     computation of volume and CG.\n";
+    di << "     If second argument is not 0, it is treated as deflection\n";
+    di << "     and computation is done by triangulations\n";
+    di << "     If the second argument is negative, meshing is forced\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
@@ -821,7 +821,7 @@ static Standard_Integer ShapeMassProps (Draw_Interpretor& di, Standard_Integer a
   Standard_Real atol = Precision::Confusion();
   if(argc >2)
     atol  = Draw::Atof(argv[2]);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Standard_Boolean wholeDoc = ( argc <4 );
   TDF_LabelSequence seq;
   if ( ! wholeDoc ) {
@@ -843,7 +843,7 @@ static Standard_Integer ShapeMassProps (Draw_Interpretor& di, Standard_Integer a
     STool->GetShapes(seq);
   }
   //if ( wholeDoc ) {
-  //  di << "Label            Area defect   Volume defect    dX      dY      dZ    Name" << "\n";
+  //  di << "Label            Area defect   Volume defect    dX      dY      dZ    Name\n";
  // }
   gp_XYZ aCenterGravity(0.0,0.0,0.0);
   Standard_Real aMassVal =0.0;
@@ -861,8 +861,8 @@ static Standard_Integer ShapeMassProps (Draw_Interpretor& di, Standard_Integer a
       di<<"\n";
     }
     else {
-//      di<<"For one component density is absent"<<"\n";
-      di<<"Shape from label : "<<str.ToCString()<<" not have a mass"<<"\n";
+//      di<<"For one component density is absent\n";
+      di<<"Shape from label : "<<str.ToCString()<<" not have a mass\n";
     }
   }
   return 0;
@@ -877,12 +877,12 @@ static Standard_Integer ShapeMassProps (Draw_Interpretor& di, Standard_Integer a
 static Standard_Integer SetMaterial (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc<5) {
-    di<<"Use: "<<argv[0]<<" Doc {Label|Shape} name density(g/cu sm) "<<"\n";
+    di<<"Use: "<<argv[0]<<" Doc {Label|Shape} name density(g/cu sm) \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   
   TDF_Label aLabel;
   TDF_Tool::Label(Doc->GetData(), argv[2], aLabel);
index 53c230acb3b18a10b1c4eed3a756eb02e40480df..954be5fccce4796f927ddf0c33b2e2b8c813f1b3 100644 (file)
 static Standard_Integer addShape (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc<3) {
-    di<<"Use: "<<argv[0]<<" DocName Shape [int makeAssembly (1/0)]"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName Shape [int makeAssembly (1/0)]\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   TopoDS_Shape aShape;
   aShape = DBRep::Get(argv[2]);
@@ -55,7 +55,7 @@ static Standard_Integer addShape (Draw_Interpretor& di, Standard_Integer argc, c
   if ( argc==4 && Draw::Atoi(argv[3]) == 0 ) makeAssembly = Standard_False;
   TDF_Label aLabel;
   aLabel = myAssembly->AddShape(aShape, makeAssembly);
-  if (aLabel.IsNull()) di<<"Null Label"<<"\n";
+  if (aLabel.IsNull()) di<<"Null Label\n";
   TCollection_AsciiString Entry;
   TDF_Tool::Entry(aLabel, Entry);
   di << Entry.ToCString();
@@ -65,13 +65,13 @@ static Standard_Integer addShape (Draw_Interpretor& di, Standard_Integer argc, c
 static Standard_Integer newShape (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=2) {
-    di<<"Use: "<<argv[0]<<" DocName "<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;
   TDF_Label aLabel;
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   Handle(XCAFDoc_ShapeTool) myAssembly = XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
 //XCAFDoc_ShapeTool myAssembly;
@@ -87,17 +87,17 @@ static Standard_Integer newShape (Draw_Interpretor& di, Standard_Integer argc, c
 static Standard_Integer setShape (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=4) {
-    di<<"Use: "<<argv[0]<<" DocName Label Shape "<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName Label Shape \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   TDF_Label aLabel;
   TDF_Tool::Label(Doc->GetData(), argv[2], aLabel);
   TopoDS_Shape aShape;
-  //   if (aLabel.IsNull()) di<<"Null Label"<<"\n";
+  //   if (aLabel.IsNull()) di<<"Null Label\n";
   aShape = DBRep::Get(argv[3]);
 //  XCAFDoc_ShapeTool myAssembly;
 //  myAssembly.Init(Doc);
@@ -110,16 +110,16 @@ static Standard_Integer setShape (Draw_Interpretor& di, Standard_Integer argc, c
 static Standard_Integer getShape (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=4) {
-    di<<"Use: "<<argv[0]<<" Result DocName Label"<<"\n";
+    di<<"Use: "<<argv[0]<<" Result DocName Label\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[2], Doc);
-  if ( Doc.IsNull() ) { di << argv[2] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[2] << " is not a document\n"; return 1; }
 
   TDF_Label aLabel;
   TDF_Tool::Label(Doc->GetData(), argv[3], aLabel);
-  if (aLabel.IsNull()) {di<<"No such Label"<<"\n"; return 1;}
+  if (aLabel.IsNull()) {di<<"No such Label\n"; return 1;}
   TopoDS_Shape aShape;
 //  XCAFDoc_ShapeTool myAssembly;
 //  myAssembly.Init(Doc);
@@ -135,16 +135,16 @@ static Standard_Integer removeShape (Draw_Interpretor& di, Standard_Integer argc
 {
   if (argc != 3 && argc != 4)
   {
-    di<<"Use: "<<argv[0]<<" DocName Label [int removeCompletely (1/0)]"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName Label [int removeCompletely (1/0)]\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   TDF_Label aLabel;
   TDF_Tool::Label(Doc->GetData(), argv[2], aLabel);
-  if (aLabel.IsNull()) {di<<"No such Label"<<"\n"; return 1;}
+  if (aLabel.IsNull()) {di<<"No such Label\n"; return 1;}
   TopoDS_Shape aShape;
 //  XCAFDoc_ShapeTool myAssembly;
 //  myAssembly.Init(Doc);
@@ -160,12 +160,12 @@ static Standard_Integer removeShape (Draw_Interpretor& di, Standard_Integer argc
 static Standard_Integer findShape (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=3) {
-    di<<"Use: "<<argv[0]<<" DocName Shape"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName Shape\n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   TDF_Label aLabel;
   TopoDS_Shape aShape;
@@ -184,12 +184,12 @@ static Standard_Integer findShape (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer labelInfo (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=3) {
-    di<<"Use: "<<argv[0]<<" DocName Label "<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName Label \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   TDF_Label aLabel;
   TDF_Tool::Label(Doc->GetData(), argv[2], aLabel);
@@ -199,22 +199,22 @@ static Standard_Integer labelInfo (Draw_Interpretor& di, Standard_Integer argc,
   TCollection_AsciiString Entry;
 
   if ( myAssembly->IsShape(aLabel) ) {
-    //di<<"There are a TopLevelShape"<<"\n";
+    //di<<"There are a TopLevelShape\n";
     Entry="There are a TopLevelShape";
     di << Entry.ToCString();
   }
   if ( myAssembly->IsComponent(aLabel) ) {
-    //di<<"There are a Component"<<"\n";
+    //di<<"There are a Component\n";
     Entry="There are a Component";
     di << Entry.ToCString();
   }
   if ( myAssembly->IsAssembly(aLabel) ) {
-    //di<<"There are an Assembly"<<"\n";
+    //di<<"There are an Assembly\n";
     Entry="There are an Assembly";
     di << Entry.ToCString();
   }
   if ( myAssembly->IsFree(aLabel) ) {
-    //di<<"This Shape don't used"<<"\n";
+    //di<<"This Shape don't used\n";
     Entry="This Shape don't used";
     di << Entry.ToCString();
   }
@@ -224,7 +224,7 @@ static Standard_Integer labelInfo (Draw_Interpretor& di, Standard_Integer argc,
 static Standard_Integer getUsers (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc<3) {
-    di<<"Use: "<<argv[0]<<" Doc Label [withSubChilds(int)]"<<"\n";
+    di<<"Use: "<<argv[0]<<" Doc Label [withSubChilds(int)]\n";
     return 1;
   }
   Standard_Boolean getsubchilds = Standard_False;
@@ -232,7 +232,7 @@ static Standard_Integer getUsers (Draw_Interpretor& di, Standard_Integer argc, c
   
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   TDF_Label aLabel;
   TDF_Tool::Label(Doc->GetData(), argv[2], aLabel);
@@ -241,21 +241,21 @@ static Standard_Integer getUsers (Draw_Interpretor& di, Standard_Integer argc, c
   TCollection_AsciiString Entry;
   Entry=myAssembly->GetUsers(aLabel, labseq, getsubchilds);
   di << Entry.ToCString();
-  //di<<myAssembly->GetUsers(aLabel, labseq, getsubchilds)<<" assemblies use this component"<<"\n";
+  //di<<myAssembly->GetUsers(aLabel, labseq, getsubchilds)<<" assemblies use this component\n";
   return 0;
 }
 
 static Standard_Integer nbComponents (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc<3) {
-    di<<"Use: "<<argv[0]<<" Doc Label [withSubChilds(int)]"<<"\n";
+    di<<"Use: "<<argv[0]<<" Doc Label [withSubChilds(int)]\n";
     return 1;
   }
   Standard_Boolean getsubchilds = Standard_False;
   if ( (argc==4) && ( Draw::Atoi(argv[3])==1 ) ) getsubchilds = Standard_True;
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   TDF_Label aLabel;
   TDF_Tool::Label(Doc->GetData(), argv[2], aLabel);
@@ -266,8 +266,8 @@ static Standard_Integer nbComponents (Draw_Interpretor& di, Standard_Integer arg
   TCollection_AsciiString Entry;
   Entry=myAssembly->NbComponents( aLabel, getsubchilds);
   di << Entry.ToCString();
-  //di<<" components"<<"\n";
-  //di<<"This assembly has "<<myAssembly->NbComponents( aLabel, getsubchilds )<<" components"<<"\n";
+  //di<<" components\n";
+  //di<<"This assembly has "<<myAssembly->NbComponents( aLabel, getsubchilds )<<" components\n";
 
   return 0;
 }
@@ -275,12 +275,12 @@ static Standard_Integer nbComponents (Draw_Interpretor& di, Standard_Integer arg
 static Standard_Integer addComponent (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=4) {
-    di<<"Use: "<<argv[0]<<" DocName Label Shape "<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName Label Shape \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   TDF_Label aLabel;
   TDF_Tool::Label(Doc->GetData(), argv[2], aLabel);
@@ -300,12 +300,12 @@ static Standard_Integer addComponent (Draw_Interpretor& di, Standard_Integer arg
 static Standard_Integer removeComponent (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=3) {
-    di<<"Use: "<<argv[0]<<" DocName Label "<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName Label \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   TDF_Label aLabel;
   TDF_Tool::Label(Doc->GetData(), argv[2], aLabel);
@@ -319,12 +319,12 @@ static Standard_Integer removeComponent (Draw_Interpretor& di, Standard_Integer
 static Standard_Integer getReferredShape (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=3) {
-    di<<"Use: "<<argv[0]<<" DocName Label "<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName Label \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   TDF_Label aLabel, RootLabel;
   TDF_Tool::Label(Doc->GetData(), argv[2], aLabel);
@@ -343,12 +343,12 @@ static Standard_Integer getReferredShape (Draw_Interpretor& di, Standard_Integer
 static Standard_Integer getTopLevelShapes (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=2) {
-    di<<"Use: "<<argv[0]<<" DocName "<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   TDF_Label aLabel;
   TDF_LabelSequence Labels;
@@ -371,19 +371,19 @@ static Standard_Integer getTopLevelShapes (Draw_Interpretor& di, Standard_Intege
 static Standard_Integer getFreeShapes (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc <2) {
-    di<<"Use: "<<argv[0]<<" DocName [shape_prefix]"<<"\n";
+    di<<"Use: "<<argv[0]<<" DocName [shape_prefix]\n";
     return 1;
   }
   
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
 
   TDF_LabelSequence Labels;
   Handle(XCAFDoc_ShapeTool) STool = XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
   STool->GetFreeShapes(Labels);
   if ( Labels.Length() <=0 ) {
-    di << "Document " << argv[1] << " contain no shapes" << "\n";
+    di << "Document " << argv[1] << " contain no shapes\n";
     return 0;
   }
   
@@ -414,19 +414,19 @@ static Standard_Integer getFreeShapes (Draw_Interpretor& di, Standard_Integer ar
 static Standard_Integer getOneShape (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc!=3) {
-    di<<"Use: "<<argv[0]<<" shape DocName "<<"\n";
+    di<<"Use: "<<argv[0]<<" shape DocName \n";
     return 1;
   }
   
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[2], Doc);
-  if ( Doc.IsNull() ) { di << argv[2] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[2] << " is not a document\n"; return 1; }
 
   TDF_LabelSequence Labels;
   Handle(XCAFDoc_ShapeTool) STool = XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
   STool->GetFreeShapes(Labels);
   if ( Labels.Length() <=0 ) {
-    di << "Document " << argv[2] << " contain no shapes" << "\n";
+    di << "Document " << argv[2] << " contain no shapes\n";
     return 0;
   }
   
@@ -456,14 +456,14 @@ static Standard_Integer XDumpLocation (Draw_Interpretor& di, Standard_Integer ar
 {
   if (argc != 3)
   {
-    di << "Use: " << argv[0] << " Doc Label " << "\n";
+    di << "Use: " << argv[0] << " Doc Label \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
   if (Doc.IsNull())
   {
-    di << argv[1] << " is not a document" << "\n";
+    di << argv[1] << " is not a document\n";
     return 1;
   }
 
@@ -473,7 +473,7 @@ static Standard_Integer XDumpLocation (Draw_Interpretor& di, Standard_Integer ar
   Handle(XCAFDoc_Location) aLoc;
   if (!aLabel.FindAttribute(XCAFDoc_Location::GetID(), aLoc))
   {
-    di << "Label " << argv[2] << " doesn't contain XCAFDoc_Location attribute" << "\n";
+    di << "Label " << argv[2] << " doesn't contain XCAFDoc_Location attribute\n";
     return 1;
   }
   
@@ -499,12 +499,12 @@ static Standard_Integer setSHUO (Draw_Interpretor& di, Standard_Integer argc, co
 {
   if (argc < 4)
   {
-    di << "Use: " << argv[0] << " Doc UU_Label NU_Label " << "\n";
+    di << "Use: " << argv[0] << " Doc UU_Label NU_Label \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   
   TDF_LabelSequence aLabSeq;
   for (Standard_Integer i = 3; i <= argc; i++) {
@@ -516,13 +516,13 @@ static Standard_Integer setSHUO (Draw_Interpretor& di, Standard_Integer argc, co
       di << argv[i - 1] << " is null label"  << "\n";
   }
   if (aLabSeq.Length() < 2) {
-    di << "Error: couldnot set SHUO between on less then 2 labels" << "\n";
+    di << "Error: couldnot set SHUO between on less then 2 labels\n";
   }
   Handle(XCAFDoc_ShapeTool) myAssembly = XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
   Handle(XCAFDoc_GraphNode) aMainSHUO;
   myAssembly->SetSHUO( aLabSeq, aMainSHUO );
   if (aMainSHUO.IsNull()) {
-    di << "Error: cannot set the SHUO" << "\n";
+    di << "Error: cannot set the SHUO\n";
     return 1;
   }
     
@@ -533,12 +533,12 @@ static Standard_Integer getSHUOUpperUsage (Draw_Interpretor& di, Standard_Intege
 {
   if (argc < 3)
   {
-    di << "Use: " << argv[0] << " Doc NU_Label " << "\n";
+    di << "Use: " << argv[0] << " Doc NU_Label \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   TDF_Label NL;
   TDF_Tool::Label(Doc->GetData(), argv[2], NL);
   if (NL.IsNull()) {
@@ -563,12 +563,12 @@ static Standard_Integer getSHUONextUsage (Draw_Interpretor& di, Standard_Integer
 {
   if (argc < 3)
   {
-    di << "Use: " << argv[0] << " Doc UU_Label " << "\n";
+    di << "Use: " << argv[0] << " Doc UU_Label \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   TDF_Label UL;
   TDF_Tool::Label(Doc->GetData(), argv[2], UL);
   if (UL.IsNull()) {
@@ -593,12 +593,12 @@ static Standard_Integer removeSHUO (Draw_Interpretor& di, Standard_Integer argc,
 {
   if (argc < 3)
   {
-    di << "Use: " << argv[0] << " Doc SHUOComponent_Label " << "\n";
+    di << "Use: " << argv[0] << " Doc SHUOComponent_Label \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   TDF_Label UL;
   TDF_Tool::Label(Doc->GetData(), argv[2], UL);
   if (UL.IsNull()) {
@@ -615,12 +615,12 @@ static Standard_Integer hasSHUO (Draw_Interpretor& di, Standard_Integer argc, co
 {
   if (argc < 3)
   {
-    di << "Use: " << argv[0] << " Doc SHUO_Label " << "\n";
+    di << "Use: " << argv[0] << " Doc SHUO_Label \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   TDF_Label UL;
   TDF_Tool::Label(Doc->GetData(), argv[2], UL);
   if (UL.IsNull()) {
@@ -641,12 +641,12 @@ static Standard_Integer getAllSHUO (Draw_Interpretor& di, Standard_Integer argc,
 {
   if (argc < 3)
   {
-    di << "Use: " << argv[0] << " Doc SHUO_Label " << "\n";
+    di << "Use: " << argv[0] << " Doc SHUO_Label \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_ShapeTool) myAssembly = XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
   TDF_Label UL;
   TDF_Tool::Label(Doc->GetData(), argv[2], UL);
@@ -671,12 +671,12 @@ static Standard_Integer findComponent (Draw_Interpretor& di, Standard_Integer ar
 {
   if (argc < 3)
   {
-    di << "Use: " << argv[0] << " Doc shape " << "\n";
+    di << "Use: " << argv[0] << " Doc shape \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_ShapeTool) myAssembly = XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
   TopoDS_Shape aShape;
   aShape = DBRep::Get(argv[2]);
@@ -697,12 +697,12 @@ static Standard_Integer getStyledComponent (Draw_Interpretor& di, Standard_Integ
 {
   if (argc < 4)
   {
-    di << "Use: " << argv[0] << " Doc res SHUO_label " << "\n";
+    di << "Use: " << argv[0] << " Doc res SHUO_label \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_ShapeTool) myAssembly = XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
   TopoDS_Shape aShape;
   TDF_Label aLabel;
@@ -712,7 +712,7 @@ static Standard_Integer getStyledComponent (Draw_Interpretor& di, Standard_Integ
     aShape = myAssembly->GetSHUOInstance( SHUO );
   
   if (aShape.IsNull()) {
-    di << "cannot get component" << "\n";
+    di << "cannot get component\n";
     return 1;
   }
   DBRep::Set ( argv[2], aShape );
@@ -724,12 +724,12 @@ static Standard_Integer getAllStyledComponents (Draw_Interpretor& di, Standard_I
 {
   if (argc < 4)
   {
-    di << "Use: " << argv[0] << " Doc res SHUO_label " << "\n";
+    di << "Use: " << argv[0] << " Doc res SHUO_label \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_ShapeTool) myAssembly = XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
   TopTools_SequenceOfShape aShapes;
   TDF_Label aLabel;
@@ -755,12 +755,12 @@ static Standard_Integer findSHUO (Draw_Interpretor& di, Standard_Integer argc, c
 {
   if (argc < 4)
   {
-    di << "Use: " << argv[0] << " Doc labels " << "\n";
+    di << "Use: " << argv[0] << " Doc labels \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_ShapeTool) myAssembly = XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
   TDF_LabelSequence aLabSeq;
   for (Standard_Integer i = 3; i <= argc; i++) {
@@ -772,12 +772,12 @@ static Standard_Integer findSHUO (Draw_Interpretor& di, Standard_Integer argc, c
       di << argv[i - 1] << " is null label"  << "\n";
   }
   if (aLabSeq.Length() < 2) {
-    di << "Error: couldnot find SHUO between on less then 2 labels" << "\n";
+    di << "Error: couldnot find SHUO between on less then 2 labels\n";
   }
   Handle(XCAFDoc_GraphNode) SHUO;
   myAssembly->FindSHUO( aLabSeq, SHUO );
   if (SHUO.IsNull()) {
-    di << "cannot find SHUO" << "\n";
+    di << "cannot find SHUO\n";
     return 1;
   }
   TCollection_AsciiString Entry;
@@ -791,17 +791,17 @@ static Standard_Integer setStyledComponent (Draw_Interpretor& di, Standard_Integ
 {
   if (argc < 3)
   {
-    di << "Use: " << argv[0] << " Doc shape " << "\n";
+    di << "Use: " << argv[0] << " Doc shape \n";
     return 1;
   }
   Handle(TDocStd_Document) Doc;   
   DDocStd::GetDocument(argv[1], Doc);
-  if ( Doc.IsNull() ) { di << argv[1] << " is not a document" << "\n"; return 1; }
+  if ( Doc.IsNull() ) { di << argv[1] << " is not a document\n"; return 1; }
   Handle(XCAFDoc_ShapeTool) myAssembly = XCAFDoc_DocumentTool::ShapeTool(Doc->Main());
   TopoDS_Shape aShape;
   aShape = DBRep::Get(argv[2]);
   if (aShape.IsNull()) {
-    di << "Shape " << argv[2] << " is null" << "\n";
+    di << "Shape " << argv[2] << " is null\n";
     return 1;
   }
   Handle(XCAFDoc_GraphNode) aSHUOAttr;
index 0dc6a1814c9e258f61896b18ff8cb870e382d11c..09c3e1497e3b8a268730c3ca0dd4eb9f80d53b53 100644 (file)
@@ -443,16 +443,16 @@ static IFSelect_ReturnStatus XSControl_tpstat(const Handle(IFSelect_SessionPilot
   if (mod1 < -1) sout<<"Unknown Mode"<<endl;
   if (mod1 < 0) {
     sout<<"Modes available :\n"
-      <<"g : general    c : checks (count)  C (list)"<<"\n"
-      <<"               f : fails  (count)  F (list)"<<"\n"
-      <<"  n : numbers of transferred entities (on TRANSFER ROOTS)"<<"\n"
-      <<"  s : their status (type entity-result , presence checks)"<<"\n"
-      <<"  b : detail of binders"<<"\n"
-      <<"  t : count per entity type    r : per type/status result"<<"\n"
-      <<"  l : count per couple  type entity/result"<<"\n"
-      <<"  L : list  per couple  type entity/result"<<"\n"
-      <<"  *n  *s  *b  *t  *r  *l  *L : idem on ALL recorded items"<<"\n"
-      <<"  ?n  ?s  ?b  ?t ... : idem on abnormal items"<<"\n"
+      <<"g : general    c : checks (count)  C (list)\n"
+      <<"               f : fails  (count)  F (list)\n"
+      <<"  n : numbers of transferred entities (on TRANSFER ROOTS)\n"
+      <<"  s : their status (type entity-result , presence checks)\n"
+      <<"  b : detail of binders\n"
+      <<"  t : count per entity type    r : per type/status result\n"
+      <<"  l : count per couple  type entity/result\n"
+      <<"  L : list  per couple  type entity/result\n"
+      <<"  *n  *s  *b  *t  *r  *l  *L : idem on ALL recorded items\n"
+      <<"  ?n  ?s  ?b  ?t ... : idem on abnormal items\n"
       <<"  n select : n applied on a selection   idem for  s b t r l"<<endl;
     if (mod1 < -1) return IFSelect_RetError;
     return IFSelect_RetVoid;
index 4e408c0ee615561291c4d6dde502a84ee86a1568..48f5df3eaa23f614e0fb97afb7b6675b7d0e4d34 100644 (file)
@@ -116,8 +116,8 @@ static Standard_Integer igesbrep (Draw_Interpretor& di, Standard_Integer argc, c
   progress->Show();
 
   if (readstat != IFSelect_RetDone) {
-    if (modfic) di<<"Could not read file "<<fnom.ToCString()<<" , abandon"<<"\n";
-    else di<<"No model loaded"<<"\n";
+    if (modfic) di<<"Could not read file "<<fnom.ToCString()<<" , abandon\n";
+    else di<<"No model loaded\n";
     return 1;
   }
 // Choice of treatment
@@ -140,14 +140,14 @@ static Standard_Integer igesbrep (Draw_Interpretor& di, Standard_Integer argc, c
     }
 
     if (modepri == 0) {  //fin
-      di << "Bye and good luck! " << "\n";
+      di << "Bye and good luck! \n";
       break;
     } 
 
     else if (modepri <= 2) {  // 1 : Visible Roots, 2 : All Roots
-      di << "All Geometry Transfer"<<"\n";
-      di<<"spline_continuity (read) : "<<Interface_Static::IVal("read.iges.bspline.continuity")<<" (0 : no modif, 1 : C1, 2 : C2)"<<"\n";
-      di<<"  To modify : command  param read.iges.bspline.continuity"<<"\n";
+      di << "All Geometry Transfer\n";
+      di<<"spline_continuity (read) : "<<Interface_Static::IVal("read.iges.bspline.continuity")<<" (0 : no modif, 1 : C1, 2 : C2)\n";
+      di<<"  To modify : command  param read.iges.bspline.continuity\n";
       Handle(XSControl_WorkSession) thesession = Reader.WS();
       thesession->ClearContext();
       XSDRAW::SetTransferProcess (thesession->MapReader());
@@ -177,7 +177,7 @@ static Standard_Integer igesbrep (Draw_Interpretor& di, Standard_Integer argc, c
       if ( answer == 1 || answer == 3) {
        TopoDS_Shape shape = Reader.OneShape();
        // save the shape
-       if (shape.IsNull()) { di<<"No Shape produced"<<"\n"; continue; }
+       if (shape.IsNull()) { di<<"No Shape produced\n"; continue; }
        char fname[110];
        Sprintf(fname, "%s", rnom.ToCString());
        di << "Saving shape in variable Draw : " << fname << "\n";
@@ -189,7 +189,7 @@ static Standard_Integer igesbrep (Draw_Interpretor& di, Standard_Integer argc, c
        catch(Standard_Failure) {
          di << "** Exception : ";
          di << Standard_Failure::Caught()->GetMessageString();
-         di<<" ** Skip"<<"\n";
+         di<<" ** Skip\n";
          di << "Saving shape in variable Draw : " << fname << "\n";
          IGESToBRep::WriteShape (shape,1);
        }
@@ -200,7 +200,7 @@ static Standard_Integer igesbrep (Draw_Interpretor& di, Standard_Integer argc, c
        for (Standard_Integer inum = 1; inum <= numshape; inum++) {
          // save all the shapes
          TopoDS_Shape shape = Reader.Shape(inum);
-         if (shape.IsNull()) { di<<"No Shape produced"<<"\n"; continue; }
+         if (shape.IsNull()) { di<<"No Shape produced\n"; continue; }
          char fname[110];
          Sprintf(fname, "%s_%d", rnom.ToCString(),inum);
          di << "Saving shape in variable Draw : " << fname << "\n";
@@ -212,7 +212,7 @@ static Standard_Integer igesbrep (Draw_Interpretor& di, Standard_Integer argc, c
          catch(Standard_Failure) {
            di << "** Exception : ";
            di << Standard_Failure::Caught()->GetMessageString();
-           di<<" ** Skip"<<"\n";
+           di<<" ** Skip\n";
          }
        }
       }
@@ -226,12 +226,12 @@ static Standard_Integer igesbrep (Draw_Interpretor& di, Standard_Integer argc, c
       cout << " give the number of the Entity : " << flush;
       nent = XSDRAW::GetEntityNumber();
 
-      if (!Reader.TransferOne (nent)) di<<"Transfer entity n0 "<<nent<<" : no result"<<"\n";
+      if (!Reader.TransferOne (nent)) di<<"Transfer entity n0 "<<nent<<" : no result\n";
       else {
        nbs = Reader.NbShapes();
        char shname[30];  Sprintf (shname,"%s_%d",rnom.ToCString(),nent);
        di<<"Transfer entity n0 "<<nent<<" OK  -> DRAW Shape: "<<shname<<"\n";
-       di<<"Now, "<<nbs<<" Shapes produced"<<"\n";
+       di<<"Now, "<<nbs<<" Shapes produced\n";
        TopoDS_Shape sh = Reader.Shape(nbs);
        DBRep::Set (shname,sh);
       }
@@ -246,9 +246,9 @@ static Standard_Integer igesbrep (Draw_Interpretor& di, Standard_Integer argc, c
 //   *r donne xst-model-roots (TOUTES racines)
 
       if( fromtcl && argv[3][0]=='*' && argv[3][1]=='\0' ) {         
-        di << "All Geometry Transfer"<<"\n";
-        di<<"spline_continuity (read) : "<<Interface_Static::IVal("read.iges.bspline.continuity")<<" (0 : no modif, 1 : C1, 2 : C2)"<<"\n";
-        di<<"  To modify : command  param read.iges.bspline.continuity"<<"\n";
+        di << "All Geometry Transfer\n";
+        di<<"spline_continuity (read) : "<<Interface_Static::IVal("read.iges.bspline.continuity")<<" (0 : no modif, 1 : C1, 2 : C2)\n";
+        di<<"  To modify : command  param read.iges.bspline.continuity\n";
         Handle(XSControl_WorkSession) thesession = Reader.WS();
         thesession->ClearContext();
         XSDRAW::SetTransferProcess (thesession->MapReader());
@@ -276,7 +276,7 @@ static Standard_Integer igesbrep (Draw_Interpretor& di, Standard_Integer argc, c
         catch(Standard_Failure) {
           di << "** Exception : ";
          di << Standard_Failure::Caught()->GetMessageString();
-         di<<" ** Skip"<<"\n";
+         di<<" ** Skip\n";
           di << "Saving shape in variable Draw : " << fname << "\n";
           IGESToBRep::WriteShape (shape,1);
         }                                                                             
@@ -295,7 +295,7 @@ static Standard_Integer igesbrep (Draw_Interpretor& di, Standard_Integer argc, c
          list = XSDRAW::GetList (compart.ToCString());
        }
        if (list.IsNull()) {
-          di<<"No list defined. Give a selection name or * for all visible transferrable roots"<<"\n";
+          di<<"No list defined. Give a selection name or * for all visible transferrable roots\n";
           continue;
         }
       }
@@ -339,12 +339,12 @@ static Standard_Integer igesbrep (Draw_Interpretor& di, Standard_Integer argc, c
          
            nent = Reader.Model()->Number(list->Value(ill));
            if (nent == 0) continue;
-           if (!Reader.TransferOne(nent)) di<<"Transfer entity n0 "<<nent<<" : no result"<<"\n";
+           if (!Reader.TransferOne(nent)) di<<"Transfer entity n0 "<<nent<<" : no result\n";
            else {
              nbs = Reader.NbShapes();
              char shname[30];  Sprintf (shname,"%s_%d",rnom.ToCString(),nbs);
              di<<"Transfer entity n0 "<<nent<<" OK  -> DRAW Shape: "<<shname<<"\n";
-             di<<"Now, "<<nbs<<" Shapes produced"<<"\n";
+             di<<"Now, "<<nbs<<" Shapes produced\n";
              TopoDS_Shape sh = Reader.Shape(nbs);
              DBRep::Set (shname,sh);
               nbt++;
@@ -371,8 +371,8 @@ static Standard_Integer testread (Draw_Interpretor& di, Standard_Integer argc, c
 {
   if (argc != 3)                                                                                      
     {                                                                                             
-      di << "ERROR in " << argv[0] << "Wrong Number of Arguments."<<"\n";                     
-      di << " Usage : " << argv[0] <<" file_name shape_name"<< "\n";                          
+      di << "ERROR in " << argv[0] << "Wrong Number of Arguments.\n";                     
+      di << " Usage : " << argv[0] <<" file_name shape_name\n";                          
       return 1;                                                                                 
     }  
   IGESControl_Reader Reader;
@@ -380,11 +380,11 @@ static Standard_Integer testread (Draw_Interpretor& di, Standard_Integer argc, c
   IFSelect_ReturnStatus readstat =  Reader.ReadFile(filename);
   di<<"Status from reading IGES file "<<filename<<" : ";  
   switch(readstat) {                                                              
-    case IFSelect_RetVoid  : { di<<"empty file"<<"\n"; return 1; }            
-    case IFSelect_RetDone  : { di<<"file read"<<"\n";    break; }             
-    case IFSelect_RetError : { di<<"file not found"<<"\n";   return 1; }      
-    case IFSelect_RetFail  : { di<<"error during read"<<"\n";  return 1; }    
-    default  :  { di<<"failure"<<"\n";   return 1; }                          
+    case IFSelect_RetVoid  : { di<<"empty file\n"; return 1; }            
+    case IFSelect_RetDone  : { di<<"file read\n";    break; }             
+    case IFSelect_RetError : { di<<"file not found\n";   return 1; }      
+    case IFSelect_RetFail  : { di<<"error during read\n";  return 1; }    
+    default  :  { di<<"failure\n";   return 1; }                          
   }       
   Reader.TransferRoots();
   TopoDS_Shape shape = Reader.OneShape();
@@ -411,7 +411,7 @@ static Standard_Integer brepiges (Draw_Interpretor& di, Standard_Integer n, cons
                          Interface_Static::IVal("write.iges.brep.mode"));
   di<<"unit (write) : "<<Interface_Static::CVal("write.iges.unit")<<"\n";
   di<<"mode  write  : "<<Interface_Static::CVal("write.iges.brep.mode")<<"\n";
-  di<<"  To modifiy : command  param"<<"\n";
+  di<<"  To modifiy : command  param\n";
 
 //  Mode d emploi (K4B ->) : brepiges shape [+shape][ +shape] nomfic
 //   c a d tant qu il y a des + on ajoute ce qui suit
@@ -442,11 +442,11 @@ static Standard_Integer brepiges (Draw_Interpretor& di, Standard_Integer n, cons
   progress->NewScope(10,"Writing");
   progress->Show();
 
-  di<<npris<<" Shapes written, giving "<<XSDRAW::Model()->NbEntities()<<" Entities"<<"\n";
+  di<<npris<<" Shapes written, giving "<<XSDRAW::Model()->NbEntities()<<" Entities\n";
 
   if ( ! nomfic ) // delayed write
   {
-    di<<" Now, to write a file, command : writeall filename"<<"\n";
+    di<<" Now, to write a file, command : writeall filename\n";
     return 0;
   }
 
@@ -469,8 +469,8 @@ static Standard_Integer testwrite (Draw_Interpretor& di, Standard_Integer n, con
 {
   if (n != 3)                                                                                      
     {                                                                                             
-      di << "ERROR in " << a[0] << "Wrong Number of Arguments."<<"\n";                     
-      di << " Usage : " << a[0] <<" file_name shape_name"<< "\n";                          
+      di << "ERROR in " << a[0] << "Wrong Number of Arguments.\n";                     
+      di << " Usage : " << a[0] <<" file_name shape_name\n";                          
       return 1;                                                                                 
     }
   IGESControl_Writer Writer;
@@ -478,15 +478,15 @@ static Standard_Integer testwrite (Draw_Interpretor& di, Standard_Integer n, con
   TopoDS_Shape shape = DBRep::Get(a[2]); 
   Standard_Boolean ok = Writer.AddShape(shape);
   if(!ok){
-    di<<"Shape not add"<<"\n";
+    di<<"Shape not add\n";
     return 1;
   }
   
   if(!(Writer.Write(filename))){
-    di<<"Error on writing file"<<"\n";
+    di<<"Error on writing file\n";
     return 1;
   }
-  di<<"File Is Written"<<"\n"; 
+  di<<"File Is Written\n"; 
   return 0;
 }
 //--------------------------------------------------------------
@@ -498,12 +498,12 @@ static Standard_Integer testwrite (Draw_Interpretor& di, Standard_Integer n, con
 static Standard_Integer igesparam (Draw_Interpretor& di, Standard_Integer , const char** ) 
 {
 //  liste des parametres
-  di<<"List of parameters which control IGES :"<<"\n";
-  di<<"  unit : write.iges.unit\n  mode write : write.iges.brep.mode\n  spline_continuity (read) : read.iges.bspline.continuity\nSee definition by  defparam, read/edit value by  param"<<"\n";
+  di<<"List of parameters which control IGES :\n";
+  di<<"  unit : write.iges.unit\n  mode write : write.iges.brep.mode\n  spline_continuity (read) : read.iges.bspline.continuity\nSee definition by  defparam, read/edit value by  param\n";
   di<<"unit (write) : "<<Interface_Static::CVal("write.iges.unit")<<"\n";
   di<<"mode  write  : "<<Interface_Static::CVal("write.iges.brep.mode")<<"\n";
-  di<<"spline_continuity (read) : "<<Interface_Static::IVal("read.iges.bspline.continuity")<<" (0 : no modif, 1 : C1, 2 : C2)"<<"\n";
-  di<<"\n"<<" To modifier, param nom_param new_val"<<"\n";
+  di<<"spline_continuity (read) : "<<Interface_Static::IVal("read.iges.bspline.continuity")<<" (0 : no modif, 1 : C1, 2 : C2)\n";
+  di<<"\n To modifier, param nom_param new_val\n";
   return 0;
 }
 
@@ -529,7 +529,7 @@ static Standard_Integer XSDRAWIGES_tplosttrim (Draw_Interpretor& di, Standard_In
   typarg.SetValue(1,"IGESGeom_TrimmedSurface");
   typarg.SetValue(2,"IGESGeom_BoundedSurface");
   typarg.SetValue(3,"IGESSolid_Face");
-  if (TP.IsNull()) { di<<"No Transfer Read"<<"\n"; return 1; }
+  if (TP.IsNull()) { di<<"No Transfer Read\n"; return 1; }
   Standard_Integer nbFaces = 0, totFaces = 0 ;
   Handle(IFSelect_WorkSession) WS = pilot->Session(); 
   Transfer_IteratorOfProcessForTransient itrp = TP->AbnormalResult(); 
@@ -541,14 +541,14 @@ static Standard_Integer XSDRAWIGES_tplosttrim (Draw_Interpretor& di, Standard_In
       if(typarg.Value(k).Location(Arg,1,typarg.Value(k).Length()) != 0) break;
     }
   }   
-  if( k == 4) {di<< "Invalid argument"<<"\n"; return 0; }
+  if( k == 4) {di<< "Invalid argument\n"; return 0; }
   for(Standard_Integer j = 1 ; j <= 3; j++) {
     TColStd_MapOfTransient aMap;
     if(narg == 1) k=j;
     Handle(TColStd_HSequenceOfTransient) list = IFSelect_Functions::GiveList(pilot->Session(),strarg.Value(k).ToCString());
     if (!list.IsNull()) itrp.Filter (list);
     else {
-      di << "No untrimmed faces" << "\n";
+      di << "No untrimmed faces\n";
       return 0;
     }
     for (itrp.Start(); itrp.More(); itrp.Next()) {
@@ -565,14 +565,14 @@ static Standard_Integer XSDRAWIGES_tplosttrim (Draw_Interpretor& di, Standard_In
       }
     }
     if(nbFaces != 0) {
-      if( j == 1 ) di << "Number of untrimmed faces: " << "\n";
+      if( j == 1 ) di << "Number of untrimmed faces: \n";
       switch(k){
       case 1:  
-       di << "Trimmed Surface: " << "\n"; break;
+       di << "Trimmed Surface: \n"; break;
       case 2:
-       di << "Bounded Surface: " << "\n"; break;
+       di << "Bounded Surface: \n"; break;
       case 3:
-       di << "Face: " << "\n"; break;
+       di << "Face: \n"; break;
       }
 
       TColStd_MapIteratorOfMapOfTransient itmap;
@@ -581,14 +581,14 @@ static Standard_Integer XSDRAWIGES_tplosttrim (Draw_Interpretor& di, Standard_In
         di << "  ";
       }
       di << "\n";
-      di << "\n" << "Number:"<< nbFaces << "\n";
+      di << "\nNumber:"<< nbFaces << "\n";
       totFaces += nbFaces;
     }
     if(narg > 1) break;
     nbFaces = 0;
   }
   
-  if(totFaces == 0) di << "No untrimmed faces" << "\n";
+  if(totFaces == 0) di << "No untrimmed faces\n";
   else              di << "Total number :" << totFaces << "\n";
   return 0;
 }
@@ -607,10 +607,10 @@ static Standard_Integer XSDRAWIGES_TPSTAT(Draw_Interpretor& di,Standard_Integer
    IGESControl_Reader read; //(XSControl::Session(pilot),Standard_False);
   //read.SetTransientProcess(TP);
 //        ****    tpent        ****
-//  if (TP.IsNull()) { di<<"No Transfer Read"<<"\n"; return IFSelect_RetError;}
+//  if (TP.IsNull()) { di<<"No Transfer Read\n"; return IFSelect_RetError;}
   Handle(Interface_InterfaceModel) model = TP->Model();
   //Handle(Interface_InterfaceModel) model = read.Model();
-  if (model.IsNull()) {di<<"No Transfer Read"<<"\n"; return -1;}
+  if (model.IsNull()) {di<<"No Transfer Read\n"; return -1;}
  //DeclareAndCast(IGESData_IGESModel,modelig,model);
  // read.SetModel(modelig);
   Handle(XSControl_WorkSession) thesession = read.WS();
@@ -629,12 +629,12 @@ static Standard_Integer XSDRAWIGES_TPSTAT(Draw_Interpretor& di,Standard_Integer
     default  : mod1 = -2; break;
     }
   }
-  if (mod1 < -1) di<<"Unknown Mode"<<"\n";
+  if (mod1 < -1) di<<"Unknown Mode\n";
   if (mod1 < 0) {
     di<<"Modes available :\n"
-      <<"g : general    c : checks (count)  C (list)"<<"\n"
-      <<"r : number of CasCade resulting shapes"<<"\n"
-      <<"s : mapping between IGES entities and CasCade shapes"<<"\n";
+      <<"g : general    c : checks (count)  C (list)\n"
+      <<"r : number of CasCade resulting shapes\n"
+      <<"s : mapping between IGES entities and CasCade shapes\n";
     if (mod1 < -1) return -1;
     return 0;
   }
@@ -644,7 +644,7 @@ static Standard_Integer XSDRAWIGES_TPSTAT(Draw_Interpretor& di,Standard_Integer
 static Standard_Integer etest(Draw_Interpretor& di, Standard_Integer argc, const char** a)
 {
   if(argc < 3) {
-    di<<"etest igesfile shape"<<"\n";
+    di<<"etest igesfile shape\n";
     return 0;
   }
   IGESControl_Reader aReader;
index 6adfcfafc9c06517962b748741a098a03e80736b..5fc4be0af70515c1623630bdaeedc1082cdc63b0 100644 (file)
@@ -146,8 +146,8 @@ static Standard_Integer stepread (Draw_Interpretor& di/*theCommands*/, Standard_
   progress->Show();
 
   if (readstat != IFSelect_RetDone) {
-    if (modfic) di<<"Could not read file "<<fnom.ToCString()<<" , abandon"<<"\n";
-    else di<<"No model loaded"<<"\n";
+    if (modfic) di<<"Could not read file "<<fnom.ToCString()<<" , abandon\n";
+    else di<<"No model loaded\n";
     return 1;
   }
   
@@ -169,7 +169,7 @@ static Standard_Integer stepread (Draw_Interpretor& di/*theCommands*/, Standard_
       cin>>modepri;
     }
 
-    if (modepri == 0) { di<<"End Reading STEP"<<"\n"; return 0; }
+    if (modepri == 0) { di<<"End Reading STEP\n"; return 0; }
     if (modepri <= 2) {
       num = 1;
       if (modepri == 2) {
@@ -180,12 +180,12 @@ static Standard_Integer stepread (Draw_Interpretor& di/*theCommands*/, Standard_
       progress->Show();
       sr.WS()->MapReader()->SetProgress ( progress );
 
-      if (!sr.TransferRoot (num)) di<<"Transfer root n0 "<<num<<" : no result"<<"\n";
+      if (!sr.TransferRoot (num)) di<<"Transfer root n0 "<<num<<" : no result\n";
       else {
         nbs = sr.NbShapes();
         char shname[30];  Sprintf (shname,"%s_%d",rnom.ToCString(),nbs);
         di<<"Transfer root n0 "<<num<<" OK  -> DRAW Shape: "<<shname<<"\n";
-        di<<"Now, "<<nbs<<" Shapes produced"<<"\n";
+        di<<"Now, "<<nbs<<" Shapes produced\n";
         TopoDS_Shape sh = sr.Shape(nbs);
         DBRep::Set (shname,sh);
       }
@@ -196,12 +196,12 @@ static Standard_Integer stepread (Draw_Interpretor& di/*theCommands*/, Standard_
     }
     else if (modepri == 3) {
       cout<<"Entity : "<<flush;  num = XSDRAW::GetEntityNumber();
-      if (!sr.TransferOne (num)) di<<"Transfer entity n0 "<<num<<" : no result"<<"\n";
+      if (!sr.TransferOne (num)) di<<"Transfer entity n0 "<<num<<" : no result\n";
       else {
         nbs = sr.NbShapes();
         char shname[30];  Sprintf (shname,"%s_%d",rnom.ToCString(),num);
         di<<"Transfer entity n0 "<<num<<" OK  -> DRAW Shape: "<<shname<<"\n";
-        di<<"Now, "<<nbs<<" Shapes produced"<<"\n";
+        di<<"Now, "<<nbs<<" Shapes produced\n";
         TopoDS_Shape sh = sr.Shape(nbs);
         DBRep::Set (shname,sh);
       }
@@ -227,11 +227,11 @@ static Standard_Integer stepread (Draw_Interpretor& di/*theCommands*/, Standard_
           di<<" : ";
           list = XSDRAW::GetList (argv[k], ( argc > (k+1) ? argv[k+1] : 0 ) );
         }
-        if (list.IsNull()) { di<<"No list defined. Give a selection name or * for all transferrable roots"<<"\n"; continue; }
+        if (list.IsNull()) { di<<"No list defined. Give a selection name or * for all transferrable roots\n"; continue; }
       } else {
         cout<<"Name of Selection :"<<flush;
         list = XSDRAW::GetList();
-        if (list.IsNull()) { di<<"No list defined"<<"\n"; continue; }
+        if (list.IsNull()) { di<<"No list defined\n"; continue; }
       }
 
       Standard_Integer ill, nbl = list->Length();
@@ -246,12 +246,12 @@ static Standard_Integer stepread (Draw_Interpretor& di/*theCommands*/, Standard_
       for (ill = 1; ill <= nbl && PSentry.More(); ill ++, PSentry.Next()) {
         num = sr.Model()->Number(list->Value(ill));
         if (num == 0) continue;
-        if (!sr.TransferOne(num)) di<<"Transfer entity n0 "<<num<<" : no result"<<"\n";
+        if (!sr.TransferOne(num)) di<<"Transfer entity n0 "<<num<<" : no result\n";
         else {
           nbs = sr.NbShapes();
           char shname[30];  Sprintf (shname,"%s_%d",rnom.ToCString(),nbs);
           di<<"Transfer entity n0 "<<num<<" OK  -> DRAW Shape: "<<shname<<"\n";
-          di<<"Now, "<<nbs<<" Shapes produced"<<"\n";
+          di<<"Now, "<<nbs<<" Shapes produced\n";
           TopoDS_Shape sh = sr.Shape(nbs);
           DBRep::Set (shname,sh);
         }
@@ -273,8 +273,8 @@ static Standard_Integer testread (Draw_Interpretor& di, Standard_Integer argc, c
 {
   if (argc != 3)                                                                                      
     {                                                                                             
-      di << "ERROR in " << argv[0] << "Wrong Number of Arguments."<<"\n";                     
-      di << " Usage : " << argv[0] <<" file_name shape_name"<< "\n";                          
+      di << "ERROR in " << argv[0] << "Wrong Number of Arguments.\n";                     
+      di << " Usage : " << argv[0] <<" file_name shape_name\n";                          
       return 1;                                                                                 
     }
   STEPControl_Reader Reader;
@@ -282,11 +282,11 @@ static Standard_Integer testread (Draw_Interpretor& di, Standard_Integer argc, c
   IFSelect_ReturnStatus readstat = Reader.ReadFile(filename);
   di<<"Status from reading STEP file "<<filename<<" : ";  
   switch(readstat) {                                                              
-    case IFSelect_RetVoid  : { di<<"empty file"<<"\n"; return 1; }            
-    case IFSelect_RetDone  : { di<<"file read"<<"\n";    break; }             
-    case IFSelect_RetError : { di<<"file not found"<<"\n";   return 1; }      
-    case IFSelect_RetFail  : { di<<"error during read"<<"\n";  return 1; }    
-    default  :  { di<<"failure"<<"\n";   return 1; }                          
+    case IFSelect_RetVoid  : { di<<"empty file\n"; return 1; }            
+    case IFSelect_RetDone  : { di<<"file read\n";    break; }             
+    case IFSelect_RetError : { di<<"file not found\n";   return 1; }      
+    case IFSelect_RetFail  : { di<<"error during read\n";  return 1; }    
+    default  :  { di<<"failure\n";   return 1; }                          
   }  
   Reader.TransferRoots();
   TopoDS_Shape shape = Reader.OneShape();
@@ -303,7 +303,7 @@ static Standard_Integer testread (Draw_Interpretor& di, Standard_Integer argc, c
 
 static Standard_Integer steptrans (Draw_Interpretor& di, Standard_Integer argc, const char** argv) 
 {
-  if (argc < 5) { di<<"give shape-name new-shape + entity-n0 entity-n0: AXIS2"<<"\n";
+  if (argc < 5) { di<<"give shape-name new-shape + entity-n0 entity-n0: AXIS2\n";
                  return 1; }
   TopoDS_Shape shape = DBRep::Get(argv[1]);
   if (shape.IsNull()) { di<<"Not a shape : "<<argv[1]<<"\n"; return 1; }
@@ -323,7 +323,7 @@ static Standard_Integer steptrans (Draw_Interpretor& di, Standard_Integer argc,
     DBRep::Set (argv[2],shape);
     di<<"Transformed Shape as "<<argv[2]<<"\n";
   }
-  else di<<"No transformation computed"<<"\n";
+  else di<<"No transformation computed\n";
   return 0;
 }
 
@@ -345,9 +345,9 @@ static Standard_Integer stepwrite (Draw_Interpretor& di, Standard_Integer argc,
   }
 
   if (argc < 3) {
-    di<<"Give mode[1-4] and Shape name + optional file. Mode possible"<<"\n";
+    di<<"Give mode[1-4] and Shape name + optional file. Mode possible\n";
     di<<"f ou 1 : FacettedBRep        s ou 2 : ShellBasedSurfaceModel\n"
-        <<"m ou 3 : ManifoldSolidBrep   w ou 4 : GeometricCurveSet/WireFrame"<<"\n";
+        <<"m ou 3 : ManifoldSolidBrep   w ou 4 : GeometricCurveSet/WireFrame\n";
     return 1; }
   char modeshape = argv[1][0];
   STEPControl_StepModelType mode;
@@ -362,7 +362,7 @@ static Standard_Integer stepwrite (Draw_Interpretor& di, Standard_Integer argc,
     case '3' : mode = STEPControl_ManifoldSolidBrep;       break;
     case 'w' :
     case '4' : mode = STEPControl_GeometricCurveSet;       break;
-    default :  di<<"1st arg = mode, incorrect [give fsmw]"<<"\n"; return 1;
+    default :  di<<"1st arg = mode, incorrect [give fsmw]\n"; return 1;
   }
 
   //:k8 abv 6 Jan 98: using parameter for writing mode (assemblies/shapes)
@@ -400,22 +400,22 @@ static Standard_Integer stepwrite (Draw_Interpretor& di, Standard_Integer argc,
 //   Que s est-il passe
   stepmodel = sw.Model();
   Standard_Integer nbapres = (stepmodel.IsNull() ? 0 : stepmodel->NbEntities());
-  if (nbavant > 0) di<<"Beware : Model not empty before transferring"<<"\n";
-  if (nbapres <= nbavant) di<<"Beware : No data produced by this transfer"<<"\n";
-  if (nbapres == 0) { di<<"No data to write"<<"\n"; return 0; }
+  if (nbavant > 0) di<<"Beware : Model not empty before transferring\n";
+  if (nbapres <= nbavant) di<<"Beware : No data produced by this transfer\n";
+  if (nbapres == 0) { di<<"No data to write\n"; return 0; }
 
   if (argc <= 3) {
-    di<<" Now, to write a file, command : writeall filename"<<"\n";
+    di<<" Now, to write a file, command : writeall filename\n";
     return 0;
   }
 
   const char *nomfic = argv[3];
   stat = sw.Write(nomfic);
   switch (stat) {
-  case IFSelect_RetVoid : di<<"Error: No file written"<<"\n"; break;
-    case IFSelect_RetDone : di<<"File "<<nomfic<<" written"<<"\n"; break;
-    case IFSelect_RetStop : di<<"Error on writing file: no space on disk or destination is write protected"<<"\n"; break;
-    default : di<<"Error: File "<<nomfic<<" written with fail messages"<<"\n"; break;
+  case IFSelect_RetVoid : di<<"Error: No file written\n"; break;
+    case IFSelect_RetDone : di<<"File "<<nomfic<<" written\n"; break;
+    case IFSelect_RetStop : di<<"Error on writing file: no space on disk or destination is write protected\n"; break;
+    default : di<<"Error: File "<<nomfic<<" written with fail messages\n"; break;
   }
 
   progress->EndScope();
@@ -431,8 +431,8 @@ static Standard_Integer testwrite (Draw_Interpretor& di, Standard_Integer argc,
 {
   if (argc != 3)                                                                                      
     {                                                                                             
-      di << "ERROR in " << argv[0] << "Wrong Number of Arguments."<<"\n";                     
-      di << " Usage : " << argv[0] <<" file_name shape_name "<< "\n"; 
+      di << "ERROR in " << argv[0] << "Wrong Number of Arguments.\n";                     
+      di << " Usage : " << argv[0] <<" file_name shape_name \n"; 
       return 1;                                                                                 
     }
   STEPControl_Writer Writer;
@@ -441,10 +441,10 @@ static Standard_Integer testwrite (Draw_Interpretor& di, Standard_Integer argc,
   IFSelect_ReturnStatus stat = Writer.Transfer(shape,STEPControl_AsIs);
   stat = Writer.Write(filename);
   if(stat != IFSelect_RetDone){
-    di<<"Error on writing file"<<"\n";                                                               
+    di<<"Error on writing file\n";                                                               
     return 1; 
   }
-  di<<"File Is Written"<<"\n";
+  di<<"File Is Written\n";
   return 0;
 }
 
@@ -509,7 +509,7 @@ static Standard_Integer stepfileunits (Draw_Interpretor& di, Standard_Integer ar
  
   if (readstat != IFSelect_RetDone) {
     
-    di<<"No model loaded"<<"\n";
+    di<<"No model loaded\n";
     return 1;
   }
 
@@ -520,17 +520,17 @@ static Standard_Integer stepfileunits (Draw_Interpretor& di, Standard_Integer ar
                                    
   Standard_Integer i =1;
   di<<"=====================================================\n";
-  di<<"LENTH Unit"<<"\n";
+  di<<"LENTH Unit\n";
   for( ; i <= anUnitLengthNames.Length() ; i++)
     di<<anUnitLengthNames(i).ToCString()<<"\n";
   
   di<<"=====================================================\n";
-  di<<"Angle Unit"<<"\n";
+  di<<"Angle Unit\n";
   for( i =1 ; i <= anUnitAngleNames.Length() ; i++)
     di<<anUnitAngleNames(i).ToCString()<<"\n";
 
   di<<"=====================================================\n";
-  di<<"Solid Angle Unit"<<"\n";
+  di<<"Solid Angle Unit\n";
   for( i =1 ; i <= anUnitSolidAngleNames.Length() ; i++)
     di<<anUnitSolidAngleNames(i).ToCString()<<"\n";
   
index c5ef90770ebdfde8bda07dd27df8c375e66d3ff2..b0ac14a3b4e061c39a0b90b75faaf9aa5b9585c8 100644 (file)
@@ -86,7 +86,7 @@ static Standard_Integer writestl
 {
   if (argc < 3 || argc > 4) {
     di << "Use: " << argv[0]
-    << " shape file [ascii/binary (0/1) : 1 by default]" << "\n";
+    << " shape file [ascii/binary (0/1) : 1 by default]\n";
   } else {
     TopoDS_Shape aShape = DBRep::Get(argv[1]);
     Standard_Boolean isASCIIMode = Standard_False;
@@ -124,7 +124,7 @@ static Standard_Integer writevrml
 {
   if (argc < 3 || argc > 5) 
   {
-    di << "wrong number of parameters" << "\n";
+    di << "wrong number of parameters\n";
     return 0;
   }
 
@@ -235,7 +235,7 @@ static Standard_Integer loadvrml
       }
     }
     else {
-      di << "cannot open file" << "\n";
+      di << "cannot open file\n";
     }
 
 
@@ -250,15 +250,15 @@ static Standard_Integer createmesh
 {
   if (argc<3)
   {
-    di << "Wrong number of parameters" << "\n";
-    di << "Use: " << argv[0] << " <mesh name> <stl file>" << "\n";
+    di << "Wrong number of parameters\n";
+    di << "Use: " << argv[0] << " <mesh name> <stl file>\n";
     return 0;
   }
 
   Handle(AIS_InteractiveContext) aContext = ViewerTest::GetAISContext();
   if (aContext.IsNull())
   {
-    di << "No active view. Please call 'vinit' first" << "\n";
+    di << "No active view. Please call 'vinit' first\n";
     return 0;
   }
 
@@ -267,11 +267,11 @@ static Standard_Integer createmesh
   Handle(Draw_ProgressIndicator) aProgress = new Draw_ProgressIndicator (di, 1);
   Handle(StlMesh_Mesh) aSTLMesh = RWStl::ReadFile (aFile, aProgress);
 
-  di << "Reading OK..." << "\n";
+  di << "Reading OK...\n";
   Handle( XSDRAWSTLVRML_DataSource ) aDS = new XSDRAWSTLVRML_DataSource( aSTLMesh );
-  di << "Data source is created successful" << "\n";
+  di << "Data source is created successful\n";
   Handle( MeshVS_Mesh ) aMesh = new MeshVS_Mesh();
-  di << "MeshVS_Mesh is created successful" << "\n";
+  di << "MeshVS_Mesh is created successful\n";
 
   aMesh->SetDataSource( aDS );
   aMesh->AddBuilder( new MeshVS_MeshPrsBuilder( aMesh.operator->() ), Standard_True );
@@ -303,22 +303,22 @@ static Standard_Integer create3d
 {
   if (argc<2)
   {
-    di << "Wrong number of parameters" << "\n";
-    di << "Use: " << argv[0] << " <mesh name>" << "\n";
+    di << "Wrong number of parameters\n";
+    di << "Use: " << argv[0] << " <mesh name>\n";
     return 0;
   }
 
   Handle(AIS_InteractiveContext) aContext = ViewerTest::GetAISContext();
   if (aContext.IsNull())
   {
-    di << "No active view. Please call 'vinit' first" << "\n";
+    di << "No active view. Please call 'vinit' first\n";
     return 0;
   }
 
   Handle( XSDRAWSTLVRML_DataSource3D ) aDS = new XSDRAWSTLVRML_DataSource3D();
-  di << "Data source is created successful" << "\n";
+  di << "Data source is created successful\n";
   Handle( MeshVS_Mesh ) aMesh = new MeshVS_Mesh();
-  di << "MeshVS_Mesh is created successful" << "\n";
+  di << "MeshVS_Mesh is created successful\n";
 
   aMesh->SetDataSource( aDS );
   aMesh->AddBuilder( new MeshVS_MeshPrsBuilder( aMesh.operator->() ), Standard_True );
@@ -351,7 +351,7 @@ Handle( MeshVS_Mesh ) getMesh( const char* theName, Draw_Interpretor& di)
 
   if( aDrawMesh.IsNull() )
   {
-    di << "There is no such object" << "\n";
+    di << "There is no such object\n";
     return NULL;
   }
   else
@@ -359,7 +359,7 @@ Handle( MeshVS_Mesh ) getMesh( const char* theName, Draw_Interpretor& di)
     Handle( MeshVS_Mesh ) aMesh = aDrawMesh->GetMesh();
     if( aMesh.IsNull() )
     {
-      di << "There is invalid mesh" << "\n";
+      di << "There is invalid mesh\n";
       return NULL;
     }
     else
@@ -372,7 +372,7 @@ static Standard_Integer setcolor
 (Draw_Interpretor& di, Standard_Integer argc, const char** argv, Standard_Integer theParam )
 {
   if (argc<5)
-    di << "Wrong number of parameters" << "\n";
+    di << "Wrong number of parameters\n";
   else
   {
     Handle( MeshVS_Mesh ) aMesh = getMesh( argv[1], di );
@@ -387,7 +387,7 @@ static Standard_Integer setcolor
       Handle( AIS_InteractiveContext ) aContext = ViewerTest::GetAISContext();
 
       if( aContext.IsNull() )
-        di << "The context is null" << "\n";
+        di << "The context is null\n";
       else
         aContext->Redisplay( aMesh );
     }
@@ -411,7 +411,7 @@ static Standard_Integer meshmat
 (Draw_Interpretor& di, Standard_Integer argc, const char** argv )
 {
   if (argc<3)
-    di << "Wrong number of parameters" << "\n";
+    di << "Wrong number of parameters\n";
   else
   {
     Handle( MeshVS_Mesh ) aMesh = getMesh( argv[1], di );
@@ -433,7 +433,7 @@ static Standard_Integer meshmat
       Handle( AIS_InteractiveContext ) aContext = ViewerTest::GetAISContext();
 
       if( aContext.IsNull() )
-        di << "The context is null" << "\n";
+        di << "The context is null\n";
       else
         aContext->Redisplay( aMesh );
     }
@@ -445,7 +445,7 @@ static Standard_Integer shrink
 (Draw_Interpretor& di, Standard_Integer argc, const char** argv )
 {
   if (argc<3)
-    di << "Wrong number of parameters" << "\n";
+    di << "Wrong number of parameters\n";
   else
   {
     Handle( MeshVS_Mesh ) aMesh = getMesh( argv[1], di );
@@ -457,7 +457,7 @@ static Standard_Integer shrink
       Handle( AIS_InteractiveContext ) aContext = ViewerTest::GetAISContext();
 
       if( aContext.IsNull() )
-        di << "The context is null" << "\n";
+        di << "The context is null\n";
       else
         aContext->Redisplay( aMesh );
     }
@@ -470,7 +470,7 @@ static Standard_Integer closed (Draw_Interpretor& theDI, Standard_Integer theArg
 {
   if (theArgc < 3)
   {
-    theDI << "Wrong number of parameters." << "\n";
+    theDI << "Wrong number of parameters.\n";
   }
   else
   {
@@ -483,7 +483,7 @@ static Standard_Integer closed (Draw_Interpretor& theDI, Standard_Integer theArg
       Handle( AIS_InteractiveContext ) aContext = ViewerTest::GetAISContext();
       if (aContext.IsNull())
       {
-        theDI << "The context is null" << "\n";
+        theDI << "The context is null\n";
       }
       else
       {
@@ -500,7 +500,7 @@ static Standard_Integer mdisplay
 (Draw_Interpretor& di, Standard_Integer argc, const char** argv )
 {
   if (argc<2)
-    di << "Wrong number of parameters" << "\n";
+    di << "Wrong number of parameters\n";
   else
   {
     Handle( MeshVS_Mesh ) aMesh = getMesh( argv[1], di );
@@ -509,7 +509,7 @@ static Standard_Integer mdisplay
       Handle( AIS_InteractiveContext ) aContext = ViewerTest::GetAISContext();
 
       if( aContext.IsNull() )
-        di << "The context is null" << "\n";
+        di << "The context is null\n";
       else
       {
         if( aContext->HasOpenedContext() )
@@ -526,7 +526,7 @@ static Standard_Integer merase
 (Draw_Interpretor& di, Standard_Integer argc, const char** argv )
 {
   if (argc<2)
-    di << "Wrong number of parameters" << "\n";
+    di << "Wrong number of parameters\n";
   else
   {
     Handle( MeshVS_Mesh ) aMesh = getMesh( argv[1], di );
@@ -535,7 +535,7 @@ static Standard_Integer merase
       Handle( AIS_InteractiveContext ) aContext = ViewerTest::GetAISContext();
 
       if( aContext.IsNull() )
-        di << "The context is null" << "\n";
+        di << "The context is null\n";
       else
       {
         if( aContext->HasOpenedContext() )
@@ -545,7 +545,7 @@ static Standard_Integer merase
       }
     }
     else
-      di << "Mesh is null" << "\n";
+      di << "Mesh is null\n";
   }
   return 0;
 }
@@ -555,8 +555,8 @@ static Standard_Integer hidesel
 {
   if (argc<2)
   {
-    di << "Wrong number of parameters" << "\n";
-    di << "Use: " << argv[0] << " <mesh name>" << "\n";
+    di << "Wrong number of parameters\n";
+    di << "Use: " << argv[0] << " <mesh name>\n";
     return 0;
   }
 
@@ -564,12 +564,12 @@ static Standard_Integer hidesel
   Handle( MeshVS_Mesh ) aMesh = getMesh( argv[1], di );
   if( aMesh.IsNull() )
   {
-    di << "The mesh is invalid" << "\n";
+    di << "The mesh is invalid\n";
     return 0;
   }
 
   if( aContext.IsNull() )
-    di << "The context is null" << "\n";
+    di << "The context is null\n";
   else
   {
     Handle(TColStd_HPackedMapOfInteger) aHiddenNodes = aMesh->GetHiddenNodes();
@@ -612,8 +612,8 @@ static Standard_Integer showonly
 {
   if (argc<2)
   {
-    di << "Wrong number of parameters" << "\n";
-    di << "Use: " << argv[0] << " <mesh name>" << "\n";
+    di << "Wrong number of parameters\n";
+    di << "Use: " << argv[0] << " <mesh name>\n";
     return 0;
   }
 
@@ -622,12 +622,12 @@ static Standard_Integer showonly
   Handle( MeshVS_Mesh ) aMesh = getMesh( argv[1], di );
   if( aMesh.IsNull() )
   {
-    di << "The mesh is invalid" << "\n";
+    di << "The mesh is invalid\n";
     return 0;
   }
 
   if( aContext.IsNull() )
-    di << "The context is null" << "\n";
+    di << "The context is null\n";
   else
   {
     Handle(TColStd_HPackedMapOfInteger) aHiddenNodes =
@@ -663,8 +663,8 @@ static Standard_Integer showall
 {
   if (argc<2)
   {
-    di << "Wrong number of parameters" << "\n";
-    di << "Use: " << argv[0] << " <mesh name>" << "\n";
+    di << "Wrong number of parameters\n";
+    di << "Use: " << argv[0] << " <mesh name>\n";
     return 0;
   }
 
@@ -672,12 +672,12 @@ static Standard_Integer showall
   Handle( MeshVS_Mesh ) aMesh = getMesh( argv[1], di );
   if( aMesh.IsNull() )
   {
-    di << "The mesh is invalid" << "\n";
+    di << "The mesh is invalid\n";
     return 0;
   }
 
   if( aContext.IsNull() )
-    di << "The context is null" << "\n";
+    di << "The context is null\n";
   else
   {
     aMesh->SetHiddenNodes( new TColStd_HPackedMapOfInteger() );
@@ -698,15 +698,15 @@ static Standard_Integer meshcolors( Draw_Interpretor& di,
     OCC_CATCH_SIGNALS
       if ( argc < 4 )
       {
-        di << "Wrong number of parameters" << "\n";
-        di << "Use : meshcolors <mesh name> <mode> <isreflect>" << "\n";
-        di << "mode : {elem1|elem2|nodal|nodaltex|none}"<< "\n";
-        di << "       elem1 - different color for each element" << "\n";
-        di << "       elem2 - one color for one side"<<"\n";
-        di << "       nodal - different color for each node"<< "\n";
-        di << "       nodaltex - different color for each node with texture interpolation"<< "\n";
-        di << "       none  - clear"<< "\n";
-        di << "isreflect : {0|1} "<< "\n";
+        di << "Wrong number of parameters\n";
+        di << "Use : meshcolors <mesh name> <mode> <isreflect>\n";
+        di << "mode : {elem1|elem2|nodal|nodaltex|none}\n";
+        di << "       elem1 - different color for each element\n";
+        di << "       elem2 - one color for one side\n";
+        di << "       nodal - different color for each node\n";
+        di << "       nodaltex - different color for each node with texture interpolation\n";
+        di << "       none  - clear\n";
+        di << "isreflect : {0|1} \n";
 
         return 0;
       }
@@ -715,13 +715,13 @@ static Standard_Integer meshcolors( Draw_Interpretor& di,
 
       if ( aMesh.IsNull() )
       {
-        di << "Mesh not found" << "\n";
+        di << "Mesh not found\n";
         return 0;
       }
       Handle(AIS_InteractiveContext) anIC = ViewerTest::GetAISContext();
       if ( anIC.IsNull() )
       {
-        di << "The context is null" << "\n";
+        di << "The context is null\n";
         return 0;
       }
       if( !aMesh.IsNull() )
@@ -852,14 +852,14 @@ static Standard_Integer meshcolors( Draw_Interpretor& di,
         }
         else
         {
-          di << "Wrong mode name" << "\n";
+          di << "Wrong mode name\n";
           return 0;
         }
       }
   }
   catch ( Standard_Failure )
   {
-    di << "Error" << "\n";
+    di << "Error\n";
   }
 
   return 0;
@@ -871,12 +871,12 @@ static Standard_Integer meshvectors( Draw_Interpretor& di,
 {
   if ( argc < 3 )
   {
-    di << "Wrong number of parameters" << "\n";
-    di << "Use : meshvectors <mesh name> < -mode {elem|nodal|none} > [-maxlen len] [-color name] [-arrowpart ratio] [-issimple {1|0}]" << "\n";
-    di << "Supported mode values:"<< "\n";
-    di << "       elem  - vector per element" << "\n";
-    di << "       nodal - vector per node"<< "\n";
-    di << "       none  - clear"<< "\n";
+    di << "Wrong number of parameters\n";
+    di << "Use : meshvectors <mesh name> < -mode {elem|nodal|none} > [-maxlen len] [-color name] [-arrowpart ratio] [-issimple {1|0}]\n";
+    di << "Supported mode values:\n";
+    di << "       elem  - vector per element\n";
+    di << "       nodal - vector per node\n";
+    di << "       none  - clear\n";
 
     return 0;
   }
@@ -885,13 +885,13 @@ static Standard_Integer meshvectors( Draw_Interpretor& di,
 
   if ( aMesh.IsNull() )
   {
-    di << "Mesh not found" << "\n";
+    di << "Mesh not found\n";
     return 0;
   }
   Handle(AIS_InteractiveContext) anIC = ViewerTest::GetAISContext();
   if ( anIC.IsNull() )
   {
-    di << "The context is null" << "\n";
+    di << "The context is null\n";
     return 0;
   }
 
@@ -936,7 +936,7 @@ static Standard_Integer meshvectors( Draw_Interpretor& di,
 
   if( !aMode.IsEqual("elem") && !aMode.IsEqual("nodal") && !aMode.IsEqual("none") )
   {
-    di << "Wrong mode name" << "\n";
+    di << "Wrong mode name\n";
     return 0;
   }
 
@@ -995,8 +995,8 @@ static Standard_Integer meshtext( Draw_Interpretor& di,
 {
   if ( argc < 2 )
   {
-    di << "Wrong number of parameters" << "\n";
-    di << "Use : meshtext <mesh name>" << "\n";
+    di << "Wrong number of parameters\n";
+    di << "Use : meshtext <mesh name>\n";
     return 0;
   }
 
@@ -1004,14 +1004,14 @@ static Standard_Integer meshtext( Draw_Interpretor& di,
 
   if ( aMesh.IsNull() )
   {
-    di << "Mesh not found" << "\n";
+    di << "Mesh not found\n";
     return 0;
   }
 
   Handle(AIS_InteractiveContext) anIC = ViewerTest::GetAISContext();
   if ( anIC.IsNull() )
   {
-    di << "The context is null" << "\n";
+    di << "The context is null\n";
     return 0;
   }
 
@@ -1035,8 +1035,8 @@ static Standard_Integer meshdeform( Draw_Interpretor& di,
 {
   if ( argc < 3 )
   {
-    di << "Wrong number of parameters" << "\n";
-    di << "Use : meshdeform <mesh name> < -mode {on|off} > [-scale scalefactor]" << "\n";
+    di << "Wrong number of parameters\n";
+    di << "Use : meshdeform <mesh name> < -mode {on|off} > [-scale scalefactor]\n";
     return 0;
   }
 
@@ -1044,13 +1044,13 @@ static Standard_Integer meshdeform( Draw_Interpretor& di,
 
   if ( aMesh.IsNull() )
   {
-    di << "Mesh not found" << "\n";
+    di << "Mesh not found\n";
     return 0;
   }
   Handle(AIS_InteractiveContext) anIC = ViewerTest::GetAISContext();
   if ( anIC.IsNull() )
   {
-    di << "The context is null" << "\n";
+    di << "The context is null\n";
     return 0;
   }
 
@@ -1080,7 +1080,7 @@ static Standard_Integer meshdeform( Draw_Interpretor& di,
 
   if(!aMode.IsEqual("on") && !aMode.IsEqual("off"))
   {
-    di << "Wrong mode name" << "\n";
+    di << "Wrong mode name\n";
     return 0;
   }
 
@@ -1124,22 +1124,22 @@ static Standard_Integer mesh_edge_width( Draw_Interpretor& di,
     OCC_CATCH_SIGNALS
       if ( argc < 3 )
       {
-        di << "Wrong number of parameters" << "\n";
-        di << "Use : mesh_edge_width <mesh name> <width>" << "\n";
+        di << "Wrong number of parameters\n";
+        di << "Use : mesh_edge_width <mesh name> <width>\n";
         return 0;
       }
 
       Handle(MeshVS_Mesh) aMesh = getMesh( argv[ 1 ], di );
       if ( aMesh.IsNull() )
       {
-        di << "Mesh not found" << "\n";
+        di << "Mesh not found\n";
         return 0;
       }
 
       const char* aWidthStr = argv[ 2 ];
       if ( aWidthStr == 0 || Draw::Atof( aWidthStr ) <= 0 )
       {
-        di << "Width must be real value more than zero" << "\n";
+        di << "Width must be real value more than zero\n";
         return 0;
       }
 
@@ -1148,14 +1148,14 @@ static Standard_Integer mesh_edge_width( Draw_Interpretor& di,
       Handle(AIS_InteractiveContext) anIC = ViewerTest::GetAISContext();
       if ( anIC.IsNull() )
       {
-        di << "The context is null" << "\n";
+        di << "The context is null\n";
         return 0;
       }
 
       Handle(MeshVS_Drawer) aDrawer = aMesh->GetDrawer();
       if ( aDrawer.IsNull() )
       {
-        di << "The drawer is null" << "\n";
+        di << "The drawer is null\n";
         return 0;
       }
 
@@ -1164,7 +1164,7 @@ static Standard_Integer mesh_edge_width( Draw_Interpretor& di,
   }
   catch ( Standard_Failure )
   {
-    di << "Error" << "\n";
+    di << "Error\n";
   }
 
   return 0;
@@ -1178,14 +1178,14 @@ static Standard_Integer meshinfo(Draw_Interpretor& di,
 {
   if ( argc != 2 )
   {
-    di << "Wrong number of parameters. Use : meshinfo mesh" << "\n";
+    di << "Wrong number of parameters. Use : meshinfo mesh\n";
     return 0;
   }
 
   Handle(MeshVS_Mesh) aMesh = getMesh(argv[ 1 ], di);
   if ( aMesh.IsNull() )
   {
-    di << "Mesh not found" << "\n";
+    di << "Mesh not found\n";
     return 0;
   }
 
@@ -1246,7 +1246,7 @@ void XSDRAWSTLVRML::Factory(Draw_Interpretor& theDI)
   XSDRAWSTLVRML::InitCommands(theDI);
   XSDRAW::LoadDraw(theDI);
 #ifdef OCCT_DEBUG
-  theDI << "Draw Plugin : All TKXSDRAW commands are loaded" << "\n";
+  theDI << "Draw Plugin : All TKXSDRAW commands are loaded\n";
 #endif
 }
 
diff --git a/tests/bugs/fclasses/bug26922 b/tests/bugs/fclasses/bug26922
new file mode 100755 (executable)
index 0000000..bd432ce
--- /dev/null
@@ -0,0 +1,40 @@
+puts "============"
+puts "OCC26922"
+puts "============"
+puts ""
+###############################
+## Huge performance issue writing data to the output stream
+###############################
+
+pload XDE
+
+if { [regexp {Debug mode} [dversion]] } {
+  if { [regexp {Windows} [dversion]] } {
+    set max_time 0.5
+  } else {
+    set max_time 0.5
+  }
+} else {
+  if { [regexp {Windows} [dversion]] } {
+    set max_time 0.5
+  } else {
+    set max_time 0.5
+  }
+}
+
+psphere result 50.
+incmesh result 0.01
+set tri_info [trinfo result]
+regexp { +([-0-9.+eE]+) +triangles} $tri_info full numTriangles
+regexp { +([-0-9.+eE]+) +nodes} $tri_info full numNodes
+
+set time_info [time {writevrml result ${imagedir}/bug26922.wrl 2 2}]
+regexp {([-0-9.+eE]+)} ${time_info} full time_performance
+set time_performance [expr {${time_performance} / 1e6}]
+puts "Performance data writing into the file is ${time_performance} seconds"
+
+if { ${time_performance} > ${max_time} } {                                         
+    puts "Elapsed time of data writing into the file is more than ${max_time} seconds - Faulty"
+} else {
+    puts "Elapsed time of data writing into the file is less than ${max_time} seconds - OK"
+}