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
6d734c03
Commit
6d734c03
authored
15 years ago
by
Boris Sedji
Browse files
Options
Downloads
Patches
Plain Diff
No commit message
No commit message
parent
ddcdeaaa
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/MElementCut.h
+11
-10
11 additions, 10 deletions
Geo/MElementCut.h
with
11 additions
and
10 deletions
Geo/MElementCut.h
+
11
−
10
View file @
6d734c03
...
@@ -47,7 +47,7 @@ class MPolyhedron : public MElement {
...
@@ -47,7 +47,7 @@ class MPolyhedron : public MElement {
_parts
.
push_back
(
vT
[
i
]);
_parts
.
push_back
(
vT
[
i
]);
_init
();
_init
();
}
}
~
MPolyhedron
()
~
MPolyhedron
()
{
{
if
(
_owner
)
if
(
_owner
)
delete
_orig
;
delete
_orig
;
...
@@ -60,7 +60,7 @@ class MPolyhedron : public MElement {
...
@@ -60,7 +60,7 @@ class MPolyhedron : public MElement {
virtual
int
getNumVolumeVertices
()
const
{
return
_innerVertices
.
size
();
}
virtual
int
getNumVolumeVertices
()
const
{
return
_innerVertices
.
size
();
}
virtual
MVertex
*
getVertex
(
int
num
)
virtual
MVertex
*
getVertex
(
int
num
)
{
{
return
(
num
<
(
int
)
_vertices
.
size
())
?
return
(
num
<
(
int
)
_vertices
.
size
())
?
_vertices
[
num
]
:
_innerVertices
[
num
-
_vertices
.
size
()];
_vertices
[
num
]
:
_innerVertices
[
num
-
_vertices
.
size
()];
}
}
virtual
int
getNumEdges
()
{
return
_edges
.
size
();
}
virtual
int
getNumEdges
()
{
return
_edges
.
size
();
}
...
@@ -114,7 +114,7 @@ class MPolyhedron : public MElement {
...
@@ -114,7 +114,7 @@ class MPolyhedron : public MElement {
vol
+=
_parts
[
i
]
->
getVolume
();
vol
+=
_parts
[
i
]
->
getVolume
();
return
vol
;
return
vol
;
}
}
virtual
const
polynomialBasis
*
getFunctionSpace
(
int
order
=-
1
)
const
virtual
const
polynomialBasis
*
getFunctionSpace
(
int
order
=-
1
)
const
{
{
return
_orig
->
getFunctionSpace
(
order
);
return
_orig
->
getFunctionSpace
(
order
);
}
}
...
@@ -191,13 +191,13 @@ class MPolygon : public MElement {
...
@@ -191,13 +191,13 @@ class MPolygon : public MElement {
virtual
int
getNumFaceVertices
()
const
{
return
_innerVertices
.
size
();
}
virtual
int
getNumFaceVertices
()
const
{
return
_innerVertices
.
size
();
}
virtual
MVertex
*
getVertex
(
int
num
)
virtual
MVertex
*
getVertex
(
int
num
)
{
{
return
(
num
<
(
int
)
_vertices
.
size
())
?
return
(
num
<
(
int
)
_vertices
.
size
())
?
_vertices
[
num
]
:
_innerVertices
[
num
-
_vertices
.
size
()];
_vertices
[
num
]
:
_innerVertices
[
num
-
_vertices
.
size
()];
}
}
virtual
int
getNumEdges
()
{
return
_edges
.
size
();
}
virtual
int
getNumEdges
()
{
return
_edges
.
size
();
}
virtual
MEdge
getEdge
(
int
num
)
{
return
_edges
[
num
];
}
virtual
MEdge
getEdge
(
int
num
)
{
return
_edges
[
num
];
}
virtual
int
getNumEdgesRep
()
{
return
getNumEdges
();
}
virtual
int
getNumEdgesRep
()
{
return
getNumEdges
();
}
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
)
{
{
MEdge
e
(
getEdge
(
num
));
MEdge
e
(
getEdge
(
num
));
_getEdgeRep
(
e
.
getVertex
(
0
),
e
.
getVertex
(
1
),
x
,
y
,
z
,
n
,
0
);
_getEdgeRep
(
e
.
getVertex
(
0
),
e
.
getVertex
(
1
),
x
,
y
,
z
,
n
,
0
);
...
@@ -233,7 +233,7 @@ class MPolygon : public MElement {
...
@@ -233,7 +233,7 @@ class MPolygon : public MElement {
_edges
.
clear
();
_edges
.
clear
();
_initVertices
();
_initVertices
();
}
}
virtual
const
polynomialBasis
*
getFunctionSpace
(
int
order
=-
1
)
const
virtual
const
polynomialBasis
*
getFunctionSpace
(
int
order
=-
1
)
const
{
{
return
_orig
->
getFunctionSpace
(
order
);
return
_orig
->
getFunctionSpace
(
order
);
}
}
...
@@ -293,7 +293,7 @@ class MTriangleBorder : public MTriangle {
...
@@ -293,7 +293,7 @@ class MTriangleBorder : public MTriangle {
return
NULL
;
return
NULL
;
}
}
virtual
int
getTypeForMSH
()
const
{
return
MSH_TRI_B
;
}
virtual
int
getTypeForMSH
()
const
{
return
MSH_TRI_B
;
}
virtual
const
polynomialBasis
*
getFunctionSpace
(
int
order
=-
1
)
const
virtual
const
polynomialBasis
*
getFunctionSpace
(
int
order
=-
1
)
const
{
{
return
getParent
()
->
getFunctionSpace
(
order
);
return
getParent
()
->
getFunctionSpace
(
order
);
}
}
...
@@ -337,7 +337,7 @@ class MPolygonBorder : public MPolygon {
...
@@ -337,7 +337,7 @@ class MPolygonBorder : public MPolygon {
return
NULL
;
return
NULL
;
}
}
virtual
int
getTypeForMSH
()
const
{
return
MSH_POLYG_B
;
}
virtual
int
getTypeForMSH
()
const
{
return
MSH_POLYG_B
;
}
virtual
const
polynomialBasis
*
getFunctionSpace
(
int
order
=-
1
)
const
virtual
const
polynomialBasis
*
getFunctionSpace
(
int
order
=-
1
)
const
{
{
return
getParent
()
->
getFunctionSpace
(
order
);
return
getParent
()
->
getFunctionSpace
(
order
);
}
}
...
@@ -381,9 +381,10 @@ class MLineBorder : public MLine {
...
@@ -381,9 +381,10 @@ class MLineBorder : public MLine {
return
NULL
;
return
NULL
;
}
}
virtual
int
getTypeForMSH
()
const
{
return
MSH_LIN_B
;
}
virtual
int
getTypeForMSH
()
const
{
return
MSH_LIN_B
;
}
virtual
const
polynomialBasis
*
getFunctionSpace
(
int
order
=-
1
)
const
virtual
const
polynomialBasis
*
getFunctionSpace
(
int
order
=-
1
)
const
{
{
return
getParent
()
->
getFunctionSpace
(
order
);
if
(
this
->
getParent
())
return
getParent
()
->
getFunctionSpace
(
order
);
else
return
NULL
;
}
}
virtual
void
getShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[],
int
o
)
virtual
void
getShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[],
int
o
)
{
{
...
...
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