Salome HOME
Fix for the bug IPAL22851: Sub-shapes spelling
authorana <ana@opencascade.com>
Fri, 13 Jan 2012 15:11:09 +0000 (15:11 +0000)
committerana <ana@opencascade.com>
Fri, 13 Jan 2012 15:11:09 +0000 (15:11 +0000)
33 files changed:
src/SMESH/SMESH_Algo.hxx
src/SMESH/SMESH_Gen.cxx
src/SMESH/SMESH_Hypothesis.hxx
src/SMESH/SMESH_Mesh.cxx
src/SMESH/SMESH_MeshEditor.cxx
src/SMESH/SMESH_MesherHelper.cxx
src/SMESH/SMESH_Pattern.cxx
src/SMESH/SMESH_subMesh.cxx
src/SMESHDS/SMESHDS_Mesh.cxx
src/SMESHGUI/SMESHGUI_ComputeDlg.cxx
src/SMESHGUI/SMESHGUI_MeshOp.cxx
src/SMESHGUI/SMESH_msg_en.ts
src/SMESHUtils/SMESH_Block.cxx
src/SMESH_I/SMESH_Filter_i.cxx
src/SMESH_I/SMESH_Mesh_i.cxx
src/SMESH_SWIG/SMESH_Partition1_tetra.py
src/SMESH_SWIG/SMESH_mechanic.py
src/SMESH_SWIG/SMESH_mechanic_editor.py
src/SMESH_SWIG/smeshDC.py
src/StdMeshers/StdMeshers_CompositeHexa_3D.cxx
src/StdMeshers/StdMeshers_HexaFromSkin_3D.cxx
src/StdMeshers/StdMeshers_Import_1D.cxx
src/StdMeshers/StdMeshers_Penta_3D.cxx
src/StdMeshers/StdMeshers_Prism_3D.cxx
src/StdMeshers/StdMeshers_Prism_3D.hxx
src/StdMeshers/StdMeshers_ProjectionUtils.cxx
src/StdMeshers/StdMeshers_ProjectionUtils.hxx
src/StdMeshers/StdMeshers_Projection_1D.cxx
src/StdMeshers/StdMeshers_Projection_2D.cxx
src/StdMeshers/StdMeshers_Projection_3D.cxx
src/StdMeshers/StdMeshers_RadialPrism_3D.cxx
src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.cxx
src/StdMeshersGUI/StdMeshersGUI_SubShapeSelectorWdg.cxx

index 22107ea47058b5c26aeffde91a81d4b53db01a56..7dc98110ba6fc7e5c6ca2a6875e4624ef94b90e0 100644 (file)
@@ -120,7 +120,7 @@ public:
     *
     * Algorithms that !NeedDescretBoundary() || !OnlyUnaryInput() are
     * to set SMESH_ComputeError returned by SMESH_submesh::GetComputeError()
-    * to report problematic subshapes
+    * to report problematic sub-shapes
    */
   virtual bool Compute(SMESH_Mesh & aMesh, const TopoDS_Shape & aShape) = 0;
 
index fbcfc3d1a0b3e38ef1aa61566bd541b5813412c6..421dc85a4c7540bdd3cee419b80eaf08b85da50c 100644 (file)
@@ -135,7 +135,7 @@ bool SMESH_Gen::Compute(SMESH_Mesh &          aMesh,
   if ( anUpward ) // is called from below code here
   {
     // -----------------------------------------------
-    // mesh all the subshapes starting from vertices
+    // mesh all the sub-shapes starting from vertices
     // -----------------------------------------------
     smIt = sm->getDependsOnIterator(includeSelf, !complexShapeFirst);
     while ( smIt->more() )
@@ -341,7 +341,7 @@ bool SMESH_Gen::Compute(SMESH_Mesh &          aMesh,
       }
     }
     // -----------------------------------------------
-    // mesh the rest subshapes starting from vertices
+    // mesh the rest sub-shapes starting from vertices
     // -----------------------------------------------
     ret = Compute( aMesh, aShape, /*anUpward=*/true, aDim, aShapesId );
   }
