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
de43bcbe
"README.txt" did not exist on "af663aa981f9154fa13113df3304bb963a6e185f"
Commit
de43bcbe
authored
23 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
draw line elements
parent
62eb29e9
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
Graphics/Mesh.cpp
+18
-13
18 additions, 13 deletions
Graphics/Mesh.cpp
Mesh/Read_Mesh.cpp
+6
-6
6 additions, 6 deletions
Mesh/Read_Mesh.cpp
doc/VERSIONS
+2
-1
2 additions, 1 deletion
doc/VERSIONS
with
26 additions
and
20 deletions
Graphics/Mesh.cpp
+
18
−
13
View file @
de43bcbe
// $Id: Mesh.cpp,v 1.4
1
2001-0
8-28 20:40
:2
1
geuzaine Exp $
// $Id: Mesh.cpp,v 1.4
2
2001-0
9-05 09:35
:2
9
geuzaine Exp $
#include
"Gmsh.h"
#include
"GmshUI.h"
...
...
@@ -551,27 +551,20 @@ void Draw_Simplex_Curves(void *a,void *b){
s
=
*
(
Simplex
**
)
a
;
if
(
!
EntiteEstElleVisible
(
s
->
iEnt
))
return
;
Xc
=
0.5
*
(
s
->
V
[
0
]
->
Pos
.
X
+
s
->
V
[
1
]
->
Pos
.
X
);
Yc
=
0.5
*
(
s
->
V
[
0
]
->
Pos
.
Y
+
s
->
V
[
1
]
->
Pos
.
Y
);
Zc
=
0.5
*
(
s
->
V
[
0
]
->
Pos
.
Z
+
s
->
V
[
1
]
->
Pos
.
Z
);
/*
double X[2],Y[2],Z[2]
double
X
[
2
],
Y
[
2
],
Z
[
2
];
for
(
int
i
=
0
;
i
<
2
;
i
++
)
{
X
[
i
]
=
Xc
+
CTX
.
mesh
.
explode
*
(
s
->
V
[
i
]
->
Pos
.
X
-
Xc
);
Y
[
i
]
=
Yc
+
CTX
.
mesh
.
explode
*
(
s
->
V
[
i
]
->
Pos
.
Y
-
Yc
);
Z
[
i
]
=
Zc
+
CTX
.
mesh
.
explode
*
(
s
->
V
[
i
]
->
Pos
.
Z
-
Zc
);
}
if(CTX.mesh.lines){
glColor4ubv((GLubyte*)&CTX.color.mesh.line);
glBegin(GL_LINES);
glVertex3d(X[0], Y[0], Z[0]);
glVertex3d(X[1], Y[1], Z[1]);
glEnd();
}
*/
/*
if(CTX.mesh.points){
glColor4ubv((GLubyte*)&CTX.color.mesh.vertex);
glBegin(GL_POINTS);
...
...
@@ -585,9 +578,21 @@ void Draw_Simplex_Curves(void *a,void *b){
glEnd();
}
}
*/
if
(
CTX
.
mesh
.
color_carousel
)
ColorSwitch
(
iColor
);
else
glColor4ubv
((
GLubyte
*
)
&
CTX
.
color
.
mesh
.
line
);
if
(
CTX
.
mesh
.
lines
){
glBegin
(
GL_LINES
);
glVertex3d
(
X
[
0
],
Y
[
0
],
Z
[
0
]);
glVertex3d
(
X
[
1
],
Y
[
1
],
Z
[
1
]);
glEnd
();
}
if
(
CTX
.
mesh
.
lines_num
){
glColor4ubv
((
GLubyte
*
)
&
CTX
.
color
.
mesh
.
line
);
sprintf
(
Num
,
"%d"
,
s
->
Num
);
glRasterPos3d
(
Xc
+
3
*
CTX
.
pixel_equiv_x
/
CTX
.
s
[
0
],
Yc
+
3
*
CTX
.
pixel_equiv_x
/
CTX
.
s
[
1
],
...
...
This diff is collapsed.
Click to expand it.
Mesh/Read_Mesh.cpp
+
6
−
6
View file @
de43bcbe
// $Id: Read_Mesh.cpp,v 1.
29
2001-09-0
1 15:18:48
geuzaine Exp $
// $Id: Read_Mesh.cpp,v 1.
30
2001-09-0
5 09:35:29
geuzaine Exp $
#include
"Gmsh.h"
#include
"Geo.h"
...
...
@@ -188,11 +188,11 @@ void Read_Mesh_MSH (Mesh *M, FILE *File_GEO){
switch
(
Type
){
case
LGN1
:
//
simp = Create_Simplex(vertsp[0], vertsp[1], NULL , NULL);
//
simp->Num = Num ;
//
simp->iEnt = Elementary ;
//
Tree_Insert(c->Simplexes, &simp) ;
//Tree_Insert(M->Simplexes, &simp) ;
simp
=
Create_Simplex
(
vertsp
[
0
],
vertsp
[
1
],
NULL
,
NULL
);
simp
->
Num
=
Num
;
simp
->
iEnt
=
Elementary
;
Tree_Insert
(
c
->
Simplexes
,
&
simp
)
;
//
NO!!!
Tree_Insert(M->Simplexes, &simp) ;
break
;
case
TRI1
:
simp
=
Create_Simplex
(
vertsp
[
0
],
vertsp
[
1
],
vertsp
[
2
],
NULL
);
...
...
This diff is collapsed.
Click to expand it.
doc/VERSIONS
+
2
−
1
View file @
de43bcbe
$Id: VERSIONS,v 1.6
7
2001-09-0
4 16:25:06
geuzaine Exp $
$Id: VERSIONS,v 1.6
8
2001-09-0
5 09:35:29
geuzaine Exp $
New in 1.26: Enhanced 2D anisotropic mesh generator (metric
intersections); fixed (yet another) bug in 3D initial mesh;
alternative syntax for built-in functions (for GetDP compatibility);
draw line elements;
New in 1.25: Fixed bug with mixed recombined/non-recombined extruded
meshes; Linux versions are now build with no optimization, due to bugs
...
...
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