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
0c5bb0e2
Commit
0c5bb0e2
authored
10 years ago
by
Thomas Toulorge
Browse files
Options
Downloads
Patches
Plain Diff
Modified blob creation in mesh quality optimizer to take "onlyValidity" parameter into account
parent
d8c2e61e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/MeshQualityOptimizer/MeshQualityOptimizer.cpp
+12
-6
12 additions, 6 deletions
contrib/MeshQualityOptimizer/MeshQualityOptimizer.cpp
with
12 additions
and
6 deletions
contrib/MeshQualityOptimizer/MeshQualityOptimizer.cpp
+
12
−
6
View file @
0c5bb0e2
...
@@ -27,6 +27,7 @@ struct QualPatchDefParameters : public MeshOptPatchDef
...
@@ -27,6 +27,7 @@ struct QualPatchDefParameters : public MeshOptPatchDef
virtual
int
inPatch
(
const
SPoint3
&
badBary
,
double
limDist
,
virtual
int
inPatch
(
const
SPoint3
&
badBary
,
double
limDist
,
MElement
*
el
,
GEntity
*
gEnt
)
const
;
MElement
*
el
,
GEntity
*
gEnt
)
const
;
private
:
private
:
bool
_onlyValidity
;
bool
_excludeQuad
,
_excludeHex
,
_excludePrism
,
_excludeBL
;
bool
_excludeQuad
,
_excludeHex
,
_excludePrism
,
_excludeBL
;
double
_idealJacMin
,
_invCondNumMin
;
double
_idealJacMin
,
_invCondNumMin
;
double
_distanceFactor
;
double
_distanceFactor
;
...
@@ -35,6 +36,7 @@ private:
...
@@ -35,6 +36,7 @@ private:
QualPatchDefParameters
::
QualPatchDefParameters
(
const
MeshQualOptParameters
&
p
)
QualPatchDefParameters
::
QualPatchDefParameters
(
const
MeshQualOptParameters
&
p
)
{
{
_onlyValidity
=
p
.
onlyValidity
;
_excludeQuad
=
p
.
excludeQuad
;
_excludeQuad
=
p
.
excludeQuad
;
_excludeHex
=
p
.
excludeHex
;
_excludeHex
=
p
.
excludeHex
;
_excludePrism
=
p
.
excludePrism
;
_excludePrism
=
p
.
excludePrism
;
...
@@ -73,12 +75,16 @@ double QualPatchDefParameters::elBadness(MElement *el, GEntity* gEnt) const
...
@@ -73,12 +75,16 @@ double QualPatchDefParameters::elBadness(MElement *el, GEntity* gEnt) const
if
(
itBLEl
!=
blc
->
_toFirst
.
end
())
return
1.
;
if
(
itBLEl
!=
blc
->
_toFirst
.
end
())
return
1.
;
}
}
}
}
// double jMin, jMax;
if
(
_onlyValidity
)
{
// el->idealJacRange(jMin, jMax);
double
jMin
,
jMax
;
// return jMin-_idealJacMin;
el
->
idealJacRange
(
jMin
,
jMax
);
double
iCNMin
,
iCNMax
;
return
jMin
-
_idealJacMin
;
el
->
signedInvCondNumRange
(
iCNMin
,
iCNMax
);
}
return
iCNMin
-
_invCondNumMin
;
else
{
double
iCNMin
,
iCNMax
;
el
->
signedInvCondNumRange
(
iCNMin
,
iCNMax
);
return
iCNMin
-
_invCondNumMin
;
}
}
}
...
...
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