Skip to content
Snippets Groups Projects
Commit 6184877b authored by Francois Henrotte's avatar Francois Henrotte
Browse files

add a gmsh option smoothCrossField

parent 262b1281
Branches
Tags
No related merge requests found
...@@ -19,7 +19,7 @@ struct contextMeshOptions { ...@@ -19,7 +19,7 @@ struct contextMeshOptions {
int points, lines, triangles, quadrangles, tetrahedra, hexahedra, prisms, pyramids; int points, lines, triangles, quadrangles, tetrahedra, hexahedra, prisms, pyramids;
int surfacesEdges, surfacesFaces, volumesEdges, volumesFaces, numSubEdges; int surfacesEdges, surfacesFaces, volumesEdges, volumesFaces, numSubEdges;
int pointsNum, linesNum, surfacesNum, volumesNum, qualityType, labelType; int pointsNum, linesNum, surfacesNum, volumesNum, qualityType, labelType;
int optimize, optimizeNetgen, optimizeLloyd, refineSteps, remove4triangles; int optimize, optimizeNetgen, optimizeLloyd, smoothCrossField, refineSteps, remove4triangles;
double normals, tangents, explode, angleSmoothNormals, allowSwapEdgeAngle; double normals, tangents, explode, angleSmoothNormals, allowSwapEdgeAngle;
double mshFileVersion, mshFilePartitioned, pointSize, lineWidth; double mshFileVersion, mshFilePartitioned, pointSize, lineWidth;
double qualityInf, qualitySup, radiusInf, radiusSup; double qualityInf, qualitySup, radiusInf, radiusSup;
......
...@@ -833,6 +833,8 @@ StringXNumber MeshOptions_Number[] = { ...@@ -833,6 +833,8 @@ StringXNumber MeshOptions_Number[] = {
"Apply Bunin optimization on quad meshes (the parameter is the maximal size of a cavity that may be remeshed)" }, "Apply Bunin optimization on quad meshes (the parameter is the maximal size of a cavity that may be remeshed)" },
{ F|O, "Lloyd" , opt_mesh_lloyd , 0. , { F|O, "Lloyd" , opt_mesh_lloyd , 0. ,
"Apply lloyd optimization on surface meshes" }, "Apply lloyd optimization on surface meshes" },
{ F|O, "SmoothCrossField" , opt_mesh_smooth_cross_field , 0. ,
"Apply n barycentric smoothing passes to the cross field" },
{ F|O, "CgnsImportOrder" , opt_mesh_cgns_import_order , 1. , { F|O, "CgnsImportOrder" , opt_mesh_cgns_import_order , 1. ,
"Enable the creation of high-order mesh from CGNS structured meshes." "Enable the creation of high-order mesh from CGNS structured meshes."
......
...@@ -78,6 +78,7 @@ class GmshSocket{ ...@@ -78,6 +78,7 @@ class GmshSocket{
GMSH_PARAMETER_QUERY = 24, GMSH_PARAMETER_QUERY = 24,
GMSH_PARAM_QUERY_ALL = 25, GMSH_PARAM_QUERY_ALL = 25,
GMSH_PARAM_QUERY_END = 26, GMSH_PARAM_QUERY_END = 26,
GMSH_CONNECT = 27,
GMSH_SPEED_TEST = 30, GMSH_SPEED_TEST = 30,
GMSH_OPTION_1 = 100, GMSH_OPTION_1 = 100,
GMSH_OPTION_2 = 101, GMSH_OPTION_2 = 101,
......
...@@ -5167,6 +5167,13 @@ double opt_mesh_lloyd(OPT_ARGS_NUM) ...@@ -5167,6 +5167,13 @@ double opt_mesh_lloyd(OPT_ARGS_NUM)
return CTX::instance()->mesh.optimizeLloyd; return CTX::instance()->mesh.optimizeLloyd;
} }
double opt_mesh_smooth_cross_field(OPT_ARGS_NUM)
{
if(action & GMSH_SET)
CTX::instance()->mesh.smoothCrossField = (int)val;
return CTX::instance()->mesh.smoothCrossField;
}
double opt_mesh_bdf_field_format(OPT_ARGS_NUM) double opt_mesh_bdf_field_format(OPT_ARGS_NUM)
{ {
if(action & GMSH_SET){ if(action & GMSH_SET){
......
...@@ -406,6 +406,7 @@ double opt_mesh_partition_tri_weight(OPT_ARGS_NUM); ...@@ -406,6 +406,7 @@ double opt_mesh_partition_tri_weight(OPT_ARGS_NUM);
double opt_mesh_binary(OPT_ARGS_NUM); double opt_mesh_binary(OPT_ARGS_NUM);
double opt_mesh_bunin(OPT_ARGS_NUM); double opt_mesh_bunin(OPT_ARGS_NUM);
double opt_mesh_lloyd(OPT_ARGS_NUM); double opt_mesh_lloyd(OPT_ARGS_NUM);
double opt_mesh_smooth_cross_field(OPT_ARGS_NUM);
double opt_mesh_bdf_field_format(OPT_ARGS_NUM); double opt_mesh_bdf_field_format(OPT_ARGS_NUM);
double opt_mesh_nb_smoothing(OPT_ARGS_NUM); double opt_mesh_nb_smoothing(OPT_ARGS_NUM);
double opt_mesh_algo2d(OPT_ARGS_NUM); double opt_mesh_algo2d(OPT_ARGS_NUM);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment