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
1085ebd9
Commit
1085ebd9
authored
12 years ago
by
Amaury Johnen
Browse files
Options
Downloads
Patches
Plain Diff
clean up
parent
02858ad6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Mesh/meshGFaceRecombine.cpp
+3
-21
3 additions, 21 deletions
Mesh/meshGFaceRecombine.cpp
Mesh/meshGFaceRecombine.h
+1
-2
1 addition, 2 deletions
Mesh/meshGFaceRecombine.h
with
4 additions
and
23 deletions
Mesh/meshGFaceRecombine.cpp
+
3
−
21
View file @
1085ebd9
...
...
@@ -140,7 +140,6 @@ Recombine2D::Recombine2D(GFace *gf) : _gf(gf), _strategy(0), _numChange(0)
Msg
::
Warning
(
"FIXME Why {mesh 2} then {mesh 0} then {mesh 2} imply not corner vertices"
);
Msg
::
Warning
(
"FIXME Why more vertices after first mesh generation"
);
Msg
::
Warning
(
"FIXME Update of Action pointing to edge and vertex (when change)"
);
Msg
::
Warning
(
"FIXME Deletion of action twoTri2Quad when Collapse pointing to it"
);
}
// Be able to compute geometrical angle at corners
...
...
@@ -995,8 +994,6 @@ double Rec2DData::getGlobalQuality(int numVert, double valVert,
Rec2DAction
*
Rec2DData
::
getBestAction
()
{
static
int
a
=
-
1
;
if
(
++
a
<
1
)
Msg
::
Warning
(
"FIXME implement better compute qual for collapse"
);
if
(
_cur
->
_actions
.
size
()
==
0
)
return
NULL
;
Action
*
ac
=
*
std
::
max_element
(
_cur
->
_actions
.
begin
(),
...
...
@@ -1681,8 +1678,6 @@ void Rec2DTwoTri2Quad::operator delete(void *p)
void
Rec2DTwoTri2Quad
::
hide
()
{
static
int
a
=
-
1
;
if
(
++
a
<
1
)
Msg
::
Warning
(
"FIXME changer le systme d'execution action"
);
if
(
_triangles
[
0
])
_triangles
[
0
]
->
remove
(
this
);
if
(
_triangles
[
1
])
...
...
@@ -1691,10 +1686,7 @@ void Rec2DTwoTri2Quad::hide()
}
void
Rec2DTwoTri2Quad
::
reveal
()
{
static
int
a
=
-
1
;
if
(
++
a
<
1
)
Msg
::
Warning
(
"FIXME regarder si action sans son triangle"
);
{
if
(
_triangles
[
0
])
_triangles
[
0
]
->
add
(
this
);
if
(
_triangles
[
1
])
...
...
@@ -2529,12 +2521,12 @@ void Rec2DCollapse::
getNeighbourElements
(
std
::
vector
<
Rec2DElement
*>
&
elem
,
Rec2DElement
*
rel
)
const
{
if
(
!
rel
)
{
if
(
true
||
!
rel
)
{
_rec
->
getNeighbourElements
(
elem
,
rel
);
return
;
}
if
(
rel
!=
_rec
->
_triangles
[
0
]
&&
rel
!=
_rec
->
_triangles
[
1
])
{
Msg
::
Error
(
"[Rec2DTwoTri2Quad] Wrong element
for
getNeighbour"
);
Msg
::
Error
(
"[Rec2DTwoTri2Quad] Wrong element getNeighbour"
);
return
;
}
elem
.
clear
();
...
...
@@ -2570,14 +2562,6 @@ bool Rec2DCollapse::_hasIdenticalElement() const
_rec
->
_triangles
[
1
]
->
hasIdenticalNeighbour
()
;
}
bool
Rec2DCollapse
::
whatWouldYouDo
(
std
::
map
<
Rec2DVertex
*
,
std
::
vector
<
int
>
>
&
suggestions
)
{
static
int
a
=
-
1
;
if
(
++
a
<
1
)
Msg
::
Error
(
"FIXME Need definition Rec2DTwoTri2Quad::whatWouldYouDo"
);
return
false
;
}
/** Rec2DEdge **/
/*****************/
...
...
@@ -4126,8 +4110,6 @@ bool Rec2DNode::canBeDeleted()
Rec2DNode
*
Rec2DNode
::
selectBestNode
()
{
for
(
int
i
=
1
;
i
<
REC2D_NUMB_SONS
;
++
i
)
{
static
int
a
=
-
1
;
if
(
++
a
<
1
)
Msg
::
Warning
(
"FIXME !!!"
);
if
(
_son
[
i
])
_son
[
i
]
->
rmvFather
(
this
);
if
(
_son
[
i
])
_son
[
i
]
->
_ra
->
printTypeRew
();
delete
_son
[
i
];
...
...
This diff is collapsed.
Click to expand it.
Mesh/meshGFaceRecombine.h
+
1
−
2
View file @
1085ebd9
...
...
@@ -422,7 +422,6 @@ class Rec2DCollapse : public Rec2DAction {
virtual
void
apply
(
Rec2DDataChange
*
,
std
::
vector
<
Rec2DAction
*>*&
)
const
;
virtual
bool
isObsolete
()
const
;
virtual
bool
whatWouldYouDo
(
std
::
map
<
Rec2DVertex
*
,
std
::
vector
<
int
>
>&
);
virtual
inline
Rec2DVertex
*
getVertex
(
int
i
)
const
{
return
_rec
->
getVertex
(
i
);
...
...
@@ -729,7 +728,7 @@ class Rec2DNode {
inline
bool
hasSon
()
const
{
return
_son
[
0
];}
void
rmvFather
(
Rec2DNode
*
n
)
{
if
(
_father
!=
n
)
{
Msg
::
Error
(
"
have
not
this
father"
);
Msg
::
Error
(
"
is
not
my
father"
);
return
;
}
_father
=
NULL
;
...
...
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