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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
8656391c
Commit
8656391c
authored
Nov 29, 2016
by
Jean-François Remacle
Browse files
Options
Downloads
Patches
Plain Diff
ouf
parent
05cc8787
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Mesh/meshGFaceDelaunayInsertion.cpp
+6
-10
6 additions, 10 deletions
Mesh/meshGFaceDelaunayInsertion.cpp
with
6 additions
and
10 deletions
Mesh/meshGFaceDelaunayInsertion.cpp
+
6
−
10
View file @
8656391c
...
@@ -1290,21 +1290,17 @@ bool optimalPointFrontalB (GFace *gf,
...
@@ -1290,21 +1290,17 @@ bool optimalPointFrontalB (GFace *gf,
{
{
// as a starting point, let us use the "fast algo"
// as a starting point, let us use the "fast algo"
double
d
=
optimalPointFrontal
(
gf
,
worst
,
active_edge
,
data
,
newPoint
,
metric
);
double
d
=
optimalPointFrontal
(
gf
,
worst
,
active_edge
,
data
,
newPoint
,
metric
);
int
ip1
=
active_edge
-
1
<
0
?
2
:
active_edge
-
1
;
int
ip1
=
(
active_edge
+
2
)
%
3
;
int
ip2
=
active_edge
;
int
ip2
=
active_edge
;
int
ip3
=
(
active_edge
+
1
)
%
3
;
MVertex
*
v1
=
worst
->
tri
()
->
getVertex
(
ip1
);
MVertex
*
v1
=
worst
->
tri
()
->
getVertex
(
ip1
);
MVertex
*
v2
=
worst
->
tri
()
->
getVertex
(
ip2
);
MVertex
*
v2
=
worst
->
tri
()
->
getVertex
(
ip2
);
MTriangle
*
t
=
worst
->
tri
();
MVertex
*
v3
=
worst
->
tri
()
->
getVertex
(
ip3
);
double
p1
[
3
]
=
{
t
->
getVertex
(
0
)
->
x
(),
t
->
getVertex
(
0
)
->
y
(),
t
->
getVertex
(
0
)
->
z
()};
double
p2
[
3
]
=
{
t
->
getVertex
(
1
)
->
x
(),
t
->
getVertex
(
1
)
->
y
(),
t
->
getVertex
(
1
)
->
z
()};
double
p3
[
3
]
=
{
t
->
getVertex
(
2
)
->
x
(),
t
->
getVertex
(
2
)
->
y
(),
t
->
getVertex
(
2
)
->
z
()};
double
c
[
3
];
circumCenterXYZ
(
p1
,
p2
,
p3
,
c
);
SVector3
middle
((
v1
->
x
()
+
v2
->
x
())
*
.5
,(
v1
->
y
()
+
v2
->
y
())
*
.5
,(
v1
->
z
()
+
v2
->
z
())
*
.5
);
SVector3
middle
((
v1
->
x
()
+
v2
->
x
())
*
.5
,(
v1
->
y
()
+
v2
->
y
())
*
.5
,(
v1
->
z
()
+
v2
->
z
())
*
.5
);
SVector3
center
(
c
[
0
],
c
[
1
],
c
[
2
]);
SVector3
v1v2
(
v2
->
x
()
-
v1
->
x
(),
v2
->
y
()
-
v1
->
y
(),
v2
->
z
()
-
v1
->
z
());
SVector3
v1v2
(
v2
->
x
()
-
v1
->
x
(),
v2
->
y
()
-
v1
->
y
(),
v2
->
z
()
-
v1
->
z
());
SVector3
n1
=
center
-
middle
;
SVector3
tmp
(
v3
->
x
()
-
middle
.
x
(),
v3
->
y
()
-
middle
.
y
(),
v3
->
z
()
-
middle
.
z
());
SVector3
n2
=
crossprod
(
v1v2
,
n1
);
SVector3
n1
=
crossprod
(
v1v2
,
tmp
);
SVector3
n2
=
crossprod
(
n1
,
v1v2
);
n1
.
normalize
();
n1
.
normalize
();
n2
.
normalize
();
n2
.
normalize
();
// we look for a point that is
// we look for a point that is
...
...
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