STRING(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC)
SET(${PROJECT_NAME_UC}_MAJOR_VERSION 8)
-SET(${PROJECT_NAME_UC}_MINOR_VERSION 3)
+SET(${PROJECT_NAME_UC}_MINOR_VERSION 4)
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})
#include <Precision.hxx>
#include <GeomLib_IsPlanarSurface.hxx>
-// kernel includes
-#include <Basics_OCCTVersion.hxx>
-
BLSURFPlugin_Attractor::BLSURFPlugin_Attractor ()
: _face(),
_attractorShape(),
Handle(Geom_Curve) aCurve3d = BRep_Tool::Curve (anEdge, first, last);
ShapeConstruct_ProjectCurveOnSurface curveProjector;
curveProjector.Init(theSurf, Precision::Confusion());
-#if OCC_VERSION_LARGE > 0x07010000
curveProjector.Perform (aCurve3d, first, last, aCurve2d);
-#else
- curveProjector.PerformAdvanced (aCurve3d, first, last, aCurve2d);
-#endif
int N = 1200;
for (i=0; i<=N; i++){
#include <Basics_Utils.hxx>
-#include <Basics_OCCTVersion.hxx>
#include <SMDS_EdgePosition.hxx>
#include <SMESHDS_Group.hxx>
* (For this face, it will be called by cadsurf with your_face_object_ptr
* as last parameter.
*/
-#if OCC_VERSION_MAJOR < 7
- cad_face_t *fce = cad_face_new(c, iface, surf_fun, surfaces.back());
-#else
cad_face_t *fce = cad_face_new(c, iface, surf_fun, surfaces.back().get());
-#endif
/* by default a face has no tag (color).
The following call sets it to the same value as the Geom module ID : */
}
/* attach the edge to the current cadsurf face */
-#if OCC_VERSION_MAJOR < 7
- cad_edge_t *edg = cad_edge_new(fce, ic, tmin, tmax, curv_fun, curves.back());
-#else
cad_edge_t *edg = cad_edge_new(fce, ic, tmin, tmax, curv_fun, curves.back().get());
-#endif
/* by default an edge has no tag (color).
The following call sets it to the same value as the edge_id : */
<name>BLSURFPluginGUI_AdvWidget</name>
<message>
<source>enforce_cad_edge_sizes</source>
- <translation>enforce_cad_edge_sizes</translation>
+ <translation>Force la taille des éléments par la CAO</translation>
</message>
<message>
<source>jacobian_rectification_respect_geometry</source>
- <translation> Priorité de la géométrie sur le Jacobien</translation>
+ <translation>Priorité de la géométrie sur le Jacobien</translation>
</message>
<message>
<source>max_number_of_points_per_patch</source>
</message>
<message>
<source>discard_input_topology</source>
- <translation>discard_input_topology</translation>
+ <translation>Ignorer la topologie</translation>
</message>
<message>
<source>process_3d_topology</source>
<translation>3D要素内の2本の隣接エッジ長間の最大比</translation>
</message>
<message>
- <source>BLSURF_ALLOW_QUADRANGLES</source>
- <translation>四角形を許可</translation>
+ <source>BLSURF_ELEMENT_TYPE</source>
+ <translation>要素タイプ</translation>
</message>
<message>
- <source>BLSURF_ELEMENT_TYPE</source>
- <translation type="unfinished">Element type</translation>
+ <source>BLSURF_TRIANGLES</source>
+ <translation>三角形要素</translation>
</message>
<message>
- <source>BLSURF_TRIANGLES</source>
- <translation type="unfinished">Triangles</translation>
+ <source>BLSURF_QUADRANGLE_DOMINANT</source>
+ <translation>四辺形優位な</translation>
</message>
<message>
- <source>BLSURF_QUADRANGLE_DOMINANT</source>
- <translation type="unfinished">Quadrangle dominant</translation>
+ <source>BLSURF_QUADRANGLES</source>
+ <translation>四辺形要素</translation>
</message>
<message>
- <source>BLSURF_QUADRANGLES</source>
- <translation type="unfinished">Quadrangles</translation>
+ <source>BLSURF_ALLOW_QUADRANGLES_TOOLTIP</source>
+ <translation>ドミナント四角形要素の生成</translation>
</message>
<message>
- <source>BLSURF_ALLOW_QUADRANGLES_TOOLTIP</source>
- <translation>ドミナント四角形要素の生成</translation>
+ <source>BLSURF_TRIANGLES_TOOLTIP</source>
+ <translation>三角形要素のみのメッシュ生成</translation>
</message>
<message>
- <source>BLSURF_TRIANGLES_TOOLTIP</source>
- <translation type="unfinished">To generate triangles-only mesh</translation>
- </message>
- <message>
- <source>BLSURF_QUADRANGLES_TOOLTIP</source>
- <translation type="unfinished">To generate quadrangles-only mesh</translation>
+ <source>BLSURF_QUADRANGLES_TOOLTIP</source>
+ <translation>四辺形要素のみのメッシュ生成</translation>
</message>
<message>
<source>BLSURF_GEOMETRICAL_SIZE</source>
</message>
<message>
<source>max_number_of_threads</source>
- <translation type="unfinished">Maximal number of threads</translation>
+ <translation>最大スレッド数</translation>
</message>
<message>
<source>rectify_jacobian</source>
<translation>ヤコビアンの修正</translation>
</message>
<message>
- <source>use_deprecated_patch_mesher</source>
- <translation>use deprecated patch mesher</translation>
+ <source>use_deprecated_patch_mesher</source>
+ <translation>非推奨パッチメッシャの使用</translation>
</message>
<message>
<source>respect_geometry</source>
if not ok:
raise Exception("Error when computing surface mesh")
-Mesh_1.Tetrahedron(algo=smeshBuilder.MG_Tetra)
+try:
+ Mesh_1.Tetrahedron(algo=smeshBuilder.MG_Tetra)
-ok = Mesh_1.Compute()
+ ok = Mesh_1.Compute()
-if not ok:
- raise Exception("Error when computing volume mesh")
+ if not ok:
+ raise Exception("Error when computing volume mesh")
+except AttributeError:
+ print "Warning: Cannot build volume mesh: MG-Tetra plugin seems to be unavailable"
if salome.sg.hasDesktop():
salome.sg.updateObjBrowser(True)