Salome HOME
Typo-fix by Kunda + fix user doc generation
authoreap <eap@opencascade.com>
Tue, 19 Jun 2018 16:58:29 +0000 (19:58 +0300)
committereap <eap@opencascade.com>
Tue, 19 Jun 2018 16:58:29 +0000 (19:58 +0300)
58 files changed:
CMakeLists.txt
doc/salome/examples/defining_hypotheses_ex10.py
doc/salome/examples/filters_ex34.py
doc/salome/examples/transforming_meshes_ex03.py
doc/salome/gui/SMESH/collect_mesh_methods.py
doc/salome/gui/SMESH/input/pattern_mapping.rst
doc/salome/gui/SMESH/input/rotation.rst
doc/salome/gui/SMESH/input/smesh_migration.rst
doc/salome/gui/SMESH/input/smeshpy_interface.rst
doc/salome/gui/SMESH/input/split_biquad_to_linear.rst
doc/salome/gui/SMESH/input/symmetry.rst
doc/salome/gui/SMESH/input/translation.rst
doc/salome/gui/SMESH/input/tui_filters.rst
doc/salome/gui/SMESH/merge_mesh_class.py
idl/SMESH_Mesh.idl
idl/SMESH_MeshEditor.idl
idl/SMESH_Pattern.idl
src/SMDS/SMDS_MemoryLimit.cxx
src/SMDS/SMDS_Mesh.cxx
src/SMDS/SMDS_Mesh.hxx
src/SMESH/SMESH_Algo.cxx
src/SMESH/SMESH_Gen.cxx
src/SMESH/SMESH_Group.cxx
src/SMESH/SMESH_Hypothesis.hxx
src/SMESH/SMESH_MeshEditor.cxx
src/SMESH/SMESH_MesherHelper.cxx
src/SMESH/SMESH_MesherHelper.hxx
src/SMESH/SMESH_Pattern.hxx
src/SMESHGUI/SMESHGUI_FilterDlg.cxx
src/SMESHGUI/SMESHGUI_FilterDlg.h
src/SMESHGUI/SMESHGUI_GroupOpDlg.cxx
src/SMESHGUI/SMESHGUI_MeshInfo.cxx
src/SMESHGUI/SMESHGUI_ReorientFacesDlg.cxx
src/SMESHGUI/SMESHGUI_ReorientFacesDlg.h
src/SMESHGUI/SMESHGUI_ShapeByMeshDlg.cxx
src/SMESHGUI/SMESHGUI_VTKUtils.cxx
src/SMESHUtils/SMESH_Block.cxx
src/SMESHUtils/SMESH_Block.hxx
src/SMESH_I/SMESH_2smeshpy.cxx
src/SMESH_I/SMESH_Gen_i.cxx
src/SMESH_I/SMESH_Hypothesis_i.cxx
src/SMESH_I/SMESH_MeshEditor_i.cxx
src/SMESH_I/SMESH_Mesh_i.cxx
src/SMESH_I/SMESH_Mesh_i.hxx
src/SMESH_SWIG/SMESH_Nut.py
src/SMESH_SWIG/SMESH_Sphere.py
src/SMESH_SWIG/StdMeshersBuilder.py
src/SMESH_SWIG/ex13_hole1partial.py
src/SMESH_SWIG/smeshBuilder.py
src/SMESH_SWIG/smesh_algorithm.py
src/StdMeshers/StdMeshers_CompositeHexa_3D.cxx
src/StdMeshers/StdMeshers_HexaFromSkin_3D.hxx
src/StdMeshers/StdMeshers_NumberOfSegments.cxx
src/StdMeshers/StdMeshers_Prism_3D.cxx
src/StdMeshers/StdMeshers_Prism_3D.hxx
src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx
src/StdMeshers/StdMeshers_Quadrangle_2D.cxx
src/StdMeshers/StdMeshers_ViscousLayers.cxx

index 8e28516e7e2930582de7ae892174f1d31b715047..c0b93cdd612d01fb6f92ae8c6d5d144471782562 100755 (executable)
@@ -55,7 +55,7 @@ SET(KERNEL_ROOT_DIR $ENV{KERNEL_ROOT_DIR} CACHE PATH "Path to the Salome KERNEL"
 IF(EXISTS ${KERNEL_ROOT_DIR})
   LIST(APPEND CMAKE_MODULE_PATH "${KERNEL_ROOT_DIR}/salome_adm/cmake_files")
   FIND_PACKAGE(SalomeKERNEL REQUIRED)
 IF(EXISTS ${KERNEL_ROOT_DIR})
   LIST(APPEND CMAKE_MODULE_PATH "${KERNEL_ROOT_DIR}/salome_adm/cmake_files")
   FIND_PACKAGE(SalomeKERNEL REQUIRED)
-  KERNEL_WITH_CORBA() #check whether KERNEL builded with CORBA
+  KERNEL_WITH_CORBA() #check whether KERNEL built with CORBA
   ADD_DEFINITIONS(${KERNEL_DEFINITIONS})
   INCLUDE_DIRECTORIES(${KERNEL_INCLUDE_DIRS})
 ELSE(EXISTS ${KERNEL_ROOT_DIR})
   ADD_DEFINITIONS(${KERNEL_DEFINITIONS})
   INCLUDE_DIRECTORIES(${KERNEL_INCLUDE_DIRS})
 ELSE(EXISTS ${KERNEL_ROOT_DIR})
@@ -144,7 +144,7 @@ IF(SALOME_BUILD_GUI)
   IF(EXISTS ${GUI_ROOT_DIR})
     LIST(APPEND CMAKE_MODULE_PATH "${GUI_ROOT_DIR}/adm_local/cmake_files")
     FIND_PACKAGE(SalomeGUI)
   IF(EXISTS ${GUI_ROOT_DIR})
     LIST(APPEND CMAKE_MODULE_PATH "${GUI_ROOT_DIR}/adm_local/cmake_files")
     FIND_PACKAGE(SalomeGUI)
-    SALOME_GUI_WITH_CORBA() #check whether GUI builded with CORBA
+    SALOME_GUI_WITH_CORBA() #check whether GUI built with CORBA
     SALOME_GUI_MODE(SALOME_USE_VTKVIEWER SALOME_USE_SALOMEOBJECT 
                     OPTIONAL SALOME_USE_PLOT2DVIEWER SALOME_USE_PYCONSOLE)
     ##
     SALOME_GUI_MODE(SALOME_USE_VTKVIEWER SALOME_USE_SALOMEOBJECT 
                     OPTIONAL SALOME_USE_PLOT2DVIEWER SALOME_USE_PYCONSOLE)
     ##
index 9fea80b144c82531ea5b1b7cff2e98cfa8b3bfe3..c55af79dfcd13ab87caea8a868fafd0529a07f00 100644 (file)
@@ -80,5 +80,5 @@ proj3D = tgt_mesh.Projection3D()
 proj3D.SourceShape3D( box, src_mesh, v1F1, v1F2, v2F1, v2F2 )
 tgt_mesh.Compute()
 
 proj3D.SourceShape3D( box, src_mesh, v1F1, v1F2, v2F1, v2F2 )
 tgt_mesh.Compute()
 
-# Move the source mesh to visualy compare the two meshes
+# Move the source mesh to visually compare the two meshes
 src_mesh.TranslateObject( src_mesh, smesh.MakeDirStruct( 210, 0, 0 ), Copy=False)
 src_mesh.TranslateObject( src_mesh, smesh.MakeDirStruct( 210, 0, 0 ), Copy=False)
index 4f20b299ddb2b3b2d0520606812467aa347a85a7..9e29e97d3d4079f61af34256670aafc4ea89d0a9 100644 (file)
@@ -11,4 +11,4 @@ grp.SetColor(c)
 # get number of the edges not belonging to the group with the given color
 filter = smesh.GetFilter(SMESH.EDGE, SMESH.FT_GroupColor, c, SMESH.FT_LogicalNOT)
 ids = mesh.GetIdsFromFilter(filter)
 # get number of the edges not belonging to the group with the given color
 filter = smesh.GetFilter(SMESH.EDGE, SMESH.FT_GroupColor, c, SMESH.FT_LogicalNOT)
 ids = mesh.GetIdsFromFilter(filter)
-print("Number of edges not beloging to the group with color (0.1, 0.5, 1.0):", len(ids))
+print ("Number of edges not belonging to the group with color (0.1, 0.5, 1.0):", len(ids))
index 8184e24508ec36a7b17c80457c64e5d5bdc4ce58..cf0999c5b7c63158ed5ca783e9fcc0ffb2c24f43 100644 (file)
@@ -20,14 +20,14 @@ Nb_Segments_1.SetDistrType( 0 )
 Quadrangle_2D = Mesh1.Quadrangle()
 isDone = Mesh1.Compute()
 
 Quadrangle_2D = Mesh1.Quadrangle()
 isDone = Mesh1.Compute()
 
-#Perform scale opration for the whole mesh and creation of a new mesh
+#Perform scale operation for the whole mesh and creation of a new mesh
 newMesh = Mesh1.ScaleMakeMesh(Mesh1,SMESH.PointStruct(100,100,200),[0.5,0.3,0.7],True,"ScaledMesh")
 
 #Perform scale operation for the whole mesh and copy elements
 Mesh1.Scale(Mesh1,SMESH.PointStruct(200,100,100),[0.5,0.5,0.5],True,True)
 
 newMesh = Mesh1.ScaleMakeMesh(Mesh1,SMESH.PointStruct(100,100,200),[0.5,0.3,0.7],True,"ScaledMesh")
 
 #Perform scale operation for the whole mesh and copy elements
 Mesh1.Scale(Mesh1,SMESH.PointStruct(200,100,100),[0.5,0.5,0.5],True,True)
 
-#Perform scale opration for two edges and move elements
+#Perform scale operation for two edges and move elements
 Mesh1.Scale([1,2],SMESH.PointStruct(-100,100,100),[0.8,1.0,0.7],False)
 
 Mesh1.Scale([1,2],SMESH.PointStruct(-100,100,100),[0.8,1.0,0.7],False)
 
-#Perform scale opration for one face and move elements
+#Perform scale operation for one face and move elements
 Mesh1.Scale([21],SMESH.PointStruct(0,200,200),[0.7,0.7,0.7],False)
 Mesh1.Scale([21],SMESH.PointStruct(0,200,200),[0.7,0.7,0.7],False)
index 99457030cadf117e8f93bf95da567a33a5f7d44c..3566741ade9557c1b45120a3678e2980752fe671 100755 (executable)
@@ -184,8 +184,8 @@ if __name__ == "__main__":
                       action="store_true", default=False,
                       help=h)
     h = "Format of the documentation strings in the output file. Possible values are: "
                       action="store_true", default=False,
                       help=h)
     h = "Format of the documentation strings in the output file. Possible values are: "
-    h+= "'doxygen' - documentation strings are generated in the doxygen format, before a method defenition."
-    h+= "'sphinx' - documentation strings are generated in the sphinx format, after a method defenition."
+    h+= "'doxygen' - documentation strings are generated in the doxygen format, before a method definition."
+    h+= "'sphinx' - documentation strings are generated in the sphinx format, after a method definition."
     parser.add_argument("-f", "--format", dest="format",
                       action="store", default="doxygen", help=h)
 
     parser.add_argument("-f", "--format", dest="format",
                       action="store", default="doxygen", help=h)
 
index d505dca6f8d443615d3abb4664893fa47c291925..e88a2912c20b82fe0fa0a5db76ff78356bcea65e 100644 (file)
@@ -18,7 +18,7 @@ The smp file contains 4 sections:
        #. The first line indicates the total number of pattern nodes (N).
        #. The next N lines describe nodes coordinates. Each line contains 2 node coordinates for a 2D pattern or 3 node coordinates for a 3D pattern. Note, that node coordinates of a 3D pattern can be defined only by relative values in range [0;1].
        #. The key-points line contains the indices of the nodes to be mapped on geometrical vertices (for a 2D pattern only). Index n refers to the node described on the n-th line of section 2. The index of the first node is zero. For a 3D pattern the key points are not specified.
        #. The first line indicates the total number of pattern nodes (N).
        #. The next N lines describe nodes coordinates. Each line contains 2 node coordinates for a 2D pattern or 3 node coordinates for a 3D pattern. Note, that node coordinates of a 3D pattern can be defined only by relative values in range [0;1].
        #. The key-points line contains the indices of the nodes to be mapped on geometrical vertices (for a 2D pattern only). Index n refers to the node described on the n-th line of section 2. The index of the first node is zero. For a 3D pattern the key points are not specified.
-       #. The remaining lines describe nodal connectivity of elements, one line for each element. Each line holds indices of nodes forming an element. Index n refers to the node described on the n-th line of section 2. The first node index is zero. There must be 3 or 4 indices on each line for a 2D pattern (only liner 2d elements are allowed) and 4, 5, 6 or 8 indices for a 3D pattern (only linear 3d elements are allowed).
+       #. The remaining lines describe nodal connectivity of elements, one line for each element. Each line holds indices of nodes forming an element. Index n refers to the node described on the n-th line of section 2. The first node index is zero. There must be 3 or 4 indices on each line for a 2D pattern (only linear 2D elements are allowed) and 4, 5, 6 or 8 indices for a 3D pattern (only linear 3D elements are allowed).
 
 A 2D pattern must contain at least one element and at least one key-point. All key-points must lie on boundaries.
 
 
 A 2D pattern must contain at least one element and at least one key-point. All key-points must lie on boundaries.
 
@@ -165,8 +165,8 @@ In this dialog you should specify:
 
 When a pattern is created from an existing mesh, two cases are possible:
 
 
 When a pattern is created from an existing mesh, two cases are possible:
 
-* A sub-mesh on a face/solid is selected. The pattern is created from the 2d/3d elements bound to the face/solid by the mesher. For a 2D pattern, the node coordinates are either "positions on face" computed by the mesher, or coordinates got by node projection on a geometrical surface, according to the user choice. For a 3D pattern, the node coordinates correspond to the nodes computed by the mesher.
-* A mesh, where the main shape is a face/solid, is selected. The pattern is created from all 2d/3d elements in a mesh. In addition, if all mesh elements of a 2D pattern are built by the mesher, the user can select how to get node coordinates, otherwise all nodes are projected on a face surface.
+* A sub-mesh on a face/solid is selected. The pattern is created from the 2D/3D elements bound to the face/solid by the mesher. For a 2D pattern, the node coordinates are either "positions on face" computed by the mesher, or coordinates got by node projection on a geometrical surface, according to the user choice. For a 3D pattern, the node coordinates correspond to the nodes computed by the mesher.
+* A mesh, where the main shape is a face/solid, is selected. The pattern is created from all 2D/3D elements in a mesh. In addition, if all mesh elements of a 2D pattern are built by the mesher, the user can select how to get node coordinates, otherwise all nodes are projected on a face surface.
 
 
 Mapping algorithm
 
 
 Mapping algorithm
index 85eb11d1294843dbc42a9e4d58681262c6ebdce7..4d38caeb15b2756d7245c2ddc200565b2d494e15 100644 (file)
@@ -26,7 +26,7 @@ This operation allows to rotate in space the mesh or some of its elements.
                * apply Filters. **Set filter** button allows to apply a filter to the selection of elements. See more about filters in the :ref:`selection_filter_library_page` page.
 
        * specify the axis of rotation:
                * apply Filters. **Set filter** button allows to apply a filter to the selection of elements. See more about filters in the :ref:`selection_filter_library_page` page.
 
        * specify the axis of rotation:
-               * specify the cooordinates of the start **Point** of the vector of rotation;
+               * specify the coordinates of the start **Point** of the vector of rotation;
                * specify the **Vector** of rotation through the coordinates of its end point with respect to the coordinates of the start point;
 
        * specify the **Angle** of rotation 
                * specify the **Vector** of rotation through the coordinates of its end point with respect to the coordinates of the start point;
 
        * specify the **Angle** of rotation 
index 59487da2f476e6bcd3cf75176aeac43d140462c5..228622b774de7a50d2dd6ef52edfbd0f5baf2c4f 100644 (file)
@@ -84,7 +84,7 @@ The compatibility mode allows old scripts to work in almost all cases, but with
 
        Compound1 = smesh.Concatenate([Mesh_inf.GetMesh(), Mesh_sup.GetMesh()], 0, 1, 1e-05)
 
 
        Compound1 = smesh.Concatenate([Mesh_inf.GetMesh(), Mesh_sup.GetMesh()], 0, 1, 1e-05)
 
-* If you need to **import a SMESH Plugin** explicitly, keep in mind that  they are now located in separate namespaces.
+* If you need to **import a SMESH Plugin** explicitly, keep in mind that they are now located in separate namespaces.
 
   For instance::
 
 
   For instance::
 
index 7094b659216fdde31853739bf676b33f0cf40646..cee154d031b43970fc99e78faed08b8492bacbd0 100644 (file)
@@ -32,7 +32,7 @@ A usual workflow to generate a mesh on geometry is following:
                :linenos:
 
                from salome.smesh import smeshBuilder
                :linenos:
 
                from salome.smesh import smeshBuilder
-               smesh = smeshBuilder.New( salome.myStudy )
+               smesh = smeshBuilder.New()
 
 #. Create a :class:`smeshBuilder.Mesh` object:
 
 
 #. Create a :class:`smeshBuilder.Mesh` object:
 
index 8b27124c1b3f6ea112ba354539004f39e0f80c54..4778ec4f7dde635508f7d177f4e66cd807898bd7 100644 (file)
@@ -12,7 +12,7 @@ So that
 * bi-quadratic triangle will be split into 3 linear quadrangles;
 * bi-quadratic quadrangle will be split into 4 linear quadrangles;
 * tri-quadratic hexahedron will be split into 8 linear hexahedra;
 * bi-quadratic triangle will be split into 3 linear quadrangles;
 * bi-quadratic quadrangle will be split into 4 linear quadrangles;
 * tri-quadratic hexahedron will be split into 8 linear hexahedra;
-* quadratic segments adjacent to the split bi-quadratic element will be split into 2 liner segments.
+* quadratic segments adjacent to the split bi-quadratic element will be split into 2 linear segments.
 
 .. image:: ../images/split_biquad_to_linear_mesh.png 
        :align: center
 
 .. image:: ../images/split_biquad_to_linear_mesh.png 
        :align: center
index c20875a605aef8c38f67bc44b4a28c064a0fe910..c80b4890e890d889421d9172cf848dc6db04d17f 100644 (file)
@@ -49,7 +49,7 @@ This geometrical operation allows to perform a symmetrical copy of your mesh or
 
                * if the mesh is mirrored through a plane:
 
 
                * if the mesh is mirrored through a plane:
 
-                 * specify the cooordinates of the **Point** lying on the plane, either directly or by picking a mesh node;
+                 * specify the coordinates of the **Point** lying on the plane, either directly or by picking a mesh node;
                  * specify the components of plane **Normal**, either directly or by picking a mesh node, in which case **Normal** is defined as a shift between the **Point** and the node.
 
                * specify the conditions of symmetry operation:
                  * specify the components of plane **Normal**, either directly or by picking a mesh node, in which case **Normal** is defined as a shift between the **Point** and the node.
 
                * specify the conditions of symmetry operation:
index ab9a96643a0126dff4d235f0c3f975bfc5fe2764..ff477ac312bec4ca461b653d883cc04f39a34796 100644 (file)
@@ -34,7 +34,7 @@ This geometrical operation allows to translate in space your mesh or some of its
 
    * specify the vector of translation:
 
 
    * specify the vector of translation:
 
-     * specify the cooordinates of the start and end **Points** of the vector of translation; or
+     * specify the coordinates of the start and end **Points** of the vector of translation; or
      * specify the end point of the **Vector** of rotation starting at the origin of coordinates.
 
    * specify the conditions of translation:
      * specify the end point of the **Vector** of rotation starting at the origin of coordinates.
 
    * specify the conditions of translation:
index ac88a3450c692aad5fcf41096a49a3a2455eedda..1e64974d91e685e39bdae0ad5d4161f596933f84 100644 (file)
@@ -317,7 +317,7 @@ Double edges, Double faces, Double volumes
 
 filters mesh elements basing on the same set of nodes:
 
 
 filters mesh elements basing on the same set of nodes:
 
-* element type is either *SMESH.EGDE*, *SMESH.FACE* or *SMESH.VOLUME*
+* element type is either *SMESH.EDGE*, *SMESH.FACE* or *SMESH.VOLUME*
 * functor type is either *SMESH.FT_EqualEdges*, *SMESH.FT_EqualFaces* or *SMESH.FT_EqualVolumes*,
 * threshold value is not required
 
 * functor type is either *SMESH.FT_EqualEdges*, *SMESH.FT_EqualFaces* or *SMESH.FT_EqualVolumes*,
 * threshold value is not required
 
index 19ce22fc53eee04bf97d9b3536b9777843830fd3..2436100e40dd278cf46e90c8fa3290b30f7124e1 100644 (file)
@@ -12,14 +12,14 @@ def main(module_name, output_file = "smeshBuilder.py"):
     dynamic_module_name = module_name + DYNAMIC_MODULE_SUFFIX
     try:
         exec( "import %s" % oringin_module_name )
     dynamic_module_name = module_name + DYNAMIC_MODULE_SUFFIX
     try:
         exec( "import %s" % oringin_module_name )
-        exec( "origin_module = %s" % oringin_module_name )
+        origin_module = locals()[ oringin_module_name ]
         origin_module_lines = inspect.getsourcelines( origin_module )[0]
         origin_meshClass_lines = inspect.getsourcelines(origin_module.Mesh)[0]
         origin_module_text = "".join( origin_module_lines )
         origin_meshClass_text = "".join( origin_meshClass_lines )
         
         exec( "import %s" % dynamic_module_name )
         origin_module_lines = inspect.getsourcelines( origin_module )[0]
         origin_meshClass_lines = inspect.getsourcelines(origin_module.Mesh)[0]
         origin_module_text = "".join( origin_module_lines )
         origin_meshClass_text = "".join( origin_meshClass_lines )
         
         exec( "import %s" % dynamic_module_name )
-        exec( "dynanmic_module = %s" % dynamic_module_name )
+        dynanmic_module = locals()[ dynamic_module_name ]
         dynanmic_meshClass = dynanmic_module.Mesh
     
         new_meshClass_lines = copy.copy(origin_meshClass_lines)
         dynanmic_meshClass = dynanmic_module.Mesh
     
         new_meshClass_lines = copy.copy(origin_meshClass_lines)
@@ -30,7 +30,7 @@ def main(module_name, output_file = "smeshBuilder.py"):
         dynanmic_meshClass_methods = [x for x, y in dynanmic_meshClass.__dict__.items() if type(y) == FunctionType]
         for method in dynanmic_meshClass_methods:
             exec( "method_lines = inspect.getsourcelines(dynanmic_module.Mesh.%s)[0]"  % method)
         dynanmic_meshClass_methods = [x for x, y in dynanmic_meshClass.__dict__.items() if type(y) == FunctionType]
         for method in dynanmic_meshClass_methods:
             exec( "method_lines = inspect.getsourcelines(dynanmic_module.Mesh.%s)[0]"  % method)
-            new_meshClass_lines+=method_lines
+            new_meshClass_lines+=locals()['method_lines']
             pass
         new_meshClass_text = "".join( new_meshClass_lines )            
 
             pass
         new_meshClass_text = "".join( new_meshClass_lines )            
 
index 3e8e2ca2e40ad38299387ef2037f558090a93edf..b8cc0b3877cf3167efab9bf36a578f587a5e10b3 100644 (file)
@@ -213,7 +213,7 @@ module SMESH
     HYP_UNKNOWN_FATAL,//  --- all statuses below should be considered as fatal
                       //      for Add/RemoveHypothesis operations
     HYP_INCOMPATIBLE, // hypothesis does not fit algo
     HYP_UNKNOWN_FATAL,//  --- all statuses below should be considered as fatal
                       //      for Add/RemoveHypothesis operations
     HYP_INCOMPATIBLE, // hypothesis does not fit algo
-    HYP_NOTCONFORM,   // not conform mesh is produced appling a hypothesis
+    HYP_NOTCONFORM,   // not conform mesh is produced applying a hypothesis
     HYP_ALREADY_EXIST,// such hypothesis already exist
     HYP_BAD_DIM,      // bad dimension
     HYP_BAD_SUBSHAPE, // shape is neither the main one, nor its sub-shape, nor a group
     HYP_ALREADY_EXIST,// such hypothesis already exist
     HYP_BAD_DIM,      // bad dimension
     HYP_BAD_SUBSHAPE, // shape is neither the main one, nor its sub-shape, nor a group
