Salome HOME
Merge 'master' branch into 'V9_dev' branch. V9_dev V9_0_0
authorrnv <rnv@opencascade.com>
Tue, 16 Jan 2018 16:46:43 +0000 (19:46 +0300)
committerrnv <rnv@opencascade.com>
Tue, 16 Jan 2018 16:46:43 +0000 (19:46 +0300)
113 files changed:
doc/salome/examples/free_boundaries.py
doc/salome/gui/GEOM/input/annotation.doc
doc/salome/gui/GEOM/input/archimede.doc
doc/salome/gui/GEOM/input/blocks_operations.doc
doc/salome/gui/GEOM/input/check_self_intersections.doc
doc/salome/gui/GEOM/input/creating_circle.doc
doc/salome/gui/GEOM/input/creating_explode.doc
doc/salome/gui/GEOM/input/creating_lcs.doc
doc/salome/gui/GEOM/input/creating_line.doc
doc/salome/gui/GEOM/input/creating_plane.doc
doc/salome/gui/GEOM/input/creating_polyline.doc
doc/salome/gui/GEOM/input/creating_sketcher.doc
doc/salome/gui/GEOM/input/creating_sphere.doc
doc/salome/gui/GEOM/input/creating_squareface.doc
doc/salome/gui/GEOM/input/display_mode.doc
doc/salome/gui/GEOM/input/explode_on_blocks_operation.doc
doc/salome/gui/GEOM/input/fast_intersection.doc
doc/salome/gui/GEOM/input/managing_dimensions.doc
doc/salome/gui/GEOM/input/modify_location_operation.doc
doc/salome/gui/GEOM/input/restore_presentation_parameters.doc
idl/GEOM_Gen.idl
resources/ShHealing
src/AdvancedEngine/AdvancedEngine_IOperations.cxx
src/AdvancedEngine/AdvancedEngine_PipeTShapeDriver.cxx
src/AdvancedGUI/AdvancedGUI_SmoothingSurfaceDlg.cxx
src/BasicGUI/BasicGUI_PointDlg.cxx
src/BlockFix/BlockFix.cxx
src/BlockFix/BlockFix_UnionEdges.cxx
src/BlockFix/BlockFix_UnionFaces.cxx
src/CurveCreator/CurveCreator_UtilsICurve.hxx
src/CurveCreator/CurveCreator_Widget.cxx
src/EntityGUI/EntityGUI.cxx
src/EntityGUI/EntityGUI_FeatureDetectorDlg.cxx
src/EntityGUI/EntityGUI_FieldDlg.cxx
src/EntityGUI/EntityGUI_SketcherDlg.cxx
src/GEOM/GEOM_IField.hxx
src/GEOMAlgo/GEOMAlgo_AlgoTools.hxx
src/GEOMAlgo/GEOMAlgo_ShapeInfo.cxx
src/GEOMBase/GEOMBase.h
src/GEOMBase/GEOMBase_Helper.cxx
src/GEOMBase/GEOMBase_Helper.h
src/GEOMGUI/GEOMGUI_DimensionProperty.h
src/GEOMGUI/GEOM_Displayer.cxx
src/GEOMGUI/GEOM_Displayer.h
src/GEOMImpl/GEOMImpl_ArchimedeDriver.cxx
src/GEOMImpl/GEOMImpl_Block6Explorer.cxx
src/GEOMImpl/GEOMImpl_GlueDriver.cxx
src/GEOMImpl/GEOMImpl_HealingDriver.cxx
src/GEOMImpl/GEOMImpl_I3DPrimOperations.cxx
src/GEOMImpl/GEOMImpl_IArc.hxx
src/GEOMImpl/GEOMImpl_IArchimede.hxx
src/GEOMImpl/GEOMImpl_IBoolean.hxx
src/GEOMImpl/GEOMImpl_IBox.hxx
src/GEOMImpl/GEOMImpl_ICircle.hxx
src/GEOMImpl/GEOMImpl_ICone.hxx
src/GEOMImpl/GEOMImpl_ICopy.hxx
src/GEOMImpl/GEOMImpl_ICylinder.hxx
src/GEOMImpl/GEOMImpl_IDisk.hxx
src/GEOMImpl/GEOMImpl_IEllipse.hxx
src/GEOMImpl/GEOMImpl_IExtract.hxx
src/GEOMImpl/GEOMImpl_IFace.hxx
src/GEOMImpl/GEOMImpl_IFilling.hxx
src/GEOMImpl/GEOMImpl_IImportExport.hxx
src/GEOMImpl/GEOMImpl_ILine.hxx
src/GEOMImpl/GEOMImpl_IOffset.hxx
src/GEOMImpl/GEOMImpl_IPartition.hxx
src/GEOMImpl/GEOMImpl_IPipe.hxx
src/GEOMImpl/GEOMImpl_IPipeDiffSect.hxx
src/GEOMImpl/GEOMImpl_IPipeShellSect.hxx
src/GEOMImpl/GEOMImpl_IPlane.hxx
src/GEOMImpl/GEOMImpl_IPosition.hxx
src/GEOMImpl/GEOMImpl_IPrism.hxx
src/GEOMImpl/GEOMImpl_IRevolution.hxx
src/GEOMImpl/GEOMImpl_IScale.hxx
src/GEOMImpl/GEOMImpl_IShapeExtend.hxx
src/GEOMImpl/GEOMImpl_ISphere.hxx
src/GEOMImpl/GEOMImpl_IThruSections.hxx
src/GEOMImpl/GEOMImpl_ITorus.hxx
src/GEOMImpl/GEOMImpl_ITransferData.cxx
src/GEOMImpl/GEOMImpl_ITransferData.hxx
src/GEOMImpl/GEOMImpl_ITranslate.hxx
src/GEOMImpl/GEOMImpl_PipeDriver.cxx
src/GEOMImpl/GEOMImpl_PolylineDumper.cxx
src/GEOMToolsGUI/GEOMToolsGUI.cxx
src/GEOMToolsGUI/GEOMToolsGUI_1.cxx
src/GEOMToolsGUI/GEOMToolsGUI_MaterialPropertiesDlg.cxx
src/GEOMToolsGUI/GEOMToolsGUI_TransparencyDlg.cxx
src/GEOMUtils/GEOMUtils.hxx
src/GEOM_I/GEOM_Gen_i.cc
src/GEOM_I/GEOM_IMeasureOperations_i.cc
src/GEOM_SWIG/GEOM_TestHealing.py
src/GEOM_SWIG/GEOM_blocks.py
src/GEOM_SWIG/geomBuilder.py
src/GEOM_SWIG_WITHIHM/libGEOM_Swig.cxx
src/GroupGUI/GroupGUI_BooleanDlg.cxx
src/Material/Material_ResourceMgr.cxx
src/MeasureGUI/MeasureGUI_CheckSelfIntersectionsDlg.cxx
src/MeasureGUI/MeasureGUI_CheckShapeDlg.cxx
src/MeasureGUI/MeasureGUI_DimensionCreateTool.cxx
src/MeasureGUI/MeasureGUI_DistanceDlg.cxx
src/MeasureGUI/MeasureGUI_ShapeStatisticsDlg.cxx
src/OBJECT/GEOM_Annotation.cxx
src/OBJECT/GEOM_Annotation.hxx
src/OperationGUI/OperationGUI_GetSharedShapesDlg.cxx
src/RepairGUI/RepairGUI_ShapeProcessDlg.cxx
src/RepairGUI/RepairGUI_ShapeProcessDlg.h
src/SKETCHER/Sketcher_Profile.cxx
src/ShHealOper/ShHealOper_CloseContour.hxx
src/ShHealOper/ShHealOper_EdgeDivide.cxx
src/ShHealOper/ShHealOper_EdgeDivide.hxx
src/ShHealOper/ShHealOper_ShapeProcess.hxx
src/Tools/t_shape/t_shape_dialog.ui
src/TransformationGUI/TransformationGUI_OffsetDlg.cxx

index 3a263c816d637d3f96f4ef1821a43a2f78ca2160..1ae412a8e23dbd747e0a045b7e0641046bc87ea9 100644 (file)
@@ -19,7 +19,7 @@ for fi in range(len(faces)):
     fid = geompy.addToStudyInFather(cut, faces[fi], "Face %d" % (fi+1))
     isSuccess, closedWires, openWires = geompy.GetFreeBoundary(faces[fi])
     if isSuccess:
-        print("Check free boudaries in face %d: OK" % (fi+1))
+        print("Check free boundaries in face %d: OK" % (fi+1))
         print("-- Nb of closed boundaries = %d" % len(closedWires))
         for wi in range(len(closedWires)):
             wid = geompy.addToStudyInFather(faces[fi], closedWires[wi], "Closed wire %d" % (wi+1))
@@ -30,6 +30,6 @@ for fi in range(len(faces)):
             pass
         pass
     else:
-        print("Check free boudaries in face %d: KO" % (fi+1))
+        print("Check free boundaries in face %d: KO" % (fi+1))
         pass
     pass
index 944630a4cf945aba2c66fc3453b29c9b5c1a7428..721f74d03ad520a700198af2053300b7c601dd72 100644 (file)
@@ -3,7 +3,7 @@
 \page annotation_page Shape annotation
 
 <b> Annotation </b> functionality allows showing in the viewer special user-defined text label connected to corresponding part of a CAD model with a line.
-Annotation text is always parallel to the screen and horizontal. It is is not zoomed or rotated when a 3D scene is zoomed or rotated by the user.
+Annotation text is always parallel to the screen and horizontal. It is not zoomed or rotated when a 3D scene is zoomed or rotated by the user.
 The annotation text is defined using UTF-8 encoding and thus support any Unicode characters.
 
 There are several algorithms for the annotation position calculation during the scene manipulations (panning, zooming, rotation):
index aed6376a55b870ea03f1af6d3fa0995dab3545c7..c89be83704faeba3a5aa1e3d606edf75b0450059 100644 (file)
@@ -13,7 +13,7 @@ water-line of the object plunged into the water (in Z direction).
 \n <b>TUI Command:</b>
 <em>geompy.Archimede(Shape,Weight,WaterDensity,MeshingDeflection),</em>
  where \em Shape is a shape to put into the water, \em Weight is a weight of
-the shape, \em WaterDensity  is density of water, \em MeshingDeflection is a
+the shape, \em WaterDensity is density of water, \em MeshingDeflection is a
 deflection of the mesh, using to compute the section.
 \n <b>Arguments:</b> Name + 1 shape  + 3 values (Weight, Water Density
 & Meshing Deflection).
index 685f99509e2e49843b7b29526b6774eabf4e6968..a266309d655575b0a2a5ef655b7f86ecb46efdee 100644 (file)
@@ -2,7 +2,7 @@
 
 \page blocks_operations_page Blocks Operations
 
-The solids built by blocks \ref  build_by_blocks_page can be
+The solids built by blocks \ref build_by_blocks_page can be
 processed with blocks transformation operations: 
 
 <ul>
index 8533274e27a496a38e11ff2fb100e2c269ee3d55..55a9cb6ad0629b59e695ad2f9c16f7fc3fad3575 100644 (file)
@@ -45,7 +45,7 @@ This operation allows quickly detecting self-interferences of the given shape us
 The algorithm works on the face level, i.e. it computes only face-to-face intersections. No additional intersection types are computed.
 
 This can be useful to detect all intersections between subshapes of type "surface" in an assembly.
-The result quality will depend on the tesselation quality. However, small deflection values can significantly decrease the performance of the algorithm.
+The result quality will depend on the tessellation quality. However, small deflection values can significantly decrease the performance of the algorithm.
 Nevertheless, the performance of Fast Intersect algorithm is much higher than that of the topological intersection.
 
 \image html measures13.png
@@ -53,7 +53,7 @@ Nevertheless, the performance of Fast Intersect algorithm is much higher than th
 In this dialog:
 
 - \b Object - the checked object. \b Selection button allows picking it in the viewer or in the object browser.
-- <b>Deflection coefficient</b> -  a linear deflection coefficient that defines the tesselation quality. If theDeflection <= 0, default deflection 0.001 is used.
+- <b>Deflection coefficient</b> -  a linear deflection coefficient that defines the tessellation quality. If theDeflection <= 0, default deflection 0.001 is used.
 - <b>Detect gaps with tolerance</b> specifies the distance between shapes used for detecting gaps:
      - if theTolerance <= 0, the algorithm detects intersections;
      - if theTolerance > 0, the algorithm detects gapss. 
@@ -67,7 +67,7 @@ If no interferences are selected, all of them are published in the study. Each i
 \n <b>TUI Command:</b> <em>geompy.CheckSelfIntersectionsFast(theShape, theDeflection, theTolerance),</em> \n
 where: \n
 \em theShape is the shape checked for validity. \n
-\em theDeflection that specifies the quality of tesselation. 
+\em theDeflection that specifies the quality of tessellation. 
 \em theTolerance Specifies the distance between shapes used for detecting gaps.
 
 See also a \ref tui_check_self_intersections_fast_page "TUI example".
index 4ea76099347ecb30590c2bcdea9f70b48d9a3bd1..b445a22f2dae3b92702d7a2ec0cfd1d2b9a96459 100644 (file)
@@ -15,7 +15,7 @@ Radius)</em>
 \n <b>Arguments:</b> Name + 1 vertex (for the center) + 1 edge (for
 the direction) + Radius.
 
-\note By default it is presumed that the <b>Center Point</b> is located at the  Origin of the global
+\note By default it is presumed that the <b>Center Point</b> is located at the Origin of the global
 coordinate system, and the  \b Vector corresponds to OZ axis of the global
 coordinate system.
 
index 69377397357422652da8702a20691801ffe383fe..b4677831fbfe14f61f332baa6c2e15e173c86a9f 100644 (file)
@@ -8,7 +8,7 @@ select <b>New Entity > Explode</b>. This operation opens the
 
 \image html neo-obj1.png
 
-To create a list of  sub-shapes (vertices, edges, wires etc.) of the
+To create a list of sub-shapes (vertices, edges, wires etc.) of the
 given shape using the \b Explode operation, you need to define the <b>Main
 Object</b>, which will be exploded and the <b>Type of Sub-shapes</b> you wish to
 obtain from it.
index 1c06b2cc3d8d2c26145fc0d3ebb89c317d4613e1..140c05c24e249a7eddf0926eb491695d0510cddf 100644 (file)
@@ -8,7 +8,7 @@ To create a <b>Local Coordinate System</b> in the <b>Main Menu</b> select <b>New
 \n Firstly, you can define the values of X, Y, and Z coordinates of origin and the directions of X and Y axes directly in the menu.
 \n <b>TUI command:</b> <em>geompy.MakeMarker(OX, OY, OZ, XDX, XDY, XDZ,
 YDX, YDY, YDZ)</em>, where OX, OY, OZ are coordinates of the origin of
-LCS, XDX, XDY, XDZ is a vector of OX  direction of the LCS and YDX,
+LCS, XDX, XDY, XDZ is a vector of OX direction of the LCS and YDX,
 YDY, YDZ is a a vector of OY direction of the LCS.
 \n <b>Arguments:</b> Name + Coordinates of origin, X axis direction, Y axis direction.
 
index 7f7daa3d9ad8ac99c780daa6fe9dea8b90c6328e..8332c990d1bf42b3613b153b23bd0f22a3ee5df4 100644 (file)
@@ -9,7 +9,7 @@ There are 2 algorithms to create a \b Line in the 3D space.
 The Result of each operation will be a GEOM_Object (edge).
 
 \n Firstly you can define a \b Line by \b Point1 and \b Point2,
-which are the points through  which the \b Line passes.
+which are the points through which the \b Line passes.
 \n <b>TUI Command:</b> <em>geompy.MakeLineTwoPnt(Point1, Point2)</em>
 \n <b>Arguments:</b> Name + 2 vertices.
 
@@ -30,7 +30,7 @@ which are the points through  which the \b Line passes.
 \b NB! There is another way to create a line, which is currently
 accessible only via \b TUI commands.
 
-You can define a line  passing through the given \b Point and parallel
+You can define a line passing through the given \b Point and parallel
 to the given \b Vector.
 \n <b>TUI Command:</b> <em>geompy.MakeLine(Point, Vector)</em>
 
index 5573f61e456b9848e3a68bcd32c3cd2a7c1b6a4f..afdae95e97b6996520e7573ae53084697c9d3194 100644 (file)
@@ -8,7 +8,7 @@ Basic - > Plane</b>
 \n There are three algorithms to create a plane in the 3D space.
 \n The \b Result of each operation will be a GEOM_Object (face).
 
-\n Firstly, you can define a \b Plane by a \b Point through which  the
+\n Firstly, you can define a \b Plane by a \b Point through which the
 plane passes, a \b Vector giving a normal of the plane and a <b>Size
 of the Plane</b> (size of a side of quadrangle face, representing the
 plane).
@@ -19,7 +19,7 @@ the size of the plane).
 \image html plane1.png
 
 \n Secondly, you can define a \b Plane by three \b Points through
-which  the plane passes and a <b>Size of the Plane</b>.
+which the plane passes and a <b>Size of the Plane</b>.
 \n <b>TUI Command:</b> <em>geompy.MakePlaneThreePnt(Point1, Point2, Point3, TrimSize)</em>
 \n <b>Arguments:</b> Name + 3 vertices + 1 value (to define the size
 of the plane).
