Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
8047ecba
Commit
8047ecba
authored
10 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
trying to fix compound surface meshing regression introduced by r18338
parent
109e7023
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Mesh/meshGFace.cpp
+14
-9
14 additions, 9 deletions
Mesh/meshGFace.cpp
with
14 additions
and
9 deletions
Mesh/meshGFace.cpp
+
14
−
9
View file @
8047ecba
...
@@ -1391,24 +1391,28 @@ bool meshGenerator(GFace *gf, int RECUR_ITER,
...
@@ -1391,24 +1391,28 @@ bool meshGenerator(GFace *gf, int RECUR_ITER,
}
}
//gf->triangles.clear();
//gf->triangles.clear();
//gf->quadrangles.clear();
//gf->quadrangles.clear();
gf
->
deleteMesh
();
// only delete the mesh data stored in the base GFace class (calling
// gf->deleteMesh() would also destroy e.g. the data in a compound face, which
// we should not do)
gf
->
GFace
::
deleteMesh
();
Msg
::
Debug
(
"Starting to add internal points"
);
Msg
::
Debug
(
"Starting to add internal points"
);
// start mesh generation
// start mesh generation
if
(
!
algoDelaunay2D
(
gf
)
&&
!
onlyInitialMesh
){
if
(
!
algoDelaunay2D
(
gf
)
&&
!
onlyInitialMesh
){
// if(CTX::instance()->mesh.recombineAll || gf->meshAttributes.recombine || 1) {
// if(CTX::instance()->mesh.recombineAll || gf->meshAttributes.recombine || 1) {
// backgroundMesh::unset();
// backgroundMesh::unset();
// buildBackGroundMesh (gf);
// buildBackGroundMesh (gf);
// }
// }
refineMeshBDS
(
gf
,
*
m
,
CTX
::
instance
()
->
mesh
.
refineSteps
,
true
,
refineMeshBDS
(
gf
,
*
m
,
CTX
::
instance
()
->
mesh
.
refineSteps
,
true
,
&
recoverMapInv
);
&
recoverMapInv
);
optimizeMeshBDS
(
gf
,
*
m
,
2
);
optimizeMeshBDS
(
gf
,
*
m
,
2
);
refineMeshBDS
(
gf
,
*
m
,
CTX
::
instance
()
->
mesh
.
refineSteps
,
false
,
refineMeshBDS
(
gf
,
*
m
,
CTX
::
instance
()
->
mesh
.
refineSteps
,
false
,
&
recoverMapInv
);
&
recoverMapInv
);
optimizeMeshBDS
(
gf
,
*
m
,
2
);
optimizeMeshBDS
(
gf
,
*
m
,
2
);
// if(CTX::instance()->mesh.recombineAll || gf->meshAttributes.recombine || 1) {
// if(CTX::instance()->mesh.recombineAll || gf->meshAttributes.recombine || 1) {
// backgroundMesh::unset();
// backgroundMesh::unset();
// }
// }
}
}
/*
/*
...
@@ -1426,7 +1430,8 @@ bool meshGenerator(GFace *gf, int RECUR_ITER,
...
@@ -1426,7 +1430,8 @@ bool meshGenerator(GFace *gf, int RECUR_ITER,
BDS2GMSH
(
m
,
gf
,
recoverMap
);
BDS2GMSH
(
m
,
gf
,
recoverMap
);
bool
infty
=
false
;
bool
infty
=
false
;
if
(
gf
->
getMeshingAlgo
()
==
ALGO_2D_FRONTAL_QUAD
||
gf
->
getMeshingAlgo
()
==
ALGO_2D_PACK_PRLGRMS
)
if
(
gf
->
getMeshingAlgo
()
==
ALGO_2D_FRONTAL_QUAD
||
gf
->
getMeshingAlgo
()
==
ALGO_2D_PACK_PRLGRMS
)
infty
=
true
;
infty
=
true
;
if
(
!
onlyInitialMesh
)
{
if
(
!
onlyInitialMesh
)
{
if
(
infty
)
if
(
infty
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment