Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
HexEx
libHexEx
Commits
4d7caa34
Commit
4d7caa34
authored
Jan 26, 2021
by
Max Lyon
Browse files
add method to get cell type and to get a string for the cell type
parent
2b4c35e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/HexExtractor.cc
View file @
4d7caa34
...
...
@@ -2669,7 +2669,14 @@ HexExtractor::CellType HexExtractor::computeCellType(CellHandle ch)
else
if
(
sign
==
ORI_BELOW
)
return
Flipped
;
else
return
Proper
;
return
Proper
;
}
HexExtractor
::
CellType
HexExtractor
::
getCellType
(
CellHandle
ch
)
{
if
(
!
cellTypesComputed
)
computeCellTypes
();
return
cellTypes
[
ch
];
}
void
HexExtractor
::
randomizeParametrization
(
double
offsetSize
,
double
keepBoundary
)
...
...
@@ -4018,8 +4025,8 @@ void HexExtractor::calculateEdgeSingularity(EdgeHandle eh)
std
::
cout
<<
"accumulated tran fun "
<<
std
::
endl
<<
accTranFun
<<
std
::
endl
;
for
(
auto
vh
:
vertices
)
{
std
::
cout
<<
"face 1: "
<<
parameter
(
inputMesh
.
incident_cell
(
transitionFace
),
vh
)
<<
(
isCellFlip
pe
d
(
inputMesh
.
incident_cell
(
transitionFace
))
?
" inverted"
:
" not inverted"
)
<<
std
::
endl
;
std
::
cout
<<
"face 2: "
<<
parameter
(
currentCell
,
vh
)
<<
(
isCellFlip
pe
d
(
currentCell
)
?
" inverted"
:
" not inverted"
)
<<
std
::
endl
;
std
::
cout
<<
"face 1: "
<<
parameter
(
inputMesh
.
incident_cell
(
transitionFace
),
vh
)
<<
" Cell is "
<<
to_string
(
getCellTy
pe
(
inputMesh
.
incident_cell
(
transitionFace
)))
<<
std
::
endl
;
std
::
cout
<<
"face 2: "
<<
parameter
(
currentCell
,
vh
)
<<
" Cell is "
<<
to_string
(
getCellTy
pe
(
currentCell
))
<<
std
::
endl
;
}
...
...
src/HexExtractor.hh
View file @
4d7caa34
...
...
@@ -60,6 +60,21 @@ private:
Degenerate
};
std
::
string
to_string
(
CellType
type
)
{
switch
(
type
)
{
case
NotComputed
:
return
"NotComputed"
;
case
Proper
:
return
"Proper"
;
case
Flipped
:
return
"Flipped"
;
case
Degenerate
:
return
"Degenerate"
;
}
}
public:
HexExtractor
();
...
...
@@ -373,6 +388,7 @@ private:
void
computeCellTypes
();
CellType
computeCellType
(
CellHandle
ch
);
CellType
getCellType
(
CellHandle
ch
);
void
randomizeParametrization
(
double
offsetSize
,
double
keepBoundary
=
false
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment