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
a7e34a01
Commit
a7e34a01
authored
9 years ago
by
Jean-François Remacle
Browse files
Options
Downloads
Patches
Plain Diff
devbuffe
parent
bb377d67
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/discreteDiskFace.h
+10
-18
10 additions, 18 deletions
Geo/discreteDiskFace.h
with
10 additions
and
18 deletions
Geo/discreteDiskFace.h
+
10
−
18
View file @
a7e34a01
...
@@ -30,9 +30,8 @@ class GRbf;
...
@@ -30,9 +30,8 @@ class GRbf;
class
discreteDiskFaceTriangle
{
class
discreteDiskFaceTriangle
{
public:
public:
SPoint3
*
p
;
// vertices in (u;v)
SPoint3
p
[
6
];
// vertices in (u;v)
SPoint2
*
gfp
;
// CAD model
SPoint2
gfp
[
6
];
// CAD model
SPoint3
*
v
;
// vertices in (x;y;z)
GFace
*
gf
;
// GFace tag
GFace
*
gf
;
// GFace tag
MTriangle
*
tri
;
// mesh triangle in (x;y;z)
MTriangle
*
tri
;
// mesh triangle in (x;y;z)
discreteDiskFaceTriangle
()
:
gf
(
0
),
tri
(
0
)
{}
discreteDiskFaceTriangle
()
:
gf
(
0
),
tri
(
0
)
{}
...
@@ -49,7 +48,7 @@ class discreteDiskFace : public GFace {
...
@@ -49,7 +48,7 @@ class discreteDiskFace : public GFace {
void
putOnView
();
void
putOnView
();
public:
public:
discreteDiskFace
(
GFace
*
parent
,
std
::
vector
<
MTriangle
*>
&
mesh
,
int
p
);
// MTriangle -> MTriangle 6
discreteDiskFace
(
GFace
*
parent
,
std
::
vector
<
MTriangle
*>
&
mesh
,
int
p
=
1
);
// MTriangle -> MTriangle 6
virtual
~
discreteDiskFace
()
{
triangles
.
clear
();}
virtual
~
discreteDiskFace
()
{
triangles
.
clear
();}
void
getTriangleUV
(
const
double
u
,
const
double
v
,
discreteDiskFaceTriangle
**
mt
,
double
&
_u
,
double
&
_v
)
const
;
void
getTriangleUV
(
const
double
u
,
const
double
v
,
discreteDiskFaceTriangle
**
mt
,
double
&
_u
,
double
&
_v
)
const
;
GPoint
point
(
double
par1
,
double
par2
)
const
;
GPoint
point
(
double
par1
,
double
par2
)
const
;
...
@@ -68,24 +67,21 @@ class discreteDiskFace : public GFace {
...
@@ -68,24 +67,21 @@ class discreteDiskFace : public GFace {
protected
:
protected
:
//------------------------------------------------
//------------------------------------------------
// a copy of the mesh that should not be destroyed
// a copy of the mesh that should not be destroyed
std
::
vector
<
MTriangle
*>
discrete_triangles
;
// MTriangleN AND MTriangle6 are children of MTriangle
std
::
vector
<
MTriangle
*>
discrete_triangles
;
std
::
vector
<
MVertex
*>
discrete_vertices
;
std
::
vector
<
MVertex
*>
discrete_vertices
;
//------------------------------------------------
//------------------------------------------------
int
nodeLocalNum
(
MElement
*
e
,
MVertex
*
v
)
const
{
int
nodeLocalNum
(
MElement
*
e
,
MVertex
*
v
)
const
{
for
(
unsigned
int
i
=
0
;
i
<
e
->
getNumVertices
();
i
++
)
for
(
int
i
=
0
;
i
<
e
->
getNumVertices
();
i
++
)
if
(
v
==
e
->
getVertex
(
i
))
if
(
v
==
e
->
getVertex
(
i
))
return
i
;
return
i
;
};
return
-
1
;
}
int
edgeLocalNum
(
MElement
*
e
,
MEdge
ed
)
const
{
int
edgeLocalNum
(
MElement
*
e
,
MEdge
ed
)
const
{
for
(
unsigned
int
i
=
0
;
i
<
e
->
getNumEdges
();
i
++
)
for
(
int
i
=
0
;
i
<
e
->
getNumEdges
();
i
++
)
if
(
ed
==
e
->
getEdge
(
i
))
if
(
ed
==
e
->
getEdge
(
i
))
return
i
;
return
i
;
};
return
-
1
;
void
init_ddft
(
discreteDiskFaceTriangle
*
ddft
)
const
{
}
ddft
->
p
=
new
SPoint3
[
_N
];
ddft
->
gfp
=
new
SPoint2
[
_N
];
ddft
->
v
=
new
SPoint3
[
_N
];
};
//------------------------------------------------
//------------------------------------------------
int
_order
;
int
_order
;
int
_N
;
int
_N
;
...
@@ -97,14 +93,10 @@ class discreteDiskFace : public GFace {
...
@@ -97,14 +93,10 @@ class discreteDiskFace : public GFace {
mutable
std
::
map
<
SPoint3
,
SPoint3
>
_coordPoints
;
// ?
mutable
std
::
map
<
SPoint3
,
SPoint3
>
_coordPoints
;
// ?
mutable
v2t_cont
adjv
;
// ? v2t_cont ? ?????
mutable
v2t_cont
adjv
;
// ? v2t_cont ? ?????
mutable
std
::
map
<
MVertex
*
,
Pair
<
SVector3
,
SVector3
>
>
firstDerivatives
;
mutable
std
::
map
<
MVertex
*
,
Pair
<
SVector3
,
SVector3
>
>
firstDerivatives
;
mutable
std
::
map
<
MElement
*
,
std
::
vector
<
Pair
<
SVector3
,
SVector3
>
>
>
firstElemDerivatives
;
//dXdU
mutable
discreteDiskFaceTriangle
*
_ddft
;
mutable
discreteDiskFaceTriangle
*
_ddft
;
mutable
ANNkd_tree
*
uv_kdtree
;
mutable
ANNkd_tree
*
kdtree
;
mutable
Octree
*
oct
;
mutable
Octree
*
oct
;
mutable
std
::
vector
<
double
>
_coords
;
mutable
std
::
vector
<
double
>
_coords
;
const
nodalBasis
*
mynodalbasis
;
const
nodalBasis
*
mynodalbasis
;
const
bezierBasis
*
mybezierbasis
;
};
};
#endif
#endif
...
...
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