index 62dd62c91295ae2febe6af297052e0d449dfa72b..21a6374c1ce2e761c5a45bdfd88a1eb698edcd70 100644 (file)
@@ -480,7 +480,7 @@ module SMESH
      *  \param NbOfSteps - number of elements to generate from one element
      *  \param ToMakeGroups - if true, new elements will be included into new groups
      *         corresponding to groups the input elements included in.
      *  \param NbOfSteps - number of elements to generate from one element
      *  \param ToMakeGroups - if true, new elements will be included into new groups
      *         corresponding to groups the input elements included in.
-     *  \return ListOfGroups - new groups craeted if \a ToMakeGroups is true
+     *  \return ListOfGroups - new groups created if \a ToMakeGroups is true
      */
     ListOfGroups RotationSweepObjects(in ListOfIDSources Nodes,
                                       in ListOfIDSources Edges,
      */
     ListOfGroups RotationSweepObjects(in ListOfIDSources Nodes,
                                       in ListOfIDSources Edges,
@@ -501,7 +501,7 @@ module SMESH
      *  \param nbOfSteps - number of elements to generate from one element
      *  \param toMakeGroups - if true, new elements will be included into new groups
      *         corresponding to groups the input elements included in.
      *  \param nbOfSteps - number of elements to generate from one element
      *  \param toMakeGroups - if true, new elements will be included into new groups
      *         corresponding to groups the input elements included in.
-     *  \return ListOfGroups - new groups craeted if \a toMakeGroups is true
+     *  \return ListOfGroups - new groups created if \a toMakeGroups is true
      */
     ListOfGroups ExtrusionSweepObjects(in ListOfIDSources nodes,
                                        in ListOfIDSources edges,
      */
     ListOfGroups ExtrusionSweepObjects(in ListOfIDSources nodes,
                                        in ListOfIDSources edges,
@@ -533,7 +533,7 @@ module SMESH
      *         EXTRUSION_FLAG_SEW is set
      *  \param ToMakeGroups - if true, new elements will be included into new groups
      *         corresponding to groups the input elements included in.
      *         EXTRUSION_FLAG_SEW is set
      *  \param ToMakeGroups - if true, new elements will be included into new groups
      *         corresponding to groups the input elements included in.
-     *  \return ListOfGroups - new groups craeted if \a ToMakeGroups is true
+     *  \return ListOfGroups - new groups created if \a ToMakeGroups is true
      */
     ListOfGroups AdvancedExtrusion(in long_array IDsOfElements,
                                    in DirStruct  StepVector,
      */
     ListOfGroups AdvancedExtrusion(in long_array IDsOfElements,
                                    in DirStruct  StepVector,
index 4229c0345eaded6d86128b6841c6532f2a356e55..5e4e8b0a83f71a0bcb9262f62138db6a9dfdf7ac 100644 (file)
@@ -182,7 +182,7 @@ module SMESH
 
     /*!
      * Return nodal connectivity of the elements of the pattern
 
     /*!
      * Return nodal connectivity of the elements of the pattern
-     * or of all elements to be crated
+     * or of all elements to be created
      */
     array_of_long_array GetElementPoints(in boolean all);
   };
      */
     array_of_long_array GetElementPoints(in boolean all);
   };
index 3086a8f7b887cd3966e3702cfc2168dce071da57..f513d82a05a8df57c69af379e7ea755d1fc82a25 100644 (file)
@@ -43,10 +43,10 @@ int main (int argc, char ** argv)
     return -1;
   unsigned long freeRamKb = ( si.freeram  * si.mem_unit ) / 1024;
 
     return -1;
   unsigned long freeRamKb = ( si.freeram  * si.mem_unit ) / 1024;
 
-  // totat RAM size in Gb, float is in order not to have 1 instead of 1.9
+  // total RAM size in Gb, float is in order not to have 1 instead of 1.9
   float totalramGb = float( si.totalram * si.mem_unit ) / 1024 / 1024 / 1024;
 
   float totalramGb = float( si.totalram * si.mem_unit ) / 1024 / 1024 / 1024;
 
-  // nb Kbites to allocate at one step. Small nb leads to hung up
+  // nb Kbytes to allocate at one step. Small nb leads to hung up
   const int stepKb = int( 5 * totalramGb );
 
   unsigned long nbSteps = freeRamKb / stepKb * 2;
   const int stepKb = int( 5 * totalramGb );
 
   unsigned long nbSteps = freeRamKb / stepKb * 2;
index bb3ecb80f37b8dc29965ab9416fb4c5cc062621f..790ff1bb3f72420abe69fad9ddf4e08845ce2c53 100644 (file)
@@ -63,7 +63,7 @@ int SMDS_Mesh::chunkSize = 1024;
 //================================================================================
 /*!
  * \brief Raise an exception if free memory (ram+swap) too low
 //================================================================================
 /*!
  * \brief Raise an exception if free memory (ram+swap) too low
- * \param doNotRaise - if true, suppres exception, just return free memory size
+ * \param doNotRaise - if true, suppress exception, just return free memory size
  * \retval int - amount of available memory in MB or negative number in failure case
  */
 //================================================================================
  * \retval int - amount of available memory in MB or negative number in failure case
  */
 //================================================================================
index 38952f78cb5bcb17d540b1952418f3fc98078ff5..e81735e44bab581ea7814238190f96468ba4899e 100644 (file)
@@ -668,7 +668,7 @@ public:
 
   /*!
    * \brief Raise an exception if free memory (ram+swap) too low
 
   /*!
    * \brief Raise an exception if free memory (ram+swap) too low
-    * \param doNotRaise - if true, suppres exception, just return free memory size
+    * \param doNotRaise - if true, suppress exception, just return free memory size
     * \retval int - amount of available memory in MB or negative number in failure case
    */
   static int CheckMemory(const bool doNotRaise=false) throw (std::bad_alloc);
     * \retval int - amount of available memory in MB or negative number in failure case
    */
   static int CheckMemory(const bool doNotRaise=false) throw (std::bad_alloc);
index 62f77de4a75ac8c4172f2db900c6ff92722346d4..8b2d1c5d2ab0baec4d5a4dab468802f40e656ab7 100644 (file)
@@ -751,7 +751,7 @@ SMESH_Algo::EMeshError SMESH_Algo::GetMeshError(SMESH_subMesh* subMesh)
     if ( !fIt->more() )
       return MEr_EMPTY;
 
     if ( !fIt->more() )
       return MEr_EMPTY;
 
-    // We check that only links on EDGEs encouter once, the rest links, twice
+    // We check that only links on EDGEs encounter once, the rest links, twice
     set< SMESH_TLink > links;
     while ( fIt->more() )
     {
     set< SMESH_TLink > links;
     while ( fIt->more() )
     {
index 71365d197c7130c754c794dd116d5c9f1f616570..4b5814c1f1244ca09eb9afce4d8c3475c5405194 100644 (file)
@@ -1170,7 +1170,7 @@ int SMESH_Gen::GetShapeDim(const TopAbs_ShapeEnum & aShapeType)
 
 //=============================================================================
 /*!
 
 //=============================================================================
 /*!
- * Genarate a new id unique within this Gen
+ * Generate a new id unique within this Gen
  */
 //=============================================================================
 
  */
 //=============================================================================
 
index 5ab9b683dc33aa9743dd89b6cb458522d086ddb2..23a4955c271268b2b3561fdaff414e2453dbcc49 100644 (file)
@@ -64,7 +64,7 @@ SMESH_Group::SMESH_Group (int                       theID,
 
 //================================================================================
 /*!
 
 //================================================================================
 /*!
- * \brief Constructor accesible to SMESH_Mesh only
+ * \brief Constructor accessible to SMESH_Mesh only
  */
 //================================================================================
 
  */
 //================================================================================
 
index 9bf01b9c66527ad4b2fbca483f8f042a650d15d1..b6ec54ad936b958bebcf4f624258bc94b4528044 100644 (file)
@@ -58,7 +58,7 @@ public:
     HYP_UNKNOWN_FATAL,//  --- all statuses below should be considered as fatal
                       //      for Add/RemoveHypothesis operations
     HYP_INCOMPATIBLE, // hypothesis does not fit algo
     HYP_UNKNOWN_FATAL,//  --- all statuses below should be considered as fatal
                       //      for Add/RemoveHypothesis operations
     HYP_INCOMPATIBLE, // hypothesis does not fit algo
-    HYP_NOTCONFORM,   // not conform mesh is produced appling a hypothesis
+    HYP_NOTCONFORM,   // not conform mesh is produced applying a hypothesis
     HYP_ALREADY_EXIST,// several applicable hypothesis of same priority assigned
     HYP_BAD_DIM,      // bad dimension
     HYP_BAD_SUBSHAPE, // shape is neither the main one, nor its sub-shape, nor a group
     HYP_ALREADY_EXIST,// several applicable hypothesis of same priority assigned
     HYP_BAD_DIM,      // bad dimension
     HYP_BAD_SUBSHAPE, // shape is neither the main one, nor its sub-shape, nor a group
index 06e3133e33b34383ae7feef9d855b8fc597a5f63..49ba0635e1c1ebcb3113a5a991f950b320549ca4 100644 (file)
@@ -1423,7 +1423,7 @@ bool SMESH_MeshEditor::QuadToTri (TIDSortedElemSet &                   theElems,
     const SMDS_MeshElement* newElem1 = 0;
     const SMDS_MeshElement* newElem2 = 0;
 
     const SMDS_MeshElement* newElem1 = 0;
     const SMDS_MeshElement* newElem2 = 0;
 
-    if ( !elem->IsQuadratic() ) // split liner quadrangle
+    if ( !elem->IsQuadratic() ) // split linear quadrangle
     {
       // for MaxElementLength2D functor we return minimum diagonal for splitting,
       // because aBadRate1=2*len(diagonal 1-3); aBadRate2=2*len(diagonal 2-4)
     {
       // for MaxElementLength2D functor we return minimum diagonal for splitting,
       // because aBadRate1=2*len(diagonal 1-3); aBadRate2=2*len(diagonal 2-4)
index ad48bd49d1bdb8a90e740ac56b004ef0086318ec..aaf07a4cde382dcb97ae19e36fd8ea0123ea6c7e 100644 (file)
@@ -854,7 +854,7 @@ bool SMESH_MesherHelper::CheckNodeUV(const TopoDS_Face&   F,
 
 //=======================================================================
 //function : GetProjector
 
 //=======================================================================
 //function : GetProjector
-//purpose  : Return projector intitialized by given face without location, which is returned
+//purpose  : Return projector initialized by given face without location, which is returned
 //=======================================================================
 
 GeomAPI_ProjectPointOnSurf& SMESH_MesherHelper::GetProjector(const TopoDS_Face& F,
 //=======================================================================
 
 GeomAPI_ProjectPointOnSurf& SMESH_MesherHelper::GetProjector(const TopoDS_Face& F,
@@ -2903,7 +2903,7 @@ bool SMESH_MesherHelper::IsDistorted2D( SMESH_subMesh*      faceSM,
     for ( size_t i = 0; i < nodes.size(); ++n, ++i )
       nodes[ i ] = *n;
 
     for ( size_t i = 0; i < nodes.size(); ++n, ++i )
       nodes[ i ] = *n;
 
-    // avoid elems on degenarate shapes as UV on them can be wrong
+    // avoid elems on degenerate shapes as UV on them can be wrong
     if ( helper.HasDegeneratedEdges() )
     {
       bool isOnDegen = false;
     if ( helper.HasDegeneratedEdges() )
     {
       bool isOnDegen = false;
index d4f54833ae574dacf157d599aa2f7d4ea926213c..3b516baa01615d717c74363a5e0f0d8613acad4a 100644 (file)
@@ -300,7 +300,7 @@ public:
 
   /*!
    * \brief To set created elements on the shape set by IsQuadraticSubMesh()
 
   /*!
    * \brief To set created elements on the shape set by IsQuadraticSubMesh()
-   *        or the next methods. By defaul elements are set on the shape if
+   *        or the next methods. By default elements are set on the shape if
    *        a mesh has no shape to be meshed
    */
   bool SetElementsOnShape(bool toSet)
    *        a mesh has no shape to be meshed
    */
   bool SetElementsOnShape(bool toSet)
@@ -539,7 +539,7 @@ public:
   bool GetNodeUVneedInFaceNode(const TopoDS_Face& F = TopoDS_Face()) const;
 
   /*!
   bool GetNodeUVneedInFaceNode(const TopoDS_Face& F = TopoDS_Face()) const;
 
   /*!
-   * \brief Return projector intitialized by given face without location, which is returned
+   * \brief Return projector initialized by given face without location, which is returned
    */
   GeomAPI_ProjectPointOnSurf& GetProjector(const TopoDS_Face& F,
                                            TopLoc_Location&   loc,
    */
   GeomAPI_ProjectPointOnSurf& GetProjector(const TopoDS_Face& F,
                                            TopLoc_Location&   loc,
@@ -577,7 +577,7 @@ public:
     * \retval bool - true if subShape is a seam shape
     *
     * It works only if IsQuadraticSubMesh() or SetSubShape() has been called.
     * \retval bool - true if subShape is a seam shape
     *
     * It works only if IsQuadraticSubMesh() or SetSubShape() has been called.
-    * Seam shape has two 2D alternative represenations on the face
+    * Seam shape has two 2D alternative representations on the face
    */
   bool IsSeamShape(const int subShape) const
   { return mySeamShapeIds.find( subShape ) != mySeamShapeIds.end(); }
    */
   bool IsSeamShape(const int subShape) const
   { return mySeamShapeIds.find( subShape ) != mySeamShapeIds.end(); }
@@ -587,7 +587,7 @@ public:
     * \retval bool - true if subShape is a seam shape
     *
     * It works only if IsQuadraticSubMesh() or SetSubShape() has been called.
     * \retval bool - true if subShape is a seam shape
     *
     * It works only if IsQuadraticSubMesh() or SetSubShape() has been called.
-    * Seam shape has two 2D alternative represenations on the face
+    * Seam shape has two 2D alternative representations on the face
    */
   bool IsSeamShape(const TopoDS_Shape& subShape) const
   { return IsSeamShape( ShapeToIndex( subShape )); }
    */
   bool IsSeamShape(const TopoDS_Shape& subShape) const
   { return IsSeamShape( ShapeToIndex( subShape )); }
index 836cd179041360a585e80bf59de44cd0422f9754..9acf598473caeded1d4bc878f4568e7614685fde 100644 (file)
@@ -195,7 +195,7 @@ class SMESH_EXPORT SMESH_Pattern {
     // MakeMesh
     ERR_MAKEM_NOT_COMPUTED, // mapping failed
     //Unexpected error 
     // MakeMesh
     ERR_MAKEM_NOT_COMPUTED, // mapping failed
     //Unexpected error 
-    ERR_UNEXPECTED // Unexpected of the pattern mapping alorithm
+    ERR_UNEXPECTED // Unexpected of the pattern mapping algorithm
   };
 
   ErrorCode GetErrorCode() const { return myErrorCode; }
   };
 
   ErrorCode GetErrorCode() const { return myErrorCode; }
index 567ba381f2cf2dc599b4923ca9a405ffa1d15896..23e450253c87566f294528d83cee05161fe5252b 100755 (executable)
@@ -856,7 +856,7 @@ QList<int> SMESHGUI_FilterTable::Table::selectedRows()
 
 /*
   Class       : SMESHGUI_FilterTable
 
 /*
   Class       : SMESHGUI_FilterTable
-  Description : Frame containig
+  Description : Frame containing
                   - Button group for switching entity type
                   - Table for displaying filter criterions
                   - Buttons for editing table and filter libraries
                   - Button group for switching entity type
                   - Table for displaying filter criterions
                   - Buttons for editing table and filter libraries
index 4068c057bc0f5fe7c598a519becc9ee870b0c8e0..2cb9067fd3853410de0c4ccc89b1edad316b84f1 100755 (executable)
@@ -61,7 +61,7 @@ class SVTK_Selector;
 
 /*!
  *  Class       : SMESHGUI_FilterTable
 
 /*!
  *  Class       : SMESHGUI_FilterTable
- *  Description : Frame containig 
+ *  Description : Frame containin
  *                  - Button group for switching entity type
  *                  - Table for displaying filter criterions
  *                  - Buttons for editing table
  *                  - Button group for switching entity type
  *                  - Table for displaying filter criterions
  *                  - Buttons for editing table
index f74cd803cbf3ea1fb266c5e94e49e1683446c6ba..408546d464ba7321ad81d6752c01c445406aa343 100644 (file)
@@ -510,7 +510,7 @@ void SMESHGUI_GroupOpDlg::enterEvent(QEvent*)
 /*!
   \brief Resets state of the dialog, initializes its fields with default value, etc. 
   Usually called by onApply() slot to reinitialize dialog  fields. This virtual method 
 /*!
   \brief Resets state of the dialog, initializes its fields with default value, etc. 
   Usually called by onApply() slot to reinitialize dialog  fields. This virtual method 
-  should be redefined in derived class to update its own fileds
+  should be redefined in derived class to update its own fields
 */
 void SMESHGUI_GroupOpDlg::reset()
 {
 */
 void SMESHGUI_GroupOpDlg::reset()
 {
index f69cc76b86181ba9c644097a27dfeab2a816a983..07066bf4605481b7d3e27ef45505cbf34a15b1f6 100644 (file)
@@ -610,11 +610,11 @@ void SMESHGUI_MeshInfo::showInfo( SMESH::SMESH_IDSource_ptr obj )
     myWidgets[i3DHexaPrisms][iTotal]        ->setProperty( "text", QString::number( info[SMDSEntity_Hexagonal_Prism] ));
     myWidgets[i3DPolyhedrons][iTotal]       ->setProperty( "text", QString::number( info[SMDSEntity_Polyhedra] ));
     long nbElemTotal       = info[SMDSEntity_0D] + info[SMDSEntity_Ball] + nbEdges + nb2DTotal + nb3DTotal;
     myWidgets[i3DHexaPrisms][iTotal]        ->setProperty( "text", QString::number( info[SMDSEntity_Hexagonal_Prism] ));
     myWidgets[i3DPolyhedrons][iTotal]       ->setProperty( "text", QString::number( info[SMDSEntity_Polyhedra] ));
     long nbElemTotal       = info[SMDSEntity_0D] + info[SMDSEntity_Ball] + nbEdges + nb2DTotal + nb3DTotal;
-    long nbElemLinerial    = info[SMDSEntity_Edge] + nb2DLinear + nb3DLinear;
+    long nbElemLinearial   = info[SMDSEntity_Edge] + nb2DLinear + nb3DLinear;
     long nbElemQuadratic   = info[SMDSEntity_Quad_Edge] + nb2DQuadratic + nb3DQuadratic;
     long nbElemBiQuadratic = nb2DBiQuadratic + nb3DBiQuadratic;
     myWidgets[iNb][iTotal]      ->setProperty( "text", QString::number( nbElemTotal ));
     long nbElemQuadratic   = info[SMDSEntity_Quad_Edge] + nb2DQuadratic + nb3DQuadratic;
     long nbElemBiQuadratic = nb2DBiQuadratic + nb3DBiQuadratic;
     myWidgets[iNb][iTotal]      ->setProperty( "text", QString::number( nbElemTotal ));
-    myWidgets[iNb][iLinear]     ->setProperty( "text", QString::number( nbElemLinerial ));
+    myWidgets[iNb][iLinear]     ->setProperty( "text", QString::number( nbElemLinearial ));
     myWidgets[iNb][iQuadratic]  ->setProperty( "text", QString::number( nbElemQuadratic ));
     myWidgets[iNb][iBiQuadratic]->setProperty( "text", QString::number( nbElemBiQuadratic ));
     // before full loading from study file, type of elements in a sub-mesh can't be defined
     myWidgets[iNb][iQuadratic]  ->setProperty( "text", QString::number( nbElemQuadratic ));
     myWidgets[iNb][iBiQuadratic]->setProperty( "text", QString::number( nbElemBiQuadratic ));
     // before full loading from study file, type of elements in a sub-mesh can't be defined
index b09abbaf4e171430dcab12f5b3d0882472f5ca60..0f84e9a19c0cbd851a6c2ab1a95e21a1b40b0cd4 100644 (file)
@@ -96,7 +96,7 @@ enum { CONSTRUCTOR_POINT=0, CONSTRUCTOR_FACE, CONSTRUCTOR_VOLUME,
 
 //=======================================================================
 /*!
 
 //=======================================================================
 /*!
- * \brief Dialog to reorient faces acoording to vector
+ * \brief Dialog to reorient faces according to vector
  */
 //=======================================================================
 
  */
 //=======================================================================
 
index e09462483c9dfd172e06d8180edce686b704c710..ed697247bddcc8e80a843420fca42b906b3103fa 100644 (file)
@@ -39,7 +39,7 @@ class SMESHGUI_SpinBox;
 class SMESHGUI_ReorientFacesDlg;
 
 /*!
 class SMESHGUI_ReorientFacesDlg;
 
 /*!
- * \brief Operation to reorient faces acoording to some criterion
+ * \brief Operation to reorient faces according to some criterion
  */
 class SMESHGUI_EXPORT SMESHGUI_ReorientFacesOp: public SMESHGUI_SelectionOp
 {
  */
 class SMESHGUI_EXPORT SMESHGUI_ReorientFacesOp: public SMESHGUI_SelectionOp
 {
@@ -81,7 +81,7 @@ private:
 };
 
 /*!
 };
 
 /*!
- * \brief Dialog to reorient faces acoording to vector
+ * \brief Dialog to reorient faces according to vector
  */
 
 class SMESHGUI_EXPORT SMESHGUI_ReorientFacesDlg : public SMESHGUI_Dialog
  */
 
 class SMESHGUI_EXPORT SMESHGUI_ReorientFacesDlg : public SMESHGUI_Dialog
index 5d82de8bebb4970fd87b28a13febf0ceba41d897..b17fed16fd0713ebb412cca2a8daf608201d8229 100644 (file)
@@ -287,7 +287,7 @@ void SMESHGUI_ShapeByMeshOp::SetMesh (SMESH::SMESH_Mesh_ptr thePtr)
       myHasSolids = nbShapes[ TopAbs_SOLID ];
     }
 
       myHasSolids = nbShapes[ TopAbs_SOLID ];
     }
 
-  // disable inexistant elem types
+  // disable inexistent elem types
   for ( int i = 0; i < myDlg->myElemTypeGroup->buttons().count(); ++i ) {
     if ( QAbstractButton* button = myDlg->myElemTypeGroup->button( i ) )
       button->setEnabled( hasElement[ i ] );
   for ( int i = 0; i < myDlg->myElemTypeGroup->buttons().count(); ++i ) {
     if ( QAbstractButton* button = myDlg->myElemTypeGroup->button( i ) )
       button->setEnabled( hasElement[ i ] );
index 98549bdc8e0a1ab74ef3ff47a1f17cd1474758ad..5b4a50483c47f05874e33398d63149ad2b4227a4 100644 (file)
@@ -789,7 +789,7 @@ namespace SMESH
           if(SMESH_Actor *anActor = dynamic_cast<SMESH_Actor*>(anAct)){
             if(anActor->hasIO())
               if (!Update(anActor->getIO(),anActor->GetVisibility()))
           if(SMESH_Actor *anActor = dynamic_cast<SMESH_Actor*>(anAct)){
             if(anActor->hasIO())
               if (!Update(anActor->getIO(),anActor->GetVisibility()))
-                break; // avoid multiple warinings if visu failed
+                break; // avoid multiple warnings if visu failed
           }
         }
       }
           }
         }
       }
@@ -800,7 +800,7 @@ namespace SMESH
         {
           Handle(SALOME_InteractiveObject) anIO = anIter.Value();
           if ( !Update( anIO, true ))
         {
           Handle(SALOME_InteractiveObject) anIO = anIter.Value();
           if ( !Update( anIO, true ))
-            break; // avoid multiple warinings if visu failed
+            break; // avoid multiple warnings if visu failed
 
           if ( withChildrenOfSelected ) // update all visible children
           {
 
           if ( withChildrenOfSelected ) // update all visible children
           {
@@ -1422,7 +1422,7 @@ namespace SMESH
   //================================================================================
   /*!
    * \brief Find all SMESH_Actor's in the View Window.
   //================================================================================
   /*!
    * \brief Find all SMESH_Actor's in the View Window.
-   * If actor constains Plot2d_Histogram object remove it from each Plot2d Viewer.
+   * If actor contains Plot2d_Histogram object remove it from each Plot2d Viewer.
    */
   //================================================================================
 
    */
   //================================================================================
 
index 5ff01e3ab01843f9f18fe9cbbd6efaa6da50e662..597a360f617da8954900566bb2a0679c21e059d0 100644 (file)
@@ -1040,7 +1040,7 @@ bool SMESH_Block::findUVByHalfDivision( const gp_Pnt&             thePoint,
     }
   }
 
     }
   }
 
-  // refine solution using half-division technic
+  // refine solution using half-division technique
 
   gp_XYZ sol = theParams;
 
 
   gp_XYZ sol = theParams;
 
@@ -1727,7 +1727,7 @@ bool SMESH_Block::LoadMeshBlock(const SMDS_MeshVolume*        theVolume,
 //function : LoadBlockShapes
 //purpose  : Initialize block geometry with theShell,
 //           add sub-shapes of theBlock to theShapeIDMap so that they get
 //function : LoadBlockShapes
 //purpose  : Initialize block geometry with theShell,
 //           add sub-shapes of theBlock to theShapeIDMap so that they get
-//           IDs acoording to enum TShapeID
+//           IDs according to enum TShapeID
 //=======================================================================
 
 bool SMESH_Block::LoadBlockShapes(const TopoDS_Shell&         theShell,
 //=======================================================================
 
 bool SMESH_Block::LoadBlockShapes(const TopoDS_Shell&         theShell,
@@ -1742,7 +1742,7 @@ bool SMESH_Block::LoadBlockShapes(const TopoDS_Shell&         theShell,
 //=======================================================================
 //function : LoadBlockShapes
 //purpose  : add sub-shapes of theBlock to theShapeIDMap so that they get
 //=======================================================================
 //function : LoadBlockShapes
 //purpose  : add sub-shapes of theBlock to theShapeIDMap so that they get
-//           IDs acoording to enum TShapeID
+//           IDs according to enum TShapeID
 //=======================================================================
 
 bool SMESH_Block::FindBlockShapes(const TopoDS_Shell&         theShell,
 //=======================================================================
 
 bool SMESH_Block::FindBlockShapes(const TopoDS_Shell&         theShell,
index 6b0caabbb7bae260816f1c612dc9d117fa76df13..36c3a68387982f44aa52c7a618a3913a3d4703a1 100644 (file)
@@ -154,7 +154,7 @@ class SMESHUtils_EXPORT SMESH_Block: public math_FunctionSetWithDerivatives
                        TopTools_IndexedMapOfOrientedShape& theShapeIDMap );
   // Initialize block geometry with theShell,
   // add sub-shapes of theBlock to theShapeIDMap so that they get
                        TopTools_IndexedMapOfOrientedShape& theShapeIDMap );
   // Initialize block geometry with theShell,
   // add sub-shapes of theBlock to theShapeIDMap so that they get
-  // IDs acoording to enum TShapeID
+  // IDs according to enum TShapeID
 
   bool LoadBlockShapes(const TopTools_IndexedMapOfOrientedShape& theShapeIDMap);
   // Initialize block geometry with shapes from theShapeIDMap
 
   bool LoadBlockShapes(const TopTools_IndexedMapOfOrientedShape& theShapeIDMap);
   // Initialize block geometry with shapes from theShapeIDMap
@@ -185,7 +185,7 @@ class SMESHUtils_EXPORT SMESH_Block: public math_FunctionSetWithDerivatives
                               const TopoDS_Vertex&        theVertex001,
                               TopTools_IndexedMapOfOrientedShape& theShapeIDMap );
   // add sub-shapes of theBlock to theShapeIDMap so that they get
                               const TopoDS_Vertex&        theVertex001,
                               TopTools_IndexedMapOfOrientedShape& theShapeIDMap );
   // add sub-shapes of theBlock to theShapeIDMap so that they get
-  // IDs acoording to enum TShapeID
+  // IDs according to enum TShapeID
 
 public:
   // ---------------------------------
 
 public:
   // ---------------------------------
index 28b641e3a4f74a15bd8b2c51b3adc47dfe76f510..565089b150cce9a19675ea475be377f1c2a162ab 100644 (file)
@@ -360,7 +360,7 @@ namespace {
   //================================================================================
   /*!
    * \brief Replaces "SMESH.PointStruct(x,y,z)" and "SMESH.DirStruct( SMESH.PointStruct(x,y,z))"
   //================================================================================
   /*!
    * \brief Replaces "SMESH.PointStruct(x,y,z)" and "SMESH.DirStruct( SMESH.PointStruct(x,y,z))"
-   *        arguments of a given command by a list "[x,y,z]" if the list is accesible
+   *        arguments of a given command by a list "[x,y,z]" if the list is accessible
    *        type of argument.
    */
   //================================================================================
    *        type of argument.
    */
   //================================================================================
@@ -412,7 +412,7 @@ namespace {
   //================================================================================
   /*!
    * \brief Replaces "mesh.GetIDSource([id1,id2])" argument of a given command by
   //================================================================================
   /*!
    * \brief Replaces "mesh.GetIDSource([id1,id2])" argument of a given command by
-   *        a list "[id1,id2]" if the list is an accesible type of argument.
+   *        a list "[id1,id2]" if the list is an accessible type of argument.
    */
   //================================================================================
 
    */
   //================================================================================
 
index 25f0c2c7faa0c680b485a26728beeae876271157..d1d80774140a60474b92ab33940ac33bc5f7c498 100644 (file)
@@ -1930,7 +1930,7 @@ CORBA::Boolean SMESH_Gen_i::Compute( SMESH::SMESH_Mesh_ptr theMesh,
     ASSERT( meshServant );
     if ( meshServant ) {
       meshServant->Load();
     ASSERT( meshServant );
     if ( meshServant ) {
       meshServant->Load();
-      // NPAL16168: "geometrical group edition from a submesh don't modifiy mesh computation"
+      // NPAL16168: "geometrical group edition from a submesh don't modify mesh computation"
       meshServant->CheckGeomModif();
       // get local TopoDS_Shape
       TopoDS_Shape myLocShape;
       meshServant->CheckGeomModif();
       // get local TopoDS_Shape
       TopoDS_Shape myLocShape;
@@ -2015,7 +2015,7 @@ SMESH::MeshPreviewStruct* SMESH_Gen_i::Precompute( SMESH::SMESH_Mesh_ptr theMesh
     meshServant->Load();
     ASSERT( meshServant );
     if ( meshServant ) {
     meshServant->Load();
     ASSERT( meshServant );
     if ( meshServant ) {
-      // NPAL16168: "geometrical group edition from a submesh don't modifiy mesh computation"
+      // NPAL16168: "geometrical group edition from a submesh don't modify mesh computation"
       meshServant->CheckGeomModif();
       // get local TopoDS_Shape
       TopoDS_Shape myLocShape;
       meshServant->CheckGeomModif();
       // get local TopoDS_Shape
       TopoDS_Shape myLocShape;
@@ -2212,7 +2212,7 @@ SMESH::long_array* SMESH_Gen_i::Evaluate(SMESH::SMESH_Mesh_ptr theMesh,
     ASSERT( meshServant );
     if ( meshServant ) {
       meshServant->Load();
     ASSERT( meshServant );
     if ( meshServant ) {
       meshServant->Load();
-      // NPAL16168: "geometrical group edition from a submesh don't modifiy mesh computation"
+      // NPAL16168: "geometrical group edition from a submesh don't modify mesh computation"
       meshServant->CheckGeomModif();
       // get local TopoDS_Shape
       TopoDS_Shape myLocShape;
       meshServant->CheckGeomModif();
       // get local TopoDS_Shape
       TopoDS_Shape myLocShape;
index 9b9779d68505ced3e554ecd12f1cc19695906ea0..d6e6dc0cd0b16cb44d024f29cc824eb8407a1c2b 100644 (file)
@@ -126,7 +126,7 @@ CORBA::Long SMESH_Hypothesis_i::GetId()
 bool SMESH_Hypothesis_i::IsPublished()
 {
   bool res = false;
 bool SMESH_Hypothesis_i::IsPublished()
 {
   bool res = false;
-  if ( SMESH_Gen_i *gen = SMESH_Gen_i::GetSMESHGen())
+  if ( SMESH_Gen_i::GetSMESHGen() )
   {
     SALOMEDS::SObject_wrap SO = SMESH_Gen_i::ObjectToSObject( _this());
     res = !SO->_is_nil();
   {
     SALOMEDS::SObject_wrap SO = SMESH_Gen_i::ObjectToSObject( _this());
     res = !SO->_is_nil();
index e49fa3e5d4695e8c9a64159f6358d4912485127d..3d1a120a8758adee646ae2a8be25b8966974759a 100644 (file)
@@ -2597,7 +2597,7 @@ namespace MeshEditor_I
  *  \param [in] nbOfSteps - number of elements to generate from one element
  *  \param [in] toMakeGroups - if true, new elements will be included into new groups
  *              corresponding to groups the input elements included in.
  *  \param [in] nbOfSteps - number of elements to generate from one element
  *  \param [in] toMakeGroups - if true, new elements will be included into new groups
  *              corresponding to groups the input elements included in.
- *  \return ListOfGroups - new groups craeted if \a toMakeGroups is true
+ *  \return ListOfGroups - new groups created if \a toMakeGroups is true
  */
 //=======================================================================
 
  */
 //=======================================================================
 
@@ -4088,10 +4088,9 @@ SMESH::SMESH_Mesh_ptr SMESH_MeshEditor_i::Offset( SMESH::SMESH_IDSource_ptr theO
     if ( *theMeshName && mesh_var->NbFaces() == 0 )
     {
       // new mesh empty, remove it
     if ( *theMeshName && mesh_var->NbFaces() == 0 )
     {
       // new mesh empty, remove it
-      SMESH_Gen_i*        smesh = SMESH_Gen_i::GetSMESHGen();
-      SALOMEDS::Study_var study = smesh->GetCurrentStudy();
+      SALOMEDS::Study_var          study = SMESH_Gen_i::getStudyServant();
       SALOMEDS::StudyBuilder_var builder = study->NewBuilder();
       SALOMEDS::StudyBuilder_var builder = study->NewBuilder();
-      SALOMEDS::SObject_wrap      meshSO = smesh->ObjectToSObject( study, mesh_var );
+      SALOMEDS::SObject_wrap      meshSO = SMESH_Gen_i::ObjectToSObject( mesh_var );
       builder->RemoveObjectWithChildren( meshSO );
       THROW_SALOME_CORBA_EXCEPTION("Offset failed", SALOME::INTERNAL_ERROR);
     }
       builder->RemoveObjectWithChildren( meshSO );
       THROW_SALOME_CORBA_EXCEPTION("Offset failed", SALOME::INTERNAL_ERROR);
     }
index d8ddcf6b92565a157ba7488ca01e8ad8b143c7f2..5110e337b95d197036ca1b839bcb45e9755dbf33 100644 (file)
@@ -2085,7 +2085,7 @@ void SMESH_Mesh_i::CheckGeomModif()
 /*!
  * \brief Update objects depending on changed geom groups
  *
 /*!
  * \brief Update objects depending on changed geom groups
  *
- * NPAL16168: geometrical group edition from a submesh don't modifiy mesh computation
+ * NPAL16168: geometrical group edition from a submesh don't modify mesh computation
  * issue 0020210: Update of a smesh group after modification of the associated geom group
  */
 //=============================================================================
  * issue 0020210: Update of a smesh group after modification of the associated geom group
  */
 //=============================================================================
@@ -5514,7 +5514,7 @@ TopAbs_ShapeEnum shapeTypeByDim(const int theDim)
 class SMESH_DimHyp
 {
  public:
 class SMESH_DimHyp
 {
  public:
-  //! fileds
+  //! fields
   int _dim;    //!< a dimension the algo can build (concurrent dimension)
   int _ownDim; //!< dimension of shape of _subMesh (>=_dim)
   TopTools_MapOfShape _shapeMap;
   int _dim;    //!< a dimension the algo can build (concurrent dimension)
   int _ownDim; //!< dimension of shape of _subMesh (>=_dim)
   TopTools_MapOfShape _shapeMap;
index d92889eb51a3011ad6a1f97fe75fed8841698c7f..8cddc28e2e01fba19373a9fb01d5ad4b61354bda 100644 (file)
@@ -444,7 +444,7 @@ public:
   /*!
    * \brief Update hypotheses assigned to geom groups if the latter change
    *
   /*!
    * \brief Update hypotheses assigned to geom groups if the latter change
    *
-   * NPAL16168: "geometrical group edition from a submesh don't modifiy mesh computation"
+   * NPAL16168: "geometrical group edition from a submesh don't modify mesh computation"
    */
   void CheckGeomGroupModif();
 
    */
   void CheckGeomGroupModif();
 
index 77055838d17dc6b53488d6bff1c3ce206fe976fe..9ed361399d9c12780c54b4f9246222c99fce1ab6 100755 (executable)
@@ -23,7 +23,7 @@
 
 #####################################################################
 #Created                :17/02/2005
 
 #####################################################################
 #Created                :17/02/2005
-#Auhtor                 :MASLOV Eugeny, KOVALTCHUK Alexey 
+#Author                 :MASLOV Eugeny, KOVALTCHUK Alexey 
 #####################################################################
 #
 import salome
 #####################################################################
 #
 import salome
index be5e1e24e727528776d14ca1659d28ce129f9b68..08294eb5e0f19f52c68f9bd3daa9660f476192c1 100644 (file)
@@ -21,7 +21,7 @@
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-#  GEOM GEOM_SWIG : binding of C++ omplementaion with Python
+#  GEOM GEOM_SWIG : binding of C++ implementation with Python
 #  File   : GEOM_Sphere.py
 #  Author : Damien COQUERET, Open CASCADE
 #  Module : GEOM
 #  File   : GEOM_Sphere.py
 #  Author : Damien COQUERET, Open CASCADE
 #  Module : GEOM
index a7d0a908dc0b0a7f95b3553ac577274497c9c32f..8b741895a68dd256930f431a3887e92194db317f 100644 (file)
@@ -566,8 +566,8 @@ class StdMeshersBuilder_CompositeSegment(StdMeshersBuilder_Segment):
 
 class StdMeshersBuilder_Segment_Python(Mesh_Algorithm):
     """
 
 class StdMeshersBuilder_Segment_Python(Mesh_Algorithm):
     """
-    Defines a segment 1D algorithm for discretization of edges with Python function
-        It is created by calling smeshBuilder.Mesh.Segment(smeshBuilder.PYTHON,geom=0)
+    Defines a segment 1D algorithm for discretization of edges with Python function.
+    It is created by calling smeshBuilder.Mesh.Segment(smeshBuilder.PYTHON,geom=0)
     """
     
 
     """
     
 
@@ -619,7 +619,7 @@ class StdMeshersBuilder_Segment_Python(Mesh_Algorithm):
 
 class StdMeshersBuilder_Triangle_MEFISTO(Mesh_Algorithm):
     """
 
 class StdMeshersBuilder_Triangle_MEFISTO(Mesh_Algorithm):
     """
-    Triangle MEFISTO 2D algorithm
+    Triangle MEFISTO 2D algorithm.
     It is created by calling smeshBuilder.Mesh.Triangle(smeshBuilder.MEFISTO,geom=0)
     """
     
     It is created by calling smeshBuilder.Mesh.Triangle(smeshBuilder.MEFISTO,geom=0)
     """
     
@@ -685,7 +685,7 @@ class StdMeshersBuilder_Triangle_MEFISTO(Mesh_Algorithm):
 
 class StdMeshersBuilder_Quadrangle(Mesh_Algorithm):
     """
 
 class StdMeshersBuilder_Quadrangle(Mesh_Algorithm):
     """
-    Defines a quadrangle 2D algorithm
+    Defines a quadrangle 2D algorithm.
     It is created by calling smeshBuilder.Mesh.Quadrangle(geom=0)
     """
     
     It is created by calling smeshBuilder.Mesh.Quadrangle(geom=0)
     """
     
@@ -863,7 +863,7 @@ class StdMeshersBuilder_Quadrangle(Mesh_Algorithm):
 
 class StdMeshersBuilder_Hexahedron(Mesh_Algorithm):
     """
 
 class StdMeshersBuilder_Hexahedron(Mesh_Algorithm):
     """
-    Defines a hexahedron 3D algorithm
+    Defines a hexahedron 3D algorithm.
     It is created by calling smeshBuilder.Mesh.Hexahedron(geom=0)
     """
     
     It is created by calling smeshBuilder.Mesh.Hexahedron(geom=0)
     """
     
@@ -903,7 +903,7 @@ class StdMeshersBuilder_Hexahedron(Mesh_Algorithm):
 
 class StdMeshersBuilder_Projection1D(Mesh_Algorithm):
     """
 
 class StdMeshersBuilder_Projection1D(Mesh_Algorithm):
     """
-    Defines a projection 1D algorithm
+    Defines a projection 1D algorithm.
     It is created by calling smeshBuilder.Mesh.Projection1D(geom=0)
     """
     
     It is created by calling smeshBuilder.Mesh.Projection1D(geom=0)
     """
     
@@ -971,7 +971,7 @@ class StdMeshersBuilder_Projection1D(Mesh_Algorithm):
 
 class StdMeshersBuilder_Projection2D(Mesh_Algorithm):
     """
 
 class StdMeshersBuilder_Projection2D(Mesh_Algorithm):
     """
-    Defines a projection 2D algorithm
+    Defines a projection 2D algorithm.
     It is created by calling smeshBuilder.Mesh.Projection2D(geom=0)
     """
     
     It is created by calling smeshBuilder.Mesh.Projection2D(geom=0)
     """
     
@@ -1048,7 +1048,7 @@ class StdMeshersBuilder_Projection2D(Mesh_Algorithm):
 
 class StdMeshersBuilder_Projection1D2D(StdMeshersBuilder_Projection2D):
     """
 
 class StdMeshersBuilder_Projection1D2D(StdMeshersBuilder_Projection2D):
     """
-    Defines a projection 1D-2D algorithm
+    Defines a projection 1D-2D algorithm.
     It is created by calling smeshBuilder.Mesh.Projection1D2D(geom=0)
     """
     
     It is created by calling smeshBuilder.Mesh.Projection1D2D(geom=0)
     """
     
@@ -1082,7 +1082,7 @@ class StdMeshersBuilder_Projection1D2D(StdMeshersBuilder_Projection2D):
 
 class StdMeshersBuilder_Projection3D(Mesh_Algorithm):
     """
 
 class StdMeshersBuilder_Projection3D(Mesh_Algorithm):
     """
-    Defines a projection 3D algorithm
+    Defines a projection 3D algorithm.
     It is created by calling smeshBuilder.Mesh.Projection3D(geom=0)
     """
     
     It is created by calling smeshBuilder.Mesh.Projection3D(geom=0)
     """
     
@@ -1551,7 +1551,7 @@ class StdMeshersBuilder_RadialAlgorithm(Mesh_Algorithm):
 
 class StdMeshersBuilder_RadialQuadrangle1D2D(StdMeshersBuilder_RadialAlgorithm):
     """
 
 class StdMeshersBuilder_RadialQuadrangle1D2D(StdMeshersBuilder_RadialAlgorithm):
     """
-    Defines a Radial Quadrangle 1D-2D algorithm 
+    Defines a Radial Quadrangle 1D-2D algorithm.
     It is created by calling smeshBuilder.Mesh.Quadrangle(smeshBuilder.RADIAL_QUAD,geom=0)
     """
 
     It is created by calling smeshBuilder.Mesh.Quadrangle(smeshBuilder.RADIAL_QUAD,geom=0)
     """
 
@@ -1587,7 +1587,7 @@ class StdMeshersBuilder_RadialQuadrangle1D2D(StdMeshersBuilder_RadialAlgorithm):
 
 class StdMeshersBuilder_QuadMA_1D2D(StdMeshersBuilder_RadialAlgorithm):
     """
 
 class StdMeshersBuilder_QuadMA_1D2D(StdMeshersBuilder_RadialAlgorithm):
     """
-    Defines a Quadrangle (Medial Axis Projection) 1D-2D algorithm 
+    Defines a Quadrangle (Medial Axis Projection) 1D-2D algorithm .
     It is created by calling smeshBuilder.Mesh.Quadrangle(smeshBuilder.QUAD_MA_PROJ,geom=0)
     """
 
     It is created by calling smeshBuilder.Mesh.Quadrangle(smeshBuilder.QUAD_MA_PROJ,geom=0)
     """
 
@@ -1620,7 +1620,7 @@ class StdMeshersBuilder_QuadMA_1D2D(StdMeshersBuilder_RadialAlgorithm):
     pass
 
 class StdMeshersBuilder_PolygonPerFace(Mesh_Algorithm):
     pass
 
 class StdMeshersBuilder_PolygonPerFace(Mesh_Algorithm):
-    """ Defines a Polygon Per Face 2D algorithm 
+    """ Defines a Polygon Per Face 2D algorithm.
         It is created by calling smeshBuilder.Mesh.Polygon(geom=0)
     """
 
         It is created by calling smeshBuilder.Mesh.Polygon(geom=0)
     """
 
@@ -1658,7 +1658,7 @@ class StdMeshersBuilder_PolygonPerFace(Mesh_Algorithm):
     pass
 
 class StdMeshersBuilder_UseExistingElements_1D(Mesh_Algorithm):
     pass
 
 class StdMeshersBuilder_UseExistingElements_1D(Mesh_Algorithm):
-    """ Defines a Use Existing Elements 1D algorithm
+    """ Defines a Use Existing Elements 1D algorithm.
 
     It is created by calling smeshBuilder.Mesh.UseExisting1DElements(geom=0)
     """
 
     It is created by calling smeshBuilder.Mesh.UseExisting1DElements(geom=0)
     """
@@ -1720,7 +1720,7 @@ class StdMeshersBuilder_UseExistingElements_1D(Mesh_Algorithm):
     pass # end of StdMeshersBuilder_UseExistingElements_1D class
 
 class StdMeshersBuilder_UseExistingElements_1D2D(Mesh_Algorithm):
     pass # end of StdMeshersBuilder_UseExistingElements_1D class
 
 class StdMeshersBuilder_UseExistingElements_1D2D(Mesh_Algorithm):
-    """ Defines a Use Existing Elements 1D-2D algorithm
+    """ Defines a Use Existing Elements 1D-2D algorithm.
 
     It is created by calling smeshBuilder.Mesh.UseExisting2DElements(geom=0)
     """
 
     It is created by calling smeshBuilder.Mesh.UseExisting2DElements(geom=0)
     """
@@ -1783,7 +1783,7 @@ class StdMeshersBuilder_UseExistingElements_1D2D(Mesh_Algorithm):
     pass # end of StdMeshersBuilder_UseExistingElements_1D2D class
 
 class StdMeshersBuilder_Cartesian_3D(Mesh_Algorithm):
     pass # end of StdMeshersBuilder_UseExistingElements_1D2D class
 
 class StdMeshersBuilder_Cartesian_3D(Mesh_Algorithm):
-    """ Defines a Body Fitting 3D algorithm
+    """ Defines a Body Fitting 3D algorithm.
 
     It is created by calling smeshBuilder.Mesh.BodyFitted(geom=0)
     """
 
     It is created by calling smeshBuilder.Mesh.BodyFitted(geom=0)
     """
@@ -1945,7 +1945,7 @@ class StdMeshersBuilder_Cartesian_3D(Mesh_Algorithm):
 
 class StdMeshersBuilder_UseExisting_1D(Mesh_Algorithm):
     """ Defines a stub 1D algorithm, which enables "manual" creation of nodes and
 
 class StdMeshersBuilder_UseExisting_1D(Mesh_Algorithm):
     """ Defines a stub 1D algorithm, which enables "manual" creation of nodes and
-        segments usable by 2D algorithms
+        segments usable by 2D algorithms.
 
     It is created by calling smeshBuilder.Mesh.UseExistingSegments(geom=0)
     """
 
     It is created by calling smeshBuilder.Mesh.UseExistingSegments(geom=0)
     """
@@ -1980,7 +1980,7 @@ class StdMeshersBuilder_UseExisting_1D(Mesh_Algorithm):
 
 class StdMeshersBuilder_UseExisting_2D(Mesh_Algorithm):
     """ Defines a stub 2D algorithm, which enables "manual" creation of nodes and
 
 class StdMeshersBuilder_UseExisting_2D(Mesh_Algorithm):
     """ Defines a stub 2D algorithm, which enables "manual" creation of nodes and
-    faces usable by 3D algorithms
+    faces usable by 3D algorithms.
 
     It is created by calling smeshBuilder.Mesh.UseExistingFaces(geom=0)
     """
 
     It is created by calling smeshBuilder.Mesh.UseExistingFaces(geom=0)
     """
index 6982aa6069f920e5012e789b0a2114e5a3b10993..726043dfec0b137f7e4e78027db4126a3966e665 100644 (file)
@@ -198,7 +198,7 @@ full.append(geompy.MakeCut(geompy.MakeCommon(full_solid_2, full_internal), box))
 full.append(geompy.MakeCut(geompy.MakeCommon(full_solid_3, full_internal), box))
 full.append(geompy.MakeCut(geompy.MakeCommon(full_solid_4, full_internal), box))
 
 full.append(geompy.MakeCut(geompy.MakeCommon(full_solid_3, full_internal), box))
 full.append(geompy.MakeCut(geompy.MakeCommon(full_solid_4, full_internal), box))
 
-# Cut the cylinder thikness
+# Cut the cylinder thickness
 # -------------------------
 
 full_plan = geompy.MakePlane(geompy.MakeVertex(0, 0, cyl_dz+cyl_thick), cyl_dir, 5000)
 # -------------------------
 
 full_plan = geompy.MakePlane(geompy.MakeVertex(0, 0, cyl_dz+cyl_thick), cyl_dir, 5000)
index 841dacbdbcb34855381dbc8aa0a4befdbac8e414..88c59b72998e9574838df5925e39a68d06b80a90 100644 (file)
@@ -611,33 +611,33 @@ class smeshBuilder( SMESH._objref_SMESH_Gen, object ):
         return SMESH._objref_SMESH_Gen.IsEmbeddedMode(self)
 
     def UpdateStudy( self, geompyD = None  ):
         return SMESH._objref_SMESH_Gen.IsEmbeddedMode(self)
 
     def UpdateStudy( self, geompyD = None  ):
-       """
-        Update the current study. Calling UpdateStudy() allows to 
-       update meshes at switching GEOM->SMESH
-       """
+        """
+        Update the current study. Calling UpdateStudy() allows to
+        update meshes at switching GEOM->SMESH
+        """
         #self.UpdateStudy()
         #self.UpdateStudy()
-       if not geompyD:
+        if not geompyD:
             from salome.geom import geomBuilder
             geompyD = geomBuilder.geom
             pass
             from salome.geom import geomBuilder
             geompyD = geomBuilder.geom
             pass
-       self.geompyD=geompyD
-       self.SetGeomEngine(geompyD)
-       SMESH._objref_SMESH_Gen.UpdateStudy(self)
-       sb = salome.myStudy.NewBuilder()
-       sc = salome.myStudy.FindComponent("SMESH")
-       if sc:
+        self.geompyD=geompyD
+        self.SetGeomEngine(geompyD)
+        SMESH._objref_SMESH_Gen.UpdateStudy(self)
+        sb = salome.myStudy.NewBuilder()
+        sc = salome.myStudy.FindComponent("SMESH")
+        if sc:
             sb.LoadWith(sc, self)
             sb.LoadWith(sc, self)
-       pass
+        pass
     
     def SetEnablePublish( self, theIsEnablePublish ):
     
     def SetEnablePublish( self, theIsEnablePublish ):
-       """
-        Sets enable publishing in the study. Calling SetEnablePublish( false ) allows to
-       switch OFF publishing in the Study of mesh objects.
-       """
-        #self.SetEnablePublish(theIsEnablePublish)
-       SMESH._objref_SMESH_Gen.SetEnablePublish(self,theIsEnablePublish)
-       global notebook
-       notebook = salome_notebook.NoteBook( theIsEnablePublish )
+        """
+        Set enable publishing in the study. Calling SetEnablePublish( False ) allows to
+        switch **off** publishing in the Study of mesh objects.
+        """
+       #self.SetEnablePublish(theIsEnablePublish)
+        SMESH._objref_SMESH_Gen.SetEnablePublish(self,theIsEnablePublish)
+        global notebook
+        notebook = salome_notebook.NoteBook( theIsEnablePublish )
 
 
     def CreateMeshesFromUNV( self,theFileName ):
 
 
     def CreateMeshesFromUNV( self,theFileName ):
@@ -1406,7 +1406,7 @@ def New( instance=None, instanceGeom=None):
     Create a new smeshBuilder instance. The smeshBuilder class provides the Python
     interface to create or load meshes.
 
     Create a new smeshBuilder instance. The smeshBuilder class provides the Python
     interface to create or load meshes.
 
-    Typical use is:
+    Typical use is::
 
         import salome
         salome.salome_init()
 
         import salome
         salome.salome_init()
@@ -1414,8 +1414,9 @@ def New( instance=None, instanceGeom=None):
         smesh = smeshBuilder.New()
 
     Parameters:
         smesh = smeshBuilder.New()
 
     Parameters:
-        isPublished If False, the notebool will not be used.
-        instance  CORBA proxy of SMESH Engine. If None, the default Engine is used.
+        study:         SALOME study, generally obtained by salome.myStudy.
+        instance:      CORBA proxy of SMESH Engine. If None, the default Engine is used.
+        instanceGeom:  CORBA proxy of GEOM  Engine. If None, the default Engine is used.
     Returns:
         :class:`smeshBuilder` instance
     """
     Returns:
         :class:`smeshBuilder` instance
     """
@@ -1875,6 +1876,7 @@ class Mesh(metaclass = MeshMeta):
                         continue
                     if ids == subShapeID:
                         shapeText = '"%s"' % subSO.GetName()
                         continue
                     if ids == subShapeID:
                         shapeText = '"%s"' % subSO.GetName()
+                        break
             if not shapeText:
                 shape = self.geompyD.GetSubShape( self.GetShape(), [subShapeID])
                 if shape:
             if not shapeText:
                 shape = self.geompyD.GetSubShape( self.GetShape(), [subShapeID])
                 if shape:
@@ -2157,14 +2159,16 @@ class Mesh(metaclass = MeshMeta):
         Parameters:
                 fileName: is the file name
                 auto_groups (boolean): parameter for creating/not creating
         Parameters:
                 fileName: is the file name
                 auto_groups (boolean): parameter for creating/not creating
-                       the groups Group_On_All_Nodes, Group_On_All_Faces, ... ;
-                       the typical use is auto_groups=False.
+                        the groups Group_On_All_Nodes, Group_On_All_Faces, ... ;
+                        the typical use is auto_groups=False.
                 overwrite (boolean): parameter for overwriting/not overwriting the file
                 overwrite (boolean): parameter for overwriting/not overwriting the file
-                meshPart: a part of mesh (group, sub-mesh) to export instead of the mesh
-                autoDimension if @c True (default), a space dimension of a MED mesh can be either
-                       - 1D if all mesh nodes lie on OX coordinate axis, or
-                       - 2D if all mesh nodes lie on XOY coordinate plane, or
-                       - 3D in the rest cases.
+                meshPart: a part of mesh (:class:`sub-mesh, group or filter <SMESH.SMESH_IDSource>`) to export instead of the mesh
+                autoDimension: if *True* (default), a space dimension of a MED mesh can be either
+
+                        - 1D if all mesh nodes lie on OX coordinate axis, or
+                        - 2D if all mesh nodes lie on XOY coordinate plane, or
+                        - 3D in the rest cases.
+
                         If *autoDimension* is *False*, the space dimension is always 3.
                 fields: list of GEOM fields defined on the shape to mesh.
                 geomAssocFields: each character of this string means a need to export a 
                         If *autoDimension* is *False*, the space dimension is always 3.
                 fields: list of GEOM fields defined on the shape to mesh.
                 geomAssocFields: each character of this string means a need to export a 
@@ -2366,7 +2370,7 @@ class Mesh(metaclass = MeshMeta):
                         - 3D in the rest cases.
 
                         If **autoDimension** is *False*, the space dimension is always 3.
                         - 3D in the rest cases.
 
                         If **autoDimension** is *False*, the space dimension is always 3.
-               """
+                """
 
         print("WARNING: ExportToMEDX() is deprecated, use ExportMED() instead")
         # process positional arguments
 
         print("WARNING: ExportToMEDX() is deprecated, use ExportMED() instead")
         # process positional arguments
@@ -6311,7 +6315,7 @@ class Mesh(metaclass = MeshMeta):
                 a :class:`Mesh`, elements of highest dimension are duplicated
             theGroupName: a name of group to contain the generated elements.
                 If a group with such a name already exists, the new elements
                 a :class:`Mesh`, elements of highest dimension are duplicated
             theGroupName: a name of group to contain the generated elements.
                 If a group with such a name already exists, the new elements
-                are added to the existng group, else a new group is created.
+                are added to the existing group, else a new group is created.
                 If *theGroupName* is empty, new elements are not added
                 in any group.
 
                 If *theGroupName* is empty, new elements are not added
                 in any group.
 
@@ -7053,7 +7057,6 @@ class algoCreator:
             algoType = sorted( self.algoTypeToClass.keys() )[0]
         if algoType in self.algoTypeToClass:
             #print("Create algo",algoType)
             algoType = sorted( self.algoTypeToClass.keys() )[0]
         if algoType in self.algoTypeToClass:
             #print("Create algo",algoType)
-
             return self.algoTypeToClass[ algoType ]( self.mesh, shape )
         raise RuntimeError( "No class found for algo type %s" % algoType)
         return None
             return self.algoTypeToClass[ algoType ]( self.mesh, shape )
         raise RuntimeError( "No class found for algo type %s" % algoType)
         return None
index b8c12430e22f397a0e8d6e7fa6b1f9afabd788bd..45841d0003c3f19c7e956e2aeab0102e702d4abf 100644 (file)
@@ -31,43 +31,38 @@ class Mesh_Algorithm:
 
     Note:
         This class should not be used directly, it is supposed to be sub-classed
 
     Note:
         This class should not be used directly, it is supposed to be sub-classed
-    for implementing Python API for specific meshing algorithms
+        for implementing Python API for specific meshing algorithms
 
 
-    For each meshing algorithm, a python class inheriting from class %Mesh_Algorithm
+    For each meshing algorithm, a python class inheriting from class *Mesh_Algorithm*
     should be defined. This descendant class should have two attributes defining the way
     should be defined. This descendant class should have two attributes defining the way
-    it is created by class Mesh (see e.g. class :class:`~StdMeshersBuilder.StdMeshersBuilder_Segment`
-    in StdMeshersBuilder package):
+    it is created by class :class:`~smeshBuilder.Mesh` (see e.g. class :class:`~StdMeshersBuilder.StdMeshersBuilder_Segment`):
 
 
-        - :code:`meshMethod` attribute defines name of method of class smesh.Mesh by calling which the
-                python class of algorithm is created; this method is dynamically added to the smesh.Mesh class
-                in runtime. For example, if in :code:`class MyPlugin_Algorithm` this attribute is defined as
-                ::
+    - :code:`meshMethod` attribute defines name of method of class :class:`~smeshBuilder.Mesh` by calling which the
+      python class of algorithm is created; this method is dynamically added to the :class:`~smeshBuilder.Mesh` class
+      in runtime. For example, if in :code:`class MyPlugin_Algorithm` this attribute is defined as::
 
 
-                        meshMethod = "MyAlgorithm"
+          meshMethod = "MyAlgorithm"
 
 
-                then an instance of :code:`MyPlugin_Algorithm` can be created by the direct invocation of the function
-                of smesh.Mesh class:
-                ::
+      then an instance of :code:`MyPlugin_Algorithm` can be created by the direct invocation of the function
+      of :class:`~smeshBuilder.Mesh` class::
     
     
-                        my_algo = mesh.MyAlgorithm()
+          my_algo = mesh.MyAlgorithm()
     
     
-        - :code:`algoType` defines type of algorithm and is used mostly to discriminate
-                algorithms that are created by the same method of class smesh.Mesh. For example, if this attribute
-                is specified in :code:`MyPlugin_Algorithm` class as
-                ::
+    - :code:`algoType` defines type of algorithm and is used mostly to discriminate
+      algorithms that are created by the same method of class :class:`~smeshBuilder.Mesh`. For example, if this attribute
+      is specified in :code:`MyPlugin_Algorithm` class as::
     
     
-                        algoType = "MyPLUGIN"
+          algoType = "MyPLUGIN"
 
 
-                then it's creation code can be:
-                ::
+      then it's creation code can be::
 
 
-                        my_algo = mesh.MyAlgorithm(algo="MyPLUGIN")
+          my_algo = mesh.MyAlgorithm(algo="MyPLUGIN")
     """
     
     
     def __init__(self):
         """
     """
     
     
     def __init__(self):
         """
-        Private constuctor
+        Private constructor
         """
         self.mesh = None
         self.geom = None
         """
         self.mesh = None
         self.geom = None
@@ -78,9 +73,9 @@ class Mesh_Algorithm:
     def FindHypothesis (self, hypname, args, CompareMethod, smeshpyD):
         """
         Finds a hypothesis in the study by its type name and parameters.
     def FindHypothesis (self, hypname, args, CompareMethod, smeshpyD):
         """
         Finds a hypothesis in the study by its type name and parameters.
-        Finds only the hypotheses created in smeshpyD engine.
+        Finds only the hypotheses created in smeshBuilder engine.
         Returns: 
         Returns: 
-                SMESH.SMESH_Hypothesis
+                :class:`~SMESH.SMESH_Hypothesis`
         """
         study = salome.myStudy
         if not study: return None
         """
         study = salome.myStudy
         if not study: return None
@@ -125,7 +120,7 @@ class Mesh_Algorithm:
     def FindAlgorithm (self, algoname, smeshpyD):
         """
         Finds the algorithm in the study by its type name.
     def FindAlgorithm (self, algoname, smeshpyD):
         """
         Finds the algorithm in the study by its type name.
-        Finds only the algorithms, which have been created in smeshpyD engine.
+        Finds only the algorithms, which have been created in smeshBuilder engine.
 
         Returns:
                 SMESH.SMESH_Algo
 
         Returns:
                 SMESH.SMESH_Algo
@@ -170,7 +165,7 @@ class Mesh_Algorithm:
     def GetSubMesh(self):
         """
         If the algorithm is global, returns 0; 
     def GetSubMesh(self):
         """
         If the algorithm is global, returns 0; 
-        else returns the submesh associated to this algorithm.
+        else returns the :class:`~SMESH.SMESH_subMesh` associated to this algorithm.
         """
         return self.subm
 
         """
         return self.subm
 
index 7dff14e7e0097f688496c13288a7fd5ce4d7b3af..ec02f71e14d860f1e484fb12e25c100eac13df96 100644 (file)
@@ -802,7 +802,7 @@ bool StdMeshers_CompositeHexa_3D::Evaluate(SMESH_Mesh&         theMesh,
       nbSeg1 += Max( nbElems[ SMDSEntity_Edge ], nbElems[ SMDSEntity_Quad_Edge ]);
   }
 
       nbSeg1 += Max( nbElems[ SMDSEntity_Edge ], nbElems[ SMDSEntity_Quad_Edge ]);
   }
 
-  // Get an 1D size of a box side ortogonal to lessComplexSide
+  // Get an 1D size of a box side orthogonal to lessComplexSide
   int nbSeg2 = 0;
   _QuadFaceGrid* ortoSide =
     lessComplexSide->FindAdjacentForSide( Q_LEFT, boxFaceContainer, B_UNDEFINED );
   int nbSeg2 = 0;
   _QuadFaceGrid* ortoSide =
     lessComplexSide->FindAdjacentForSide( Q_LEFT, boxFaceContainer, B_UNDEFINED );
@@ -815,7 +815,7 @@ bool StdMeshers_CompositeHexa_3D::Evaluate(SMESH_Mesh&         theMesh,
       nbSeg2 += Max( nbElems[ SMDSEntity_Edge ], nbElems[ SMDSEntity_Quad_Edge ]);
   }
 
       nbSeg2 += Max( nbElems[ SMDSEntity_Edge ], nbElems[ SMDSEntity_Quad_Edge ]);
   }
 
-  // Get an 2D size of a box side ortogonal to lessComplexSide
+  // Get an 2D size of a box side orthogonal to lessComplexSide
   int nbFaces = 0, nbQuadFace = 0;
   list< TopoDS_Face > sideFaces;
   if ( ortoSide->IsComplex() )
   int nbFaces = 0, nbQuadFace = 0;
   list< TopoDS_Face > sideFaces;
   if ( ortoSide->IsComplex() )
index e530ffeb159703b37d3016fdf3215f9573a24484..c3a08c080e179802955dd4a3c0f3fe9297fa529e 100644 (file)
@@ -28,7 +28,7 @@
 #include "SMESH_Algo.hxx"
 
 /*!
 #include "SMESH_Algo.hxx"
 
 /*!
- * \brief Alorithm generating hexahedral mesh from 2D skin of block
+ * \brief Algorithm generating hexahedral mesh from 2D skin of block
  */
 
 class STDMESHERS_EXPORT StdMeshers_HexaFromSkin_3D : public SMESH_3D_Algo
  */
 
 class STDMESHERS_EXPORT StdMeshers_HexaFromSkin_3D : public SMESH_3D_Algo
index b6785f2edbce312b241ecdd9536b7fa48b26705c..5ba6e47d9d31a3cf1c3baa452f834274455ff0ee 100644 (file)
@@ -551,7 +551,7 @@ istream & StdMeshers_NumberOfSegments::LoadFrom(istream & load)
   isOK = static_cast<bool>(load >> scale_factor);
   a = (int)scale_factor;
 
   isOK = static_cast<bool>(load >> scale_factor);
   a = (int)scale_factor;
 
-  // try to interprete ditribution type,
+  // try to interpret ditribution type,
   // supposing that this hypothesis was written in the new format
   if (isOK)
   {
   // supposing that this hypothesis was written in the new format
   if (isOK)
   {
index a6e7b0f620ab6cf1c62694f2de4afc26e1bb44d0..7fd35f0c8d84715f36c6ce216246f949096e0fde 100644 (file)
@@ -2589,7 +2589,7 @@ double StdMeshers_Prism_3D::getSweepTolerance( const Prism_3D::TPrismTopo& thePr
 //=======================================================================
 //function : isSimpleQuad
 //purpose  : check if the bottom FACE is meshable with nice quadrangles,
 //=======================================================================
 //function : isSimpleQuad
 //purpose  : check if the bottom FACE is meshable with nice quadrangles,
-//           if so the block aproach can work rather fast.
+//           if so the block approach can work rather fast.
 //           This is a temporary mean caused by problems in StdMeshers_Sweeper
 //=======================================================================
 
 //           This is a temporary mean caused by problems in StdMeshers_Sweeper
 //=======================================================================
 
index b216d2029a50b9c6d139f40c05e966e8013947e8..e3410fe2b82219227bba2c10cbb96014df70ec76 100644 (file)
@@ -278,7 +278,7 @@ private:
     PSurface                        mySurface;
     TopoDS_Edge                     myBaseEdge;
     std::map< int, PSurface >       myShapeID2Surf;
     PSurface                        mySurface;
     TopoDS_Edge                     myBaseEdge;
     std::map< int, PSurface >       myShapeID2Surf;
-    // first and last normalized params and orientaion for each component or it-self
+    // first and last normalized params and orientation for each component or it-self
     std::vector< std::pair< double, double> > myParams; // select my columns in myParamToColumnMap
     bool                            myIsForward;
     std::vector< TSideFace* >       myComponents;
     std::vector< std::pair< double, double> > myParams; // select my columns in myParamToColumnMap
     bool                            myIsForward;
     std::vector< TSideFace* >       myComponents;
index fd3a5bb10f8376a3dbb7789039c964905b7facd3..d19b8234d1e2b8b30fa9cae463095f2a694ecfb7 100644 (file)
@@ -667,7 +667,7 @@ bool StdMeshers_QuadToTriaAdaptor::LimitHeight (gp_Pnt&
 
 //================================================================================
 /*!
 
 //================================================================================
 /*!
- * \brief Prepare data for the given face
+ * \brief Retrieve data of the given face
  *  \param PN - coordinates of face nodes
  *  \param VN - cross products of vectors (PC-PN(i)) ^ (PC-PN(i+1))
  *  \param FNodes - face nodes
  *  \param PN - coordinates of face nodes
  *  \param VN - cross products of vectors (PC-PN(i)) ^ (PC-PN(i+1))
  *  \param FNodes - face nodes
@@ -706,7 +706,8 @@ int StdMeshers_QuadToTriaAdaptor::Preparation(const SMDS_MeshElement*       face
   int nbp = 4;
 
   int j = 0;
   int nbp = 4;
 
   int j = 0;
-  for(i=1; i<4; i++) {
+  for ( i = 1; i < 4; i++ )
+  {
     j = i+1;
     for(; j<=4; j++) {
       if( PN(i).Distance(PN(j)) < 1.e-6 )
     j = i+1;
     for(; j<=4; j++) {
       if( PN(i).Distance(PN(j)) < 1.e-6 )
@@ -714,11 +715,10 @@ int StdMeshers_QuadToTriaAdaptor::Preparation(const SMDS_MeshElement*       face
     }
     if(j<=4) break;
   }
     }
     if(j<=4) break;
   }
-  //int deg_num = IsDegenarate(PN);
-  //if(deg_num>0) {
+
   bool hasdeg = false;
   bool hasdeg = false;
-  if(i<4) {
-    //cout<<"find degeneration"<<endl;
+  if ( i < 4 )
+  {
     hasdeg = true;
     gp_Pnt Pdeg = PN(i);
 
     hasdeg = true;
     gp_Pnt Pdeg = PN(i);
 
@@ -729,7 +729,6 @@ int StdMeshers_QuadToTriaAdaptor::Preparation(const SMDS_MeshElement*       face
       gp_Pnt Ptmp(N->X(),N->Y(),N->Z());
       if(Pdeg.Distance(Ptmp)<1.e-6) {
         DegNode = N;
       gp_Pnt Ptmp(N->X(),N->Y(),N->Z());
       if(Pdeg.Distance(Ptmp)<1.e-6) {
         DegNode = N;
-        //DegNode = const_cast<SMDS_MeshNode*>(N);
         break;
       }
     }
         break;
       }
     }
@@ -749,6 +748,7 @@ int StdMeshers_QuadToTriaAdaptor::Preparation(const SMDS_MeshElement*       face
 
   PN.SetValue(nbp+1,PN(1));
   FNodes[nbp] = FNodes[0];
 
   PN.SetValue(nbp+1,PN(1));
   FNodes[nbp] = FNodes[0];
+
   // find normal direction
   gp_Vec V1(PC,PN(nbp));
   gp_Vec V2(PC,PN(1));
   // find normal direction
   gp_Vec V1(PC,PN(nbp));
   gp_Vec V2(PC,PN(1));
@@ -790,7 +790,6 @@ int StdMeshers_QuadToTriaAdaptor::Preparation(const SMDS_MeshElement*       face
     }
   }
 
     }
   }
 
-  //cout<<"  VNorm("<<VNorm.X()<<","<<VNorm.Y()<<","<<VNorm.Z()<<")"<<endl;
   return hasdeg ? DEGEN_QUAD : QUAD;
 }
 
   return hasdeg ? DEGEN_QUAD : QUAD;
 }
 
index df0bb001ab6e938be5bf9e400e27db408d5effb3..b53777da12891e0f3ce0de26cfdae5b44dc9e380 100644 (file)
@@ -251,7 +251,7 @@ bool StdMeshers_Quadrangle_2D::Compute (SMESH_Mesh&         aMesh,
     int nfull = n1+n2+n3+n4;
     if ((nfull % 2) == 0 && ((n1 != n3) || (n2 != n4)))
     {
     int nfull = n1+n2+n3+n4;
     if ((nfull % 2) == 0 && ((n1 != n3) || (n2 != n4)))
     {
-      // special path genarating only quandrangle faces
+      // special path generating only quandrangle faces
       res = computeQuadPref( aMesh, F, quad );
     }
   }
       res = computeQuadPref( aMesh, F, quad );
     }
   }
index fd68c0b2f242a0efa4606c71c165840cfebe969e..94996de524aecf3821d307809919d1ad3ede18f8 100644 (file)
@@ -4866,7 +4866,7 @@ bool _ViscousBuilder::smoothAndCheck(_SolidData& data,
 
           if ( nbBad == oldBadNb  &&
                nbBad > 0 &&
 
           if ( nbBad == oldBadNb  &&
                nbBad > 0 &&
-               step < stepLimit ) // smooth w/o chech of validity
+               step < stepLimit ) // smooth w/o check of validity
           {
             dumpFunctionEnd();
             dumpFunction(SMESH_Comment("smoothWoCheck")<<data._index<<"_Fa"<<sInd
           {
             dumpFunctionEnd();
             dumpFunction(SMESH_Comment("smoothWoCheck")<<data._index<<"_Fa"<<sInd
@@ -8740,7 +8740,7 @@ int _LayerEdge::Smooth(const int step, const bool isConcaveFace, bool findBest )
 
 //================================================================================
 /*!
 
 //================================================================================
 /*!
- * \brief Chooses a smoothing technic giving a position most close to an initial one.
+ * \brief Chooses a smoothing technique giving a position most close to an initial one.
  *        For a correct result, _simplices must contain nodes lying on geometry.
  */
 //================================================================================
  *        For a correct result, _simplices must contain nodes lying on geometry.
  */
 //================================================================================
@@ -11348,7 +11348,7 @@ bool _SmoothNode::Smooth(int&                  nbBad,
 
 //================================================================================
 /*!
 
 //================================================================================
 /*!
- * \brief Computes new UV using angle based smoothing technic
+ * \brief Computes new UV using angle based smoothing technique
  */
 //================================================================================
 
  */
 //================================================================================