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
bbcd76a9
Commit
bbcd76a9
authored
23 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
cleanings
parent
2aaa1615
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Graphics/Draw.cpp
+1
-12
1 addition, 12 deletions
Graphics/Draw.cpp
Graphics/Entity.cpp
+1
-6
1 addition, 6 deletions
Graphics/Entity.cpp
with
2 additions
and
18 deletions
Graphics/Draw.cpp
+
1
−
12
View file @
bbcd76a9
// $Id: Draw.cpp,v 1.2
4
2001-0
4-17 06:55:4
7 geuzaine Exp $
// $Id: Draw.cpp,v 1.2
5
2001-0
8-06 16:47:5
7 geuzaine Exp $
#include
"Gmsh.h"
#include
"Gmsh.h"
#include
"GmshUI.h"
#include
"GmshUI.h"
...
@@ -137,22 +137,11 @@ void Orthogonalize(int x, int y){
...
@@ -137,22 +137,11 @@ void Orthogonalize(int x, int y){
void
InitRenderModel
(
void
)
void
InitRenderModel
(
void
)
{
{
int
i
;
int
i
;
float
ambient
[]
=
{
0.5
,
0.5
,
0.5
};
float
diffuse
[]
=
{
0.4
,
0.4
,
0.4
};
float
specular
[
4
];
float
specular
[
4
];
if
(
CTX
.
post
.
smooth
){
//temporaire
glMaterialfv
(
GL_FRONT_AND_BACK
,
GL_AMBIENT
,
ambient
);
glMaterialfv
(
GL_FRONT_AND_BACK
,
GL_DIFFUSE
,
diffuse
);
}
for
(
i
=
0
;
i
<
6
;
i
++
){
for
(
i
=
0
;
i
<
6
;
i
++
){
if
(
CTX
.
light
[
i
]){
if
(
CTX
.
light
[
i
]){
glLightfv
((
GLenum
)(
GL_LIGHT0
+
i
),
GL_POSITION
,
CTX
.
light_position
[
i
]);
glLightfv
((
GLenum
)(
GL_LIGHT0
+
i
),
GL_POSITION
,
CTX
.
light_position
[
i
]);
if
(
CTX
.
post
.
smooth
){
//temporaire
glLightfv
((
GLenum
)(
GL_LIGHT0
+
i
),
GL_AMBIENT
,
ambient
);
glLightfv
((
GLenum
)(
GL_LIGHT0
+
i
),
GL_DIFFUSE
,
diffuse
);
}
glEnable
((
GLenum
)(
GL_LIGHT0
+
i
));
glEnable
((
GLenum
)(
GL_LIGHT0
+
i
));
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Graphics/Entity.cpp
+
1
−
6
View file @
bbcd76a9
// $Id: Entity.cpp,v 1.1
0
2001-08-0
3 21:27:20
geuzaine Exp $
// $Id: Entity.cpp,v 1.1
1
2001-08-0
6 16:47:57
geuzaine Exp $
#include
"Gmsh.h"
#include
"Gmsh.h"
#include
"GmshUI.h"
#include
"GmshUI.h"
...
@@ -77,11 +77,6 @@ void Draw_Triangle (double *x, double *y, double *z, double *n,
...
@@ -77,11 +77,6 @@ void Draw_Triangle (double *x, double *y, double *z, double *n,
void
Draw_Quadrangle
(
double
*
x
,
double
*
y
,
double
*
z
,
double
*
n
,
void
Draw_Quadrangle
(
double
*
x
,
double
*
y
,
double
*
z
,
double
*
n
,
double
Raise
[
3
][
5
],
int
shade
){
double
Raise
[
3
][
5
],
int
shade
){
/*
I think this gives better results
*/
double
x2
[
3
]
=
{
x
[
2
],
x
[
3
],
x
[
0
]};
double
x2
[
3
]
=
{
x
[
2
],
x
[
3
],
x
[
0
]};
double
y2
[
3
]
=
{
y
[
2
],
y
[
3
],
y
[
0
]};
double
y2
[
3
]
=
{
y
[
2
],
y
[
3
],
y
[
0
]};
double
z2
[
3
]
=
{
z
[
2
],
z
[
3
],
z
[
0
]};
double
z2
[
3
]
=
{
z
[
2
],
z
[
3
],
z
[
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