@@ -432,7 +432,7 @@ bool SMESH_Gen::Evaluate(SMESH_Mesh &          aMesh,
 
   if ( anUpward ) { // is called from below code here
     // -----------------------------------------------
-    // mesh all the subshapes starting from vertices
+    // mesh all the sub-shapes starting from vertices
     // -----------------------------------------------
     smIt = sm->getDependsOnIterator(includeSelf, !complexShapeFirst);
     while ( smIt->more() ) {
@@ -538,7 +538,7 @@ bool SMESH_Gen::Evaluate(SMESH_Mesh &          aMesh,
     }
 
     // -----------------------------------------------
-    // mesh the rest subshapes starting from vertices
+    // mesh the rest sub-shapes starting from vertices
     // -----------------------------------------------
     ret = Evaluate( aMesh, aShape, aResMap, /*anUpward=*/true, aShapesId );
   }
index 9b0e9defb20e6d24fc22bd03915b6459c4e25072..8dbb98a358b494377cbed454470d48ee5df90fbe 100644 (file)
@@ -61,7 +61,7 @@ public:
     HYP_NOTCONFORM,   // not conform mesh is produced appling 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 subshape, nor a group
+    HYP_BAD_SUBSHAPE, // shape is neither the main one, nor its sub-shape, nor a group
     HYP_BAD_GEOMETRY, // shape geometry mismatches algorithm's expectation
     HYP_NEED_SHAPE    // algorithm can work on shape only
   };
index af627a5947cd00254c325425432854929ac721f3..aa36feb281a41279b87d5607dc842025674dc701 100644 (file)
@@ -528,7 +528,7 @@ SMESH_Hypothesis::Hypothesis_Status
 
   SMESH_Hypothesis::Hypothesis_Status ret = subMesh->AlgoStateEngine(event, anHyp);
 
-  // subShapes
+  // sub-shapes
   if (!SMESH_Hypothesis::IsStatusFatal(ret) &&
       anHyp->GetDim() <= SMESH_Gen::GetShapeDim(aSubShape)) // is added on father
   {
@@ -602,7 +602,7 @@ SMESH_Hypothesis::Hypothesis_Status
       subMesh->CheckConcurentHypothesis( anHyp->GetType() ) != SMESH_Hypothesis::HYP_OK)
     ret = SMESH_Hypothesis::HYP_CONCURENT;
 
-  // subShapes
+  // sub-shapes
   if (!SMESH_Hypothesis::IsStatusFatal(ret) &&
       anHyp->GetDim() <= SMESH_Gen::GetShapeDim(aSubShape)) // is removed from father
   {
@@ -884,7 +884,7 @@ throw(SALOME_Exception)
 }
 //================================================================================
 /*!
- * \brief Return submeshes of groups containing the given subshape
+ * \brief Return submeshes of groups containing the given sub-shape
  */
 //================================================================================
 
index cb754d823d74205af995148d5e5657c53572dfc5..a466c3c82a38154777f6bf503ad3d65c5943d462 100644 (file)
@@ -4680,7 +4680,7 @@ SMESH_MeshEditor::ExtrusionAlongTrack (TIDSortedElemSet &   theElements,
   list<SMESH_MeshEditor_PathPoint> fullList;
 
   const TopoDS_Shape& aS = theTrack->GetSubShape();
-  // Sub shape for the Pattern must be an Edge or Wire
+  // Sub-shape for the Pattern must be an Edge or Wire
   if( aS.ShapeType() == TopAbs_EDGE ) {
     aTrackEdge = TopoDS::Edge( aS );
     // the Edge must not be degenerated
@@ -4970,7 +4970,7 @@ SMESH_MeshEditor::ExtrusionAlongTrack (TIDSortedElemSet &   theElements,
     }
     fullList.push_back(PP1);
     
-  } // Sub shape for the Pattern must be an Edge or Wire
+  } // Sub-shape for the Pattern must be an Edge or Wire
   else if( aS.ShapeType() == TopAbs_EDGE ) {
     aTrackEdge = TopoDS::Edge( aS );
     // the Edge must not be degenerated
index e46396bb67014609e3e5532ad387a30a8390a2e5..43943b31f33446c25f41b0c67effbf594d11ab41 100644 (file)
@@ -114,7 +114,7 @@ bool SMESH_MesherHelper::IsQuadraticSubMesh(const TopoDS_Shape& aSh)
 {
   SMESHDS_Mesh* meshDS = GetMeshDS();
   // we can create quadratic elements only if all elements
-  // created on subshapes of given shape are quadratic
+  // created on sub-shapes of given shape are quadratic
   // also we have to fill myTLinkNodeMap
   myCreateQuadratic = true;
   mySeamShapeIds.clear();
@@ -279,7 +279,7 @@ void SMESH_MesherHelper::SetSubShape(const TopoDS_Shape& aSh)
 //function : GetNodeUVneedInFaceNode
 //purpose  : Check if inFaceNode argument is necessary for call GetNodeUV(F,..)
 //           Return true if the face is periodic.
-//           If F is Null, answer about subshape set through IsQuadraticSubMesh() or
+//           If F is Null, answer about sub-shape set through IsQuadraticSubMesh() or
 //           * SetSubShape()
 //=======================================================================
 
index ebd24f29c946ae597dfd8683c15e803324511276..92f5d63253ce000b1dfbd220866ff3eea18af881 100644 (file)
@@ -3890,7 +3890,7 @@ void SMESH_Pattern::clearMesh(SMESH_Mesh* theMesh) const
 //           coordinates computed by either of Apply...() methods
 // WARNING : StdMeshers_Projection_... relies on MakeMesh() behavior: that
 //           it does not care of nodes and elements already existing on
-//           subshapes. DO NOT MERGE them or modify also StdMeshers_Projection_..
+//           sub-shapes. DO NOT MERGE them or modify also StdMeshers_Projection_..
 //=======================================================================
 
 bool SMESH_Pattern::MakeMesh(SMESH_Mesh* theMesh,
index 73bd794f52a9ed8944e0ae67de0653fd22ce4fda..bd99a9548194916ffa906bc30bf38287b2f86839 100644 (file)
@@ -187,7 +187,7 @@ SMESH_Algo* SMESH_subMesh::GetAlgo() const
 
 //================================================================================
 /*!
- * \brief Allow algo->Compute() if a subshape of lower dim is meshed but
+ * \brief Allow algo->Compute() if a sub-shape of lower dim is meshed but
  *        none mesh entity is bound to it (PAL13615, 2nd part)
  */
 //================================================================================
@@ -790,7 +790,7 @@ SMESH_Hypothesis::Hypothesis_Status
       break;
     case REMOVE_ALGO: {        // perhaps a father algo applies ?
       algo = GetAlgo();
-      if (algo == NULL)  // no more algo applying on subShape...
+      if (algo == NULL)  // no more algo applying on sub-shape...
       {
         SetAlgoState(NO_ALGO);
       }
@@ -904,7 +904,7 @@ SMESH_Hypothesis::Hypothesis_Status
     }
     case REMOVE_ALGO: {         // perhaps a father algo applies ?
       algo = GetAlgo();
-      if (algo == NULL)   // no more algo applying on subShape...
+      if (algo == NULL)   // no more algo applying on sub-shape...
       {
         SetAlgoState(NO_ALGO);
       }
@@ -1754,7 +1754,7 @@ bool SMESH_subMesh::CheckComputeError(SMESH_Algo* theAlgo, const TopoDS_Shape& t
 
       // Show error
       SMESH_Comment text;
-      text << theAlgo->GetName() << " failed on subshape #" << _Id << " with error ";
+      text << theAlgo->GetName() << " failed on sub-shape #" << _Id << " with error ";
       if (_computeError->IsCommon() )
         text << _computeError->CommonName();
       else
@@ -2229,7 +2229,7 @@ SMESH_subMeshIteratorPtr SMESH_subMesh::getDependsOnIterator(const bool includeS
 
 //================================================================================
 /*!
- * \brief  Find common submeshes (based on shared subshapes with other
+ * \brief  Find common submeshes (based on shared sub-shapes with other
   * \param theOther submesh to check
   * \param theSetOfCommon set of common submesh
  */
index 7766c1572af5db0bf1f2dc61952717b3d31bf91d..36eb10ff87ac2fe60e83a0d2944e505226e819bd 100644 (file)
@@ -973,7 +973,7 @@ void SMESHDS_Mesh::ClearMesh()
 //================================================================================
 /*!
  * \brief return submesh by shape
-  * \param shape - the subshape
+  * \param shape - the sub-shape
   * \retval SMESHDS_SubMesh* - the found submesh
   *
  * search of submeshes is optimized
@@ -995,8 +995,8 @@ SMESHDS_SubMesh* SMESHDS_Mesh::getSubmesh( const TopoDS_Shape & shape )
 
 //================================================================================
 /*!
- * \brief return submesh by subshape index
-  * \param Index - the subshape index
+ * \brief return submesh by sub-shape index
+  * \param Index - the sub-shape index
   * \retval SMESHDS_SubMesh* - the found submesh
  * search of submeshes is optimized
  */
@@ -1149,7 +1149,7 @@ TopoDS_Shape SMESHDS_Mesh::ShapeToMesh() const
 
 //=======================================================================
 //function : IsGroupOfSubShapes
-//purpose  : return true if at least one subshape of theShape is a subshape
+//purpose  : return true if at least one sub-shape of theShape is a sub-shape
 //           of myShape or theShape == myShape
 //=======================================================================
 
index 4397abe9f64f77847350d4a164b6dc1618241549..676a3648e64481884e21ce3a542c22c7d2768514 100644 (file)
@@ -359,7 +359,7 @@ namespace SMESH
   }
   // -----------------------------------------------------------------------
   /*!
-   * \brief Return SO of a subshape
+   * \brief Return SO of a sub-shape
    */
   _PTR(SObject) getSubShapeSO( int subShapeID, GEOM::GEOM_Object_var aMainShape)
   {
@@ -384,7 +384,7 @@ namespace SMESH
   }
   // -----------------------------------------------------------------------
   /*!
-   * \brief Return subshape by ID
+   * \brief Return sub-shape by ID
    */
   GEOM::GEOM_Object_ptr getSubShape( int subShapeID, GEOM::GEOM_Object_var aMainShape)
   {
@@ -422,7 +422,7 @@ namespace SMESH
   }
   // -----------------------------------------------------------------------
   /*!
-   * \brief Return text describing a subshape
+   * \brief Return text describing a sub-shape
    */
   QString shapeText(int subShapeID, GEOM::GEOM_Object_var aMainShape )
   {
@@ -1072,7 +1072,7 @@ void SMESHGUI_BaseComputeOp::stopOperation()
 
 //================================================================================
 /*!
- * \brief publish selected subshape
+ * \brief publish selected sub-shape
  */
 //================================================================================
 
index d9f8111f4b02e364516cd58d220bce9b0d4b222e..13ce9224fb829acb78693037661ee828bf7ddf16 100644 (file)
@@ -306,7 +306,7 @@ SUIT_SelectionFilter* SMESHGUI_MeshOp::createFilter( const int theId ) const
 
 //================================================================================
 /*!
- * \brief check if selected shape is a subshape of the shape to mesh
+ * \brief check if selected shape is a sub-shape of the shape to mesh
   * \retval bool - check result
  */
 //================================================================================
@@ -916,7 +916,7 @@ void SMESHGUI_MeshOp::existingHyps( const int theDim,
 //================================================================================
 /*!
  * \brief If create or edit a submesh, return a hypothesis holding parameters used
- *        to mesh a subshape
+ *        to mesh a sub-shape
   * \param aHypType - The hypothesis type name
   * \param aServerLib - Server library name
   * \param hypData - The structure holding the hypothesis type etc.
@@ -1788,7 +1788,7 @@ bool SMESHGUI_MeshOp::createSubMesh( QString& theMess, QStringList& theEntryList
     }
   }
 
-  // deselect geometry: next submesh should be created on other subshape
+  // deselect geometry: next submesh should be created on other sub-shape
   myDlg->clearSelection( SMESHGUI_MeshDlg::Geom );
   selectObject( _PTR(SObject)() );
   selectionDone();
index a899abecf490b5c2566a72f77bfb8a070acfbec8..ea25ff1d0c375c3b241f7b8f37001240c17d1671 100644 (file)
@@ -65,7 +65,7 @@
     </message>
     <message>
         <source>COL_SHAPE_HEADER</source>
-        <translation>SubShape</translation>
+        <translation>Sub-shape</translation>
     </message>
     <message>
         <source>COMPERR_ALGO_FAILED</source>
@@ -1539,7 +1539,7 @@ add the exported data to its contents?</translation>
     </message>
     <message>
         <source>SMESH_HYP_11</source>
-        <translation>Shape is neither the main one, nor its subshape, nor a valid group</translation>
+        <translation>Shape is neither the main one, nor its sub-shape, nor a valid group</translation>
     </message>
     <message>
         <source>SMESH_HYP_12</source>
@@ -4002,11 +4002,11 @@ Please, create VTK viewer and try again</translation>
     </message>
     <message>
         <source>PUBLISH_SHAPE</source>
-        <translation>Publish SubShape</translation>
+        <translation>Publish Sub-shape</translation>
     </message>
     <message>
         <source>SHOW_SHAPE</source>
-        <translation>Show SubShape</translation>
+        <translation>Show Sub-shape</translation>
     </message>
     <message>
         <source>SHOW_BAD_MESH</source>
@@ -5106,7 +5106,7 @@ Please specify it and try again</translation>
     </message>
     <message>
         <source>INVALID_SUBSHAPE</source>
-        <translation>Geometry object is not a subshape of the shape to mesh</translation>
+        <translation>Geometry object is not a sub-shape of the shape to mesh</translation>
     </message>
     <message>
         <source>MESH_IS_NOT_DEFINED</source>
index b036993a515f88b9d983c90de38a70090c3dd75e..d1d3b2c486c3171e30e8ea4a56b694fa44dd2978 100644 (file)
@@ -67,7 +67,7 @@ using namespace std;
 //================================================================================
 /*!
  * \brief Set edge data
-  * \param edgeID - block subshape ID
+  * \param edgeID - block sub-shape ID
   * \param curve - edge geometry
   * \param isForward - is curve orientation coincides with edge orientation in the block
  */
@@ -87,7 +87,7 @@ void SMESH_Block::TEdge::Set( const int edgeID, Adaptor3d_Curve* curve, const bo
 //================================================================================
 /*!
  * \brief Set coordinates of nodes at edge ends to work with mesh block
-  * \param edgeID - block subshape ID
+  * \param edgeID - block sub-shape ID
   * \param node1 - coordinates of node with lower ID
   * \param node2 - coordinates of node with upper ID
  */
@@ -143,7 +143,7 @@ SMESH_Block::TEdge::~TEdge()
 //================================================================================
 /*!
  * \brief Set face data
-  * \param faceID - block subshape ID
+  * \param faceID - block sub-shape ID
   * \param S - face surface geometry
   * \param c2d - 4 pcurves in the order as returned by GetFaceEdgesIDs(faceID)
   * \param isForward - orientation of pcurves comparing with block edge direction
@@ -180,7 +180,7 @@ void SMESH_Block::TFace::Set( const int          faceID,
 //================================================================================
 /*!
  * \brief Set face data to work with mesh block
-  * \param faceID - block subshape ID
+  * \param faceID - block sub-shape ID
   * \param edgeU0 - filled data of edge u0 = GetFaceEdgesIDs(faceID)[ 0 ]
   * \param edgeU1 - filled data of edge u1 = GetFaceEdgesIDs(faceID)[ 1 ]
  */
@@ -373,7 +373,7 @@ bool SMESH_Block::ShellPoint( const gp_XYZ& theParams, gp_XYZ& thePoint ) const
 //=======================================================================
 //function : ShellPoint
 //purpose  : computes coordinates of a point in shell by points on sub-shapes;
-//           thePointOnShape[ subShapeID ] must be a point on a subShape
+//           thePointOnShape[ subShapeID ] must be a point on a sub-shape
 //=======================================================================
 
 bool SMESH_Block::ShellPoint(const gp_XYZ&         theParams,
@@ -1505,7 +1505,7 @@ bool SMESH_Block::FindBlockShapes(const TopoDS_Shell&         theShell,
 //================================================================================
 /*!
  * \brief Initialize block geometry with shapes from theShapeIDMap
-  * \param theShapeIDMap - map of block subshapes
+  * \param theShapeIDMap - map of block sub-shapes
   * \retval bool - is a success
  */
 //================================================================================
@@ -1554,11 +1554,11 @@ bool SMESH_Block::LoadBlockShapes(const TopTools_IndexedMapOfOrientedShape& theS
  * \brief Load face geometry
   * \param theFace - face
   * \param theFaceID - face in-block ID
-  * \param theShapeIDMap - map of block subshapes
+  * \param theShapeIDMap - map of block sub-shapes
   * \retval bool - is a success
  * 
  * It is enough to compute params or coordinates on the face.
- * Face subshapes must be loaded into theShapeIDMap before
+ * Face sub-shapes must be loaded into theShapeIDMap before
  */
 //================================================================================
 
@@ -1590,7 +1590,7 @@ bool SMESH_Block::LoadFace(const TopoDS_Face& theFace,
  * \brief/ Insert theShape into theShapeIDMap with theShapeID
   * \param theShape - shape to insert
   * \param theShapeID - shape in-block ID
-  * \param theShapeIDMap - map of block subshapes
+  * \param theShapeIDMap - map of block sub-shapes
  */
 //================================================================================
 
index 87aaccae9702d1fb7ef8277855cc8c2e84cdb62f..ea935418bc89a43c0ce23a949398a0e69834c1fb 100644 (file)
@@ -124,7 +124,7 @@ void Controls::BelongToGeom::init()
 {
   if (!myMeshDS || myShape.IsNull()) return;
 
-  // is subshape of main shape?
+  // is sub-shape of main shape?
   TopoDS_Shape aMainShape = myMeshDS->ShapeToMesh();
   if (aMainShape.IsNull()) {
     myIsSubshape = false;
@@ -280,7 +280,7 @@ void Controls::LyingOnGeom::init()
 {
   if (!myMeshDS || myShape.IsNull()) return;
 
-  // is subshape of main shape?
+  // is sub-shape of main shape?
   TopoDS_Shape aMainShape = myMeshDS->ShapeToMesh();
   if (aMainShape.IsNull()) {
     myIsSubshape = false;
index fddeb76c519ef2f0a67b2769eb70982ca91bd0d5..b41fe79e3e017bbe1c9e23dfcd55860bbca19bfc 100644 (file)
@@ -512,7 +512,7 @@ SMESH_Hypothesis::Hypothesis_Status
   if(MYDEBUG) MESSAGE("addHypothesis");
 
   if (CORBA::is_nil(aSubShapeObject) && HasShapeToMesh())
-    THROW_SALOME_CORBA_EXCEPTION("bad subShape reference",
+    THROW_SALOME_CORBA_EXCEPTION("bad Sub-shape reference",
                                  SALOME::BAD_PARAM);
 
   SMESH::SMESH_Hypothesis_var myHyp = SMESH::SMESH_Hypothesis::_narrow(anHyp);
@@ -594,10 +594,10 @@ SMESH_Mesh_i::removeHypothesis(GEOM::GEOM_Object_ptr       aSubShapeObject,
                                SMESH::SMESH_Hypothesis_ptr anHyp)
 {
   if(MYDEBUG) MESSAGE("removeHypothesis()");
-  // **** proposer liste de subShape (selection multiple)
+  // **** proposer liste de sub-shape (selection multiple)
 
   if (CORBA::is_nil(aSubShapeObject) && HasShapeToMesh())
-    THROW_SALOME_CORBA_EXCEPTION("bad subShape reference", SALOME::BAD_PARAM);
+    THROW_SALOME_CORBA_EXCEPTION("bad Sub-shape reference", SALOME::BAD_PARAM);
 
   SMESH::SMESH_Hypothesis_var myHyp = SMESH::SMESH_Hypothesis::_narrow(anHyp);
   if (CORBA::is_nil(myHyp))
@@ -615,7 +615,7 @@ SMESH_Mesh_i::removeHypothesis(GEOM::GEOM_Object_ptr       aSubShapeObject,
 
     int hypId = myHyp->GetId();
     status = _impl->RemoveHypothesis(myLocSubShape, hypId);
-//     if ( !SMESH_Hypothesis::IsStatusFatal(status) ) EAP: hyp can be used on many subshapes
+//     if ( !SMESH_Hypothesis::IsStatusFatal(status) ) EAP: hyp can be used on many sub-shapes
 //       _mapHypo.erase( hypId );
   }
   catch(SALOME_Exception & S_ex)
@@ -638,7 +638,7 @@ throw(SALOME::SALOME_Exception)
   Unexpect aCatch(SALOME_SalomeException);
   if (MYDEBUG) MESSAGE("GetHypothesisList");
   if (_impl->HasShapeToMesh() && CORBA::is_nil(aSubShapeObject))
-    THROW_SALOME_CORBA_EXCEPTION("bad subShape reference", SALOME::BAD_PARAM);
+    THROW_SALOME_CORBA_EXCEPTION("bad Sub-shape reference", SALOME::BAD_PARAM);
 
   SMESH::ListOfHypothesis_var aList = new SMESH::ListOfHypothesis();
 
@@ -713,7 +713,7 @@ SMESH::SMESH_subMesh_ptr SMESH_Mesh_i::GetSubMesh(GEOM::GEOM_Object_ptr aSubShap
   Unexpect aCatch(SALOME_SalomeException);
   MESSAGE("SMESH_Mesh_i::GetSubMesh");
   if (CORBA::is_nil(aSubShapeObject))
-    THROW_SALOME_CORBA_EXCEPTION("bad subShape reference",
+    THROW_SALOME_CORBA_EXCEPTION("bad Sub-shape reference",
                                  SALOME::BAD_PARAM);
 
   SMESH::SMESH_subMesh_var subMesh;
@@ -4107,7 +4107,7 @@ class SMESH_DimHyp
     }
   }
 
-  //! Check sharing of sub shapes
+  //! Check sharing of sub-shapes
   static bool isShareSubShapes(const TopTools_MapOfShape& theToCheck,
                                const TopTools_MapOfShape& theToFind,
                                const TopAbs_ShapeEnum     theType)
@@ -4118,7 +4118,7 @@ class SMESH_DimHyp
       const TopoDS_Shape aSubSh = anItr.Key();
       // check for case when concurrent dimensions are same
       isShared = theToFind.Contains( aSubSh );
-      // check for subshape with concurrent dimension
+      // check for sub-shape with concurrent dimension
       TopExp_Explorer anExp( aSubSh, theType );
       for ( ; !isShared && anExp.More(); anExp.Next() )
         isShared = theToFind.Contains( anExp.Current() );
@@ -4138,11 +4138,11 @@ class SMESH_DimHyp
   }
 
   
-  //! Check if subshape hypotheses are concurrent
+  //! Check if sub-shape hypotheses are concurrent
   bool IsConcurrent(const SMESH_DimHyp* theOther) const
   {
     if ( _subMesh == theOther->_subMesh )
-      return false; // same subshape - should not be
+      return false; // same sub-shape - should not be
 
     // if ( <own dim of either of submeshes> == <concurrent dim> &&
     //      any of the two submeshes is not on COMPOUND shape )
@@ -4291,7 +4291,7 @@ SMESH::submesh_array_array* SMESH_Mesh_i::GetMeshOrder()
           // hyp it-self is algo
           anAlgo = (SMESH_Algo*)dynamic_cast<const SMESH_Algo*>(hyp);
         else {
-          // try to find algorithm with help of subshapes
+          // try to find algorithm with help of sub-shapes
           TopExp_Explorer anExp( aSubMeshShape, shapeTypeByDim(hyp->GetDim()) );
           for ( ; !anAlgo && anExp.More(); anExp.Next() )
             anAlgo = mesh.GetGen()->GetAlgo( mesh, anExp.Current() );
index 30d93537abe6d701cb87c4381291275d59adfa53..86e2231738d8ba11fa943ed1321cd95309ae56b9 100644 (file)
@@ -88,7 +88,7 @@ print "number of Edges  in alveole : ", len(subEdgeList)
 
 subshapes = geompy.SubShapeAll(alveole, geompy.ShapeType["SHAPE"])
 
-## there are 9 subshapes
+## there are 9 sub-shapes
 
 comp1 = geompy.MakeCompound( [ subshapes[0], subshapes[1] ] )
 comp2 = geompy.MakeCompound( [ subshapes[2], subshapes[3] ] )
index 2d038a81b1a606f258aca564a10097952e04e28f..81b22ff975804c9b833620e3c7c0904089ce68c1 100644 (file)
@@ -96,25 +96,25 @@ Id_mechanic = geompy.addToStudy( mechanic, "mechanic" )
 # ---- explode on faces
 SubFaceL = geompy.SubShapeAllSorted(mechanic, geompy.ShapeType["FACE"])
 
-# ---- add a face sub shape in study to be meshed different
+# ---- add a face sub-shape in study to be meshed different
 sub_face1 = SubFaceL[0]
 name      = geompy.SubShapeName( sub_face1, mechanic )
 
 Id_SubFace1 = geompy.addToStudyInFather( mechanic, sub_face1, name )
 
-# ---- add a face sub shape in study to be meshed different
+# ---- add a face sub-shape in study to be meshed different
 sub_face2 = SubFaceL[4]
 name      = geompy.SubShapeName( sub_face2, mechanic )
 
 Id_SubFace2 = geompy.addToStudyInFather( mechanic, sub_face2, name )
 
-# ---- add a face sub shape in study to be meshed different
+# ---- add a face sub-shape in study to be meshed different
 sub_face3 = SubFaceL[5]
 name      = geompy.SubShapeName( sub_face3, mechanic )
 
 Id_SubFace3 = geompy.addToStudyInFather( mechanic, sub_face3, name )
 
-# ---- add a face sub shape in study to be meshed different
+# ---- add a face sub-shape in study to be meshed different
 sub_face4 = SubFaceL[10]
 name      = geompy.SubShapeName( sub_face4, mechanic )
 
index 71b9da82512101f573f5aee377ffcc1039f6269e..4855916cd90549bea98f2043037733395a100fef 100644 (file)
@@ -95,25 +95,25 @@ Id_mechanic = geompy.addToStudy( mechanic, "mechanic" )
 # ---- explode on faces
 SubFaceL = geompy.SubShapeAllSorted(mechanic, geompy.ShapeType["FACE"])
 
-# ---- add a face sub shape in study to be meshed different
+# ---- add a face sub-shape in study to be meshed different
 sub_face1 = SubFaceL[0]
 name      = geompy.SubShapeName( sub_face1, mechanic )
 
 Id_SubFace1 = geompy.addToStudyInFather( mechanic, sub_face1, name )
 
-# ---- add a face sub shape in study to be meshed different
+# ---- add a face sub-shape in study to be meshed different
 sub_face2 = SubFaceL[4]
 name      = geompy.SubShapeName( sub_face2, mechanic )
 
 Id_SubFace2 = geompy.addToStudyInFather( mechanic, sub_face2, name )
 
-# ---- add a face sub shape in study to be meshed different
+# ---- add a face sub-shape in study to be meshed different
 sub_face3 = SubFaceL[5]
 name      = geompy.SubShapeName( sub_face3, mechanic )
 
 Id_SubFace3 = geompy.addToStudyInFather( mechanic, sub_face3, name )
 
-# ---- add a face sub shape in study to be meshed different
+# ---- add a face sub-shape in study to be meshed different
 sub_face4 = SubFaceL[10]
 name      = geompy.SubShapeName( sub_face4, mechanic )
 
index 2d36438dbcf91e9a6ff2219ed65b436a32c6e3be..b9e283308fb610df3a7797cf8a9226fc945c4042 100644 (file)
@@ -450,7 +450,7 @@ def TreatHypoStatus(status, hypName, geomName, isAlgo):
     elif status == HYP_CONCURENT :
         reason = "there are concurrent hypotheses on sub-shapes"
     elif status == HYP_BAD_SUBSHAPE :
-        reason = "the shape is neither the main one, nor its subshape, nor a valid group"
+        reason = "the shape is neither the main one, nor its sub-shape, nor a valid group"
     elif status == HYP_BAD_GEOMETRY:
         reason = "geometry mismatches the expectation of the algorithm"
     elif status == HYP_HIDDEN_ALGO:
@@ -1245,7 +1245,7 @@ class Mesh:
         self.mesh = self.smeshpyD.CreateMesh(geom)
 
     ## Returns true if the hypotheses are defined well
-    #  @param theSubObject a subshape of a mesh shape
+    #  @param theSubObject a sub-shape of a mesh shape
     #  @return True or False
     #  @ingroup l2_construct
     def IsReadyToCompute(self, theSubObject):
@@ -1253,7 +1253,7 @@ class Mesh:
 
     ## Returns errors of hypotheses definition.
     #  The list of errors is empty if everything is OK.
-    #  @param theSubObject a subshape of a mesh shape
+    #  @param theSubObject a sub-shape of a mesh shape
     #  @return a list of errors
     #  @ingroup l2_construct
     def GetAlgoState(self, theSubObject):
@@ -1287,12 +1287,12 @@ class Mesh:
     ## Creates a segment discretization 1D algorithm.
     #  If the optional \a algo parameter is not set, this algorithm is REGULAR.
     #  \n If the optional \a geom parameter is not set, this algorithm is global.
-    #  Otherwise, this algorithm defines a submesh based on \a geom subshape.
+    #  Otherwise, this algorithm defines a submesh based on \a geom sub-shape.
     #  @param algo the type of the required algorithm. Possible values are:
     #     - smesh.REGULAR,
     #     - smesh.PYTHON for discretization via a python function,
     #     - smesh.COMPOSITE for meshing a set of edges on one face side as a whole.
-    #  @param geom If defined is the subshape to be meshed
+    #  @param geom If defined is the sub-shape to be meshed
     #  @return an instance of Mesh_Segment or Mesh_Segment_Python, or Mesh_CompositeSegment class
     #  @ingroup l3_algos_basic
     def Segment(self, algo=REGULAR, geom=0):
@@ -1312,7 +1312,7 @@ class Mesh:
 
     ## Creates 1D algorithm importing segments conatined in groups of other mesh.
     #  If the optional \a geom parameter is not set, this algorithm is global.
-    #  Otherwise, this algorithm defines a submesh based on \a geom subshape.
+    #  Otherwise, this algorithm defines a submesh based on \a geom sub-shape.
     #  @param geom If defined the subshape is to be meshed
     #  @return an instance of Mesh_UseExistingElements class
     #  @ingroup l3_algos_basic
@@ -1322,7 +1322,7 @@ class Mesh:
     ## Creates 2D algorithm importing faces conatined in groups of other mesh.
     #  If the optional \a geom parameter is not set, this algorithm is global.
     #  Otherwise, this algorithm defines a submesh based on \a geom subshape.
-    #  @param geom If defined the subshape is to be meshed
+    #  @param geom If defined the sub-shape is to be meshed
     #  @return an instance of Mesh_UseExistingElements class
     #  @ingroup l3_algos_basic
     def UseExisting2DElements(self, geom=0):
@@ -1332,8 +1332,8 @@ class Mesh:
     #  The added nodes and segments must be bound to edges and vertices by
     #  SetNodeOnVertex(), SetNodeOnEdge() and SetMeshElementOnShape()
     #  If the optional \a geom parameter is not set, this algorithm is global.
-    #  \n Otherwise, this algorithm defines a submesh based on \a geom subshape.
-    #  @param geom the subshape to be manually meshed
+    #  \n Otherwise, this algorithm defines a submesh based on \a geom sub-shape.
+    #  @param geom the sub-shape to be manually meshed
     #  @return StdMeshers_UseExisting_1D algorithm that generates nothing
     #  @ingroup l3_algos_basic
     def UseExistingSegments(self, geom=0):
@@ -1344,8 +1344,8 @@ class Mesh:
     #  The added nodes and faces must be bound to geom faces by SetNodeOnFace()
     #  and SetMeshElementOnShape()
     #  If the optional \a geom parameter is not set, this algorithm is global.
-    #  \n Otherwise, this algorithm defines a submesh based on \a geom subshape.
-    #  @param geom the subshape to be manually meshed
+    #  \n Otherwise, this algorithm defines a submesh based on \a geom sub-shape.
+    #  @param geom the sub-shape to be manually meshed
     #  @return StdMeshers_UseExisting_2D algorithm that generates nothing
     #  @ingroup l3_algos_basic
     def UseExistingFaces(self, geom=0):
@@ -1354,9 +1354,9 @@ class Mesh:
 
     ## Creates a triangle 2D algorithm for faces.
     #  If the optional \a geom parameter is not set, this algorithm is global.
-    #  \n Otherwise, this algorithm defines a submesh based on \a geom subshape.
+    #  \n Otherwise, this algorithm defines a submesh based on \a geom sub-shape.
     #  @param algo values are: smesh.MEFISTO || smesh.NETGEN_1D2D || smesh.NETGEN_2D || smesh.BLSURF
-    #  @param geom If defined, the subshape to be meshed (GEOM_Object)
+    #  @param geom If defined, the sub-shape to be meshed (GEOM_Object)
     #  @return an instance of Mesh_Triangle algorithm
     #  @ingroup l3_algos_basic
     def Triangle(self, algo=MEFISTO, geom=0):
@@ -1368,8 +1368,8 @@ class Mesh:
 
     ## Creates a quadrangle 2D algorithm for faces.
     #  If the optional \a geom parameter is not set, this algorithm is global.
-    #  \n Otherwise, this algorithm defines a submesh based on \a geom subshape.
-    #  @param geom If defined, the subshape to be meshed (GEOM_Object)
+    #  \n Otherwise, this algorithm defines a submesh based on \a geom sub-shape.
+    #  @param geom If defined, the sub-shape to be meshed (GEOM_Object)
     #  @param algo values are: smesh.QUADRANGLE || smesh.RADIAL_QUAD
     #  @return an instance of Mesh_Quadrangle algorithm
     #  @ingroup l3_algos_basic
@@ -1382,9 +1382,9 @@ class Mesh:
     ## Creates a tetrahedron 3D algorithm for solids.
     #  The parameter \a algo permits to choose the algorithm: NETGEN or GHS3D
     #  If the optional \a geom parameter is not set, this algorithm is global.
-    #  \n Otherwise, this algorithm defines a submesh based on \a geom subshape.
+    #  \n Otherwise, this algorithm defines a submesh based on \a geom sub-shape.
     #  @param algo values are: smesh.NETGEN, smesh.GHS3D, smesh.GHS3DPRL, smesh.FULL_NETGEN
-    #  @param geom If defined, the subshape to be meshed (GEOM_Object)
+    #  @param geom If defined, the sub-shape to be meshed (GEOM_Object)
     #  @return an instance of Mesh_Tetrahedron algorithm
     #  @ingroup l3_algos_basic
     def Tetrahedron(self, algo=NETGEN, geom=0):
@@ -1397,9 +1397,9 @@ class Mesh:
 
     ## Creates a hexahedron 3D algorithm for solids.
     #  If the optional \a geom parameter is not set, this algorithm is global.
-    #  \n Otherwise, this algorithm defines a submesh based on \a geom subshape.
+    #  \n Otherwise, this algorithm defines a submesh based on \a geom sub-shape.
     #  @param algo possible values are: smesh.Hexa, smesh.Hexotic
-    #  @param geom If defined, the subshape to be meshed (GEOM_Object)
+    #  @param geom If defined, the sub-shape to be meshed (GEOM_Object)
     #  @return an instance of Mesh_Hexahedron algorithm
     #  @ingroup l3_algos_basic
     def Hexahedron(self, algo=Hexa, geom=0):
@@ -1417,8 +1417,8 @@ class Mesh:
 
     ## Creates a projection 1D algorithm for edges.
     #  If the optional \a geom parameter is not set, this algorithm is global.
-    #  Otherwise, this algorithm defines a submesh based on \a geom subshape.
-    #  @param geom If defined, the subshape to be meshed
+    #  Otherwise, this algorithm defines a submesh based on \a geom sub-shape.
+    #  @param geom If defined, the sub-shape to be meshed
     #  @return an instance of Mesh_Projection1D algorithm
     #  @ingroup l3_algos_proj
     def Projection1D(self, geom=0):
@@ -1426,8 +1426,8 @@ class Mesh:
 
     ## Creates a projection 1D-2D algorithm for faces.
     #  If the optional \a geom parameter is not set, this algorithm is global.
-    #  Otherwise, this algorithm defines a submesh based on \a geom subshape.
-    #  @param geom If defined, the subshape to be meshed
+    #  Otherwise, this algorithm defines a submesh based on \a geom sub-shape.
+    #  @param geom If defined, the sub-shape to be meshed
     #  @return an instance of Mesh_Projection2D algorithm
     #  @ingroup l3_algos_proj
     def Projection1D2D(self, geom=0):
@@ -1435,8 +1435,8 @@ class Mesh:
 
     ## Creates a projection 2D algorithm for faces.
     #  If the optional \a geom parameter is not set, this algorithm is global.
-    #  Otherwise, this algorithm defines a submesh based on \a geom subshape.
-    #  @param geom If defined, the subshape to be meshed
+    #  Otherwise, this algorithm defines a submesh based on \a geom sub-shape.
+    #  @param geom If defined, the sub-shape to be meshed
     #  @return an instance of Mesh_Projection2D algorithm
     #  @ingroup l3_algos_proj
     def Projection2D(self, geom=0):
@@ -1444,8 +1444,8 @@ class Mesh:
 
     ## Creates a projection 3D algorithm for solids.
     #  If the optional \a geom parameter is not set, this algorithm is global.
-    #  Otherwise, this algorithm defines a submesh based on \a geom subshape.
-    #  @param geom If defined, the subshape to be meshed
+    #  Otherwise, this algorithm defines a submesh based on \a geom sub-shape.
+    #  @param geom If defined, the sub-shape to be meshed
     #  @return an instance of Mesh_Projection3D algorithm
     #  @ingroup l3_algos_proj
     def Projection3D(self, geom=0):
@@ -1453,8 +1453,8 @@ class Mesh:
 
     ## Creates a 3D extrusion (Prism 3D) or RadialPrism 3D algorithm for solids.
     #  If the optional \a geom parameter is not set, this algorithm is global.
-    #  Otherwise, this algorithm defines a submesh based on \a geom subshape.
-    #  @param geom If defined, the subshape to be meshed
+    #  Otherwise, this algorithm defines a submesh based on \a geom sub-shape.
+    #  @param geom If defined, the sub-shape to be meshed
     #  @return an instance of Mesh_Prism3D or Mesh_RadialPrism3D algorithm
     #  @ingroup l3_algos_radialp l3_algos_3dextr
     def Prism(self, geom=0):
@@ -1471,12 +1471,12 @@ class Mesh:
     #  3D structured Cartesian mesh in the internal part of a solid shape
     #  and polyhedral volumes near the shape boundary.
     #  If the optional \a geom parameter is not set, this algorithm is global.
-    #  Otherwise, this algorithm defines a submesh based on \a geom subshape.
+    #  Otherwise, this algorithm defines a submesh based on \a geom sub-shape.
     #  The algorithm does not support submeshes.
     #  Generally usage of this algorithm as a local one is useless since
-    #  it does not discretize 1D and 2D subshapes in a usual way acceptable
+    #  it does not discretize 1D and 2D sub-shapes in a usual way acceptable
     #  for other algorithms.
-    #  @param geom If defined, the subshape to be meshed
+    #  @param geom If defined, the sub-shape to be meshed
     #  @return an instance of Mesh_Cartesian_3D algorithm
     #  @ingroup l3_algos_basic
     def BodyFitted(self, geom=0):
@@ -1731,7 +1731,7 @@ class Mesh:
 
     ## Unassigns a hypothesis
     #  @param hyp a hypothesis to unassign
-    #  @param geom a subshape of mesh geometry
+    #  @param geom a sub-shape of mesh geometry
     #  @return SMESH.Hypothesis_Status
     #  @ingroup l2_hypotheses
     def RemoveHypothesis(self, hyp, geom=0):
@@ -1745,7 +1745,7 @@ class Mesh:
         return status
 
     ## Gets the list of hypotheses added on a geometry
-    #  @param geom a subshape of mesh geometry
+    #  @param geom a sub-shape of mesh geometry
     #  @return the sequence of SMESH_Hypothesis
     #  @ingroup l2_hypotheses
     def GetHypothesisList(self, geom):
@@ -2406,8 +2406,8 @@ class Mesh:
         return self.mesh.GetElementGeomType(id)
 
     ## Returns the list of submesh elements IDs
-    #  @param Shape a geom object(subshape) IOR
-    #         Shape must be the subshape of a ShapeToMesh()
+    #  @param Shape a geom object(sub-shape) IOR
+    #         Shape must be the sub-shape of a ShapeToMesh()
     #  @return the list of integer values
     #  @ingroup l1_meshinfo
     def GetSubMeshElementsId(self, Shape):
@@ -2418,8 +2418,8 @@ class Mesh:
         return self.mesh.GetSubMeshElementsId(ShapeID)
 
     ## Returns the list of submesh nodes IDs
-    #  @param Shape a geom object(subshape) IOR
-    #         Shape must be the subshape of a ShapeToMesh()
+    #  @param Shape a geom object(sub-shape) IOR
+    #         Shape must be the sub-shape of a ShapeToMesh()
     #  @param all If true, gives all nodes of submesh elements, otherwise gives only submesh nodes
     #  @return the list of integer values
     #  @ingroup l1_meshinfo
@@ -2431,8 +2431,8 @@ class Mesh:
         return self.mesh.GetSubMeshNodesId(ShapeID, all)
 
     ## Returns type of elements on given shape
-    #  @param Shape a geom object(subshape) IOR
-    #         Shape must be a subshape of a ShapeToMesh()
+    #  @param Shape a geom object(sub-shape) IOR
+    #         Shape must be a sub-shape of a ShapeToMesh()
     #  @return element type
     #  @ingroup l1_meshinfo
     def GetSubMeshElementType(self, Shape):
index cdecd3038ce5b8fff0348b69e52839296d5f52e7..4c73b4ebd4d32f8c705ea247d75cfca453991f17 100644 (file)
@@ -415,7 +415,7 @@ bool StdMeshers_CompositeHexa_3D::Compute(SMESH_Mesh&         theMesh,
   // ----------------------------
   // Add internal nodes of a box
   // ----------------------------
-  // projection points of internal nodes on box subshapes by which
+  // projection points of internal nodes on box sub-shapes by which
   // coordinates of internal nodes are computed
   vector<gp_XYZ> pointsOnShapes( SMESH_Block::ID_Shell );
 
index 9796ea9978770a2c218c74ee99678963a391de2f..4e471253f584f84995ad44916ffdd11b5460453e 100644 (file)
@@ -994,7 +994,7 @@ bool StdMeshers_HexaFromSkin_3D::Compute(SMESH_Mesh & aMesh, SMESH_MesherHelper*
     // ----------------------------
     // Add internal nodes of a box
     // ----------------------------
-    // projection points of internal nodes on box subshapes by which
+    // projection points of internal nodes on box sub-shapes by which
     // coordinates of internal nodes are computed
     vector<gp_XYZ> pointOnShape( SMESH_Block::ID_Shell );
 
index 9fc541c600035775fc5f689f7fc93f0312a667b4..562a1f8beaa77018f3c6b6351a24eac4bbb17b13 100644 (file)
@@ -509,7 +509,7 @@ namespace // INTERNAL STUFF
   {
     // To get SMESH_subMesh corresponding to srcMeshDS we need to have a shape
     // for which SMESHDS_Mesh::IsGroupOfSubShapes() returns true.
-    // And this shape must be different from subshapes of the main shape.
+    // And this shape must be different from sub-shapes of the main shape.
     // So we create a compound containing
     // 1) some sub-shapes of SMESH_Mesh::PseudoShape() corresponding to
     //    srcMeshDS->GetPersistentId()
index 9cfacf91efe4dd1184fbf10c57eeab42d73d3705..3025b1bf963e1bfdd97015bd35338c60e15a9b88 100644 (file)
@@ -1336,8 +1336,8 @@ void StdMeshers_Penta_3D::CheckData()
     iNb=aM.Extent();
     if (iNb!=iNbEx[i]){
       MESSAGE("StdMeshers_Penta_3D::CheckData() ");
-      myErrorStatus->myName=4; // number of subshape is not compatible
-      myErrorStatus->myComment="Wrong number of subshapes of a block";
+      myErrorStatus->myName=4; // number of sub-shape is not compatible
+      myErrorStatus->myComment="Wrong number of sub-shapes of a block";
       return;
     }
   }
@@ -1649,7 +1649,7 @@ SMESH_ComputeErrorPtr StdMeshers_SMESHBlock::GetError() const
   case 3: text = "Internal error of StdMeshers_Penta_3D"; break; 
   case 4: text = "Can't compute normalized parameters of a point inside a block"; break;
   case 5: text = "Can't compute coordinates by normalized parameters inside a block"; break;
-  case 6: text = "Can't detect block subshapes. Not a block?"; break;
+  case 6: text = "Can't detect block sub-shapes. Not a block?"; break;
   }
   if (!text.empty())
     err->myName = myErrorStatus;
index 151926415fb5de5b57d312af62301607b0c192f0..4b6055c0799a6cf361371884d4e62b80ff7f9594 100644 (file)
@@ -385,7 +385,7 @@ bool StdMeshers_Prism_3D::Compute(SMESH_Mesh& theMesh, const TopoDS_Shape& theSh
 
   myHelper->IsQuadraticSubMesh( theShape );
 
-  // Analyse mesh and geomerty to find block subshapes and submeshes
+  // Analyse mesh and geomerty to find block sub-shapes and submeshes
   if ( !myBlock.Init( myHelper, theShape ))
     return error( myBlock.GetError());
 
@@ -984,7 +984,7 @@ bool StdMeshers_Prism_3D::projectBottomToTop()
 
 //================================================================================
 /*!
- * \brief Set projection coordinates of a node to a face and it's subshapes
+ * \brief Set projection coordinates of a node to a face and it's sub-shapes
  * \param faceID - the face given by in-block ID
  * \param params - node normalized parameters
  * \retval bool - is a success
@@ -2211,9 +2211,9 @@ TopoDS_Edge StdMeshers_PrismAsBlock::TSideFace::GetEdge(const int iEdge) const
 
 //================================================================================
 /*!
- * \brief Fill block subshapes
+ * \brief Fill block sub-shapes
   * \param shapeMap - map to fill in
-  * \retval int - nb inserted subshapes
+  * \retval int - nb inserted sub-shapes
  */
 //================================================================================
 
index 608cfba700d02927eccbde2d00d680db78e1ce64..846dae5b2283d63ebf6b5641cd2bf460f5058358 100644 (file)
@@ -94,7 +94,7 @@ struct TNode
  * \brief Tool analyzing and giving access to a prism geometry 
  *  treating it like a block, i.e. the four side faces are
  *  emulated by division/uniting of missing/excess faces.
- *  It also manage associations between block subshapes and a mesh.
+ *  It also manage associations between block sub-shapes and a mesh.
  */
 // ===============================================================
 
@@ -207,7 +207,7 @@ public:
 
   /*!
    * \brief Return in-block ID of a shape
-    * \param shape - block subshape
+    * \param shape - block sub-shape
     * \retval int - ID or zero if the shape has no ID
    */
   int ShapeID(const TopoDS_Shape& shape) const
@@ -440,7 +440,7 @@ private:
   bool projectBottomToTop();
 
   /*!
-   * \brief Set projection coordinates of a node to a face and it's subshapes
+   * \brief Set projection coordinates of a node to a face and it's sub-shapes
     * \param faceID - the face given by in-block ID
     * \param params - node normalized parameters
     * \retval bool - is a success
index c6347d53a7b0087e6c3a936540e62676bcdd0731..09a2acf4f4cbeb6079bfb2ffe3b66e8609f8d895 100644 (file)
@@ -379,7 +379,7 @@ namespace {
 
 //=======================================================================
 /*!
- * \brief Looks for association of all subshapes of two shapes
+ * \brief Looks for association of all sub-shapes of two shapes
  * \param theShape1 - shape 1
  * \param theMesh1 - mesh built on shape 1
  * \param theShape2 - shape 2
@@ -448,7 +448,7 @@ bool StdMeshers_ProjectionUtils::FindSubShapeAssociation(const TopoDS_Shape& the
 
   if ( partner ) // Same shape with different location
   {
-    // recursively associate all subshapes of theShape1 and theShape2
+    // recursively associate all sub-shapes of theShape1 and theShape2
     typedef list< pair< TopoDS_Shape, TopoDS_Shape > > TShapePairsList;
     TShapePairsList shapesQueue( 1, make_pair( theShape1, theShape2 ));
     TShapePairsList::iterator s1_s2 = shapesQueue.begin();
@@ -556,7 +556,7 @@ bool StdMeshers_ProjectionUtils::FindSubShapeAssociation(const TopoDS_Shape& the
       if ( edge2.IsNull() )
         RETURN_BAD_RESULT("GetEdgeByVertices() failed");
 
-      // build map of edge to faces if shapes are not subshapes of main ones
+      // build map of edge to faces if shapes are not sub-shapes of main ones
       bool isSubOfMain = false;
       if ( SMESHDS_SubMesh * sm = theMesh1->GetMeshDS()->MeshElements( theShape1 ))
         isSubOfMain = !sm->IsComplexSubmesh();
@@ -619,7 +619,7 @@ bool StdMeshers_ProjectionUtils::FindSubShapeAssociation(const TopoDS_Shape& the
 
       TopTools_MapOfShape boundEdges;
 
-      // association of face subshapes and neighbour faces
+      // association of face sub-shapes and neighbour faces
       list< pair < TopoDS_Face, TopoDS_Edge > > FE1, FE2;
       list< pair < TopoDS_Face, TopoDS_Edge > >::iterator fe1, fe2;
       FE1.push_back( make_pair( TopoDS::Face( F1 ), edge1 ));
@@ -1582,7 +1582,7 @@ StdMeshers_ProjectionUtils::GetPropagationEdge( SMESH_Mesh*        aMesh,
     * \param mesh1 - mesh containing elements on the first face
     * \param face2 - the second face
     * \param mesh2 - mesh containing elements on the second face
-    * \param assocMap - map associating subshapes of the faces
+    * \param assocMap - map associating sub-shapes of the faces
     * \param node1To2Map - map containing found matching nodes
     * \retval bool - is a success
    */
@@ -1638,7 +1638,7 @@ FindMatchingNodesOnFaces( const TopoDS_Face&     face1,
     TopoDS_Edge e1 = TopoDS::Edge( assocMap( e2 ));
     if ( !helper1.IsSubShape( e1, face1 ))
       RETURN_BAD_RESULT("Wrong association, edge " << meshDS1->ShapeToIndex( e1 ) <<
-                        " isn't a subshape of face " << meshDS1->ShapeToIndex( face1 ));
+                        " isn't a sub-shape of face " << meshDS1->ShapeToIndex( face1 ));
     // check that there are nodes on edges
     SMESHDS_SubMesh * eSM1 = meshDS1->MeshElements( e1 );
     SMESHDS_SubMesh * eSM2 = meshDS2->MeshElements( e2 );
@@ -1904,10 +1904,10 @@ FindMatchingNodesOnFaces( const TopoDS_Face&     face1,
 
 //================================================================================
   /*!
-   * \brief Return any subshape of a face belonging to the outer wire
+   * \brief Return any sub-shape of a face belonging to the outer wire
     * \param face - the face
-    * \param type - type of subshape to return
-    * \retval TopoDS_Shape - the found subshape
+    * \param type - type of sub-shape to return
+    * \retval TopoDS_Shape - the found sub-shape
    */
 //================================================================================
 
@@ -2004,9 +2004,9 @@ bool StdMeshers_ProjectionUtils::MakeComputed(SMESH_subMesh * sm, const int iter
 
 //================================================================================
 /*!
- * \brief Count nb of subshapes
+ * \brief Count nb of sub-shapes
  * \param shape - the shape
- * \param type - the type of subshapes to count
+ * \param type - the type of sub-shapes to count
  * \retval int - the calculated number
  */
 //================================================================================
@@ -2136,7 +2136,7 @@ void StdMeshers_ProjectionUtils::SetEventListener(SMESH_subMesh* subMesh,
       if ( srcShapeSM->GetSubMeshDS() &&
            srcShapeSM->GetSubMeshDS()->IsComplexSubmesh() )
       {  // source shape is a group
-        TopExp_Explorer it(srcShapeSM->GetSubShape(), // explore the group into subshapes...
+        TopExp_Explorer it(srcShapeSM->GetSubShape(), // explore the group into sub-shapes...
                            subMesh->GetSubShape().ShapeType()); // ...of target shape type
         for (; it.More(); it.Next())
         {
index a29a5daf1c91ae4fc97364a6a5b3f8d6eed02f4f..bba1c77d93ef60e0f0724aa8c817813664dae10e 100644 (file)
@@ -57,7 +57,7 @@ class StdMeshers_ProjectionUtils
   typedef std::map<const SMDS_MeshNode*, const SMDS_MeshNode*> TNodeNodeMap;
 
   /*!
-   * \brief Looks for association of all subshapes of two shapes
+   * \brief Looks for association of all sub-shapes of two shapes
     * \param theShape1 - shape 1
     * \param theMesh1 - mesh built on shape 1
     * \param theShape2 - shape 2
@@ -148,7 +148,7 @@ class StdMeshers_ProjectionUtils
     * \param mesh1 - mesh containing elements on the first face
     * \param face2 - the second face
     * \param mesh2 - mesh containing elements on the second face
-    * \param assocMap - map associating subshapes of the faces
+    * \param assocMap - map associating sub-shapes of the faces
     * \param nodeIn2OutMap - map containing found matching nodes
     * \retval bool - is a success
    */
@@ -159,10 +159,10 @@ class StdMeshers_ProjectionUtils
                                         const TShapeShapeMap & assocMap,
                                         TNodeNodeMap &         nodeIn2OutMap);
   /*!
-   * \brief Return any subshape of a face belonging to the outer wire
+   * \brief Return any sub-shape of a face belonging to the outer wire
     * \param face - the face
-    * \param type - type of subshape to return
-    * \retval TopoDS_Shape - the found subshape
+    * \param type - type of sub-shape to return
+    * \retval TopoDS_Shape - the found sub-shape
    */
   static TopoDS_Shape OuterShape( const TopoDS_Face& face,
                                   TopAbs_ShapeEnum   type);
@@ -176,9 +176,9 @@ class StdMeshers_ProjectionUtils
   static bool MakeComputed(SMESH_subMesh * sm, const int iterationNb = 0);
 
   /*!
-   * \brief Count nb of subshapes
+   * \brief Count nb of sub-shapes
     * \param shape - the shape
-    * \param type - the type of subshapes to count
+    * \param type - the type of sub-shapes to count
     * \param ignoreSame - if true, use map not to count same shapes, esle use explorer
     * \retval int - the calculated number
    */
index 8e8cc402c66a7d375573d20c2047d642811a2d4a..113d4143fb8f0e340aad092a534049c70799c9d0 100644 (file)
@@ -210,7 +210,7 @@ bool StdMeshers_Projection_1D::Compute(SMESH_Mesh& theMesh, const TopoDS_Shape&
   SMESHDS_Mesh * meshDS = theMesh.GetMeshDS();
 
   // ---------------------------
-  // Make subshapes association
+  // Make sub-shapes association
   // ---------------------------
 
   TopoDS_Edge srcEdge, tgtEdge = TopoDS::Edge( theShape.Oriented(TopAbs_FORWARD));
@@ -394,7 +394,7 @@ bool StdMeshers_Projection_1D::Evaluate(SMESH_Mesh& theMesh,
   //SMESHDS_Mesh * meshDS = theMesh.GetMeshDS();
 
   // ---------------------------
-  // Make subshapes association
+  // Make sub-shapes association
   // ---------------------------
 
   TopoDS_Edge srcEdge, tgtEdge = TopoDS::Edge( theShape.Oriented(TopAbs_FORWARD));
index 0cb590e0697ac31bf7d5c0f281f3eed0ff1efc36..a021d9be5160ee21a8dab89bbd3891bcdd5a1d3d 100644 (file)
@@ -777,7 +777,7 @@ bool StdMeshers_Projection_2D::Compute(SMESH_Mesh& theMesh, const TopoDS_Shape&
   SMESHDS_Mesh * meshDS = theMesh.GetMeshDS();
 
   // ---------------------------
-  // Make subshapes association
+  // Make sub-shapes association
   // ---------------------------
 
   TopoDS_Face tgtFace = TopoDS::Face( theShape.Oriented(TopAbs_FORWARD));
@@ -1117,7 +1117,7 @@ bool StdMeshers_Projection_2D::Evaluate(SMESH_Mesh&         theMesh,
     srcMesh = tgtMesh;
 
   // ---------------------------
-  // Make subshapes association
+  // Make sub-shapes association
   // ---------------------------
 
   TopoDS_Face tgtFace = TopoDS::Face( theShape.Oriented(TopAbs_FORWARD));
index 17e95a99dee12f7a6f275f7eb52717b13659be48..3da34cc2fc7a85d13fb8729926530acf2d809848 100644 (file)
@@ -264,12 +264,12 @@ bool StdMeshers_Projection_3D::Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& aS
     TopExp::Vertices( TopoDS::Edge( exp.Current() ), tgtV000, tgtV100 );
 
     if ( !shape2ShapeMap.IsBound( tgtV000 ) || !shape2ShapeMap.IsBound( tgtV100 ))
-      return error("Association of subshapes failed" );
+      return error("Association of sub-shapes failed" );
     srcV000 = TopoDS::Vertex( shape2ShapeMap( tgtV000 ));
     srcV100 = TopoDS::Vertex( shape2ShapeMap( tgtV100 ));
     if ( !SMESH_MesherHelper::IsSubShape( srcV000, srcShell ) ||
          !SMESH_MesherHelper::IsSubShape( srcV100, srcShell ))
-      return error("Incorrect association of subshapes" );
+      return error("Incorrect association of sub-shapes" );
   }
 
   // Load 2 SMESH_Block's with src and tgt shells
@@ -277,20 +277,20 @@ bool StdMeshers_Projection_3D::Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& aS
   SMESH_Block srcBlock, tgtBlock;
   TopTools_IndexedMapOfOrientedShape scrShapes, tgtShapes;
   if ( !tgtBlock.LoadBlockShapes( tgtShell, tgtV000, tgtV100, tgtShapes ))
-    return error(COMPERR_BAD_SHAPE, "Can't detect block subshapes. Not a block?");
+    return error(COMPERR_BAD_SHAPE, "Can't detect block sub-shapes. Not a block?");
 
   if ( !srcBlock.LoadBlockShapes( srcShell, srcV000, srcV100, scrShapes ))
-    return error(COMPERR_BAD_SHAPE, "Can't detect block subshapes. Not a block?");
+    return error(COMPERR_BAD_SHAPE, "Can't detect block sub-shapes. Not a block?");
 
   // Find matching nodes of src and tgt shells
 
   TNodeNodeMap src2tgtNodeMap;
   for ( int fId = SMESH_Block::ID_FirstF; fId < SMESH_Block::ID_Shell; ++fId )
   {
-    // Corresponding subshapes
+    // Corresponding sub-shapes
     TopoDS_Face srcFace = TopoDS::Face( scrShapes( fId ));
     TopoDS_Face tgtFace = TopoDS::Face( tgtShapes( fId ));
-    if ( _sourceHypo->HasVertexAssociation() ) { // associate face subshapes
+    if ( _sourceHypo->HasVertexAssociation() ) { // associate face sub-shapes
       shape2ShapeMap.Clear();
       vector< int > edgeIdVec;
       SMESH_Block::GetFaceEdgesIDs( fId, edgeIdVec );
index 96c55236a8f2381b269aea5506bfeaf40547a8b7..bf1540f4243419bb17c5ca8558a9083bc7501760 100644 (file)
@@ -172,7 +172,7 @@ bool StdMeshers_RadialPrism_3D::Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& a
     return error(COMPERR_BAD_SHAPE, SMESH_Comment("Must be 2 shells but not ")<<nbShells);
 
   // ----------------------------------
-  // Associate subshapes of the shells
+  // Associate sub-shapes of the shells
   // ----------------------------------
 
   TAssocTool::TShapeShapeMap shape2ShapeMap;
@@ -190,7 +190,7 @@ bool StdMeshers_RadialPrism_3D::Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& a
 
   for ( exp.Init( outerShell, TopAbs_FACE ); exp.More(); exp.Next() )
   {
-    // Corresponding subshapes
+    // Corresponding sub-shapes
     TopoDS_Face outFace = TopoDS::Face( exp.Current() );
     TopoDS_Face inFace;
     if ( !shape2ShapeMap.IsBound( outFace )) {
@@ -418,7 +418,7 @@ bool StdMeshers_RadialPrism_3D::Evaluate(SMESH_Mesh& aMesh,
     return false;
   }
 
-  // Associate subshapes of the shells
+  // Associate sub-shapes of the shells
   TAssocTool::TShapeShapeMap shape2ShapeMap;
   if ( !TAssocTool::FindSubShapeAssociation( outerShell, &aMesh,
                                              innerShell, &aMesh,
index 0c99dcbd11e5d2622bb4dcc7607ad675c43cd486..192a46c1f9cf712fb6c2177ad73831defdff8512 100644 (file)
@@ -284,8 +284,8 @@ namespace {
   /*!
    * \brief creates a filter for selection of shapes of given dimension
     * \param dim - dimension
-    * \param subShapeType - required type of subshapes, number of which must be \a nbSubShapes
-    * \param nbSubShapes - number of subshapes of given type
+    * \param subShapeType - required type of sub-shapes, number of which must be \a nbSubShapes
+    * \param nbSubShapes - number of sub-shapes of given type
     * \param closed - required closeness flag of a shape
     * \retval SUIT_SelectionFilter* - created filter
    */
index 80259747bf3876b0b240a01bc1beb36308892124..5dc0d21f16982b335dc003a52b9f998efcc4aee2 100644 (file)
@@ -556,7 +556,7 @@ const char* StdMeshersGUI_SubShapeSelectorWdg::GetMainShapeEntry()
 
 //=================================================================================
 // function : GetCorrectedListOfIds
-// purpose  : Called to convert the list of IDs from subshape IDs to main shape IDs
+// purpose  : Called to convert the list of IDs from sub-shape IDs to main shape IDs
 //=================================================================================
 QList<int> StdMeshersGUI_SubShapeSelectorWdg::GetCorrectedListOfIDs( bool fromSubshapeToMainshape )
 {
@@ -571,7 +571,7 @@ QList<int> StdMeshersGUI_SubShapeSelectorWdg::GetCorrectedListOfIDs( bool fromSu
   TopExp::MapShapes(myGeomShape, aGeomMap);
   TopExp::MapShapes(myMainShape, aMainMap);
 
-  if ( fromSubshapeToMainshape ) { // convert indexes from subshape to mainshape
+  if ( fromSubshapeToMainshape ) { // convert indexes from sub-shape to mainshape
     int size = myListOfIDs.size();
     for (int i = 0; i < size; i++) {
       TopoDS_Shape aSubShape = aGeomMap.FindKey( myListOfIDs.at(i) );
@@ -579,7 +579,7 @@ QList<int> StdMeshersGUI_SubShapeSelectorWdg::GetCorrectedListOfIDs( bool fromSu
       aList.append( index );
     }
     myIsNotCorrected = false;
-  } else { // convert indexes from main shape to subshape
+  } else { // convert indexes from main shape to sub-shape
     int size = mySelectedIDs.size();
     for (int i = 0; i < size; i++) {
       TopoDS_Shape aSubShape = aMainMap.FindKey( mySelectedIDs.at(i) );