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
ba3d52b6
Commit
ba3d52b6
authored
10 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
No commit message
No commit message
parent
abc6d2d5
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Mesh/meshGRegionDelaunayInsertion.cpp
+43
-17
43 additions, 17 deletions
Mesh/meshGRegionDelaunayInsertion.cpp
doc/VERSIONS.txt
+8
-0
8 additions, 0 deletions
doc/VERSIONS.txt
with
51 additions
and
17 deletions
Mesh/meshGRegionDelaunayInsertion.cpp
+
43
−
17
View file @
ba3d52b6
...
...
@@ -557,6 +557,7 @@ bool insertVertex(MVertex *v,
static
void
setLcs
(
MTriangle
*
t
,
std
::
map
<
MVertex
*
,
double
>
&
vSizes
,
std
::
set
<
MVertex
*>
&
bndVertices
)
{
for
(
int
i
=
0
;
i
<
3
;
i
++
){
bndVertices
.
insert
(
t
->
getVertex
(
i
));
MEdge
e
=
t
->
getEdge
(
i
);
...
...
@@ -572,6 +573,31 @@ static void setLcs(MTriangle *t, std::map<MVertex*, double> &vSizes,
if
(
iti
==
vSizes
.
end
()
||
iti
->
second
<
l
)
vSizes
[
vi
]
=
l
;
if
(
itj
==
vSizes
.
end
()
||
itj
->
second
<
l
)
vSizes
[
vj
]
=
l
;
}
/*
double l = 0;
for(int i = 0; i < 3; i++){
MEdge e = t->getEdge(i);
MVertex *vi = e.getVertex(0);
MVertex *vj = e.getVertex(1);
double dx = vi->x()-vj->x();
double dy = vi->y()-vj->y();
double dz = vi->z()-vj->z();
l += sqrt(dx * dx + dy * dy + dz * dz);
}
l /= 3;
for(int i = 0; i < 3; i++){
bndVertices.insert(t->getVertex(i));
MEdge e = t->getEdge(i);
MVertex *vi = e.getVertex(0);
MVertex *vj = e.getVertex(1);
std::map<MVertex*,double>::iterator iti = vSizes.find(vi);
std::map<MVertex*,double>::iterator itj = vSizes.find(vj);
// use largest edge length
if (iti == vSizes.end() || iti->second > l) vSizes[vi] = l;
if (itj == vSizes.end() || itj->second > l) vSizes[vj] = l;
}
*/
}
static
void
setLcs
(
MTetrahedron
*
t
,
std
::
map
<
MVertex
*
,
double
>
&
vSizes
,
...
...
This diff is collapsed.
Click to expand it.
doc/VERSIONS.txt
+
8
−
0
View file @
ba3d52b6
2.9.0 (..., 2015): improved robustness of spatial searches (extruded meshes,
geometry coherence); improved reproductibility of 2D and 3D meshes; added
support for high resolution ("retina") graphics; interactive graph point
commands; on-the-fly creation of onelab clients in scripts; general periodic
meshes using afine transforms; scripted selection of entities in bounding boxes;
extended string and list handling functions; lines many small improvements and
bug fixes all over the place.
2.8.5 (Jul 9, 2014): improved stability and error handling, better Coherence
function, updated onelab API version and inline parameter definitions, new
background image modes, more robust Triangulate/Tetrahedralize plugins, new PGF
...
...
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