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
89821924
Commit
89821924
authored
8 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
pp
parent
ee136d0f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Geo/MTetrahedron.cpp
+8
-4
8 additions, 4 deletions
Geo/MTetrahedron.cpp
Geo/MTriangle.cpp
+2
-0
2 additions, 0 deletions
Geo/MTriangle.cpp
with
10 additions
and
4 deletions
Geo/MTetrahedron.cpp
+
8
−
4
View file @
89821924
...
...
@@ -121,11 +121,13 @@ void MTetrahedron::xyz2uvw(double xyz[3], double uvw[3]) const
sys3x3
(
mat
,
b
,
uvw
,
&
det
);
}
int
MTetrahedron10
::
getNumEdgesRep
(
bool
curved
){
int
MTetrahedron10
::
getNumEdgesRep
(
bool
curved
)
{
return
curved
?
6
*
CTX
::
instance
()
->
mesh
.
numSubEdges
:
6
;
}
int
MTetrahedronN
::
getNumEdgesRep
(
bool
curved
){
int
MTetrahedronN
::
getNumEdgesRep
(
bool
curved
)
{
return
curved
?
6
*
CTX
::
instance
()
->
mesh
.
numSubEdges
:
6
;
}
...
...
@@ -175,11 +177,13 @@ void MTetrahedronN::getEdgeRep(bool curved, int num,
else
MTetrahedron
::
getEdgeRep
(
false
,
num
,
x
,
y
,
z
,
n
);
}
int
MTetrahedronN
::
getNumFacesRep
(
bool
curved
)
{
int
MTetrahedronN
::
getNumFacesRep
(
bool
curved
)
{
return
curved
?
4
*
SQU
(
CTX
::
instance
()
->
mesh
.
numSubEdges
)
:
4
;
}
int
MTetrahedron10
::
getNumFacesRep
(
bool
curved
)
{
int
MTetrahedron10
::
getNumFacesRep
(
bool
curved
)
{
return
curved
?
4
*
SQU
(
CTX
::
instance
()
->
mesh
.
numSubEdges
)
:
4
;
}
...
...
This diff is collapsed.
Click to expand it.
Geo/MTriangle.cpp
+
2
−
0
View file @
89821924
...
...
@@ -21,6 +21,8 @@ void MTriangle::getEdgeRep(bool curved, int num, double *x, double *y, double *z
SVector3
*
n
)
{
// don't use MElement::_getEdgeRep: it's slow due to the creation of MFace
// could speed this up by computing and storing the normal only if num==0; we
// always call getEdgeRep in sequence
MVertex
*
v0
=
_v
[
edges_tri
(
num
,
0
)];
MVertex
*
v1
=
_v
[
edges_tri
(
num
,
1
)];
x
[
0
]
=
v0
->
x
();
y
[
0
]
=
v0
->
y
();
z
[
0
]
=
v0
->
z
();
...
...
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