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
9faa7a40
Commit
9faa7a40
authored
12 years ago
by
Nicolas Marsic
Browse files
Options
Downloads
Patches
Plain Diff
High Order MTriangle: Fix xyz2uvw()
parent
6453aec2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Geo/MTriangle.h
+2
-0
2 additions, 0 deletions
Geo/MTriangle.h
with
2 additions
and
0 deletions
Geo/MTriangle.h
+
2
−
0
View file @
9faa7a40
...
@@ -199,6 +199,7 @@ class MTriangle6 : public MTriangle {
...
@@ -199,6 +199,7 @@ class MTriangle6 : public MTriangle {
static
const
int
map
[
6
]
=
{
0
,
3
,
1
,
4
,
2
,
5
};
static
const
int
map
[
6
]
=
{
0
,
3
,
1
,
4
,
2
,
5
};
return
getVertex
(
map
[
num
]);
return
getVertex
(
map
[
num
]);
}
}
virtual
void
xyz2uvw
(
double
xyz
[
3
],
double
uvw
[
3
]){
MElement
::
xyz2uvw
(
xyz
,
uvw
);
}
virtual
int
getNumEdgeVertices
()
const
{
return
3
;
}
virtual
int
getNumEdgeVertices
()
const
{
return
3
;
}
virtual
int
getNumEdgesRep
();
virtual
int
getNumEdgesRep
();
virtual
void
getEdgeRep
(
int
num
,
double
*
x
,
double
*
y
,
double
*
z
,
SVector3
*
n
);
virtual
void
getEdgeRep
(
int
num
,
double
*
x
,
double
*
y
,
double
*
z
,
SVector3
*
n
);
...
@@ -294,6 +295,7 @@ class MTriangleN : public MTriangle {
...
@@ -294,6 +295,7 @@ class MTriangleN : public MTriangle {
if
(
_order
==
10
&&
_vs
.
size
()
==
27
)
return
0
;
if
(
_order
==
10
&&
_vs
.
size
()
==
27
)
return
0
;
return
0
;
return
0
;
}
}
virtual
void
xyz2uvw
(
double
xyz
[
3
],
double
uvw
[
3
]){
MElement
::
xyz2uvw
(
xyz
,
uvw
);
}
virtual
int
getNumEdgeVertices
()
const
{
return
3
*
(
_order
-
1
);
}
virtual
int
getNumEdgeVertices
()
const
{
return
3
*
(
_order
-
1
);
}
virtual
int
getNumEdgesRep
();
virtual
int
getNumEdgesRep
();
virtual
int
getNumFacesRep
();
virtual
int
getNumFacesRep
();
...
...
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