SMESH_Gen * gen)
: SMESH_Hypothesis(hypId, gen),
_algo2d (automatic),
- _algo3d (frontal3),
+ _algo3d (delaunay3),
_recomb2DAlgo (standard),
_recombineAll (false),
_subdivAlgo (none),
enum Algo3D
{
+ delaunay3,
frontal3,
frontaldelaunay,
fontalhex,
//*/
std::map <int,double> mapAlgo2d;
- mapAlgo2d[0]=2; mapAlgo2d[1]=1; mapAlgo2d[2]=5; mapAlgo2d[3]=6; mapAlgo2d[4]=8; mapAlgo2d[5]=9;
+ mapAlgo2d[0]=2; // Automatic
+ mapAlgo2d[1]=1; // MeshAdapt
+ mapAlgo2d[2]=5; // Delaunay
+ mapAlgo2d[3]=6; // Frontal
+ mapAlgo2d[4]=8; // DelQuad
+ mapAlgo2d[5]=9; // Packing of parallelograms
+
std::map <int,double> mapAlgo3d;
- mapAlgo3d[0]=1; mapAlgo3d[1]=4; mapAlgo3d[2]=5; mapAlgo3d[3]=6; mapAlgo3d[4]=7; mapAlgo3d[5]=9;
+ mapAlgo3d[0]=1; // Delaunay
+ mapAlgo3d[1]=4; // Frontal
+ /*
+ mapAlgo3d[2]=5; // Frontal-Delaunay
+ mapAlgo3d[3]=6; // Frontal-Hex
+ */
+ mapAlgo3d[2]=7; // MMG3D
+ mapAlgo3d[3]=9; // R-tree
int ok;
ok = GmshSetOption("Mesh", "Algorithm" , mapAlgo2d[_algo2d]) ;
ASSERT(ok);
if ( !_is2d)
{
- ok = GmshSetOption("Mesh", "Algorithm3D" , mapAlgo2d[_algo3d]) ;
+ ok = GmshSetOption("Mesh", "Algorithm3D" , mapAlgo3d[_algo3d]) ;
ASSERT(ok);
}
ok = GmshSetOption("Mesh", "RecombinationAlgorithm" , (double)_recomb2DAlgo) ;
throw oss.str();
}
else
- printf(oss.str().c_str());
+ printf("%s\n", oss.str().c_str());
}
}
enum Algo3D
{
+ delaunay3,
frontal3,
+ /*
frontaldelaunay,
fontalhex,
+ */
mmg3d,
rtree
};
aGroupLayout->addWidget( new QLabel( tr( "GMSH_2D_ALGO" ), GroupC1 ), row, 0 );
my2DAlgo = new QComboBox( GroupC1 );
QStringList types2DAlgo;
- types2DAlgo << tr( "GMSH_AUTOMATIC" ) << tr( "GMSH_MESH_ADAPT" ) << tr( "GMSH_DELAUNAY" ) <<
- tr( "GMSH_FRONTAL" ) << tr( "GMSH_DELAUNAY_FOR_QUAD" ) << tr( "GMSH_PACKING_OF_PARALLELOGRAMS" );
+ types2DAlgo << tr( "GMSH_AUTOMATIC" ) << tr( "GMSH_MESH_ADAPT" ) << tr( "GMSH_DELAUNAY" ) <<
+ tr( "GMSH_FRONTAL" ) << tr( "GMSH_DELAUNAY_FOR_QUAD" ) << tr( "GMSH_PACKING_OF_PARALLELOGRAMS" );
my2DAlgo->addItems( types2DAlgo );
aGroupLayout->addWidget( my2DAlgo, row, 1 );
row++;
aGroupLayout->addWidget( new QLabel( tr( "GMSH_3D_ALGO" ), GroupC1 ), row, 0 );
my3DAlgo = new QComboBox( GroupC1 );
QStringList types3DAlgo;
- types3DAlgo << tr( "GMSH_FRONTAL_DELAUNAY" ) << tr( "GMSH_FRONTAL_HEX" ) << tr( "GMSH_MMG3D" ) <<
- tr( "GMSH_R_TREE" );
+ types3DAlgo << tr( "GMSH_DELAUNAY3" ) << tr( "GMSH_FRONTAL3" ) /*<< tr( "GMSH_FRONTAL_DELAUNAY" ) <<
+ tr( "GMSH_FRONTAL_HEX" )*/ << tr( "GMSH_MMG3D" ) << tr( "GMSH_R_TREE" );
my3DAlgo->addItems( types3DAlgo );
aGroupLayout->addWidget( my3DAlgo, row, 1 );
row++;
</message>
<message>
<source>GMSH_2D_ALGO</source>
- <translation>2D algorithm </translation>
+ <translation>2D algorithm</translation>
</message>
<message>
<source>GMSH_AUTOMATIC</source>
<translation>3D Algorithm</translation>
</message>
<message>
- <source>GMSH_FRONTAL_DELAUNAY</source>
- <translation>Frontal Delaunay</translation>
+ <source>GMSH_DELAUNAY3</source>
+ <translation>Delaunay</translation>
</message>
<message>
- <source>GMSH_FRONTAL_HEX</source>
- <translation>Frontal Hex</translation>
+ <source>GMSH_FRONTAL3</source>
+ <translation>Frontal</translation>
</message>
+ <!--
+ !<message>
+ ! <source>GMSH_FRONTAL_DELAUNAY</source>
+ ! <translation>Frontal Delaunay</translation>
+ !</message>
+ !<message>
+ ! <source>GMSH_FRONTAL_HEX</source>
+ ! <translation>Frontal Hex</translation>
+ !</message>
+ -->
<message>
<source>GMSH_MMG3D</source>
<translation>MMG3D</translation>
<translation>Algorithme 3D</translation>
</message>
<message>
- <source>GMSH_FRONTAL_DELAUNAY</source>
- <translation>Frontal Delaunay</translation>
+ <source>GMSH_DELAUNAY3</source>
+ <translation>Delaunay</translation>
</message>
<message>
- <source>GMSH_FRONTAL_HEX</source>
- <translation>Frontal Hex</translation>
+ <source>GMSH_FRONTAL3</source>
+ <translation>Frontal</translation>
</message>
+ <!--
+ !<message>
+ ! <source>GMSH_FRONTAL_DELAUNAY</source>
+ ! <translation>Frontal Delaunay</translation>
+ !</message>
+ !<message>
+ ! <source>GMSH_FRONTAL_HEX</source>
+ ! <translation>Frontal Hex</translation>
+ !</message>
+ -->
<message>
<source>GMSH_MMG3D</source>
<translation>MMG3D</translation>