Salome HOME
Merge from V7_3_BR branch 18/12/2013
authorvsr <vsr@opencascade.com>
Wed, 18 Dec 2013 14:16:24 +0000 (14:16 +0000)
committervsr <vsr@opencascade.com>
Wed, 18 Dec 2013 14:16:24 +0000 (14:16 +0000)
CMakeLists.txt
src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx
src/GUI/BLSURFPlugin_msg_ja.ts

index 26fdf9a82b368dcbd85b8775a289e3aaea007c80..31388acd57b5458b3c88c8d40eb01c14bac4e9f3 100755 (executable)
@@ -28,7 +28,7 @@ CMAKE_POLICY(SET CMP0003 NEW)
 STRING(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC)
 
 SET(${PROJECT_NAME_UC}_MAJOR_VERSION 7)
-SET(${PROJECT_NAME_UC}_MINOR_VERSION 2)
+SET(${PROJECT_NAME_UC}_MINOR_VERSION 3)
 SET(${PROJECT_NAME_UC}_PATCH_VERSION 0)
 SET(${PROJECT_NAME_UC}_VERSION
   ${${PROJECT_NAME_UC}_MAJOR_VERSION}.${${PROJECT_NAME_UC}_MINOR_VERSION}.${${PROJECT_NAME_UC}_PATCH_VERSION})
@@ -138,6 +138,12 @@ IF(EXISTS ${SMESH_ROOT_DIR})
       MESSAGE(FATAL_ERROR "We absolutely need a Salome SMESH with GUI, please set SALOME_BUILD_GUI=ON in SMESH module")
     ENDIF(NOT SALOME_SMESH_BUILD_GUI)
   ENDIF(SALOME_BUILD_GUI)
+  IF(SALOME_BUILD_DOC)
+    IF(NOT SALOME_SMESH_BUILD_DOC)
+      MESSAGE(FATAL_ERROR "We absolutely need a Salome SMESH documentation to build BLSURFPLUGIN documentation. "
+                         "So, you should either set SALOME_BUILD_DOC=OFF in BLSURFPLUGIN or set SALOME_BUILD_DOC=ON in SMESH module.")
+    ENDIF(NOT SALOME_SMESH_BUILD_DOC)
+  ENDIF(SALOME_BUILD_DOC)
 ELSE(EXISTS ${SMESH_ROOT_DIR})
   MESSAGE(FATAL_ERROR "We absolutely need a Salome SMESH, please define SMESH_ROOT_DIR")
 ENDIF(EXISTS ${SMESH_ROOT_DIR})
index a8abc9bfc9dc5138aef0ecd1ee809939176efe95..a146e6a92d3137866e10e5e61030259eaae13815 100644 (file)
@@ -1645,7 +1645,11 @@ namespace
       }
       if ( u2node.size() < 2 ) return;
 
-      double tol = (( u2node.rbegin()->first - u2node.begin()->first ) / 20.) / u2node.size();
+      //double tol = (( u2node.rbegin()->first - u2node.begin()->first ) / 20.) / u2node.size();
+      Standard_Real f,l;
+      BRep_Tool::Range( TopoDS::Edge( shape ), f,l );
+      double tol = (( l - f ) / 20.) / u2node.size();
+
       std::multimap< double, const SMDS_MeshNode* >::iterator un2, un1;
       for ( un2 = u2node.begin(), un1 = un2++; un2 != u2node.end(); un1 = un2++ )
       {
@@ -2407,6 +2411,7 @@ bool BLSURFPlugin_BLSURF::compute(SMESH_Mesh&         aMesh,
             if (theSizeMapStr.find(bad_end) == (theSizeMapStr.size()-bad_end.size()-1))
               continue;
             // Expr To Python function, verification is performed at validation in GUI
+            gstate = PyGILState_Ensure();
             PyObject * obj = NULL;
             obj= PyRun_String(theSizeMapStr.c_str(), Py_file_input, main_dict, NULL);
             Py_DECREF(obj);
@@ -2414,6 +2419,7 @@ bool BLSURFPlugin_BLSURF::compute(SMESH_Mesh&         aMesh,
             func = PyObject_GetAttrString(main_mod, "f");
             VertexId2PythonSmp[*ip]=func;
             VertexId2SizeMap.erase(vertexKey);   // do not erase if using a vector
+            PyGILState_Release(gstate);
           }
         }
       }
@@ -3066,12 +3072,17 @@ bool BLSURFPlugin_BLSURF::compute(SMESH_Mesh&         aMesh,
         sm->SetIsAlwaysComputed( true );
 
   // Set error to FACE's w/o elements
+  SMESH_ComputeErrorName err = COMPERR_ALGO_FAILED;
+  if ( _comment.empty() )
+  {
+    err      = COMPERR_WARNING;
+    _comment = "No mesh elements assigned to a face";
+  }
   for ( int i = 1; i <= fmap.Extent(); ++i )
   {
     SMESH_subMesh* sm = aMesh.GetSubMesh( fmap(i) );
     if ( !sm->GetSubMeshDS() || sm->GetSubMeshDS()->NbElements() == 0 )
-      sm->GetComputeError().reset
-        ( new SMESH_ComputeError( COMPERR_ALGO_FAILED, _comment, this ));
+      sm->GetComputeError().reset( new SMESH_ComputeError( err, _comment, this ));
   }
 
   // Issue 0019864. On DebianSarge, FE signals do not obey to OSD::SetSignal(false)
index b00306467f154e635706a013a1c2458d3175071b..e7f3806630573f4ede2286d88dec1cd5c236b066 100644 (file)
@@ -13,7 +13,7 @@
     </message>
     <message>
       <source>BLSURF_PHY_MESH_TOOLTIP</source>
-      <translation>&lt;b&gt;&lt;u&gt;物理的なサイズ モード&lt;/u&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;\n 'サイズ' グローバル: 物理的なサイズは、グローバル、メッシュ作成された全体的な物理的なサイズを使用します。&lt;br&gt;\n ローカル 'サイズ': サイズ ローカル カーブとサーフェスのサイズのマップ機能を使用して計算されます。&lt;br&gt;'非アクティブ' \n: 物理的なサイズは計算されません。</translation>
+      <translation>&lt;b&gt;&lt;u&gt;物理サイズ モード&lt;/u&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;-「全体的なサイズ」: 物理的なサイズはグローバルで、メッシャーは、提供されている全体的な物理的なサイズが使用されます。&lt;br&gt;-'ローカル サイズ': サイズ マップ関数を使用してサイズのカーブおよびサーフェス上にローカルに計算できます。&lt;br&gt;-「非アクティブ」: 物理的なサイズが計算されなくなります。</translation>
     </message>
     <message>
       <source>BLSURF_GEOM_MESH</source>
@@ -21,7 +21,7 @@
     </message>
     <message>
       <source>BLSURF_GEOM_MESH_TOOLTIP</source>
-      <translation>&lt;b&gt;&lt;u&gt;å¹¾ä½\95å­¦ç\9a\84ã\81ªã\82µã\82¤ã\82º ã\83¢ã\83¼ã\83\89&lt;/u&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;\n 'ã\82µã\82¤ã\82º' ã\82°ã\83­ã\83¼ã\83\90ã\83«: å¹¾ä½\95å­¦ç\9a\84ã\81ªã\82µã\82¤ã\82ºã\81¯ã\82°ã\83­ã\83¼ã\83\90ã\83«ã\81§ã\81\82ã\82\8aã\80\81å¹¾ä½\95å­¦ç\9a\84ã\83\91ã\83©ã\83¡ã\83¼ã\82¿ã\83¼ã\81«ã\82\88ã\81£ã\81¦æ\8c\87å®\9aã\81\95ã\82\8cã\81\9få¹¾ä½\95å­¦ç\9a\84ã\81ªè¿\91ä¼¼ã\80\81ã\83¡ã\83\83ã\82·ã\83¥ä½\9cæ\88\90ã\82\92使ç\94¨ã\81\97ã\81¾ã\81\99ã\80\82&lt;br&gt;'é\9d\9eã\82¢ã\82¯ã\83\86ã\82£ã\83\96' \n: å¹¾ä½\95å­¦ç\9a\84ã\81ªã\82µã\82¤ã\82ºã\81¯è¨\88ç®\97ã\81\95ã\82\8cã\81¾ã\81\9bã\82\93。</translation>
+      <translation>&lt;b&gt;&lt;u&gt;å¹¾ä½\95å­¦ç\9a\84ã\82µã\82¤ã\82º ã\83¢ã\83¼ã\83\89&lt;/u&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;-ã\80\8cå\85¨ä½\93ç\9a\84ã\81ªã\82µã\82¤ã\82ºã\80\8d: å\85¨ä½\93ç\9a\84ã\81ªå¹¾ä½\95å­¦ç\9a\84ã\82µã\82¤ã\82ºã\81¨ã\83¡ã\83\83ã\82·ã\83£ã\83¼ã\81¯ã\80\81å¹¾ä½\95å­¦ç\9a\84ã\83\91ã\83©ã\83¡ã\83¼ã\82¿ã\83¼ã\81«ã\82\88ã\81£ã\81¦æ\8f\90ä¾\9bã\81\95ã\82\8cã\82\8bå¹¾ä½\95å­¦ç\9a\84ã\81ªè¿\91ä¼¼ã\82\92使ç\94¨ã\81\97ã\81¾ã\81\99ã\80\82&lt;br&gt;-ã\80\8cé\9d\9eã\82¢ã\82¯ã\83\86ã\82£ã\83\96ã\80\8d: å¹¾ä½\95å­¦ç\9a\84ã\81ªã\82µã\82¤ã\82ºã\81\8cè¨\88ç®\97ã\81\95ã\82\8cã\81ªã\81\8fã\81ªã\82\8aã\81¾ã\81\99。</translation>
     </message>
     <message>
       <source>BLSURF_DEFAULT_USER</source>
@@ -45,7 +45,7 @@
     </message>
     <message>
       <source>BLSURF_HPHYDEF_TOOLTIP</source>
-      <translation>定義済み定数全体のサイズを物理的なメッシュ。&lt;br&gt;\nThe 既定値は、 &lt;em&gt;diag&lt;/em&gt;によって計算されます/&lt;em&gt;比&lt;/em&gt;&lt;em&gt;の比率&lt;/em&gt;が環境設定で定義されています。</translation>
+      <translation>物理的メッシュの定義済み定数全体的なサイズです。&lt;br&gt;&lt;em&gt;Diag&lt;/em&gt;によって既定値が計算されます/&lt;em&gt;比率&lt;/em&gt;、&lt;em&gt;比率&lt;/em&gt;は環境設定で定義されます。</translation>
     </message>
     <message>
       <source>BLSURF_MINSIZE</source>
@@ -53,7 +53,7 @@
     </message>
     <message>
       <source>BLSURF_MINSIZE_TOOLTIP</source>
-      <translation>目的のセルの最小の全体的なサイズを定義します。&lt;br&gt;&lt;em&gt;diag&lt;/em&gt;によって 1000年 \nThe デフォルト値が計算されます。</translation>
+      <translation>それは最小の全体目的セルのサイズを定義します。&lt;br&gt;既定値は、 &lt;em&gt;diag&lt;/em&gt;1000 で計算されます。</translation>
     </message>
     <message>
       <source>BLSURF_MAXSIZE</source>
@@ -61,7 +61,7 @@
     </message>
     <message>
       <source>BLSURF_MAXSIZE_TOOLTIP</source>
-      <translation>ç\9b®ç\9a\84ã\81®ã\82»ã\83«ã\81®æ\9c\80大ã\81®å\85¨ä½\93ç\9a\84ã\81ªã\82µã\82¤ã\82ºã\82\92設å®\9aã\81\97ã\81¾ã\81\99ã\80\82&lt;br&gt;&lt;em&gt;diag&lt;/em&gt;ã\81«ã\82\88ã\81£ã\81¦ 5 \nThe ã\83\87ã\83\95ã\82©ã\83«ã\83\88å\80¤ã\81\8c計算されます。</translation>
+      <translation>ç\9b®ç\9a\84ã\82»ã\83«ã\81®æ\9c\80大ã\81®å\85¨ä½\93ç\9a\84ã\81ªã\82µã\82¤ã\82ºã\82\92å®\9a義ã\81\97ã\81¾ã\81\99ã\80\82&lt;br&gt;æ\97¢å®\9aå\80¤ã\81¯ã\80\81 &lt;em&gt;diag&lt;/em&gt;5 ã\81«ã\82\88ã\81£ã\81¦計算されます。</translation>
     </message>
     <message>
       <source>BLSURF_SIZE_REL</source>
@@ -93,7 +93,7 @@
     </message>
     <message>
       <source>BLSURF_ANGLE_MESH_TOOLTIP</source>
-      <translation>é \82ä¸\8aã\81«ã\80\81ã\83¡ã\83\83ã\82·ã\83¥ã\81®ä¸\89è§\92å½¢ã\81®å¹³é\9d¢ã\81¨é\9d¢ã\81®æ\8e¥ç·\9aæ\96¹å\90\91ã\81®è§\92度ã\81«å\88¶é\99\90ã\81\95ã\82\8cã\81¾ã\81\99ã\80\82&lt;br&gt;own\nand è§\92ã\81¯å°\8fã\81\95ã\81\8fã\80\81ã\83¡ã\83\83ã\82·ã\83¥ä¸\8aã\81§é«\98å¯\86度ã\81«è¿\91ã\81\84ã\82¸ã\82ªã\83¡ã\83\88ã\83ªにあります。</translation>
+      <translation>é \82ä¸\8aã\81¸ã\81®æ\8e¥ç·\9aæ\96¹å\90\91ã\81®å¹³é\9d¢ã\81®å\90\84ã\83¡ã\83\83ã\82·ã\83¥ã\81®ä¸\89è§\92å½¢ã\81®å¹³é\9d¢ã\81¨è§\92度ã\81«å\88¶é\99\90ã\81\95ã\82\8cã\81¾ã\81\99ã\80\82&lt;br&gt;è§\92度ã\81\8cå°\8fã\81\95ã\81\84ã\80\81ã\83¡ã\83\83ã\82·ã\83¥ã\81\8cç·»å¯\86ã\81§ã\80\81ã\82¸ã\82ªã\83¡ã\83\88ã\83ªã\81®è¿\91ã\81\8fにあります。</translation>
     </message>
     <message>
       <source>BLSURF_CHORDAL_ERROR</source>
     </message>
     <message>
       <source>BLSURF_CHORDAL_TOOLTIP</source>
-      <translation>三角形とその CAD 表面間の最大距離。&lt;br&gt;own\nand 距離は小さくより多くメッシュ (等方性モードでのみ使用可能) の表面の近くになります。</translation>
+      <translation>三角形とその CAD 表面間の最大距離。&lt;br&gt;距離が小さい、メッシュが (等方性モードでのみ使用可能) の表面に近いことになります。</translation>
     </message>
     <message>
       <source>BLSURF_OTHER_PARAMETERS</source>
     </message>
     <message>
       <source>BLSURF_ANISOTROPIC_TOOLTIP</source>
-      <translation>有効な場合、このパラメーターは最大異方性異方性メッシュ比のプロセスを駆動するメトリックの設定。&lt;br&gt;\n デフォルト値の 0 は、メトリック (とこれから生成された各要素) 任意の拡張することができます。</translation>
+      <translation>有効な場合、このパラメーターは異方性メッシュ比のプロセス運転メトリックの最大異方性を設定します。&lt;br&gt;メトリック (およびこうして生成要素) することができます任意引き伸ばされること 0 の既定値。</translation>
     </message>
     <message>
       <source>BLSURF_REMOVE_TINY_EDGES</source>
     </message>
     <message>
       <source>ZERO_VALUE_OF</source>
-      <translation>ZERO_VALUE_OF</translation>
+      <translation>"%1"の無効な値 (0)</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY</source>
-      <translation>BLSURF_PERIODICITY</translation>
+      <translation>Periodicité</translation>
     </message>
     <message>
       <source>BLSURF_PRECAD_PERIODICITY</source>
-      <translation>BLSURF_PRECAD_PERIODICITY</translation>
+      <translation>定期的な協会 (PreCAD を使用)</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_ON_FACE</source>
-      <translation>BLSURF_PERIODICITY_ON_FACE</translation>
+      <translation>両側</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_ON_EDGE</source>
-      <translation>BLSURF_PERIODICITY_ON_EDGE</translation>
+      <translation>エッジのみで</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_OBJ_SOURCE_COLUMN</source>
-      <translation>BLSURF_PERIODICITY_OBJ_SOURCE_COLUMN</translation>
+      <translation>ソース</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_OBJ_TARGET_COLUMN</source>
-      <translation>BLSURF_PERIODICITY_OBJ_TARGET_COLUMN</translation>
+      <translation>ターゲット</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_P1_SOURCE_COLUMN</source>
-      <translation>BLSURF_PERIODICITY_P1_SOURCE_COLUMN</translation>
+      <translation>P1</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_P2_SOURCE_COLUMN</source>
-      <translation>BLSURF_PERIODICITY_P2_SOURCE_COLUMN</translation>
+      <translation>P2</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_P3_SOURCE_COLUMN</source>
-      <translation>BLSURF_PERIODICITY_P3_SOURCE_COLUMN</translation>
+      <translation>P3</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_P1_TARGET_COLUMN</source>
-      <translation>BLSURF_PERIODICITY_P1_TARGET_COLUMN</translation>
+      <translation>P1</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_P2_TARGET_COLUMN</source>
-      <translation>BLSURF_PERIODICITY_P2_TARGET_COLUMN</translation>
+      <translation>P2</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_P3_TARGET_COLUMN</source>
-      <translation>BLSURF_PERIODICITY_P3_TARGET_COLUMN</translation>
+      <translation>P3</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_MAIN_SOURCE</source>
-      <translation>BLSURF_PERIODICITY_MAIN_SOURCE</translation>
+      <translation>ソース</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_MAIN_TARGET</source>
-      <translation>BLSURF_PERIODICITY_MAIN_TARGET</translation>
+      <translation>ターゲット</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_SOURCE</source>
-      <translation>BLSURF_PERIODICITY_SOURCE</translation>
+      <translation>ソース</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_TARGET</source>
-      <translation>BLSURF_PERIODICITY_TARGET</translation>
+      <translation>ターゲット</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_WITH_VERTICES</source>
-      <translation>BLSURF_PERIODICITY_WITH_VERTICES</translation>
+      <translation>変換を定義する点。</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_P1_SOURCE</source>
-      <translation>BLSURF_PERIODICITY_P1_SOURCE</translation>
+      <translation>P1</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_P2_SOURCE</source>
-      <translation>BLSURF_PERIODICITY_P2_SOURCE</translation>
+      <translation>P2</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_P3_SOURCE</source>
-      <translation>BLSURF_PERIODICITY_P3_SOURCE</translation>
+      <translation>P3</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_P1_TARGET</source>
-      <translation>BLSURF_PERIODICITY_P1_TARGET</translation>
+      <translation>P1</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_P2_TARGET</source>
-      <translation>BLSURF_PERIODICITY_P2_TARGET</translation>
+      <translation>P2</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_P3_TARGET</source>
-      <translation>BLSURF_PERIODICITY_P3_TARGET</translation>
+      <translation>P3</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_ADD</source>
-      <translation>BLSURF_PERIODICITY_ADD</translation>
+      <translation>追加</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_REMOVE</source>
-      <translation>BLSURF_PERIODICITY_REMOVE</translation>
+      <translation>削除</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_WRONG_NUMBER_OF_VERTICES</source>
-      <translation>BLSURF_PERIODICITY_WRONG_NUMBER_OF_VERTICES</translation>
+      <translation>提供されるポイントの数が正しくありません。</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_SELECT_FACE</source>
-      <translation>BLSURF_PERIODICITY_SELECT_FACE</translation>
+      <translation>Face</translation>
     </message>
     <message>
       <source>BLSURF_PERIODICITY_SELECT_EDGE</source>
-      <translation>BLSURF_PERIODICITY_SELECT_EDGE</translation>
+      <translation>Edge</translation>
     </message>
   </context>
 </TS>