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
507f7732
Commit
507f7732
authored
18 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
f806b05c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Geo/ExtrudeParams.cpp
+1
-2
1 addition, 2 deletions
Geo/ExtrudeParams.cpp
Mesh/meshGFaceExtruded.cpp
+33
-23
33 additions, 23 deletions
Mesh/meshGFaceExtruded.cpp
Mesh/meshGFaceTransfinite.cpp
+3
-1
3 additions, 1 deletion
Mesh/meshGFaceTransfinite.cpp
with
37 additions
and
26 deletions
Geo/ExtrudeParams.cpp
+
1
−
2
View file @
507f7732
// $Id: ExtrudeParams.cpp,v 1.
19
2006-11-2
5
1
6:52:4
3 geuzaine Exp $
// $Id: ExtrudeParams.cpp,v 1.
20
2006-11-2
6
1
9:30:2
3 geuzaine Exp $
//
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -44,7 +44,6 @@ ExtrudeParams::ExtrudeParams(int ModeEx)
mesh
.
Recombine
=
false
;
}
void
ExtrudeParams
::
fill
(
int
type
,
double
T0
,
double
T1
,
double
T2
,
double
A0
,
double
A1
,
double
A2
,
...
...
This diff is collapsed.
Click to expand it.
Mesh/meshGFaceExtruded.cpp
+
33
−
23
View file @
507f7732
// $Id: meshGFaceExtruded.cpp,v 1.
2
2006-11-26 1
6:24:04
geuzaine Exp $
// $Id: meshGFaceExtruded.cpp,v 1.
3
2006-11-26 1
9:30:23
geuzaine Exp $
//
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -31,6 +31,30 @@
#include
"Context.h"
#include
"Message.h"
int
extrudeVertex
(
GFace
*
gf
,
MVertex
*
v
)
{
ExtrudeParams
*
ep
=
gf
->
meshAttributes
.
extrude
;
for
(
int
i
=
0
;
i
<
ep
->
mesh
.
NbLayer
;
i
++
)
{
for
(
int
j
=
1
;
j
<
ep
->
mesh
.
NbElmLayer
[
i
];
j
++
)
{
double
x
=
v
->
x
(),
y
=
v
->
y
(),
z
=
v
->
z
();
ep
->
Extrude
(
i
,
j
,
x
,
y
,
z
);
gf
->
mesh_vertices
.
push_back
(
new
MVertex
(
x
,
y
,
z
,
gf
));
}
}
}
int
copyMesh
(
GFace
*
gf
,
GFace
*
from
)
{
ExtrudeParams
*
ep
=
gf
->
meshAttributes
.
extrude
;
for
(
unsigned
int
i
=
0
;
i
<
from
->
mesh_vertices
.
size
();
i
++
){
MVertex
*
v
=
from
->
mesh_vertices
[
i
];
double
x
=
v
->
x
(),
y
=
v
->
y
(),
z
=
v
->
z
();
ep
->
Extrude
(
ep
->
mesh
.
NbLayer
-
1
,
ep
->
mesh
.
NbElmLayer
[
ep
->
mesh
.
NbLayer
-
1
],
x
,
y
,
z
);
gf
->
mesh_vertices
.
push_back
(
new
MVertex
(
x
,
y
,
z
,
gf
));
}
}
int
MeshExtrudedSurface
(
GFace
*
gf
)
{
ExtrudeParams
*
ep
=
gf
->
meshAttributes
.
extrude
;
...
...
@@ -40,32 +64,18 @@ int MeshExtrudedSurface(GFace *gf)
if
(
ep
->
geo
.
Mode
==
EXTRUDED_ENTITY
)
{
// extruded from a curve
GEdge
*
ge
=
gf
->
model
()
->
edgeByTag
(
ep
->
geo
.
Source
);
if
(
!
ge
)
return
0
;
for
(
unsigned
int
i
=
0
;
i
<
ge
->
mesh_vertices
.
size
();
i
++
)
{
//printf("extruding vertex %d\n", i);
}
/*
c = FindCurve(abs(ep->geo.Source));
if(!c)
return false;
for(int i = 0; i < List_Nbr(c->Vertices); i++) {
List_Read(c->Vertices, i, &v1);
Extrude_Vertex(&v1, NULL);
}
Extrude_Curve(&c, NULL);
*/
GEdge
*
e
=
gf
->
model
()
->
edgeByTag
(
std
::
abs
(
ep
->
geo
.
Source
));
if
(
!
e
)
return
0
;
for
(
unsigned
int
i
=
0
;
i
<
e
->
mesh_vertices
.
size
();
i
++
)
extrudeVertex
(
gf
,
e
->
mesh_vertices
[
i
]);
// get bounding edges and create quads/tris
}
else
{
// copy of a surface ("chapeau")
/*
source = FindSurface(ep->geo.Source);
if(!source)
return false;
copy_mesh(ss, s);
*/
GFace
*
f
=
gf
->
model
()
->
faceByTag
(
std
::
abs
(
ep
->
geo
.
Source
));
if
(
!
f
)
return
0
;
copyMesh
(
gf
,
f
);
}
return
1
;
}
This diff is collapsed.
Click to expand it.
Mesh/meshGFaceTransfinite.cpp
+
3
−
1
View file @
507f7732
// $Id: meshGFaceTransfinite.cpp,v 1.
5
2006-11-26 1
6:24:04
geuzaine Exp $
// $Id: meshGFaceTransfinite.cpp,v 1.
6
2006-11-26 1
9:30:23
geuzaine Exp $
//
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -93,6 +93,8 @@ int MeshTransfiniteSurface( GFace *gf)
int
Lb
=
N4
-
N3
;
int
Hb
=
m_vertices
.
size
()
-
N4
;
// FIXME need to reimplement 3-side transfinite interpolation!
if
(
Lb
!=
L
||
Hb
!=
H
){
Msg
(
GERROR
,
"Surface %d cannot be meshed using the transfinite algo"
,
gf
->
tag
());
return
0
;
...
...
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