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
5a05781e
Commit
5a05781e
authored
18 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fine tuning
parent
57d15559
No related branches found
No related tags found
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Mesh/meshGEdgeExtruded.cpp
+5
-3
5 additions, 3 deletions
Mesh/meshGEdgeExtruded.cpp
Mesh/meshGFaceExtruded.cpp
+5
-7
5 additions, 7 deletions
Mesh/meshGFaceExtruded.cpp
with
10 additions
and
10 deletions
Mesh/meshGEdgeExtruded.cpp
+
5
−
3
View file @
5a05781e
// $Id: meshGEdgeExtruded.cpp,v 1.
2
2006-11-27 0
2:35:38
geuzaine Exp $
// $Id: meshGEdgeExtruded.cpp,v 1.
3
2006-11-27 0
3:06:46
geuzaine Exp $
//
//
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
//
//
...
@@ -40,10 +40,12 @@ void extrudeMesh(GVertex *from, GEdge *to)
...
@@ -40,10 +40,12 @@ void extrudeMesh(GVertex *from, GEdge *to)
}
}
}
}
void
copyMesh
(
GEdge
*
from
,
GEdge
*
to
,
int
direction
)
void
copyMesh
(
GEdge
*
from
,
GEdge
*
to
)
{
{
ExtrudeParams
*
ep
=
to
->
meshAttributes
.
extrude
;
ExtrudeParams
*
ep
=
to
->
meshAttributes
.
extrude
;
int
direction
=
(
ep
->
geo
.
Source
>
0
)
?
1
:
-
1
;
Range
<
double
>
u_bounds
=
from
->
parBounds
(
0
);
Range
<
double
>
u_bounds
=
from
->
parBounds
(
0
);
double
u_min
=
u_bounds
.
low
();
double
u_min
=
u_bounds
.
low
();
double
u_max
=
u_bounds
.
high
();
double
u_max
=
u_bounds
.
high
();
...
@@ -77,7 +79,7 @@ int MeshExtrudedCurve(GEdge *ge)
...
@@ -77,7 +79,7 @@ int MeshExtrudedCurve(GEdge *ge)
// curve is a copy of another curve ("chapeau")
// curve is a copy of another curve ("chapeau")
GEdge
*
from
=
ge
->
model
()
->
edgeByTag
(
std
::
abs
(
ep
->
geo
.
Source
));
GEdge
*
from
=
ge
->
model
()
->
edgeByTag
(
std
::
abs
(
ep
->
geo
.
Source
));
if
(
!
from
)
return
0
;
if
(
!
from
)
return
0
;
copyMesh
(
from
,
ge
,
(
ep
->
geo
.
Source
>
0
)
?
1
:
-
1
);
copyMesh
(
from
,
ge
);
}
}
// create elements
// create elements
...
...
This diff is collapsed.
Click to expand it.
Mesh/meshGFaceExtruded.cpp
+
5
−
7
View file @
5a05781e
// $Id: meshGFaceExtruded.cpp,v 1.
6
2006-11-27 0
2:35:38
geuzaine Exp $
// $Id: meshGFaceExtruded.cpp,v 1.
7
2006-11-27 0
3:06:46
geuzaine Exp $
//
//
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
//
//
...
@@ -56,14 +56,12 @@ void extrudeMesh(GEdge *from, GFace *to,
...
@@ -56,14 +56,12 @@ void extrudeMesh(GEdge *from, GFace *to,
for
(
int
j
=
0
;
j
<
ep
->
mesh
.
NbLayer
;
j
++
)
{
for
(
int
j
=
0
;
j
<
ep
->
mesh
.
NbLayer
;
j
++
)
{
for
(
int
k
=
0
;
k
<
ep
->
mesh
.
NbElmLayer
[
j
];
k
++
)
{
for
(
int
k
=
0
;
k
<
ep
->
mesh
.
NbElmLayer
[
j
];
k
++
)
{
std
::
vector
<
MVertex
*>
verts
;
std
::
vector
<
MVertex
*>
verts
;
double
x
[
4
],
y
[
4
],
z
[
4
];
double
x
[
4
]
=
{
v0
->
x
(),
v1
->
x
(),
v0
->
x
(),
v1
->
x
()};
x
[
0
]
=
v0
->
x
();
y
[
0
]
=
v0
->
y
();
z
[
0
]
=
v0
->
z
();
double
y
[
4
]
=
{
v0
->
y
(),
v1
->
y
(),
v0
->
y
(),
v1
->
y
()};
double
z
[
4
]
=
{
v0
->
z
(),
v1
->
z
(),
v0
->
z
(),
v1
->
z
()};
ep
->
Extrude
(
j
,
k
,
x
[
0
],
y
[
0
],
z
[
0
]);
ep
->
Extrude
(
j
,
k
,
x
[
0
],
y
[
0
],
z
[
0
]);
x
[
1
]
=
v1
->
x
();
y
[
1
]
=
v1
->
y
();
z
[
1
]
=
v1
->
z
();
ep
->
Extrude
(
j
,
k
,
x
[
1
],
y
[
1
],
z
[
1
]);
ep
->
Extrude
(
j
,
k
,
x
[
1
],
y
[
1
],
z
[
1
]);
x
[
2
]
=
v0
->
x
();
y
[
2
]
=
v0
->
y
();
z
[
2
]
=
v0
->
z
();
ep
->
Extrude
(
j
,
k
+
1
,
x
[
2
],
y
[
2
],
z
[
2
]);
ep
->
Extrude
(
j
,
k
+
1
,
x
[
2
],
y
[
2
],
z
[
2
]);
x
[
3
]
=
v1
->
x
();
y
[
3
]
=
v1
->
y
();
z
[
3
]
=
v1
->
z
();
ep
->
Extrude
(
j
,
k
+
1
,
x
[
3
],
y
[
3
],
z
[
3
]);
ep
->
Extrude
(
j
,
k
+
1
,
x
[
3
],
y
[
3
],
z
[
3
]);
for
(
int
p
=
0
;
p
<
4
;
p
++
){
for
(
int
p
=
0
;
p
<
4
;
p
++
){
MVertex
tmp
(
x
[
p
],
y
[
p
],
z
[
p
],
0
,
-
1
);
MVertex
tmp
(
x
[
p
],
y
[
p
],
z
[
p
],
0
,
-
1
);
...
@@ -81,7 +79,7 @@ void extrudeMesh(GEdge *from, GFace *to,
...
@@ -81,7 +79,7 @@ void extrudeMesh(GEdge *from, GFace *to,
to
->
triangles
.
push_back
(
new
MTriangle
(
verts
[
0
],
verts
[
1
],
verts
[
3
]));
to
->
triangles
.
push_back
(
new
MTriangle
(
verts
[
0
],
verts
[
1
],
verts
[
3
]));
}
}
else
if
(
verts
[
0
]
==
verts
[
3
]
||
verts
[
1
]
==
verts
[
2
]){
else
if
(
verts
[
0
]
==
verts
[
3
]
||
verts
[
1
]
==
verts
[
2
]){
Msg
(
GERROR
,
"Uncoherent quadrangle in
extrusion"
);
Msg
(
GERROR
,
"Uncoherent
extruded
quadrangle in
surface %d"
,
to
->
tag
()
);
return
;
return
;
}
}
else
{
else
{
...
...
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