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
9103d97b
Commit
9103d97b
authored
15 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
no need for getCoordinates: just getVertex is OK :-)
parent
e7c0a867
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
Geo/MElement.h
+0
-4
0 additions, 4 deletions
Geo/MElement.h
Geo/MElementCut.cpp
+4
-2
4 additions, 2 deletions
Geo/MElementCut.cpp
Geo/MLine.h
+0
-5
0 additions, 5 deletions
Geo/MLine.h
Geo/MTriangle.h
+0
-5
0 additions, 5 deletions
Geo/MTriangle.h
Geo/OCCFace.cpp
+1
-1
1 addition, 1 deletion
Geo/OCCFace.cpp
with
5 additions
and
17 deletions
Geo/MElement.h
+
0
−
4
View file @
9103d97b
...
@@ -82,10 +82,6 @@ class MElement
...
@@ -82,10 +82,6 @@ class MElement
// get the vertices
// get the vertices
virtual
int
getNumVertices
()
const
=
0
;
virtual
int
getNumVertices
()
const
=
0
;
virtual
MVertex
*
getVertex
(
int
num
)
=
0
;
virtual
MVertex
*
getVertex
(
int
num
)
=
0
;
virtual
void
getCoordinates
(
int
num
,
double
c
[
3
])
const
{
c
[
0
]
=
0.
;
c
[
1
]
=
0.
;
c
[
2
]
=
0.
;
}
// get the vertex using the I-deas UNV ordering
// get the vertex using the I-deas UNV ordering
virtual
MVertex
*
getVertexUNV
(
int
num
){
return
getVertex
(
num
);
}
virtual
MVertex
*
getVertexUNV
(
int
num
){
return
getVertex
(
num
);
}
...
...
This diff is collapsed.
Click to expand it.
Geo/MElementCut.cpp
+
4
−
2
View file @
9103d97b
...
@@ -357,7 +357,8 @@ void MTriangleBorder::getIntegrationPoints(int pOrder, int *npts, IntPt **pts) c
...
@@ -357,7 +357,8 @@ void MTriangleBorder::getIntegrationPoints(int pOrder, int *npts, IntPt **pts) c
{
{
double
uvw
[
3
][
3
];
double
uvw
[
3
][
3
];
for
(
int
j
=
0
;
j
<
3
;
j
++
)
{
for
(
int
j
=
0
;
j
<
3
;
j
++
)
{
double
xyz
[
3
];
getCoordinates
(
j
,
xyz
);
MVertex
*
v
=
getVertex
(
j
);
double
xyz
[
3
]
=
{
v
->
x
(),
v
->
y
(),
v
->
z
()};
getParent
()
->
xyz2uvw
(
xyz
,
uvw
[
j
]);
getParent
()
->
xyz2uvw
(
xyz
,
uvw
[
j
]);
}
}
MVertex
v0
(
uvw
[
0
][
0
],
uvw
[
0
][
1
],
uvw
[
0
][
2
]);
MVertex
v0
(
uvw
[
0
][
0
],
uvw
[
0
][
1
],
uvw
[
0
][
2
]);
...
@@ -386,7 +387,8 @@ void MLineBorder::getIntegrationPoints(int pOrder, int *npts, IntPt **pts) const
...
@@ -386,7 +387,8 @@ void MLineBorder::getIntegrationPoints(int pOrder, int *npts, IntPt **pts) const
{
{
double
uvw
[
2
][
3
];
double
uvw
[
2
][
3
];
for
(
int
j
=
0
;
j
<
2
;
j
++
)
{
for
(
int
j
=
0
;
j
<
2
;
j
++
)
{
double
xyz
[
3
];
getCoordinates
(
j
,
xyz
);
MVertex
*
v
=
getVertex
(
j
);
double
xyz
[
3
]
=
{
v
->
x
(),
v
->
y
(),
v
->
z
()};
getParent
()
->
xyz2uvw
(
xyz
,
uvw
[
j
]);
getParent
()
->
xyz2uvw
(
xyz
,
uvw
[
j
]);
}
}
MVertex
v0
(
uvw
[
0
][
0
],
uvw
[
0
][
1
],
uvw
[
0
][
2
]);
MVertex
v0
(
uvw
[
0
][
0
],
uvw
[
0
][
1
],
uvw
[
0
][
2
]);
...
...
This diff is collapsed.
Click to expand it.
Geo/MLine.h
+
0
−
5
View file @
9103d97b
...
@@ -37,11 +37,6 @@ class MLine : public MElement {
...
@@ -37,11 +37,6 @@ class MLine : public MElement {
virtual
int
getDim
(){
return
1
;
}
virtual
int
getDim
(){
return
1
;
}
virtual
int
getNumVertices
()
const
{
return
2
;
}
virtual
int
getNumVertices
()
const
{
return
2
;
}
virtual
MVertex
*
getVertex
(
int
num
){
return
_v
[
num
];
}
virtual
MVertex
*
getVertex
(
int
num
){
return
_v
[
num
];
}
virtual
void
getCoordinates
(
int
num
,
double
c
[
3
])
const
{
c
[
0
]
=
_v
[
num
]
->
x
();
c
[
1
]
=
_v
[
num
]
->
y
();
c
[
2
]
=
_v
[
num
]
->
z
();
}
virtual
int
getNumEdges
(){
return
1
;
}
virtual
int
getNumEdges
(){
return
1
;
}
virtual
MEdge
getEdge
(
int
num
){
return
MEdge
(
_v
[
0
],
_v
[
1
]);
}
virtual
MEdge
getEdge
(
int
num
){
return
MEdge
(
_v
[
0
],
_v
[
1
]);
}
virtual
int
getNumEdgesRep
(){
return
1
;
}
virtual
int
getNumEdgesRep
(){
return
1
;
}
...
...
This diff is collapsed.
Click to expand it.
Geo/MTriangle.h
+
0
−
5
View file @
9103d97b
...
@@ -54,11 +54,6 @@ class MTriangle : public MElement {
...
@@ -54,11 +54,6 @@ class MTriangle : public MElement {
virtual
double
distoShapeMeasure
();
virtual
double
distoShapeMeasure
();
virtual
int
getNumVertices
()
const
{
return
3
;
}
virtual
int
getNumVertices
()
const
{
return
3
;
}
virtual
MVertex
*
getVertex
(
int
num
){
return
_v
[
num
];
}
virtual
MVertex
*
getVertex
(
int
num
){
return
_v
[
num
];
}
virtual
void
getCoordinates
(
int
num
,
double
c
[
3
])
const
{
c
[
0
]
=
_v
[
num
]
->
x
();
c
[
1
]
=
_v
[
num
]
->
y
();
c
[
2
]
=
_v
[
num
]
->
z
();
}
virtual
MVertex
*
getVertexMED
(
int
num
)
virtual
MVertex
*
getVertexMED
(
int
num
)
{
{
static
const
int
map
[
3
]
=
{
0
,
2
,
1
};
static
const
int
map
[
3
]
=
{
0
,
2
,
1
};
...
...
This diff is collapsed.
Click to expand it.
Geo/OCCFace.cpp
+
1
−
1
View file @
9103d97b
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