index 2ca7f4ba9fd79e04fb2c0b5a85234884159a2a21..f7d5a17f81b2999db98a5c404cb39896c56d3c1a 100644 (file)
@@ -9,7 +9,7 @@ To create a <b>2D Polyline</b> select in the main menu  <b>New Entity -> Basic -
 \image html polyline_dlg.png
 
 A polyline represents a section or a set of sections. Each section is constructed from a sequence of 2D points
-connected  by either linear segments or an interpolation curve. Every section has its own attributes:
+connected by either linear segments or an interpolation curve. Every section has its own attributes:
 - \b Name, 
 - \b Type (Polyline or Spline),
 - \b Closed flag.
index 159361772d2516a72ac5fb73c115142fa8c863ba..2dc8058142fb12095177d92e75a3a504cf289d83 100644 (file)
@@ -2,7 +2,7 @@
 
 \page create_sketcher_page 2D Sketcher
 
-The 2D Sketcher allows drawing  arbitrary 2D shapes. 
+The 2D Sketcher allows drawing arbitrary 2D shapes. 
 
 To create a <b>2D Sketch</b> select in the main menu  <b>New Entity -> Basic -> 2D Sketch</b>. 
 
@@ -73,7 +73,7 @@ If an \b ark radio button is chosen, \b Point or \b Direction define the locatio
 
 \image html 2dsketch12.png
 
-- \b Radius radio-button allows creating a more limited arc segment by defining a custom  ark radius, which must be greater than half of the distance between the last point and the end point of the arc. 
+- \b Radius radio-button allows creating a more limited arc segment by defining a custom ark radius, which must be greater than half of the distance between the last point and the end point of the arc. 
        
 \image html 2dsketch8.png
 
index b772bdac8a6041dec1f757bbacb08f462db427b9..9bf2e0ec72258a3f0e38487888a9bcd9221eb1f0 100644 (file)
 \n Secondly, you can define a \b Sphere with the center at the origin of
 coordinate system by the \b Radius.
 \n <b>TUI Command:</b> <em>geompy. MakeSphereR(Radius)</em>
-\n <b>Arguments:</b> Name + 1  value (Radius from the origin).
+\n <b>Arguments:</b> Name + 1 value (Radius from the origin).
 
 \image html sphere2.png
 
-\n <b>NB!</b> The is another way to create a\b  Sphere, which is
+\n <b>NB!</b> The is another way to create a \b Sphere, which is
 currently accessible only via \b TUI commands.
 \n You can define the \b Sphere by the coordinates of the <b>Center
 Point</b> and its \b Radius (in this way you don't need to create it in advance).
index f10b0e35026a450dd3b01d55501b46dac23a5e19..7fa7ea5370994145c0e7139cb9f820f82190d457 100755 (executable)
@@ -4,7 +4,7 @@
 
 A primitive called \b Rectangle is a rectangular face of certain dimensions and orientation
 
-To create a \b Rectangle  in the <b>Main Menu</b> select <b>New Entity - >
+To create a \b Rectangle in the <b>Main Menu</b> select <b>New Entity - >
 Primitives - > Rectangle</b>
 
 \n There are 2 algorithms to create a \b Rectangle in the 3D space. 
@@ -15,7 +15,7 @@ of coordinates defining its boundaries by the height and the width and its axis
 radio buttons (OXY, OYZ or OZX).This 
 means that the \b Rectangle will lie in "OXY", "OYZ" or "OZX" plane correspondingly.
 \n <b>TUI Command:</b> <em>geompy.MakeFaceHW(Height, Width, Orientation)</em>
-\n <b>Arguments:</b> Name + 3 values (Dimensions at origin: heigth, width and
+\n <b>Arguments:</b> Name + 3 values (Dimensions at origin: height, width and
 orientation).
 
 
index af842ccf1dff480a731e446fb79062bdb830887e..bffcf081e2a2476662e3b40b7e5f0c3978ec9dc2 100644 (file)
@@ -3,7 +3,7 @@
 \page display_mode_page Display Mode
 
 \n This option is relevant for viewing 3D objects. Wireframe mode means
-that you can see only  edges of the object, while its shells remain
+that you can see only edges of the object, while its shells remain
 transparent. Shading mode means that the shells are filled with color.
 
 \n To change the display mode right-click on this geometrical object
index abfaf09bdee8f14f4442d9bd476904ef1a4ac1b5..f1f3141612f1ef3f8beee12b2a9b60fcd6ffec8a 100644 (file)
@@ -16,7 +16,7 @@ from a compound.
 \n <b>TUI Command:</b> <em>geompy.MakeBlockExplode(Compound,
 MinNbFaces, MaxNbFaces),</em> where \em Compound is a compound to be
 exploded into the blocks, \em MinNbFaces, \em MaxNbFaces are correspondingly
-the minimal and  the maximal number of faces of the resulting blocks.
+the minimal and the maximal number of faces of the resulting blocks.
 \n <b>Arguments:</b> 1 compound + 2 integers (min. and max. number of
 faces in the block to be extracted).
 
index f27a6d94461026be3e3bbb78379e3058393e2577..04c1da79fc1e99e06893d1d1b709586072a76d2e 100644 (file)
@@ -40,7 +40,7 @@ further analysis (see below).
 
 \note The result quality depends on the quality of triangulation. Changing the value of the deflection coefficient
 parameter can strongly affect the result. However, small values of the deflection coefficient might lead to
-some performance loss of the algorithm, as number of triangles of the tesselation mesh depends on this parameter.
+some performance loss of the algorithm, as number of triangles of the tessellation mesh depends on this parameter.
 
 Press <b>Apply and Close</b> or \b Apply button to store the selected sub-shapes in the study for further analysis.
 The selection will be published as a compound containing intersected sub-shapes from both source objects.
index 8b49f3ad190c1b4a462de6ce565d6899acd5dee0..3e2b35202e5d0385ffca54c365c58198ec03f74a 100644 (file)
@@ -12,7 +12,7 @@ It can be accessed from the main menu via <b>Measures -> Dimensions -> Manage Di
 \r
 <b>List of Dimensions</b>\r
 \r
-This dialog provides the list of dimensions shown in the view for the selected geometrical <b>Object</b>. The list items are sorted by  dimension type: <b>Distance</b>, <b>Diameter</b> and <b>Angle</b>. \r
+This dialog provides the list of dimensions shown in the view for the selected geometrical <b>Object</b>. The list items are sorted by dimension type: <b>Distance</b>, <b>Diameter</b> and <b>Angle</b>. \r
 \r
 It is possible to show/hide a dimension in the view by checking on/off the box to the left of its name. \r
 \r
@@ -40,7 +40,7 @@ The following dimensions can be shown:
 </ul>\r
 </li>\r
 \r
-<li> <b>Diameter </b> of an an arc, a circular edge or face, a sphere, a cylinder, a cone or a  torus.</li> \r
+<li> <b>Diameter </b> of an an arc, a circular edge or face, a sphere, a cylinder, a cone or a torus.</li> \r
 \r
 <li> <b>Angle.</b> The angle dimension can be defined in one of two possible ways :  </li>\r
 \r
index 68c7e746b035866ea2e195f805c7aeb525d9fee1..dc4157eea630fc0c218c9494d6b56182e443b19f 100644 (file)
@@ -22,9 +22,9 @@ System in the center of it is to the left .
 
 \image html image30.png
 
-\n The second algorithm  modifies the location of the \b Object(s) using \b Start
+\n The second algorithm modifies the location of the \b Object(s) using \b Start
 and \b End \b LCS, although the final position of the object will not
-coincide with the center of  either of the two systems. In this method
+coincide with the center of either of the two systems. In this method
 the object is shifted from its initial position by the value of the
 remainder after subtraction of the coordinates of the <b>Start LCS</b> from
 the coordinates of the <b>End LCS</b>.
@@ -53,7 +53,7 @@ translated cube at the position (-100;0;0)
 \image html image4.png
 
 The third algorithm modifies the location of the \b Object(s) using the <b>Path object</b> (Wire or Edge)
-and the \b Distance parameter (ranging from 0 to 1) defining  how far the object will move along the path.
+and the \b Distance parameter (ranging from 0 to 1) defining how far the object will move along the path.
 \n <b>Create a copy</b> checkbox allows to keep the initial object,
 otherwise it will be removed.
 \n <b>Select Unpublished edges</b> checkbox allows to select sub-shape edges on
index abbc083583e5beadf648bd1aee376458f0511112..55694bd8bc4be9c03a7736438291f971cee4db4f 100644 (file)
@@ -27,7 +27,7 @@ The resulting shape inherits the sub-shapes and the colour of Box_1.
 
 \image html restore-ss-viewer-cut.png "The resulting shape"
 
-Second, we examine the case when the  resulting shape is composed from multiple arguments
+Second, we examine the case when the resulting shape is composed from multiple arguments
 (after all Boolean operations, except for Cut, or after the partition with
 several object shapes, or if the resulting shape is a compound).
 
index aae6b0ee1b0d1ca87c58477d2474e1fb80367abc..dd7214a1c368ebcfa23ac92e72052af53266f9fc 100644 (file)
@@ -386,7 +386,7 @@ module GEOM
      *
      *  This function is useful for the compounds only; for simple shapes it
      *  exactly the same value as GetShapeType().
-     *  Note, that compounds are procesed recursively.
+     *  Note, that compounds are processed recursively.
      *
      *  \sa GetShapeType(), GetTopologyType(), GetMaxShapeType()
      */
@@ -397,7 +397,7 @@ module GEOM
      *
      *  This function is useful for the compounds only; for simple shapes it
      *  exactly the same value as GetShapeType().
-     *  Note, that compounds are procesed recursively.
+     *  Note, that compounds are processed recursively.
      *
      *  \sa GetShapeType(), GetTopologyType(), GetMinShapeType()
      */
@@ -1721,7 +1721,7 @@ module GEOM
 
 
     /*!
-     *  \brief Add / Remove material to / from  a solid by extrusion of the base shape on the given distance.
+     *  \brief Add / Remove material to / from a solid by extrusion of the base shape on the given distance.
      *  \param theInitShape Initial shape on which to perform the feature.It has to be a solid or 
      *   a compound made of a single solid
      *  \param theBase Edge or wire defining the base shape to be extruded. 
@@ -1811,7 +1811,7 @@ module GEOM
      *
      *  The path shape can be a wire or an edge.
      *  the several profiles can be specified in the several locations of path.
-     *  \param theSeqBases - list of  Bases shape to be extruded.
+     *  \param theSeqBases - list of Bases shape to be extruded.
      *  \param theLocations - list of locations on the path corresponding
      *                        specified list of the Bases shapes. Number of locations
      *                        should be equal to number of bases or list of locations can be empty.
@@ -1845,7 +1845,7 @@ module GEOM
      *
      *  The path shape can be a shell or a face.
      *  the several profiles can be specified in the several locations of path.
-     *  \param theSeqBases - list of  Bases shape to be extruded.
+     *  \param theSeqBases - list of Bases shape to be extruded.
      *  \param theSeqSubBases - list of corresponding sub-shapes of section shapes.
      *  \param theLocations - list of locations on the path corresponding
      *                        specified list of the Bases shapes. Number of locations
@@ -1893,7 +1893,7 @@ module GEOM
      *  \param theBase Base shape to be extruded.
      *  \param thePath Path shape to extrude the base shape along it.
      *  \param theVec Vector defines a constant binormal direction to keep the
-     *                same angle beetween the Direction and the sections
+     *                same angle between the Direction and the sections
      *                along the sweep surface.
      *  \param IsGenerateGroups flag that tells if it is necessary to
      *         return groups (true) or not (false).
@@ -2830,7 +2830,7 @@ module GEOM
 
     /*!
      *  \brief Create a quadrangle face from four edges. Order of Edges is not
-     *  important. It is  not necessary that edges share the same vertex.
+     *  important. It is not necessary that edges share the same vertex.
      *  \param theEdge1,theEdge2,theEdge3,theEdge4 Edges for the face bound.
      *  \return New GEOM_Object, containing the created face.
      */
@@ -2865,7 +2865,7 @@ module GEOM
      *  \brief Create a hexahedral solid, bounded by the six given faces. Order of
      *  faces is not important. 
      *
-     *  It is  not necessary that Faces share the same edge.
+     *  It is not necessary that Faces share the same edge.
      *  \param theFace1,theFace2,theFace3,theFace4,theFace5,theFace6 Faces for the hexahedral solid.
      *  \return New GEOM_Object, containing the created solid.
      */
@@ -4174,8 +4174,8 @@ module GEOM
     SALOMEDS::TMPFile GetTexture(in long theID, out long theWidth, out long theHeight);
 
     /*!
-     * \brief Get list of all avaiable texture IDs
-     * \return list of all texture IDs avaiable for the current study
+     * \brief Get list of all available texture IDs
+     * \return list of all texture IDs available for the current study
      */
     ListOfLong GetAllTextures();
 
@@ -4534,7 +4534,7 @@ module GEOM
     /*!
      *  \brief Detect self-intersections of the given shape with algorithm based on mesh intersections.
      *  \param theShape Shape to check validity of.
-     *  \param theDeflection Linear deflection coefficient that specifies quality of tesselation.
+     *  \param theDeflection Linear deflection coefficient that specifies quality of tessellation.
      *  \param theTolerance Specifies a distance between sub-shapes used for detecting gaps:
      *                       - if \a theTolerance <= 0, algorithm detects intersections
      *                       - if \a theTolerance > 0, algorithm detects gaps
@@ -4547,9 +4547,9 @@ module GEOM
                                        out ListOfLong theIntersections);
 
     /*!
-     *  \brief Check boolean and partition operations agruments.
-     *  \param theShape the agrument of an operation to be checked.
-     *  \return TRUE if the agrument is valid for a boolean or partition
+     *  \brief Check boolean and partition operations arguments.
+     *  \param theShape the argument of an operation to be checked.
+     *  \return TRUE if the argument is valid for a boolean or partition
      *          operation; FALSE otherwise.
      */
     boolean CheckBOPArguments (in GEOM_Object theShape);
@@ -4561,7 +4561,7 @@ module GEOM
      *  \param theTolerance Specifies a distance between shapes used for detecting gaps:
      *                       - if \a theTolerance <= 0, algorithm detects intersections
      *                       - if \a theTolerance > 0, algorithm detects gaps
-     *  \param theDeflection Linear deflection coefficient that specifies quality of tesselation:
+     *  \param theDeflection Linear deflection coefficient that specifies quality of tessellation:
      *                       - if \a theDeflection <= 0, default deflection 0.001 is used
      *  \param theIntersections1 Output: contains list of sub-shapes IDs from 1st shape that localize intersection
      *  \param theIntersections2 Output: contains list of sub-shapes IDs from 2nd shape that localize intersection
@@ -4699,7 +4699,7 @@ module GEOM
   interface GEOM_IGroupOperations : GEOM_IOperations
   {
     /*!
-     *  \brief Creates a new group which will store  sub-shapes of theMainShape
+     *  \brief Creates a new group which will store sub-shapes of theMainShape
      *  \param theMainShape is a GEOM_Object on which the group is selected
      *  \param theShapeType defines a shape type of the group
      *  \return a newly created GEOM group
@@ -5022,7 +5022,7 @@ module GEOM
     
     /*!
      *  \brief Returns a GEOM_Object defined by its IOR
-     *  \param theIOR a string containg an IOR of the requested GEOM_Object
+     *  \param theIOR a string containing an IOR of the requested GEOM_Object
      */
     GEOM_Object GetIORFromString (in string theIOR);
 
index 864e192a1fc30953658abefc95890bfde0b23328..6adba366b464f8345691ec6e11c2a5ea73458cd4 100644 (file)
@@ -233,8 +233,8 @@ ShapeProcess.SameParameter.Tolerance3d                      : 1.e-7
 ! FixShape.FixOrientationMode          : Mode for fixing face orientation (default - -1, yes - 1 , no - 0).
 ! FixShape.FixMissingSeamMode          : Mode for fixing face missing seam (default - -1, yes - 1 , no - 0).
 ! FixShape.FixSmallAreaWireMode                : Mode for fixing small area wires (default - -1, yes - 1 , no - 0).
-! FixShape.ModifyTopologyMode          : Mode allowing of modifing of topology (default - 0, yes - 1 , no - 0).
-! FixShape.ModifyGeometryMode          : Mode allowing of modifing of geometry (default - 1, yes - 1 , no - 0).
+! FixShape.ModifyTopologyMode          : Mode allowing for modifying of topology (default - 0, yes - 1 , no - 0).
+! FixShape.ModifyGeometryMode          : Mode allowing for modifying of geometry (default - 1, yes - 1 , no - 0).
 ! FixShape.ClosedWireMode              : Mode defining whether the wire is to be closed. (default - 1, yes - 1 , no - 0).
 ! FixShape.PreferencePCurveMode                : Mode defining of preference of 2d representation (default - 1, yes - 1 , no - 0). 
 ! FixShape.FixReorderMode              : Mode for fixing of order of the edges in the wire (default - -1, yes - 1 , no - 0).
index 03ef7e463cd2b7c08493eeb834a4bb143709c421..e1fb912915d1eeb297e0756d7b8903be9aa70b8e 100644 (file)
@@ -1832,7 +1832,7 @@ TopoDS_Shape AdvancedEngine_IOperations::MakeThicknessReduction (gp_Ax2 theAxes,
     StdFail_NotDone::Raise("Cannot build cones of thickness reduction");
   BRepAlgoAPI_Cut cut1 (ConeExt.Shape(), ConeInt.Shape());
   if (!cut1.IsDone())
-    StdFail_NotDone::Raise("Coudn't build transition part of thickness reduction");
+    StdFail_NotDone::Raise("Couldn't build transition part of thickness reduction");
   TopoDS_Shape aReduction = cut1.Shape();
 
   // Build the thin part, if required
@@ -1846,7 +1846,7 @@ TopoDS_Shape AdvancedEngine_IOperations::MakeThicknessReduction (gp_Ax2 theAxes,
       StdFail_NotDone::Raise("Cannot build cylinders of thickness reduction");
     BRepAlgoAPI_Cut cut2 (CExt.Shape(), CInt.Shape());
     if (!cut2.IsDone())
-      StdFail_NotDone::Raise("Coudn't build thin part of thickness reduction");
+      StdFail_NotDone::Raise("Couldn't build thin part of thickness reduction");
     aThinPart = cut2.Shape();
   }
 
index 4549680fbe57b93aed61a43cc410662fe2262b41..dffa0b5f50598d335dc06cfed452b9df405b520f 100644 (file)
@@ -338,13 +338,13 @@ TopoDS_Shape AdvancedEngine_PipeTShapeDriver::MakePipeTShape (const double r1, c
   // Remove small radius main pipe
   BRepAlgoAPI_Cut cut1 (fuse1.Shape(), C1Int.Shape());
   if (!cut1.IsDone()) {
-    StdFail_NotDone::Raise("Coudn't cut cylinders");
+    StdFail_NotDone::Raise("Couldn't cut cylinders");
   }
 
   // Remove small radius incident pipe => Te
   BRepAlgoAPI_Cut Te (cut1.Shape(), C2Int.Shape());
   if (!Te.IsDone()) {
-    StdFail_NotDone::Raise("Coudn't cut cylinders");
+    StdFail_NotDone::Raise("Couldn't cut cylinders");
   }
 
   TopoDS_Shape aShape = Te.Shape();
index 602bad1eaf191228ac70d9fac67964978ee05206..c4e94322efb730bf044e24ff2a0b9d556a91f03f 100644 (file)
@@ -109,7 +109,7 @@ AdvancedGUI_SmoothingSurfaceDlg::~AdvancedGUI_SmoothingSurfaceDlg()
 void AdvancedGUI_SmoothingSurfaceDlg::Init()
 {
   // Get setting of step value from file configuration
-  SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+  //SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
 
   initSpinBox(myDMaxSpin, 0., COORD_MAX, 0.00001, "parametric_precision" );
 
index 4f4f89b46a1e209ec102d399ced0e02d2f421da5..196a624b6f49e11157ac41f8bdfdbb532dafc5fe 100644 (file)
@@ -683,7 +683,7 @@ void BasicGUI_PointDlg::CheckBoxClicked()
 
 
 //=================================================================================
-// funcion  : getParameter()
+// function  : getParameter()
 // purpose  :
 //=================================================================================
 double BasicGUI_PointDlg::getParameter() const
@@ -693,7 +693,7 @@ double BasicGUI_PointDlg::getParameter() const
 
 
 //=================================================================================
-// funcion  : getUParameter()
+// function  : getUParameter()
 // purpose  :
 //=================================================================================
 double BasicGUI_PointDlg::getUParameter() const
@@ -703,7 +703,7 @@ double BasicGUI_PointDlg::getUParameter() const
 
 
 //=================================================================================
-// funcion  : getVParameter()
+// function  : getVParameter()
 // purpose  :
 //=================================================================================
 double BasicGUI_PointDlg::getVParameter() const
index 3c095f058f13288f1c33b0ea48e638e02cf7bab0..30f2505d97193e16bc7d80e2d1fac2bb9f6b9d8b 100644 (file)
@@ -95,7 +95,7 @@ static void FixResult(const TopoDS_Shape& result,
 {
   for (TopExp_Explorer ex_f(result,TopAbs_FACE); ex_f.More(); ex_f.Next()) {
     TopoDS_Shape aShape = Context->Apply(ex_f.Current().Oriented(TopAbs_FORWARD));
-    // face coud not be dropped or splitted on this step
+    // face could not be dropped or split on this step
     TopoDS_Face aFace = TopoDS::Face(aShape);
     TopLoc_Location L;
     Handle(Geom_Surface) Surf = BRep_Tool::Surface(aFace,L);
index 642953f67586b53a98a0e56eca31009b3f36134c..cba4e2520b82c70add2724e920a61e3aac10aeb0 100644 (file)
@@ -657,7 +657,7 @@ static Standard_Boolean MergeEdges(const TopTools_SequenceOfShape& SeqEdges,
       break;
     }
     if(NeedUnion) {
-      MESSAGE ("can not make analitical union => make approximation");
+      MESSAGE ("can not make analytical union => make approximation");
       TopoDS_Edge E = GlueEdgesWithPCurves(aChain, VF, VL);
       aChain.SetValue(1,E);
     }
index 7406cd4df92bd148c47498d4eec5992e34e7c66d..771e8f0cb82fcc4237c053e83cee98f0e2cebed1 100644 (file)
@@ -88,6 +88,8 @@
 #include <BRepAdaptor_HSurface.hxx>
 #include <LocalAnalysis_SurfaceContinuity.hxx>
 #include <GeomConvert_ApproxSurface.hxx>
+#include <Bnd_Box.hxx>
+#include <BRepBndLib.hxx>
 
 #include <Geom_Curve.hxx>
 #include <Geom_Line.hxx>
@@ -239,8 +241,34 @@ static Standard_Boolean IsFacesOfSameSolids
   return isSame;
 }
 
-#if OCC_VERSION_LARGE > 0x07020001
-// for Mantis issue 0023451 by JGV
+//=======================================================================
+//function : DefineMaxTolerance
+//purpose  : calculates maximum possible tolerance on edges of shape
+//=======================================================================
+static Standard_Real DefineMaxTolerance(const TopoDS_Shape& theShape)
+{
+  Standard_Real aTol = Precision::Confusion();
+
+  Standard_Real MinSize = RealLast();
+  TopExp_Explorer Explo(theShape, TopAbs_EDGE);
+  for (; Explo.More(); Explo.Next())
+  {
+    const TopoDS_Edge& anEdge = TopoDS::Edge(Explo.Current());
+    Bnd_Box aBox;
+    BRepBndLib::Add(anEdge, aBox);
+    Standard_Real Xmin, Ymin, Zmin, Xmax, Ymax, Zmax;
+    aBox.Get(Xmin, Ymin, Zmin, Xmax, Ymax, Zmax);
+    Standard_Real MaxSize = Max(Xmax - Xmin, Max(Ymax - Ymin, Zmax - Zmin));
+    if (MaxSize < MinSize)
+      MinSize = MaxSize;
+  }
+
+  if (!Precision::IsInfinite(MinSize))
+    aTol = 0.1 * MinSize;
+
+  return aTol;
+}
+
 //=======================================================================
 //function : IsTangentFaces
 //purpose  : decides: is edge on closed surface tangent or not
@@ -322,15 +350,13 @@ static Standard_Boolean HasSeamEdge(const TopoDS_Face& theFace)
 
   return Standard_False;
 }
-#endif
+
 
 //=======================================================================
 //function : IsEdgeValidToMerge
 //purpose  : Edge is valid if it is not seam or if it is a seam and the face
 //           has another seam edge.
 //=======================================================================
-#if OCC_VERSION_LARGE > 0x07020001
-// for Mantis issue 0023451 by JGV
 static Standard_Boolean IsEdgeValidToMerge(const TopoDS_Edge& theEdge,
                                            const TopoDS_Face& theFace,
                                            const Handle(Geom_Surface)& theSurface,
@@ -396,37 +422,6 @@ static Standard_Boolean IsEdgeValidToMerge(const TopoDS_Edge& theEdge,
 
   return isValid;
 }
-#else
-static Standard_Boolean IsEdgeValidToMerge(const TopoDS_Edge &theEdge,
-                                           const TopoDS_Face &theFace)
-{
-  Standard_Boolean isValid = Standard_True;
-
-  if (BRep_Tool::IsClosed(theEdge, theFace)) {
-    // This is a seam edge. Check if there are another seam edges on the face.
-    TopExp_Explorer anExp(theFace, TopAbs_EDGE);
-
-    for (; anExp.More(); anExp.Next()) {
-      const TopoDS_Shape &aShEdge = anExp.Current();
-
-      // Skip same edge.
-      if (theEdge.IsSame(aShEdge)) {
-        continue;
-      }
-
-      // Check if this edge is a seam.
-      TopoDS_Edge anEdge = TopoDS::Edge(aShEdge);
-
-      if (BRep_Tool::IsClosed(anEdge, theFace)) {
-        isValid = Standard_False;
-        break;
-      }
-    }
-  }
-
-  return isValid;
-}
-#endif
 
 //=======================================================================
 //function : Perform
@@ -494,26 +489,16 @@ TopoDS_Shape BlockFix_UnionFaces::Perform(const TopoDS_Shape& Shape)
       Handle(Geom_Surface) aBaseSurface = BRep_Tool::Surface(aFace,aBaseLocation);
       aBaseSurface = ClearRts(aBaseSurface);
       aBaseSurface = Handle(Geom_Surface)::DownCast(aBaseSurface->Copy());
-#if OCC_VERSION_LARGE > 0x07020001
-// for Mantis issue 0023451 by JGV
       Standard_Boolean ToMakeUPeriodic = Standard_False, ToMakeVPeriodic = Standard_False;
-#endif
 
       // find adjacent faces to union
       Standard_Integer i;
       for (i = 1; i <= edges.Length(); i++) {
         TopoDS_Edge edge = TopoDS::Edge(edges(i));
-#if OCC_VERSION_LARGE > 0x07020001
-// for Mantis issue 0023451 by JGV
         Standard_Boolean IsEdgeOnSeam = Standard_False;
-#endif
         if (BRep_Tool::Degenerated(edge) ||
-#if OCC_VERSION_LARGE > 0x07020001
-// for Mantis issue 0023451 by JGV
-            !IsEdgeValidToMerge(edge, aFace, aBaseSurface, IsEdgeOnSeam, ToMakeUPeriodic, ToMakeVPeriodic))
-#else
-            !IsEdgeValidToMerge(edge, aFace))
-#endif
+            !IsEdgeValidToMerge(edge, aFace, aBaseSurface,
+                                IsEdgeOnSeam, ToMakeUPeriodic, ToMakeVPeriodic))
           continue;
 
         const TopTools_ListOfShape& aList = aMapEdgeFaces.FindFromKey(edge);
@@ -526,13 +511,8 @@ TopoDS_Shape BlockFix_UnionFaces::Perform(const TopoDS_Shape& Shape)
           if (aProcessed.Contains(anCheckedFace))
             continue;
 
-#if OCC_VERSION_LARGE > 0x07020001
-// for Mantis issue 0023451 by JGV
           if (!IsEdgeValidToMerge(edge, anCheckedFace, aBaseSurface,
                                   IsEdgeOnSeam, ToMakeUPeriodic, ToMakeVPeriodic)) {
-#else
-          if (!IsEdgeValidToMerge(edge, anCheckedFace)) {
-#endif
             // Skip seam edge.
             continue;
           }
@@ -549,13 +529,10 @@ TopoDS_Shape BlockFix_UnionFaces::Perform(const TopoDS_Shape& Shape)
               continue;
             }
 
-#if OCC_VERSION_LARGE > 0x07020001
-// for Mantis issue 0023451 by JGV
             //Prevent creating a face with parametric range more than period
             if (IsEdgeOnSeam &&
                 (HasSeamEdge(aFace) || HasSeamEdge(anCheckedFace)))
               continue;
-#endif
 
             // replacing pcurves
             TopoDS_Face aMockUpFace;
@@ -580,8 +557,6 @@ TopoDS_Shape BlockFix_UnionFaces::Perform(const TopoDS_Shape& Shape)
         NbModif++;
         TopoDS_Face aResult;
         BRep_Builder B;
-#if OCC_VERSION_LARGE > 0x07020001
-// for Mantis issue 0023451 by JGV
         if (ToMakeUPeriodic || ToMakeVPeriodic)
         {
           Handle(Geom_BSplineSurface) aBSplineSurface = Handle(Geom_BSplineSurface)::DownCast(aBaseSurface);
@@ -603,7 +578,6 @@ TopoDS_Shape BlockFix_UnionFaces::Perform(const TopoDS_Shape& Shape)
           
           aBaseSurface = aBSplineSurface;
         }
-#endif
         B.MakeFace(aResult,aBaseSurface,aBaseLocation,0);
         Standard_Integer nbWires = 0;
 
@@ -722,15 +696,13 @@ TopoDS_Shape BlockFix_UnionFaces::Perform(const TopoDS_Shape& Shape)
         aContext->Replace(aContext->Apply(aFace),aResult);
 
         ShapeFix_Face sff (aResult);
-        //Intializing by tolerances
+        //Initializing by tolerances
         sff.SetPrecision(myTolerance);
         sff.SetMinTolerance(tol);
-        sff.SetMaxTolerance(Max(1.,myTolerance*1000.));
+        Standard_Real MaxTol = DefineMaxTolerance(aResult);
+        sff.SetMaxTolerance(MaxTol);
         //Setting modes
         sff.FixOrientationMode() = 0;
-#if OCC_VERSION_LARGE > 0x07020001
-        sff.FixWireTool()->CheckMissingEdgesMode() = Standard_False;
-#endif
         //sff.FixWireMode() = 0;
         sff.SetContext(aContext);
         // Applying the fixes
index 33af242450d82a60334e8165e144691ac4cf172e..804c8173703684e83b83f959dd0a2c13bb38596d 100644 (file)
@@ -58,7 +58,7 @@ public:
                                             CurveCreator_ICurve* theCurve );
 
   /**
-   * Returns whethe the container has the value
+   * Returns whether the container has the value
    * \param theList a container of values
    * \param theValue a value
    */
index a76f408f1423c76ae0fed9ec30b00020d1fc44db..ae0c67d91ba8641a3eec5353e2e24c029bc19eac 100644 (file)
@@ -1591,7 +1591,7 @@ void CurveCreator_Widget::convert( const CurveCreator_ICurve::SectionToPointList
 }
 
 /**
- * Returns whethe the container has the value
+ * Returns whether the container has the value
  * \param theList a container of values
  * \param theValue a value
  */
index 5c7e913d8d09e6c6f3116bcf4581ac56e5f6102d..672298e41e524f65f61264a62443c327d36824ed 100644 (file)
@@ -297,8 +297,8 @@ bool EntityGUI::OnMousePress( QMouseEvent* pe, SUIT_Desktop* parent, SUIT_ViewWi
 bool EntityGUI::OnMouseRelease( QMouseEvent* pe, SUIT_Desktop* parent, SUIT_ViewWindow* theViewWindow )
 {
   ((OCCViewer_ViewWindow*)theViewWindow)->setSketcherStyle(false);
-  QDialog* aDlg = getGeometryGUI()->GetActiveDialogBox();
 #ifdef WITH_OPENCV
+  QDialog* aDlg = getGeometryGUI()->GetActiveDialogBox();
   if ( aDlg && ( QString( aDlg->metaObject()->className() ).compare( "EntityGUI_FeatureDetectorDlg" ) == 0 ) &&
        theViewWindow->getViewManager()->getType() == OCCViewer_Viewer::Type() &&
        pe->modifiers() != Qt::ControlModifier ) 
index f2b4ac971c44b7bd68eb5ce907aa78f0a4032efb..4a1ea5788a1229d3ac50b8ebd547f54195737a9a 100644 (file)
@@ -450,7 +450,7 @@ void EntityGUI_FeatureDetectorDlg::SelectionIntoArgument()
       myDetector->SetPath( theImgFileName.toStdString() );
       height            =  myDetector->GetImgHeight();
       width             =  myDetector->GetImgWidth();
-      pictureLeft       = -0.5 * width;              // X coordinate of the top left  corner of the background image in the view
+      pictureLeft       = -0.5 * width;              // X coordinate of the top left corner of the background image in the view
       pictureTop        =  0.5 * height;             // Y coordinate of both top corners
       
     } 
index 2a953a479fdac2d4149a6357f382f398c7131283..5deec627aca6c4cb4346890bf27b27fb5ae1176e 100644 (file)
@@ -485,7 +485,7 @@ void EntityGUI_FieldDlg::StepTable::setEditable (bool isEditable,
 
 //=======================================================================
 // name    : EntityGUI_FieldDlg::StepTable::isEditable
-// Purpose : Verify wheter cell is editable
+// Purpose : Verify whether cell is editable
 //=======================================================================
 bool EntityGUI_FieldDlg::StepTable::isEditable (int row, int col) const
 {
index 3ec375808b4a78f952c5680d255412aed538acb1..6f4b43a41ea2e3a60ceb8ccfc490398a0ec1bd8e 100644 (file)
@@ -627,7 +627,7 @@ void EntityGUI_SketcherDlg::RectClicked()
 {
   InitClick();
   
-  // Connect the selction manager (disconnected in InitClick())
+  // Connect the selection manager (disconnected in InitClick())
   connect( myGeometryGUI->getApp()->selectionMgr(),
        SIGNAL( currentSelectionChanged() ), this, SLOT( SelectionIntoArgument() ) );
   
@@ -2120,7 +2120,7 @@ QString EntityGUI_SketcherDlg::GetNewCommand( QString& theParameters )
   QString myNewCommand = ":";
   SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
   int aPrecision = resMgr->integerValue( "Geometry", "length_precision", 6 );
-  int DigNum = qAbs(aPrecision);                   // options for the format of numbers in  myNewCommand
+  int DigNum = qAbs(aPrecision);                   // options for the format of numbers in myNewCommand
   char Format = 'f';
   if ( aPrecision < 0 )                            // f --> DigNum is the number of digits after the decimal point
     Format = 'g';                                  // g --> DigNum is the maximum number of significant digits 
@@ -2319,7 +2319,7 @@ bool EntityGUI_SketcherDlg::execute( ObjectList& objects )
   MESSAGE("EntityGUI_SketcherDlg::execute")
   SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
   int aPrecision = resMgr->integerValue( "Geometry", "length_precision", 6 );
-  int DigNum = qAbs(aPrecision);                   // options for the format of numbers in  myNewCommand
+  int DigNum = qAbs(aPrecision);                   // options for the format of numbers in myNewCommand
   char Format = 'f';
   if ( aPrecision < 0 )                            // f --> DigNum is the number of digits after the decimal point
     Format = 'g';                                  // g --> DigNum is the maximum number of significant digits 
index d6da53b27e1501e9b7eef536f5ce0e8cf66393e9..4092b5f9a168f4b1a1183bb76913ab765f43a1df 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Field creation.
+//NOTE: This is an interface to a function for the Field creation.
 //
 #include "GEOM_Function.hxx"
 
index a737460dc214b72f2c529b10cdb96d0edde340f9..b6e56e232df1500ef6b3c922920da7699682f204 100755 (executable)
@@ -67,7 +67,7 @@ class GEOMAlgo_AlgoTools  {
                            gp_Vec& aN);
 
   //! Computes a point <theP> inside the face <theF>. <br>
-  //!          <theP2D> -  2D  representation of <theP> <br>
+  //!          <theP2D> - 2D representation of <theP> <br>
   //!          on the surface of <theF> <br>
   //!          Returns 0 in case of success. <br>
   Standard_EXPORT
index 6eaf087dc8acac4a01e645f497fc1861ddd13445..3614245daf01351efbed639985ab93229ed4ed5a 100644 (file)
@@ -429,7 +429,7 @@ void GEOMAlgo_ShapeInfo::Dump()const
     break;
     //
   default:
-    printf(" * not implememted yet\n");
+    printf(" * not implemented yet\n");
     break;
   }
 }
index 1ec882ca1af8bca3fe9f53c67da2018ce4200e0b..58319d39b6ab2207892e372f1bcc98fbaa634255 100644 (file)
@@ -66,7 +66,7 @@ public :
                                                  const bool shapesOnly = false );
   static QString      GetShapeTypeString( const TopoDS_Shape& shape );
 
-  /* Convertions */
+  /* Conversions */
   static Handle(GEOM_AISShape)
                       ConvertIOinGEOMAISShape( const Handle(SALOME_InteractiveObject)& IO,
                                                bool onlyInActiveView = false );
index 9fb40605e4b87a0f2f4c932fd21d6fa52b9849c5..0e920345d705eb0d275fccb195100cd787c85dc2 100755 (executable)
@@ -145,10 +145,10 @@ void GEOMBase_Helper::display( GEOM::GEOM_Object_ptr object, const bool updateVi
 {
   // Unset color of shape ( this color may be set during preview displaying )
   // Default color will be used
-//   getDisplayer()->UnsetColor();
+  //   getDisplayer()->UnsetColor();
   getDisplayer()->UnsetWidth();
-  
-  MESSAGE("GEOMBase_Helper::display myTexture = "<<getDisplayer()->GetTexture())
+
+  MESSAGE("GEOMBase_Helper::display myTexture = "<<getDisplayer()->GetTexture());
 
   // Enable activisation of selection
   getDisplayer()->SetToActivate( true );
@@ -179,9 +179,11 @@ void GEOMBase_Helper::erase( GEOM::GEOM_Object_ptr object, const bool updateView
 {
   if ( !object->_is_nil() ) {
     QString entry = getEntry( object );
-    getDisplayer()->Erase( new SALOME_InteractiveObject(
-      entry.toLatin1().constData(), 
-      "GEOM", strdup( GEOMBase::GetName( object ).toLatin1().constData() ) ), true, updateView );
+    QString name  = GEOMBase::GetName( object );
+    getDisplayer()->Erase ( new SALOME_InteractiveObject(entry.toLatin1().constData(),
+                                                         "GEOM",
+                                                         name.toLatin1().constData() ),
+                            true, updateView );
   }
 }
 
@@ -219,8 +221,12 @@ void GEOMBase_Helper::redisplay( GEOM::GEOM_Object_ptr object,
     getDisplayer()->SetToActivate( true );
 
     QString entry = getEntry( object );
-    getDisplayer()->Redisplay(new SALOME_InteractiveObject
-                              (entry.toLatin1().constData(), "GEOM", strdup(GEOMBase::GetName(object).toLatin1().constData())), false);
+    QString  name = GEOMBase::GetName( object );
+    getDisplayer()->Redisplay
+      (new SALOME_InteractiveObject (entry.toLatin1().constData(),
+                                     "GEOM",
+                                     name.toLatin1().constData()),
+       false);
   }
 
   if ( withChildren ) {
@@ -237,8 +243,12 @@ void GEOMBase_Helper::redisplay( GEOM::GEOM_Object_ptr object,
           if ( !CORBA::is_nil( aChild ) ) {
             if ( !aChild->_is_nil() ) {
               QString entry = getEntry( aChild );
-              getDisplayer()->Redisplay( new SALOME_InteractiveObject(
-                entry.toLatin1().constData(), "GEOM", strdup( GEOMBase::GetName( aChild ).toLatin1().constData() ) ), false );
+              QString  name = GEOMBase::GetName( aChild );
+              getDisplayer()->Redisplay
+                ( new SALOME_InteractiveObject( entry.toLatin1().constData(),
+                                                "GEOM",
+                                                name.toLatin1().constData() ),
+                  false );
             }
           }
         }
@@ -267,7 +277,7 @@ void GEOMBase_Helper::displayPreview( const bool   display,
     erasePreview( update );
     return;
   }
-  
+
   isPreview = true;
   QString msg;
   if ( !isValid( msg ) )
@@ -283,20 +293,20 @@ void GEOMBase_Helper::displayPreview( const bool   display,
   try {
     SUIT_OverrideCursor wc;
     ObjectList objects;
+
     if ( !isWaitCursorEnabled() )
       wc.suspend();
-    
+
     if ( !execute( objects ) || !getOperation()->IsDone() ) {
       wc.suspend();
     }
     else {
       for ( ObjectList::iterator it = objects.begin(); it != objects.end(); ++it )
       {
-            GEOM::GEOM_Object_var obj=*it;
+        GEOM::GEOM_Object_var obj = *it;
         displayPreview( obj, true, activate, false, lineWidth, displayMode, color );
         if ( toRemoveFromEngine )
-              obj->UnRegister();
+          obj->UnRegister();
       }
     }
   }
@@ -322,7 +332,7 @@ void GEOMBase_Helper::displayPreview( GEOM::GEOM_Object_ptr object,
                                       const int             displayMode,
                                       const int             color )
 {
-  SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();    
+  SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
 
   // Set color for preview shape
   getDisplayer()->SetColor( color == -1 ? Quantity_NOC_VIOLET : color );
@@ -344,7 +354,7 @@ void GEOMBase_Helper::displayPreview( GEOM::GEOM_Object_ptr object,
   SALOME_Prs* aPrs = getDisplayer()->BuildPrs( object );
   if ( aPrs == 0 || aPrs->IsNull() )
     return;
-    
+
   // Make preview not clippable
   aPrs->SetClippable (false);
 
@@ -375,17 +385,17 @@ void GEOMBase_Helper::displayPreview( const SALOME_Prs* prs,
 
   if ( myViewWindow == 0 )
     return;
-  
+
   // Display prs
   SUIT_ViewManager* aViewManager = myViewWindow->getViewManager();
   if ( aViewManager->getType() == OCCViewer_Viewer::Type() ||
        aViewManager->getType() == SVTK_Viewer::Type() )
-    {
-      SUIT_ViewModel* aViewModel = aViewManager->getViewModel();
-      SALOME_View* aView = dynamic_cast<SALOME_View*>(aViewModel);
-      if (aView)
-        aView->Display( getDisplayer(), prs );
-    }
+  {
+    SUIT_ViewModel* aViewModel = aViewManager->getViewModel();
+    SALOME_View* aView = dynamic_cast<SALOME_View*>(aViewModel);
+    if (aView)
+      aView->Display( getDisplayer(), prs );
+  }
 
   // Add prs to the preview list
   myPreview.push_back( (SALOME_Prs*)prs );
@@ -478,8 +488,11 @@ void GEOMBase_Helper::localSelection( const ObjectList& theObjs, const std::list
       continue;
     QString anEntry = getEntry( anObj );
     if ( anEntry != "" )
-      aListOfIO.Append( new SALOME_InteractiveObject(
-        anEntry.toLatin1().constData(), "GEOM", strdup( GEOMBase::GetName( anObj ).toLatin1().constData() ) ) );
+    {
+      QString aName = GEOMBase::GetName( anObj );
+      aListOfIO.Append( new SALOME_InteractiveObject( anEntry.toLatin1().constData(),
+                                                      "GEOM", aName.toLatin1().constData() ));
+    }
   }
 
   getDisplayer()->LocalSelection( aListOfIO, modes );
@@ -670,11 +683,11 @@ SalomeApp_Study* GEOMBase_Helper::getStudy() const
   SUIT_Application* anApp = 0;
   QListIterator<SUIT_Application*> it( anAppList );
   while ( it.hasNext() )
-    {
-      anApp = it.next();
-      if ( anApp && anApp->desktop() == aDesktop )
-        break;
-    }
+  {
+    anApp = it.next();
+    if ( anApp && anApp->desktop() == aDesktop )
+      break;
+  }
 
   return dynamic_cast<SalomeApp_Study*>(anApp->activeStudy());
 }
@@ -727,7 +740,7 @@ bool GEOMBase_Helper::openCommand()
   if ( !getStudy() || hasCommand() )
   {
     MESSAGE("Getting out from openCommand()")
-    return res;
+      return res;
   }
 
   GEOM::GEOM_IOperations_var anOp = GEOM::GEOM_IOperations::_narrow( getOperation() );
@@ -739,7 +752,7 @@ bool GEOMBase_Helper::openCommand()
   else
   {
     MESSAGE("anOp->_is_nil() = true")
-  }
+      }
 
   return res;
 }
@@ -809,10 +822,10 @@ bool GEOMBase_Helper::checkViewWindow()
     QList<SUIT_ViewWindow*> aViewWindowsList = SUIT_Session::session()->activeApplication()->desktop()->windows();
     QListIterator<SUIT_ViewWindow*> it( aViewWindowsList );
     while ( it.hasNext() )
-      {
-        if ( myViewWindow == it.next() )
-          return true;
-      }
+    {
+      if ( myViewWindow == it.next() )
+        return true;
+    }
   }
   myViewWindow = 0;
   return false;
@@ -827,10 +840,10 @@ bool GEOMBase_Helper::checkViewWindow()
 bool GEOMBase_Helper::onAccept( const bool publish, const bool useTransaction, bool erasePreviewFlag )
 {
   SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( SUIT_Session::session()->activeApplication()->activeStudy() );
-  if ( !appStudy ) 
+  if ( !appStudy )
   {
     MESSAGE("appStudy is empty")
-    return false;
+      return false;
   }
   _PTR(Study) aStudy = appStudy->studyDS();
 
@@ -849,7 +862,7 @@ bool GEOMBase_Helper::onAccept( const bool publish, const bool useTransaction, b
     showError( msg );
     return false;
   }
-  
+
   if(erasePreviewFlag)
     erasePreview( false );
 
@@ -877,21 +890,21 @@ bool GEOMBase_Helper::onAccept( const bool publish, const bool useTransaction, b
             QString aName = getObjectName(obj);
             if (aName.isEmpty()) {
               aName = getNewObjectName(currObj);
-                    if ( nbObjs > 1 ) {
-                            if (aName.isEmpty())
-                              aName = getPrefix(obj);
-                              if (nbObjs <= 30) {
-                                // Try to find a unique name
-                                aName = GEOMBase::GetDefaultName(aName, extractPrefix());
-                              } else {
-                                // Don't check name uniqueness in case of numerous objects
-                                aName = aName + "_" + QString::number(aNumber++);
-                              }
-                    } else {
-                            // PAL6521: use a prefix, if some dialog box doesn't reimplement getNewObjectName()
-                            if ( aName.isEmpty() )
-                              aName = GEOMBase::GetDefaultName( getPrefix( obj ) );
-                    }
+              if ( nbObjs > 1 ) {
+                if (aName.isEmpty())
+                  aName = getPrefix(obj);
+                if (nbObjs <= 30) {
+                  // Try to find a unique name
+                  aName = GEOMBase::GetDefaultName(aName, extractPrefix());
+                } else {
+                  // Don't check name uniqueness in case of numerous objects
+                  aName = aName + "_" + QString::number(aNumber++);
+                }
+              } else {
+                // PAL6521: use a prefix, if some dialog box doesn't reimplement getNewObjectName()
+                if ( aName.isEmpty() )
+                  aName = GEOMBase::GetDefaultName( getPrefix( obj ) );
+              }
             }
             anEntryList << addInStudy( obj, aName.toLatin1().constData() );
             // updateView=false
@@ -941,18 +954,18 @@ bool GEOMBase_Helper::onAccept( const bool publish, const bool useTransaction, b
     SalomeApp_Tools::QtCatchCorbaException( e );
     abortCommand();
     MESSAGE("Exception caught")
-  }
+      }
 
   updateViewer();
 
   MESSAGE("result ="<<result)
-  return result;
+    return result;
 }
 
 
 //================================================================
 // Function : showError
-// Purpose  : Shows a message box with infromation about an error taken from getOperation()->GetErrorCode()
+// Purpose  : Shows a message box with information about an error taken from getOperation()->GetErrorCode()
 //================================================================
 void GEOMBase_Helper::showError()
 {
@@ -1068,15 +1081,15 @@ QString GEOMBase_Helper::getPrefix( GEOM::GEOM_Object_ptr theObj ) const
 
   switch ( aType )
   {
-    case GEOM::VERTEX   : return QObject::tr( "GEOM_VERTEX" );
-    case GEOM::EDGE     : return QObject::tr( "GEOM_EDGE" );
-    case GEOM::WIRE     : return QObject::tr( "GEOM_WIRE" );
-    case GEOM::FACE     : return QObject::tr( "GEOM_FACE" );
-    case GEOM::SHELL    : return QObject::tr( "GEOM_SHELL" );
-    case GEOM::SOLID    : return QObject::tr( "GEOM_SOLID" );
-    case GEOM::COMPSOLID: return QObject::tr( "GEOM_COMPOUNDSOLID" );
-    case GEOM::COMPOUND : return QObject::tr( "GEOM_COMPOUND" );
-    default : return "";
+  case GEOM::VERTEX   : return QObject::tr( "GEOM_VERTEX" );
+  case GEOM::EDGE     : return QObject::tr( "GEOM_EDGE" );
+  case GEOM::WIRE     : return QObject::tr( "GEOM_WIRE" );
+  case GEOM::FACE     : return QObject::tr( "GEOM_FACE" );
+  case GEOM::SHELL    : return QObject::tr( "GEOM_SHELL" );
+  case GEOM::SOLID    : return QObject::tr( "GEOM_SOLID" );
+  case GEOM::COMPSOLID: return QObject::tr( "GEOM_COMPOUNDSOLID" );
+  case GEOM::COMPOUND : return QObject::tr( "GEOM_COMPOUND" );
+  default : return "";
   }
 }
 
@@ -1147,7 +1160,7 @@ GEOM::GEOM_Object_ptr GEOMBase_Helper::findObjectInFather (GEOM::GEOM_Object_ptr
   }
   if (inStudy)
     return aReturnObject._retn();
-  
+
   return GEOM::GEOM_Object::_nil();
 }
 
@@ -1160,7 +1173,7 @@ GEOM::GEOM_Object_ptr GEOMBase_Helper::findObjectInFather( GEOM::GEOM_Object_ptr
                                                            int theIndex )
 {
   GEOM::GEOM_Object_var object;
-  
+
   SalomeApp_Study* study = dynamic_cast<SalomeApp_Study*>( SUIT_Session::session()->activeApplication()->activeStudy() );
   if ( study ) {
     _PTR(Study) studyDS = study->studyDS();
@@ -1182,7 +1195,7 @@ GEOM::GEOM_Object_ptr GEOMBase_Helper::findObjectInFather( GEOM::GEOM_Object_ptr
       }
     }
   }
-  
+
   return object._retn();
 }
 
@@ -1213,7 +1226,7 @@ QList<GEOM::GeomObjPtr> GEOMBase_Helper::getSourceObjects()
 // Returns valid object if only one object of the specified type is selected
 // (no matter global or local selection is activated). If \a type is TopAbs_SHAPE,
 // geometrical object of any valid type is expected.
-// 
+//
 // \param type type of the object to be obtained from selection
 // \return selected geometrical object or nil object if selection is not satisfactory
 //================================================================
@@ -1232,7 +1245,7 @@ GEOM::GeomObjPtr GEOMBase_Helper::getSelected( TopAbs_ShapeEnum type )
 // (no matter global or local selection is activated). The list of allowed
 // shape types is passed via \a types. If \a types includes TopAbs_SHAPE,
 // geometrical object of any valid type is expected.
-// 
+//
 // \param types list of allowed shape types for the objects to be obtained from selection
 // \return selected geometrical object or nil object if selection is not satisfactory
 //================================================================
@@ -1252,7 +1265,7 @@ GEOM::GeomObjPtr GEOMBase_Helper::getSelected( const QList<TopAbs_ShapeEnum>& ty
 //
 // The \a type parameter specifies allowed type of the object(s) being selected.
 // The \a count parameter specifies exact number of the objects to be retrieved from selection.
-// The \a strict parameter specifies policy being applied to the selection. 
+// The \a strict parameter specifies policy being applied to the selection.
 // If \a count < 0, then any number of the selected objects is valid (including 0).
 // In this case, if \a strict is \c true (default), all selected objects should satisfy
 // the specified \a type.
@@ -1260,7 +1273,7 @@ GEOM::GeomObjPtr GEOMBase_Helper::getSelected( const QList<TopAbs_ShapeEnum>& ty
 // In this case, if \a strict is \c true (default), function returns empty list if total number of selected
 // objects does not correspond to the \a count parameter. Otherwise (if \a strict is \c false),
 // function returns valid list of objects if at least \a count objects satisfy specified \a type.
-// 
+//
 // \param type type of the object(s) to be obtained from selection
 // \param count number of items to be retrieved from selection
 // \param strict selection policy
@@ -1291,7 +1304,7 @@ static bool typeInList( TopAbs_ShapeEnum type, const QList<TopAbs_ShapeEnum>& ty
 //
 // The \a types parameter specifies allowed types of the object(s) being selected.
 // The \a count parameter specifies exact number of the objects to be retrieved from selection.
-// The \a strict parameter specifies policy being applied to the selection. 
+// The \a strict parameter specifies policy being applied to the selection.
 // If \a count < 0, then any number of the selected objects is valid (including 0).
 // In this case, if \a strict is \c true (default), all selected objects should satisfy
 // the specified \a type.
@@ -1299,7 +1312,7 @@ static bool typeInList( TopAbs_ShapeEnum type, const QList<TopAbs_ShapeEnum>& ty
 // In this case, if \a strict is \c true (default), function returns empty list if total number of selected
 // objects does not correspond to the \a count parameter. Otherwise (if \a strict is \c false),
 // function returns valid list of objects if at least \a count objects satisfy specified \a type.
-// 
+//
 // \param types list of allowed shape types for the objects to be obtained from selection
 // \param count number of items to be retrieved from selection
 // \param strict selection policy
index 239e28d6243176984801aee539e06a65c67370ed..dbca01463fa0accddb3dd5f921e0ff3ae94b7b9d 100755 (executable)
@@ -133,7 +133,7 @@ protected:
   // should be published in a study.
 
   void showError();
-  // Shows a message box with infromation about an error taken from getOperation()->GetErrorCode()
+  // Shows a message box with information about an error taken from getOperation()->GetErrorCode()
   void showError( const QString& msg );
   // Shows a error message followed by <msg>
 
index 7b8c23622892c7f3e839237f8ccb2abacf8454d0..ecca16fb8c5f0a20a3402250c502fdc039f968ff 100644 (file)
@@ -135,14 +135,14 @@ public:
     /*!
      * \brief Inits property fields from the passed length object.
      * \param theIO [in] the interactive presentation.
-     * \param theLCS [in] the local coordiante system of parent object.
+     * \param theLCS [in] the local coordinate system of parent object.
      */
     void Init( const Handle(AIS_LengthDimension)& theIO, const gp_Ax3& theLCS );
 
     /*!
      * \brief Updates length object properties from the fields.
      * \param theIO [in/out] the interactive presentation.
-     * \param theLCS [in] the local coordiante system of parent object.
+     * \param theLCS [in] the local coordinate system of parent object.
      */
     void Update( Handle(AIS_LengthDimension)& theIO, const gp_Ax3& theLCS );
 
@@ -160,7 +160,7 @@ public:
     void FromValues(int& theIt, const std::vector<double>& theValues);
 
     /*!
-     * \brief Overload comparsion.
+     * \brief Overload comparison.
      */
     bool operator == (const Length &theOther) const;
     bool operator != (const Length &theOther) const { return !(operator == (theOther)); }
@@ -203,14 +203,14 @@ public:
     /*!
      * \brief Inits property fields from the passed length object.
      * \param theIO [in] the interactive presentation.
-     * \param theLCS [in] the local coordiante system of parent object.
+     * \param theLCS [in] the local coordinate system of parent object.
      */
     void Init( const Handle(AIS_DiameterDimension)& theIO, const gp_Ax3& theLCS );
 
     /*!
      * \brief Updates length object properties from the fields.
      * \param theIO [in/out] the interactive presentation.
-     * \param theLCS [in] the local coordiante system of parent object.
+     * \param theLCS [in] the local coordinate system of parent object.
      */
     void Update( Handle(AIS_DiameterDimension)& theIO, const gp_Ax3& theLCS );
 
@@ -228,7 +228,7 @@ public:
     void FromValues(int& theIt, const std::vector<double>& theValues);
 
     /*!
-     * \brief Overload comparsion.
+     * \brief Overload comparison.
      */
     bool operator == (const Diameter &theOther) const;
     bool operator != (const Diameter &theOther) const { return !(operator == (theOther)); }
@@ -273,14 +273,14 @@ public:
     /*!
      * \brief Inits property fields from the passed length object.
      * \param theIO [in] the interactive presentation.
-     * \param theLCS [in] the local coordiante system of parent object.
+     * \param theLCS [in] the local coordinate system of parent object.
      */
     void Init( const Handle(AIS_AngleDimension)& theIO, const gp_Ax3& theLCS );
 
     /*!
      * \brief Updates length object properties from the fields.
      * \param theIO [in/out] the interactive presentation.
-     * \param theLCS [in] the local coordiante system of parent object.
+     * \param theLCS [in] the local coordinate system of parent object.
      */
     void Update( Handle(AIS_AngleDimension)& theIO, const gp_Ax3& theLCS );
 
@@ -298,7 +298,7 @@ public:
     void FromValues(int& theIt, const std::vector<double>& theValues);
 
     /*!
-     * \brief Overload comparsion.
+     * \brief Overload comparison.
      */
     bool operator == (const Angle &theOther) const;
     bool operator != (const Angle &theOther) const { return !(operator == (theOther)); }
@@ -352,12 +352,12 @@ public:
   operator QString() const;
 
   /*!
-   * \brief Overload comparsion.
+   * \brief Overload comparison.
    */
   bool operator == (const GEOMGUI_DimensionProperty &theOther) const;
 
   /*!
-   * \brief Overload comparsion.
+   * \brief Overload comparison.
    */
   bool operator != (const GEOMGUI_DimensionProperty &theOther) const
   {
index dea39bbc5be97ce0260f734fb5b4f4fa5b6a6fa7..56e82b81ea64a0383189e9a2b1cefb2e35176ec7 100755 (executable)
@@ -1669,7 +1669,7 @@ void GEOM_Displayer::Update( SALOME_VTKPrs* prs )
 //=================================================================
 /*!
  *  GEOM_Displayer::BuildPrs
- *  Build presentation accordint to the current viewer type
+ *  Build presentation according to the current viewer type
  */
 //=================================================================
 SALOME_Prs* GEOM_Displayer::BuildPrs( GEOM::GEOM_Object_ptr theObj )
@@ -1698,7 +1698,7 @@ SALOME_Prs* GEOM_Displayer::BuildPrs( GEOM::GEOM_Object_ptr theObj )
 //=================================================================
 /*!
  *  GEOM_Displayer::BuildPrs
- *  Build presentation accordint to the current viewer type
+ *  Build presentation according to the current viewer type
  */
 //=================================================================
 SALOME_Prs* GEOM_Displayer::BuildPrs( const TopoDS_Shape& theShape )
index 48d8f2cf5533ebc633ca41e2daa2e00dd1b3cc88..c01dadf05adbacd9f3f340a863833e819dde1ff4 100755 (executable)
@@ -129,7 +129,7 @@ public:
   /* Update visibility state */
   void          UpdateVisibility( SALOME_View*, const SALOME_Prs*, bool );
 
-  /* build presentation accordint to the current viewer type*/
+  /* build presentation according to the current viewer type*/
   SALOME_Prs*   BuildPrs  ( GEOM::GEOM_Object_ptr );
   SALOME_Prs*   BuildPrs  ( const TopoDS_Shape& );
 
index 3f42292a6e8a6c6630b800975b2184dd852c6e0f..fbd647b682e9be1a707a12a9a00a280a3191229e 100644 (file)
@@ -116,7 +116,7 @@ Standard_Integer GEOMImpl_ArchimedeDriver::Execute(Handle(TFunction_Logbook)& lo
     double volume = VOL.CalculateVolume(Zmax) * aWaterDensity;
 
     char msg[100] = "";
-    sprintf(msg, "shape sinks to the bottom : Weigth max = %.1f", volume);
+    sprintf(msg, "shape sinks to the bottom : Weight max = %.1f", volume);
 
     StdFail_NotDone::Raise(msg);
   }
index 2c4f4ab6c84a2b282e7e62c1d40c66223f23b787..25f25227c6b98dd6bd412027dd4eae43a1c76f08 100644 (file)
@@ -915,7 +915,7 @@ void GEOMImpl_Block6Explorer::InitByTwoFaces (const TopoDS_Shape& theFace1,
   }
 
   // 1.2. Ordered vertices and edges of the second face we temporarily store
-  // in arrays, to find for them rigth location in <myVertices> on the Step 2.
+  // in arrays, to find for them the right location in <myVertices> in Step 2.
 
   // declare arrays
   TopTools_Array1OfShape aVertis2(1,4); // ordered vertices of the second face
index 20ab8d47fddc6e88259c0a16eab96bd0c1b7a884..d014f5503baa5cf5237d7d5a4a71f564f22ea7c4 100644 (file)
@@ -336,7 +336,7 @@ TopoDS_Shape GEOMImpl_GlueDriver::GlueFaces
   aGA.SetTolerance(theTolerance);
   aGA.SetKeepNonSolids(doKeepNonSolids);
 
-  // 2. Detect interferred shapes
+  // 2. Detect interfered shapes
   aGA.Detect();
 
   //Standard_Integer iWrnDetect = aGA.WarningStatus();
@@ -451,7 +451,7 @@ TopoDS_Shape GEOMImpl_GlueDriver::GlueWithWarnings (const TopoDS_Shape& theShape
   aGA.SetTolerance(theTolerance);
   aGA.SetKeepNonSolids(doKeepNonSolids);
 
-  // 2. Detect interferred shapes
+  // 2. Detect interfered shapes
   aGA.Detect();
 
   //modified by NIZNHY-PKV Tue Mar 13 14:07:12 2012f
@@ -609,7 +609,7 @@ TopoDS_Shape GEOMImpl_GlueDriver::GlueByList (const TopoDS_Shape& theShape,
   aGA.SetTolerance(theTolerance);
   aGA.SetKeepNonSolids(doKeepNonSolids);
 
-  // 2. Detect interferred shapes
+  // 2. Detect interfered shapes
   aGA.Detect();
 
   //modified by NIZNHY-PKV Tue Mar 13 14:07:12 2012f
index c75a775b2058491ba65357b2941e7aabfc6e3a82..5014ef7e8a0462a45365326a22af26b0d5f66ee7 100644 (file)
@@ -63,7 +63,7 @@
 
 //=======================================================================
 //function :  raiseNotDoneExeption
-//purpose  :  global function: forms error message and raises exeption
+//purpose  :  global function: forms error message and raises exception
 //=======================================================================
 void raiseNotDoneExeption( const int theErrorStatus )
 {
index c217a5c07a18533e2f111516213be1b39b462a47..98e66e3b34e437b45674efb132605d56c0ce1f54 100644 (file)
@@ -1878,7 +1878,7 @@ Handle(TColStd_HSequenceOfTransient)
   try {
     OCC_CATCH_SIGNALS;
     if (!GetSolver()->ComputeFunction(aFunction)) {
-      SetErrorCode("Pipe with defferent section driver failed");
+      SetErrorCode("Pipe with different section driver failed");
       return NULL;
     }
   }
index f95c5cd9ed16e76ebea8007f712081313ea0cc09..344dbfb463c0071403cd41702b010e181c5df958 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Arc creation.
+//NOTE: This is an interface to a function for the Arc creation.
 //
 #include "GEOM_Function.hxx"
 
index ac0009cdd5be60021132bbe1980b284d9e946e58..5d0da117118bc3b69480ac13bcfe3be800959b96 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Archimede operation.
+//NOTE: This is an interface to a function for the Archimede operation.
 //
 #include "GEOM_Function.hxx"
 
index 470739bd5150e1aab81686c9ef9f5782e2ce7e1e..499d8951789e5ab200ce3864a49be1a373966b55 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Common, Cut and Fuse creation.
+//NOTE: This is an interface to a function for the Common, Cut and Fuse creation.
 //
 #include "GEOM_Function.hxx"
 #include "TColStd_HSequenceOfTransient.hxx"
index 5a152c933008cbaf81c7b2f9012fb4c6d2c39e9a..fd571341acebf1b2c84636af53877d153e372d6f 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Box creation.
+//NOTE: This is an interface to a function for the Box creation.
 //
 #include "GEOM_Function.hxx"
 
index 70a71b6f0c8199904faa7a1d749d46f179fafac0..d87ccb8cc7cf7f208336fe5c2c1468384a7e9d96 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Circle creation.
+//NOTE: This is an interface to a function for the Circle creation.
 //
 #include "GEOM_Function.hxx"
 
index a55d2b56133e55dc6fd0a0c7f168802a2f6cf88f..6d534aebea25edb09fdc8610294358ad840bd08e 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Cone creation.
+//NOTE: This is an interface to a function for the Cone creation.
 //
 #include "GEOM_Function.hxx"
 
index a3ec0c733787e897ad7c1d82dd0080bff9c70081..6fc5df8eaeb008881e1b26ee405736a386ec6b7d 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Copy operation.
+//NOTE: This is an interface to a function for the Copy operation.
 //
 #include "GEOM_Function.hxx"
 
index 3215ffca861edc18edbac2393cedf02b1dbb7f6a..b37cb553a4d6d322c3ba7149aca101ea011f1eb1 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Cylinder creation.
+//NOTE: This is an interface to a function for the Cylinder creation.
 //
 #include "GEOM_Function.hxx"
 
index e3dd2d52f6500eca70c51bd943345017d1b8746a..32b43637e7d5f1ccbf6e378b8a4580169fc11353 100755 (executable)
@@ -17,7 +17,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Disk creation.
+//NOTE: This is an interface to a function for the Disk creation.
 //
 #include "GEOM_Function.hxx"
 
index 0a84af66f521131ced30b2e154abb1275f946371..3db6b40c8af05384fd70fdba8c01d301e2218b25 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Ellipse creation.
+//NOTE: This is an interface to a function for the Ellipse creation.
 //
 #include "GEOM_Function.hxx"
 
index b5905696e40cd2992389a58c07a005141ed4b21d..93a6d5dae7eea28e7b09262bef6befc05f60b654 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Offset creation.
+//NOTE: This is an interface to a function for the Offset creation.
 //
 #include "GEOM_Function.hxx"
 #include <TColStd_HArray1OfInteger.hxx>
index 1c240cb7df1c37b213fe100bc4bdc8a859f6335e..ece0510187c5cc14ca2d23ac21776ffcc333c6e8 100755 (executable)
@@ -17,7 +17,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Face creation.
+//NOTE: This is an interface to a function for the Face creation.
 //
 #include "GEOM_Function.hxx"
 
index 812ac132cd1235d09cda25f8192e56753f93e9b7..059c501b26e1ebff494c5d93ecdfc886562e4f9a 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Filling operation.
+//NOTE: This is an interface to a function for the Filling operation.
 //
 #include "GEOM_Function.hxx"
 #include <TColStd_HSequenceOfTransient.hxx>
index c0ef51087211be5de34828af902c0e112b3c60d2..de71434f97ddba11d1781bce4d55cdbec9cc835e 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Import Export operation.
+//NOTE: This is an interface to a function for the Import Export operation.
 //
 #include "GEOM_Function.hxx"
 
index 0e186f74111afce38a3b66cb89c580838cb48e01..1257dc8c47b1fe7a96b453f4e7499bb76328cf11 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the vector creation.
+//NOTE: This is an interface to a function for the vector creation.
 //
 #include "GEOM_Function.hxx"
 
index fea75eac976d370520fd0a3d5ba2d0b1b917bca4..21287c81a74fbf04a8d9d440c5fd2ab5c90b1b02 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Offset creation.
+//NOTE: This is an interface to a function for the Offset creation.
 //
 #include "GEOM_Function.hxx"
 #include <TColStd_HArray1OfInteger.hxx>
index bcb58e5a0b0a1ff67653b63aceb85b835d1c96cb..a37e95368ae2fb94cce5245547e2076641d01a78 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Partition creation.
+//NOTE: This is an interface to a function for the Partition creation.
 //
 #include "GEOM_Function.hxx"
 
index 798b3348b678ec2206a0b6b1f4627ec38fbf1049..35c730678dce7efa963aa053235d399f2762bc0d 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Pipe creation.
+//NOTE: This is an interface to a function for the Pipe creation.
 //
 #ifndef _GEOMImpl_IPIPE_HXX_
 #define _GEOMImpl_IPIPE_HXX_
index c0dd780039db678022b5999f8860563ecedb61a9..bfe638a26a5bb424f6165665799527f017d495b2 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Pipe creation.
+//NOTE: This is an interface to a function for the Pipe creation.
 
 #ifndef _GEOMImpl_IPIPEDIFFSECT_HXX_
 #define _GEOMImpl_IPIPEDIFFSECT_HXX_
index bd508bfd4b90755d5da8902b55ffe5fef6c33129..a816e42e492be9e7a75c061a2b6e3ec62b37abd9 100644 (file)
@@ -17,7 +17,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Pipe creation.
+//NOTE: This is an interface to a function for the Pipe creation.
 
 #ifndef _GEOMImpl_IPIPESHELLSECT_HXX_
 #define _GEOMImpl_IPIPESHELLSECT_HXX_
index 0ad5010499226ef38db7add2a9e53bbe7db2c644..34b6c352a1c871c5bdd2a63c0808b28521ca3e50 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the vector creation.
+//NOTE: This is an interface to a function for the vector creation.
 //
 #include "GEOM_Function.hxx"
 
index 6aa23a52d2f45e070bece3ce910fdb3eecb63de0..44702db0dd5c1b6369000ca959647d4ae533d0ea 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Setting In Position.
+//NOTE: This is an interface to a function for the Setting In Position.
 //
 #include "GEOM_Function.hxx"
 
index ecfc91e64e2c7fa06e41855f1f0889c26b5e13d6..06982fd7eaa3a2dec392730b72a64ee2e8c249c6 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Prism creation.
+//NOTE: This is an interface to a function for the Prism creation.
 
 #include "GEOM_Function.hxx"
 // #include <GEOMImpl_Mode.hxx>  TEST
index 9a7f9bf908c53e4efb6de18a7ffe65d0c0ce0352..cbbc52b66c18b51b2d52522730f59feb07661756 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Revolution creation.
+//NOTE: This is an interface to a function for the Revolution creation.
 //
 #include "GEOM_Function.hxx"
 
index f819ac1401d99a7b7770d793538000e57b63fae6..5db120a78a1c0d501518dfed246ee55bb20d3f88 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Scale creation.
+//NOTE: This is an interface to a function for the Scale creation.
 //
 #include "GEOM_Function.hxx"
 
index 004bc142b720176e9406baa05df44150fd44f1e1..6bdb18092e423c375ee218fbb49cad876cacf817 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the extended shape creation.
+//NOTE: This is an interface to a function for the extended shape creation.
 //
 #include "GEOM_Function.hxx"
 
index 248c697c15410fe34d67280f681abe3af8fa224f..bbc5e176f7c6721c7069638ff2ac93fed330d437 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Sphere creation.
+//NOTE: This is an interface to a function for the Sphere creation.
 //
 #include "GEOM_Function.hxx"
 
index f0d04e927d56ac56920278eb235b85634cf83538..91303ee9ae2729e30f513723fea9ef003ce69076 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Pipe creation.
+//NOTE: This is an interface to a function for the Pipe creation.
 //
 #include "GEOM_Function.hxx"
 #include <TColStd_HSequenceOfTransient.hxx>
index ed224a03fe436f7557209e406b19b7691a720875..3c04a7cb6d25377cbb5cc1025f6aa4ead1e80db1 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Torus creation.
+//NOTE: This is an interface to a function for the Torus creation.
 //
 #include "GEOM_Function.hxx"
 
index e4ae42a6e0a9c9186906078d6f60500a92b0b47f..e6e11f659ce67c08ea9772a1a922d4b8a48d0a6b 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Transfer Data functionality.
+//NOTE: This is an interface to a function for the Transfer Data functionality.
 //
 
 
index acded66d70418fa4c1aaa5b04b498178a06f8031..a2929464900d57658722351675aa3d76b25c12e5 100644 (file)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Transfer Data functionality.
+//NOTE: This is an interface to a function for the Transfer Data functionality.
 //
 
 
index d48d438cdf5ff797813a9723cd46f67532eb2d8a..c128d03ac6c970a5075d726dfd4f3afae96ab1d2 100755 (executable)
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//NOTE: This is an intreface to a function for the Translate creation.
+//NOTE: This is an interface to a function for the Translate creation.
 //
 #include "GEOM_Function.hxx"
 
index 5bb530e396aa9b8d828f64b007789295132d32e8..d84397a4c72512f8fdd7c2b85dbf4b3c4b29d629 100644 (file)
@@ -569,7 +569,7 @@ static void FindNextPairOfFaces(const TopoDS_Shape& aCurFace,
     bool stat =  FillForOtherEdges(F1other,E1,V1,FF);
     if (!stat) {
       if (aCI) delete aCI;
-      Standard_ConstructionError::Raise("FindNextPairOfFaces: Can not mapping other egdes");
+      Standard_ConstructionError::Raise("FindNextPairOfFaces: Can not map other edges");
     }
 
     FindNextPairOfFaces(F1other, aMapEdgeFaces1, aMapEdgeFaces2, FF, aCI);
@@ -919,7 +919,7 @@ TopoDS_Shape GEOMImpl_PipeDriver::CreatePipeWithDifferentSections
       }
     }
     if (nbEdges<Edges.Length()) {
-        // one of edges was splitted => we have to update WirePath
+        // one of edges was split => we have to update WirePath
         BRep_Builder B;
         TopoDS_Wire W;
         B.MakeWire(W);
@@ -1824,7 +1824,7 @@ static TopoDS_Shape CreatePipeForShellSections(const TopoDS_Wire& aWirePath,
         bool stat =  FillForOtherEdges(FS1,E1,V11,FF);
         if (!stat) {
           if (aCI) delete aCI;
-          Standard_ConstructionError::Raise("FindForOtherEdges: Can not mapping other egdes");
+          Standard_ConstructionError::Raise("FindForOtherEdges: Can not map other edges");
         }
 
       }
index 3a34f1bcba45f0626541916858a7e17b0a134db3..52e71ee4fb3a9ae8f93c09f50efad5a9785cc87f 100644 (file)
@@ -91,7 +91,7 @@ Standard_Boolean GEOMImpl_PolylineDumper::Dump
     aPD << theObject << " = pl.result(";
 
     if (myWorkingPlane.IsNull()) {
-      // Add coodinates of working plane.
+      // Add coordinates of working plane.
       Standard_Integer i;
 
       aPD << "[";
index 96d86599bbd4529854d15515656708e03dabe3d2..1f5bc409dae02e4379c860e8a8196d2ced5d6a15 100644 (file)
@@ -77,7 +77,7 @@ static QString getParentComponent( _PTR( SObject ) obj )
 
 //=====================================================================================
 // function : inUse
-// purpose  : check if the object(s) passed as the the second arguments are used
+// purpose  : check if the object(s) passed as the second arguments are used
 //            by the other objects in the study
 //=====================================================================================
 static bool inUse( const QString& component, const QMap<QString,QString>& objects )
index f216e59746507a3f93576691026daec0bd08e198..bbce1f2427baf45a11f3dcf973f5a997eb7e91a8 100644 (file)
 // Below macro, when uncommented, switches on simplified (more performant) algorithm
 // of auto-color picking up
 #define SIMPLE_AUTOCOLOR
-// Below macro, when defined, switches on automatic layouting of OCC and Dependecy views
+// Below macro, when defined, switches on automatic layouting of OCC and Dependency views
 // on Show Dependencies operation
 #define LAYOUT_DEPVIEW
 
index bc62c01c0d4c538964b2864224cc3f45c818c15f..c96f808218bb85cc77355451293202ac9580cd0e 100644 (file)
@@ -67,7 +67,7 @@
 */
 
 /*!
-  \brief Contructor
+  \brief Constructor
  */
 GEOMToolsGUI_MaterialList::GEOMToolsGUI_MaterialList( QWidget* parent )
   : QListWidget( parent )
index 3f6e6b98f50aca8d268b3c9c00eb439574c60d03..9159af61c383c683ce2a8bb703ab4918fa03da27 100644 (file)
@@ -238,7 +238,7 @@ void GEOMToolsGUI_TransparencyDlg::SliderHasMoved(int value)
 //=================================================================================
 // function : SetTransparency()
 // purpose  : Called when value of slider change
-//          : or the first time as initilisation
+//          : or the first time as initialisation
 //=================================================================================
 void GEOMToolsGUI_TransparencyDlg::SetTransparency()
 {
index 20201f79912bf5e871f4324120899ef4a908ae46..c91556ae35231232780c00c9a0cfccd708b19a1b 100644 (file)
@@ -254,10 +254,10 @@ namespace GEOMUtils
   Standard_EXPORT bool CheckShape( TopoDS_Shape& shape, bool checkGeometry = false );
 
   /*!
-   * \brief Check boolean and partition operations agruments
+   * \brief Check boolean and partition operations arguments
    *
-   * \param theShape the agrument of an operation to be checked
-   * \return \c true if the agrument is valid for a boolean or partition
+   * \param theShape the argument of an operation to be checked
+   * \return \c true if the argument is valid for a boolean or partition
    *         operation or \c false otherwise
    */
   Standard_EXPORT bool CheckBOPArguments(const TopoDS_Shape &theShape);
index 756ebd362ac3ca128baadda2f85c918025a67f19..b94e8619eac09ed5b19af20c1e51b9dc1cc132b4 100644 (file)
@@ -915,7 +915,7 @@ GEOM::ListOfGO* GEOM_Gen_i::RestoreSubShapesO (GEOM::GEOM_Object_ptr   theObject
   CORBA::String_var anIORo = _orb->object_to_string(theObject);
   SALOMEDS::SObject_var aSO = aStudy->FindObjectIOR(anIORo.in());
   //PTv, IMP 0020001, The salome object <aSO>
-  // is not obligatory in case of invokation from script
+  // is not obligatory in case of invocation from script
   // if (CORBA::is_nil(aSO))
   //  return aParts._retn();
 
@@ -944,7 +944,7 @@ GEOM::ListOfGO* GEOM_Gen_i::RestoreGivenSubShapesO (GEOM::GEOM_Object_ptr   theO
   CORBA::String_var anIORo = _orb->object_to_string(theObject);
   SALOMEDS::SObject_var aSO = getStudyServant()->FindObjectIOR(anIORo.in());
   //PTv, IMP 0020001, The salome object <aSO>
-  // is not obligatory in case of invokation from script
+  // is not obligatory in case of invocation from script
   // if (CORBA::is_nil(aSO))
   //  return aParts._retn();
 
@@ -1027,7 +1027,7 @@ GEOM::ListOfGO* GEOM_Gen_i::RestoreSubShapes(GEOM::GEOM_Object_ptr   theObject,
   GEOM::ListOfGO_var aParts = new GEOM::ListOfGO;
   SALOMEDS::Study_var aStudy = getStudyServant();
   //PTv, IMP 0020001, The salome object <theSObject>
-  //     is not obligatory in case of invokation from script
+  //     is not obligatory in case of invocation from script
   if (CORBA::is_nil(aStudy) || CORBA::is_nil(theObject) /*|| CORBA::is_nil(theSObject)*/)
     return aParts._retn();
 
@@ -1620,7 +1620,7 @@ GEOM::ListOfGO* GEOM_Gen_i::RestoreGivenSubShapes(GEOM::GEOM_Object_ptr   theObj
   GEOM::ListOfGO_var aParts = new GEOM::ListOfGO;
   SALOMEDS::Study_var aStudy = getStudyServant();
   //PTv, IMP 0020001, The salome object <theSObject>
-  //     is not obligatory in case of invokation from script
+  //     is not obligatory in case of invocation from script
   if (CORBA::is_nil(aStudy) || CORBA::is_nil(theObject) /*|| CORBA::is_nil(theSObject)*/)
     return aParts._retn();
 
index ad7fe1b03b5c1a56e78c2f648f16f9569b1c1e97..80340bb7c4f1ddb93484f31f284c7b63850d655f 100644 (file)
@@ -826,7 +826,7 @@ CORBA::Boolean GEOM_IMeasureOperations_i::CheckBOPArguments
   bool isGood = false;
 
   if (!aShape.IsNull()) {
-    // Check BOP agruments
+    // Check BOP arguments
     isGood = GetOperations()->CheckBOPArguments(aShape);
   }
 
index e91a9078e2cca522da3aef7cf73b1281263c56dd..64c2aae1a240fbb40769a9ffd575069eea514258 100644 (file)
@@ -21,7 +21,7 @@
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-#  GEOM_SWIG : binding of C++ implementaion with Python
+#  GEOM_SWIG : binding of C++ implementation with Python
 #  File   : GEOM_TestHealing.py
 #  Author : Julia DOROVSKIKH
 #  Module : GEOM
index a3f7f6f33cd19c2e5f0c5e61f168dd73fa1739ee..4b4077653383664f456ed1cc444651094602075f 100644 (file)
@@ -21,7 +21,7 @@
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-#  GEOM GEOM_SWIG : binding of C++ implementaion with Python
+#  GEOM GEOM_SWIG : binding of C++ implementation with Python
 #  File   : GEOM_blocks.py
 #  Author : Julia DOROVSKIKH
 #  Module : GEOM
index 90646df4ba6169c5af160556f3ca80b3896c7cd2..a0952d792d36065913629a75c104a1d83ea1699e 100644 (file)
@@ -4367,7 +4367,7 @@ class geomBuilder(GEOM._objref_GEOM_Gen):
         #  @param theBase Base shape to be extruded.
         #  @param thePath Path shape to extrude the base shape along it.
         #  @param theVec Vector defines a constant binormal direction to keep the
-        #                same angle beetween the direction and the sections
+        #                same angle between the direction and the sections
         #                along the sweep surface.
         #  @param IsGenerateGroups flag that tells if it is necessary to
         #         create groups. It is equal to False by default.
@@ -4396,7 +4396,7 @@ class geomBuilder(GEOM._objref_GEOM_Gen):
                 theBase Base shape to be extruded.
                 thePath Path shape to extrude the base shape along it.
                 theVec Vector defines a constant binormal direction to keep the
-                       same angle beetween the direction and the sections
+                       same angle between the direction and the sections
                        along the sweep surface.
                 IsGenerateGroups flag that tells if it is necessary to
                                  create groups. It is equal to False by default.
@@ -10515,7 +10515,7 @@ class geomBuilder(GEOM._objref_GEOM_Gen):
             Parameters:
                 theInit Shape to remove material from. It must be a solid or a compound made of a single solid.
                 theBase Closed edge or wire defining the base shape to be extruded.
-                theH Prism dimension along the normal  to theBase
+                theH Prism dimension along the normal to theBase
                 theAngle Draft angle in degrees.
                 theInvert If true material changes the direction.
                 theName Object name; when specified, this parameter is used
@@ -10555,7 +10555,7 @@ class geomBuilder(GEOM._objref_GEOM_Gen):
             Parameters:
                 theInit Shape to add material to. It must be a solid or a compound made of a single solid.
                 theBase Closed edge or wire defining the base shape to be extruded.
-                theH Prism dimension along the normal  to theBase
+                theH Prism dimension along the normal to theBase
                 theAngle Draft angle in degrees.
                 theInvert If true material changes the direction.
                 theName Object name; when specified, this parameter is used
@@ -11540,7 +11540,7 @@ class geomBuilder(GEOM._objref_GEOM_Gen):
 
         ## Detect self-intersections of the given shape with algorithm based on mesh intersections.
         #  @param theShape Shape to check.
-        #  @param theDeflection Linear deflection coefficient that specifies quality of tesselation:
+        #  @param theDeflection Linear deflection coefficient that specifies quality of tessellation:
         #         - if \a theDeflection <= 0, default deflection 0.001 is used
         #  @param theTolerance Specifies a distance between sub-shapes used for detecting gaps:
         #         - if \a theTolerance <= 0, algorithm detects intersections (default behavior)
@@ -11555,7 +11555,7 @@ class geomBuilder(GEOM._objref_GEOM_Gen):
 
             Parameters:
                 theShape Shape to check.
-                theDeflection Linear deflection coefficient that specifies quality of tesselation:
+                theDeflection Linear deflection coefficient that specifies quality of tessellation:
                     - if theDeflection <= 0, default deflection 0.001 is used
                 theTolerance Specifies a distance between shapes used for detecting gaps:
                     - if theTolerance <= 0, algorithm detects intersections (default behavior)
@@ -11569,20 +11569,20 @@ class geomBuilder(GEOM._objref_GEOM_Gen):
             RaiseIfFailed("CheckSelfIntersectionsFast", self.MeasuOp)
             return IsValid
 
-        ## Check boolean and partition operations agruments.
-        #  @param theShape the agrument of an operation to be checked
-        #  @return TRUE if the agrument is valid for a boolean or partition
+        ## Check boolean and partition operations arguments.
+        #  @param theShape the argument of an operation to be checked
+        #  @return TRUE if the argument is valid for a boolean or partition
         #          operation; FALSE otherwise.
         @ManageTransactions("MeasuOp")
         def CheckBOPArguments(self, theShape):
             """
-            Check boolean and partition operations agruments.
+            Check boolean and partition operations arguments.
 
             Parameters:
-                theShape the agrument of an operation to be checked
+                theShape the argument of an operation to be checked
 
             Returns:
-                TRUE if the agrument is valid for a boolean or partition
+                TRUE if the argument is valid for a boolean or partition
                 operation; FALSE otherwise.
             """
             return self.MeasuOp.CheckBOPArguments(theShape)
@@ -11593,7 +11593,7 @@ class geomBuilder(GEOM._objref_GEOM_Gen):
         #  @param theTolerance Specifies a distance between shapes used for detecting gaps:
         #         - if \a theTolerance <= 0, algorithm detects intersections (default behavior)
         #         - if \a theTolerance > 0, algorithm detects gaps
-        #  @param theDeflection Linear deflection coefficient that specifies quality of tesselation:
+        #  @param theDeflection Linear deflection coefficient that specifies quality of tessellation:
         #         - if \a theDeflection <= 0, default deflection 0.001 is used
         #  @return TRUE, if there are intersections (gaps) between source shapes
         #  @return List of sub-shapes IDs from 1st shape that localize intersection.
@@ -11611,7 +11611,7 @@ class geomBuilder(GEOM._objref_GEOM_Gen):
                 theTolerance Specifies a distance between shapes used for detecting gaps:
                     - if theTolerance <= 0, algorithm detects intersections (default behavior)
                     - if theTolerance > 0, algorithm detects gaps
-                theDeflection Linear deflection coefficient that specifies quality of tesselation:
+                theDeflection Linear deflection coefficient that specifies quality of tessellation:
                     - if theDeflection <= 0, default deflection 0.001 is used
  
             Returns:
@@ -11895,7 +11895,7 @@ class geomBuilder(GEOM._objref_GEOM_Gen):
         ## @{
 
         ## Create a quadrangle face from four edges. Order of Edges is not
-        #  important. It is  not necessary that edges share the same vertex.
+        #  important. It is not necessary that edges share the same vertex.
         #  @param E1,E2,E3,E4 Edges for the face bound.
         #  @param theName Object name; when specified, this parameter is used
         #         for result publication in the study. Otherwise, if automatic
@@ -11908,7 +11908,7 @@ class geomBuilder(GEOM._objref_GEOM_Gen):
         def MakeQuad(self, E1, E2, E3, E4, theName=None):
             """
             Create a quadrangle face from four edges. Order of Edges is not
-            important. It is  not necessary that edges share the same vertex.
+            important. It is not necessary that edges share the same vertex.
 
             Parameters:
                 E1,E2,E3,E4 Edges for the face bound.
@@ -12013,7 +12013,7 @@ class geomBuilder(GEOM._objref_GEOM_Gen):
             return anObj
 
         ## Create a hexahedral solid, bounded by the six given faces. Order of
-        #  faces is not important. It is  not necessary that Faces share the same edge.
+        #  faces is not important. It is not necessary that Faces share the same edge.
         #  @param F1,F2,F3,F4,F5,F6 Faces for the hexahedral solid.
         #  @param theName Object name; when specified, this parameter is used
         #         for result publication in the study. Otherwise, if automatic
@@ -12027,7 +12027,7 @@ class geomBuilder(GEOM._objref_GEOM_Gen):
         def MakeHexa(self, F1, F2, F3, F4, F5, F6, theName=None):
             """
             Create a hexahedral solid, bounded by the six given faces. Order of
-            faces is not important. It is  not necessary that Faces share the same edge.
+            faces is not important. It is not necessary that Faces share the same edge.
 
             Parameters:
                 F1,F2,F3,F4,F5,F6 Faces for the hexahedral solid.
index f05b92f18980012407dc62c3e65803f04c376fa7..b80e1b30fdd7431bbf21dda99541630c57b0d71f 100644 (file)
@@ -492,7 +492,7 @@ public:
 
 /*!
   \brief Initialize GEOM module's engine
-  \return \c true if initialization succeedes or \c false otherwise
+  \return \c true if initialization succeeds or \c false otherwise
 */
 bool GEOM_Swig::initGeomGen()
 {
index b309e74cb7f2492f43fe6d04c9ad9f26b2acb0ec..34d97d66a3a1e8c72a0c1034c292999e20ea4f3d 100644 (file)
@@ -327,11 +327,11 @@ GEOM::GEOM_Object_ptr GroupGUI_BooleanDlg::getFather(GEOM::GEOM_Object_ptr theOb
 QList<GEOM::GeomObjPtr> GroupGUI_BooleanDlg::getSourceObjects()
 {
   QList<GEOM::GeomObjPtr> res;
-  for (int i = 0; i < myListShapes.length(); i++) {
+  for ( CORBA::ULong i = 0; i < myListShapes.length(); i++) {
     GEOM::GeomObjPtr aGeomObjPtr(myListShapes[i]);
     res << aGeomObjPtr;
   }
-  for (int i = 0; i < myListTools.length(); i++) {
+  for ( CORBA::ULong i = 0; i < myListTools.length(); i++) {
     GEOM::GeomObjPtr aGeomObjPtr(myListTools[i]);
     res << aGeomObjPtr;
   }
index 02e3fabe78745b92b9bea8fc88dbf5190dc05e84..1c09c4360cf7e096fc4b7b4aa7f8562406a02d90 100644 (file)
@@ -101,10 +101,10 @@ Material_ResourceMgr* Material_ResourceMgr::resourceMgr()
 }
 
 /*!
-  \brief Get list of avaiable materials
+  \brief Get list of available materials
   \param theType material type
   \param theSort if \c true (default), returns a list of materials sorted by name
-  \return list of avaiable materials names
+  \return list of available materials names
 */
 QStringList Material_ResourceMgr::materials( MaterialType theType, bool theSort )
 {
index cdcf96403b88bae78fc6b5f5e8ad51ce621dc7e9..6b0a52da4ba3dcc22603bc6db19df410b3a88309 100644 (file)
@@ -89,7 +89,7 @@ MeasureGUI_CheckSelfIntersectionsDlg::MeasureGUI_CheckSelfIntersectionsDlg (Geom
   mainFrame()->RadioButton3->close();
 
   /***************************************************************/
-  /* SIMPLE SELF-INTERSECTION constructor
+  // SIMPLE SELF-INTERSECTION constructor
   /***************************************************************/
   mySimpleGrp             = new QGroupBox(tr("GEOM_CHECK_INFOS"));
   QLabel    *anObjLbl    = new QLabel(tr("GEOM_OBJECT"));
@@ -139,7 +139,7 @@ MeasureGUI_CheckSelfIntersectionsDlg::MeasureGUI_CheckSelfIntersectionsDlg (Geom
   aGrpLayout1->addWidget(myShapeList1,     6, 2);
 
   /***************************************************************/
-  /* FAST SELF-INTERSECTION constructor
+  // FAST SELF-INTERSECTION constructor
   /***************************************************************/
   
   myFastGrp               = new QGroupBox(tr("GEOM_CHECK_INFOS"), centralWidget());
@@ -268,7 +268,7 @@ void MeasureGUI_CheckSelfIntersectionsDlg::Init()
   /***************************************************************/
 
   connect(this,               SIGNAL(constructorsClicked(int)), 
-         this,               SLOT(ConstructorsClicked(int)));
+          this,               SLOT(ConstructorsClicked(int)));
   connect(myGeomGUI,          SIGNAL(SignalDeactivateActiveDialog()),
           this,               SLOT(DeactivateActiveDialog()));
   connect(myGeomGUI,          SIGNAL(SignalCloseAllDialogs()),
@@ -527,19 +527,19 @@ void MeasureGUI_CheckSelfIntersectionsDlg::SelectionIntoArgument()
 
   if ( getConstructorId() == 0 ) {
     typesLst << TopAbs_COMPOUND
-            << TopAbs_COMPSOLID
-            << TopAbs_SOLID
-            << TopAbs_SHELL
-            << TopAbs_FACE
-            << TopAbs_WIRE
-            << TopAbs_EDGE
-            << TopAbs_VERTEX
-            << TopAbs_SHAPE;
+             << TopAbs_COMPSOLID
+             << TopAbs_SOLID
+             << TopAbs_SHELL
+             << TopAbs_FACE
+             << TopAbs_WIRE
+             << TopAbs_EDGE
+             << TopAbs_VERTEX
+             << TopAbs_SHAPE;
   } else {
     typesLst << TopAbs_FACE
-            << TopAbs_SHELL
-            << TopAbs_SOLID
-            << TopAbs_COMPOUND;
+             << TopAbs_SHELL
+             << TopAbs_SOLID
+             << TopAbs_COMPOUND;
   }
 
   // Clear the dialog.
@@ -672,11 +672,11 @@ void MeasureGUI_CheckSelfIntersectionsDlg::onSubShapesListSelectionChanged()
     foreach(int idx, aIds) {
       aSubShape = anIndices.FindKey(idx);
       try {
-       SALOME_Prs* aPrs = !aSubShape.IsNull() ? getDisplayer()->BuildPrs(aSubShape) : 0;
-       if (aPrs) displayPreview(aPrs, true);
+        SALOME_Prs* aPrs = !aSubShape.IsNull() ? getDisplayer()->BuildPrs(aSubShape) : 0;
+        if (aPrs) displayPreview(aPrs, true);
       }
       catch (const SALOME::SALOME_Exception& e) {
-       SalomeApp_Tools::QtCatchCorbaException(e);
+        SalomeApp_Tools::QtCatchCorbaException(e);
       }
     }
   }
index 263bb27a59b755a4d3ca203e29a42c9826ba8534..d4767e996ef9b2cf3b01fae6ca8d493e0e329bf7 100644 (file)
@@ -475,7 +475,7 @@ void MeasureGUI_CheckShapeDlg::onErrorsListSelectionChanged()
 
   myGrp->ListBox2->clear();
 
-  if (aCurItem < aErrs.length()) {
+  if (aCurItem < (int)aErrs.length()) {
     GEOM::GEOM_IMeasureOperations::ShapeError aErr = aErrs[aCurItem];
     GEOM::ListOfLong aObjLst = aErr.incriminated;
     QStringList aSubShapeList;
index 47a2f38de644582aa62b1736111c26ceae2a6e09..a03a0f4e865bc75a7ef3ebb294041e8346327bb0 100644 (file)
@@ -1076,7 +1076,7 @@ void MeasureGUI_DimensionCreateTool::ChooseLengthFlyoutsFromBnd( SeqOfDirs& theD
   {
     const gp_Pln& aPlane = aPlaneIt.Value();
 
-    // transform bounding box to orthogonal coordiantes relative to
+    // transform bounding box to orthogonal coordinates relative to
     // dimension points P1, P2 (x-axis) and plane direction (z-axis),
     // where y coordinates will correspond to flyout direction against
     // the dimension point line
index 9934c3230028512a79611b2c3ab074b9afa9fb21..6131350ab3169636c82e4951002e603cd994ecfd 100644 (file)
@@ -204,7 +204,7 @@ void MeasureGUI_DistanceDlg::enterEvent(QEvent*)
 //=================================================================================
 void MeasureGUI_DistanceDlg::SolutionSelected (int i)
 {
-  if (i < 0 || myDbls->length() < (i+1)*6) {
+  if (i < 0 || (int)myDbls->length() < (i+1)*6) {
     myGrp->LineEdit3->setText("");
     myGrp->LineEdit4->setText("");
     myGrp->LineEdit5->setText("");
@@ -341,7 +341,7 @@ SALOME_Prs* MeasureGUI_DistanceDlg::buildPrs()
   int currSol = myGrp->ComboBox1->currentIndex();
 
   if (!myObj1 || !myObj2 ||
-      currSol == -1 || (currSol+1)*6 > myDbls->length() ||
+      currSol == -1 || (currSol+1)*6 > (int)myDbls->length() ||
       vw->getViewManager()->getType() != OCCViewer_Viewer::Type())
     return 0;
 
index d8f8dfaefdd0bb35117c96e934f4477c53aecfe1..347f2b8664df4080e773659fdf9f2be3e4d7ee88 100644 (file)
@@ -64,9 +64,9 @@
 // class    : MeasureGUI_ShapeStatisticsDlg()
 //===========================================================================
 MeasureGUI_ShapeStatisticsDlg::MeasureGUI_ShapeStatisticsDlg( QWidget* parent, TopoDS_Shape aShape, TopAbs_ShapeEnum aSubShapeType )
-  : GEOMBase_Helper( SUIT_Session::session()->activeApplication()->desktop() ),
-    QDialog( parent ),
-    myHistogram ( 0 )
+: GEOMBase_Helper( SUIT_Session::session()->activeApplication()->desktop() ),
+  QDialog( parent ),
+  myHistogram ( 0 )
 {
   myShapes.push_back( aShape );
 
@@ -105,9 +105,9 @@ MeasureGUI_ShapeStatisticsDlg::MeasureGUI_ShapeStatisticsDlg( QWidget* parent, T
   myCBTypes = new QtxComboBox( this );
   myCBTypes->setCleared( true );
   if ( aSubShapeType != TopAbs_SHAPE ) {
-    fillTypes( aSubShapeType == TopAbs_EDGE, 
-              aSubShapeType == TopAbs_FACE, 
-              aSubShapeType == TopAbs_SOLID );
+    fillTypes( aSubShapeType == TopAbs_EDGE,
+               aSubShapeType == TopAbs_FACE,
+               aSubShapeType == TopAbs_SOLID );
     myCBTypes->setEnabled( false );
   }
 
@@ -136,7 +136,7 @@ MeasureGUI_ShapeStatisticsDlg::MeasureGUI_ShapeStatisticsDlg( QWidget* parent, T
   QLabel* maxLabel = new QLabel( tr( "GEOM_SHAPE_STATISTICS_MAX" ), this );
   myMax = new QLineEdit( this );
   myMax->setValidator( aValid );
-  
+
   QPushButton* buttonCompute = new QPushButton( tr( "GEOM_SHAPE_STATISTICS_COMPUTE" ), this );
   connect( buttonCompute, SIGNAL( clicked() ), this, SLOT( clickOnCompute() ) );
 
@@ -208,10 +208,10 @@ GEOM::GEOM_IOperations_ptr MeasureGUI_ShapeStatisticsDlg::createOperation()
   return getGeomEngine()->GetIGroupOperations();
 }
 
-#define RETURN_WITH_MSG(a, b) \
-  if (!(a)) { \
-    theMessage += (b); \
-    return false; \
+#define RETURN_WITH_MSG(a, b)                   \
+  if (!(a)) {                                   \
+    theMessage += (b);                          \
+    return false;                               \
   }
 
 //================================================================
@@ -333,9 +333,9 @@ TopAbs_ShapeEnum MeasureGUI_ShapeStatisticsDlg::currentType()
 bool MeasureGUI_ShapeStatisticsDlg::isValid(QString& theMessage)
 {
   if ( myScalarRangeBox->isChecked() ) {
-    RETURN_WITH_MSG( !myMin->text().isEmpty(), tr("GEOM_SHAPE_STATISTICS_MIN_ERROR") )
-    RETURN_WITH_MSG( !myMax->text().isEmpty(), tr("GEOM_SHAPE_STATISTICS_MAX_ERROR") )
-    RETURN_WITH_MSG( myMin->text().toDouble() <= myMax->text().toDouble(), tr("GEOM_SHAPE_STATISTICS_MIN_MAX_ERROR") )
+    RETURN_WITH_MSG( !myMin->text().isEmpty(), tr("GEOM_SHAPE_STATISTICS_MIN_ERROR") );
+    RETURN_WITH_MSG( !myMax->text().isEmpty(), tr("GEOM_SHAPE_STATISTICS_MAX_ERROR") );
+    RETURN_WITH_MSG( myMin->text().toDouble() <= myMax->text().toDouble(), tr("GEOM_SHAPE_STATISTICS_MIN_MAX_ERROR") );
   }
   return true;
 }
@@ -359,7 +359,7 @@ void MeasureGUI_ShapeStatisticsDlg::clickOnPlot()
     aRange.max = -1.0; // flag that range is empty
   }
 
-  GEOMUtils::Distribution aShapesDistr = 
+  GEOMUtils::Distribution aShapesDistr =
     GEOMUtils::ComputeDistribution( myShapes, currentType(), myNbIntervals->value(), aRange );
 
   QList<double> xVals, yVals;
@@ -444,7 +444,7 @@ void MeasureGUI_ShapeStatisticsDlg::clickOnCreateGroups()
 
 //=================================================================================
 // function : execute(ObjectList& objects)
-// purpose  : 
+// purpose  :
 //=================================================================================
 bool MeasureGUI_ShapeStatisticsDlg::execute(ObjectList& objects)
 {
@@ -472,7 +472,7 @@ bool MeasureGUI_ShapeStatisticsDlg::execute(ObjectList& objects)
   QString aTypePrefix = myCBTypes->currentText().replace(' ', '_');
   QString objIOR, aMin, aMax, aGroupName;
 
-  GEOMUtils::Distribution aShapesDistr = 
+  GEOMUtils::Distribution aShapesDistr =
     GEOMUtils::ComputeDistribution( myShapes, currentType(), myNbIntervals->value(), aRange );
 
   int nbGroups = 0;
@@ -487,7 +487,7 @@ bool MeasureGUI_ShapeStatisticsDlg::execute(ObjectList& objects)
       int ii = 0;
       std::list<long>::const_iterator id_it;
       for ( id_it = idList.begin(); id_it != idList.end(); id_it++ ) {
-       aNewList[ii++] = *id_it;
+        aNewList[ii++] = *id_it;
       }
 
       // Create an empty group
@@ -495,12 +495,12 @@ bool MeasureGUI_ShapeStatisticsDlg::execute(ObjectList& objects)
       aGroup = anOper->CreateGroup( myMainObj.get(), currentType() );
 
       if (CORBA::is_nil(aGroup) || !anOper->IsDone())
-       return false;
+        return false;
 
       // Add sub-shapes into group
       anOper->UnionIDs(aGroup, aNewList);
       if (!anOper->IsDone())
-       return false;
+        return false;
 
       // publish group
       aMin = DlgRef::PrintDoubleValue( (*it).min, aPrecision );
index 808893ac8a1a75aebdf3d31b074e0e06f94226ab..d45fed6c86fce779eb23a46b3758803335188f33 100755 (executable)
@@ -209,7 +209,7 @@ void GEOM_Annotation::SetAttachPoint( const gp_Pnt& thePoint )
 
 // =======================================================================
 // function : SetHilightShape
-// purpose  : Sets shape (annotated shape) that will be used for hilighting.
+// purpose  : Sets shape (annotated shape) that will be used for highlighting.
 // =======================================================================
 void GEOM_Annotation::SetHilightShape( const TopoDS_Shape& theShape )
 {
index 3594a1b6d6c78d5d81f4a975ecf11bc7558faa3b..794402491eda8960ba6c2aafdb8c5c752ae985a2 100755 (executable)
@@ -122,10 +122,10 @@ public:
   //! Returns attachment point of extension line.
   const gp_Pnt& GetAttachPoint() const { return myAttach; }
 
-  //! Sets shape (annotated shape) that will be used for hilighting.
+  //! Sets shape (annotated shape) that will be used for highlighting.
   Standard_EXPORT void SetHilightShape( const TopoDS_Shape& theShape );
 
-  //! Returns the hilighting shape.
+  //! Returns the highlighting shape.
   const TopoDS_Shape HilightShape() const { return myShape; }
 
 public:
@@ -283,10 +283,10 @@ private:
   gp_Pnt myStartPosition; //!< Position before starting dragging operation.
   Standard_Boolean myIsScreenFixed; //!< Flag indicating whether "screen fixed" positioning mode is turned on or off.
   Standard_Boolean myIsAutoHide; //!< Flag indicating whether "auto-hiding" option is turned on.
-  Standard_Boolean myIsDepthCulling; //!< Flag indiciating whether the "depth culling" is turned on.
+  Standard_Boolean myIsDepthCulling; //!< Flag indicating whether the "depth culling" is turned on.
   HighlightMode myHilightMode; //!< Highlight mode for presentation.
   TCollection_ExtendedString myText; //!< Text string of the label presentation.
-  TopoDS_Shape myShape; //!< Hilighting shape.
+  TopoDS_Shape myShape; //!< Highlighting shape.
 
 private:
 
index d27a65219cd78a0d8dffde970c093f52bd55d2e3..f5e44199b0ffefaa7ce05da6d950cfe55bcddf99 100644 (file)
@@ -45,7 +45,7 @@ namespace
   GEOM::shape_type maxShapeType(const GEOM::ListOfGO& objs)
   {
     GEOM::shape_type r = GEOM::SHAPE;
-    for ( int i = 0; i < objs.length(); i++ ) {
+    for ( CORBA::ULong i = 0; i < objs.length(); i++ ) {
       GEOM::shape_type t = objs[i]->GetShapeType();
       if ( t == GEOM::COMPOUND || t == GEOM::COMPSOLID )
         t = objs[i]->GetMaxShapeType();
@@ -412,7 +412,7 @@ QList<GEOM::GeomObjPtr> OperationGUI_GetSharedShapesDlg::getSourceObjects()
 {
   QList<GEOM::GeomObjPtr> res;
   GEOM::ListOfGO aListPtr(myListShapes);
-  for (int i = 0; i < aListPtr.length(); i++) {
+  for (CORBA::ULong i = 0; i < aListPtr.length(); i++) {
     GEOM::GeomObjPtr aGeomObjPtr(aListPtr[i]);
     res << aGeomObjPtr;
   }
index fadf94ac94484658e9b913109bb01098786b56d4..f6df0de295944f28f540b2b40f22143e806d758c 100755 (executable)
@@ -842,7 +842,7 @@ GEOM::string_array* RepairGUI_ShapeProcessDlg::getParameters( const GEOM::string
   for ( i = 0, j = 0; i < theOperators.length(); i++ )
     j += myValMap[ QString( theOperators[i].in() ) ].size();
   
-  // set the new length of paremeters
+  // set the new length of parameters
   aParams->length( j );
 
   // fill the parameters
index 508cff9ec57b494f60a225419f9bf3eb30d1269a..8865edba6280cd24a023fcc396d5624b98fa41b7 100755 (executable)
@@ -74,7 +74,7 @@ private:
 
   QWidget*                           getControl( const QString&  );
   void                               setValue( QWidget*, const QString& ); // initialize the given control in the proper way
-  // (analize its class and convert the value string)
+  // (analyze its class and convert the value string)
   QString                            getValue( QWidget* ) const; // retrieve value of the control in the proper way
   QString                            getText( QWidget* ) const; // retrieve text of the control (for spin-boxes only)
 
index fdb7d5bb89debb04c4fabfe18ac47dddd9c8b208..14da33077114e6ddbdeebe1493781e32f1dfdf24 100644 (file)
@@ -594,8 +594,8 @@ void Sketcher_Profile::ShapeFunctor::addSegmentAbsolute( const TCollection_Ascii
 
 /*!
   \brief Add segment by relativ coordinates
-  \param dx dX value specifing segment end
-  \param dy dY value specifing segment end
+  \param dx dX value specifying segment end
+  \param dy dY value specifying segment end
   \internal
 */
 void Sketcher_Profile::ShapeFunctor::addSegmentRelative( const TCollection_AsciiString& dx,
@@ -801,8 +801,8 @@ void Sketcher_Profile::ShapeFunctor::addArcAbsolute( const TCollection_AsciiStri
 
 /*!
   \brief Add arc along current direction vector by specified relative coordinates
-  \param dx dX value specifing arc end
-  \param dy dY value specifing arc end
+  \param dx dX value specifying arc end
+  \param dy dY value specifying arc end
   \internal
 */
 void Sketcher_Profile::ShapeFunctor::addArcRelative( const TCollection_AsciiString& dx,
@@ -867,8 +867,8 @@ void Sketcher_Profile::ShapeFunctor::addArcRadiusAbsolute( const TCollection_Asc
 
 /*!
   \brief Add arc with given radius by specified relative coordinates
-  \param dx dX value specifing arc end
-  \param dy dY value specifing arc end
+  \param dx dX value specifying arc end
+  \param dy dY value specifying arc end
   \param radius arc radius
   \param flag reverse direction flag
   \internal
@@ -958,8 +958,8 @@ void Sketcher_Profile::ShapeFunctor::addArcCenterAbsolute( const TCollection_Asc
 
 /*!
   \brief Add arc with given center by specified relative coordinates
-  \param dx dX value specifing arc end
-  \param dy dY value specifing arc end
+  \param dx dX value specifying arc end
+  \param dy dY value specifying arc end
   \param xc X coordinate of arc center
   \param yc Y coordinate of arc center
   \param flag1 reverse direction flag
@@ -1351,8 +1351,8 @@ void Sketcher_Profile::DumpFunctor::addSegmentAbsolute( const TCollection_AsciiS
 
 /*!
   \brief Add segment by relativ coordinates
-  \param dx dX value specifing segment end
-  \param dy dY value specifing segment end
+  \param dx dX value specifying segment end
+  \param dy dY value specifying segment end
   \internal
 */
 void Sketcher_Profile::DumpFunctor::addSegmentRelative( const TCollection_AsciiString& dx,
@@ -1531,8 +1531,8 @@ void Sketcher_Profile::DumpFunctor::addArcAbsolute( const TCollection_AsciiStrin
 
 /*!
   \brief Add arc along current direction vector by specified relative coordinates
-  \param dx dX value specifing arc end
-  \param dy dY value specifing arc end
+  \param dx dX value specifying arc end
+  \param dy dY value specifying arc end
   \internal
 */
 void Sketcher_Profile::DumpFunctor::addArcRelative( const TCollection_AsciiString& dx,
@@ -1561,8 +1561,8 @@ void Sketcher_Profile::DumpFunctor::addArcRadiusAbsolute( const TCollection_Asci
 
 /*!
   \brief Add arc with given radius by specified relative coordinates
-  \param dx dX value specifing arc end
-  \param dy dY value specifing arc end
+  \param dx dX value specifying arc end
+  \param dy dY value specifying arc end
   \param radius arc radius
   \param flag reverse direction flag
   \internal
@@ -1599,8 +1599,8 @@ void Sketcher_Profile::DumpFunctor::addArcCenterAbsolute( const TCollection_Asci
 
 /*!
   \brief Add arc with given center by specified relative coordinates
-  \param dx dX value specifing arc end
-  \param dy dY value specifing arc end
+  \param dx dX value specifying arc end
+  \param dy dY value specifying arc end
   \param xc X coordinate of arc center
   \param yc Y coordinate of arc center
   \param flag1 reverse direction flag
index ede77dbe864b87a3d3f40f758cc9dd9185282102..53cb7bfb313d44f71bc2eb761697fd9b75bb9cbf 100644 (file)
@@ -47,7 +47,7 @@ class ShHealOper_CloseContour : public ShHealOper_Tool
   Standard_EXPORT ShHealOper_CloseContour() : ShHealOper_Tool() {}
 
   Standard_EXPORT ShHealOper_CloseContour (const TopoDS_Shape& theShape);
-  //Initalizes by whole shape.
+  //Initializes by whole shape.
 
   Standard_EXPORT virtual void Init(const TopoDS_Shape& theShape);
    //Method for initialization by whole shape.
index 869be89b94ecc084184b91d5b65e8c70ff3e20ae..c0aba1164697f7fd882c152518bbc076cd32304b 100644 (file)
@@ -261,7 +261,7 @@ Standard_Boolean ShHealOper_EdgeDivide::computeValues(const Handle(TColStd_HSequ
   
   Standard_Real aFirst =0.,aLast=0.;
 
-  //computation of the split values if edge should be splitted by parameter.
+  //computation of the split values if edge should be split by parameter.
   if(myDivideParamMode) {
     BRep_Tool::Range(myEdge,aFirst,aLast);
     Handle(Geom_Curve) aCurve = BRep_Tool::Curve(myEdge,aFirst,aLast);
@@ -275,7 +275,7 @@ Standard_Boolean ShHealOper_EdgeDivide::computeValues(const Handle(TColStd_HSequ
     }
   }
   else {
-     //computation of the split values if edge should be splitted by length.
+     //computation of the split values if edge should be split by length.
     ShapeAnalysis_Edge sae;
     Handle(Geom_Curve) aCurve;
     Standard_Real aCurLen =0.;
index 1a9eebb7d8a72f5b3ae20e7e6e84fb765da9b182..2302ba8e5b65858682911a40e48db7727b0f80c1 100644 (file)
@@ -56,7 +56,7 @@ class ShHealOper_EdgeDivide : public ShHealOper_Tool
                                            const Standard_Boolean theDivideParamMode = Standard_True);
   //Performs spitting of the specified edge in the accoradnce to
   //specified mode and value.
-  //If theDivideParamMode is equal to true edge will be splitted by parameter.
+  //If theDivideParamMode is equal to true edge will be split by parameter.
   //Else edge will be spliited by length (default true).
   //theValue is coefficient for splitting from 0 to 1.
 
index f52271dc8772267f03e12c96e54d992628f3f6cc..b1e5c1aa5cf404a26ca81786cf6c013496f3b497 100644 (file)
@@ -47,7 +47,7 @@ class ShHealOper_ShapeProcess : public ShHealOper_Tool
 
   /// Empty constructor
   Standard_EXPORT ShHealOper_ShapeProcess();
-  //Constuctor initializes by defaults parameters 
+  //Constructor initializes by defaults parameters 
   // (name of resource file - ShHealing, prefix - ShapeProcess, 
   // SaveHistory = Standard_False, level = TopAbs_FACE)
 
@@ -55,7 +55,7 @@ class ShHealOper_ShapeProcess : public ShHealOper_Tool
   Standard_EXPORT ShHealOper_ShapeProcess 
     (const TCollection_AsciiString& theNameResource,
      const TCollection_AsciiString& thePrefix = "ShapeProcess");
-  //Constuctor initializes by specified name of resource file and prefix
+  //Constructor initializes by specified name of resource file and prefix
   
   Standard_EXPORT void Perform(const TopoDS_Shape& theOldShape, 
                                            TopoDS_Shape& theNewShape);
index 55a48232e811615cb466d1a5d936d4b237dd3307..9bc0affe210d18843f44db6612191691dfc0ae48 100644 (file)
      <item row="3" column="0">
       <widget class="QLabel" name="label_3">
        <property name="text">
-        <string>Big pipe  height</string>
+        <string>Big pipe height</string>
        </property>
       </widget>
      </item>
      <item row="2" column="0">
       <widget class="QLabel" name="label_2">
        <property name="text">
-        <string>Small pipe  radius</string>
+        <string>Small pipe radius</string>
        </property>
       </widget>
      </item>
      <item row="4" column="0">
       <widget class="QLabel" name="label_4">
        <property name="text">
-        <string>Small  pipe height</string>
+        <string>Small pipe height</string>
        </property>
       </widget>
      </item>
index af43a5895b02e052040faf04409ea20edb9ac012..64d262057335d2e5d3297e929a3698fbbe3d9869 100644 (file)
@@ -37,7 +37,7 @@
 
 //=================================================================================
 // class    : TransformationGUI_OffsetDlg()
-// purpose  : Constructs a TransformationGUI_OffsetDlg which is a child of 'parent', with the 
+// purpose  : Constructs a TransformationGUI_OffsetDlg which is a child of 'parent', with the
 //            name 'name' and widget flags set to 'f'.
 //            The dialog will by default be modeless, unless you set 'modal' to
 //            TRUE to construct a modal dialog.
@@ -85,7 +85,7 @@ TransformationGUI_OffsetDlg::TransformationGUI_OffsetDlg( GeometryGUI* theGeomet
 // purpose  : Destroys the object and frees any allocated resources
 //=================================================================================
 TransformationGUI_OffsetDlg::~TransformationGUI_OffsetDlg()
-{  
+{
   /* no need to delete child widgets, Qt does it all for us */
 }
 
@@ -148,9 +148,9 @@ void TransformationGUI_OffsetDlg::ClickOnOk()
 //=================================================================================
 bool TransformationGUI_OffsetDlg::ClickOnApply()
 {
-  if ( !onAccept( GroupPoints->CheckButton1->isChecked() ) )
+  if ( !onAccept( /*copy=*/true ))
     return false;
-  
+
   initName();
   return true;
 }
@@ -182,7 +182,7 @@ void TransformationGUI_OffsetDlg::SelectionIntoArgument()
 void TransformationGUI_OffsetDlg::SetEditCurrentArgument()
 {
   QPushButton* send = (QPushButton*)sender();
-  
+
   if ( send == GroupPoints->PushButton1 ) {
     GroupPoints->PushButton1->setDown(true);
     myEditCurrentArgument = GroupPoints->LineEdit1;
@@ -210,7 +210,7 @@ void TransformationGUI_OffsetDlg::enterEvent( QEvent* )
 void TransformationGUI_OffsetDlg::ActivateThisDialog()
 {
   GEOMBase_Skeleton::ActivateThisDialog();
-  connect( myGeomGUI->getApp()->selectionMgr(), 
+  connect( myGeomGUI->getApp()->selectionMgr(),
            SIGNAL( currentSelectionChanged() ), this, SLOT( SelectionIntoArgument() ) );
   globalSelection( GEOM_ALLSHAPES );
   myEditCurrentArgument = GroupPoints->LineEdit1;
@@ -260,14 +260,14 @@ bool TransformationGUI_OffsetDlg::isValid( QString& msg )
 bool TransformationGUI_OffsetDlg::execute( ObjectList& objects )
 {
   bool res = false;
-  
+
   GEOM::GEOM_Object_var anObj;
-  
+
   GEOM::GEOM_ITransformOperations_var anOper = GEOM::GEOM_ITransformOperations::_narrow(getOperation());
 
   if ( true /*GroupPoints->CheckButton1->isChecked() || IsPreview()*/ ) {
     for ( int i = 0; i < myObjects.count(); i++ ) {
-      
+
       anObj = anOper->OffsetShapeCopy( myObjects[i].get(), GetOffset(), GetIsJoinByPipes() );
       if ( !anObj->_is_nil() ) {
         if(!IsPreview()) {
@@ -285,7 +285,7 @@ bool TransformationGUI_OffsetDlg::execute( ObjectList& objects )
     }
   }
   res = true;
-    
+
   return res;
 }
 
@@ -315,7 +315,7 @@ double TransformationGUI_OffsetDlg::GetOffset() const
 
 //=======================================================================
 //function : GetIsJoinByPipes
-//purpose  : 
+//purpose  :
 //=======================================================================
 
 bool TransformationGUI_OffsetDlg::GetIsJoinByPipes() const