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
39708f6e
Commit
39708f6e
authored
23 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
nice bench for aniso algo
parent
d2be3ba8
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Graphics/gl2ps.cpp
+20
-9
20 additions, 9 deletions
Graphics/gl2ps.cpp
Graphics/gl2ps.h
+11
-2
11 additions, 2 deletions
Graphics/gl2ps.h
benchmarks/2d/wing-splines.geo
+616
-0
616 additions, 0 deletions
benchmarks/2d/wing-splines.geo
with
647 additions
and
11 deletions
Graphics/gl2ps.cpp
+
20
−
9
View file @
39708f6e
...
...
@@ -2,7 +2,7 @@
* GL2PS, an OpenGL to PostScript Printing Library
* Copyright (C) 1999-2002 Christophe Geuzaine
*
* $Id: gl2ps.cpp,v 1.3
5
2002-0
1-22 16:54:16
geuzaine Exp $
* $Id: gl2ps.cpp,v 1.3
6
2002-0
2-05 20:13:51
geuzaine Exp $
*
* E-mail: geuz@geuz.org
* URL: http://www.geuz.org/gl2ps/
...
...
@@ -1096,7 +1096,7 @@ GLvoid gl2psPrintPostScriptHeader(GLvoid){
"%%%%DocumentData: Clean7Bit
\n
"
"%%%%Pages: 1
\n
"
"%%%%PageOrder: Ascend
\n
"
"%%%%Orientation:
Portrait
\n
"
"%%%%Orientation:
%s
\n
"
"%%%%DocumentMedia: Default %d %d 0 () ()
\n
"
"%%%%BoundingBox: %d %d %d %d
\n
"
"%%%%Copyright: GNU LGPL (C) 1999-2002 geuz@geuz.org
\n
"
...
...
@@ -1147,13 +1147,24 @@ GLvoid gl2psPrintPostScriptHeader(GLvoid){
"gl2psdict begin
\n
"
"%%%%EndSetup
\n
"
"%%%%Page: 1 1
\n
"
"%%%%BeginPageSetup
\n
"
"%%%%BeginPageSetup
\n
"
,
gl2ps
.
title
,
GL2PS_VERSION
,
gl2ps
.
producer
,
ctime
(
&
now
),
(
gl2ps
.
options
&
GL2PS_LANDSCAPE
)
?
"Landscape"
:
"Portrait"
,
(
gl2ps
.
options
&
GL2PS_LANDSCAPE
)
?
viewport
[
3
]
:
viewport
[
2
],
(
gl2ps
.
options
&
GL2PS_LANDSCAPE
)
?
viewport
[
2
]
:
viewport
[
3
],
(
gl2ps
.
options
&
GL2PS_LANDSCAPE
)
?
viewport
[
1
]
:
viewport
[
0
],
(
gl2ps
.
options
&
GL2PS_LANDSCAPE
)
?
viewport
[
0
]
:
viewport
[
1
],
(
gl2ps
.
options
&
GL2PS_LANDSCAPE
)
?
viewport
[
3
]
:
viewport
[
2
],
(
gl2ps
.
options
&
GL2PS_LANDSCAPE
)
?
viewport
[
2
]
:
viewport
[
3
]);
if
(
gl2ps
.
options
&
GL2PS_LANDSCAPE
)
fprintf
(
gl2ps
.
stream
,
"%d 0 translate 90 rotate
\n
"
,
viewport
[
3
]);
fprintf
(
gl2ps
.
stream
,
"%%%%EndPageSetup
\n
"
"mark
\n
"
"gsave
\n
"
"1.0 1.0 scale
\n
"
,
gl2ps
.
title
,
GL2PS_VERSION
,
gl2ps
.
producer
,
ctime
(
&
now
),
viewport
[
2
],
viewport
[
3
],
viewport
[
0
],
viewport
[
1
],
viewport
[
2
],
viewport
[
3
]);
"1.0 1.0 scale
\n
"
);
if
(
gl2ps
.
options
&
GL2PS_DRAW_BACKGROUND
){
if
(
gl2ps
.
colormode
==
GL_RGBA
||
gl2ps
.
colorsize
==
0
)
...
...
@@ -1374,9 +1385,9 @@ GLint gl2psEndPage(GLvoid){
GL2PSbsptree
*
root
;
GL2PSxyz
eye
=
{
0.
,
0.
,
100000.
};
GLint
shademodel
,
res
;
void
(
*
phead
)(
GLvoid
);
void
(
*
pprim
)(
GLvoid
*
a
,
GLvoid
*
b
);
void
(
*
pfoot
)(
GLvoid
);
void
(
*
phead
)(
GLvoid
)
=
0
;
void
(
*
pprim
)(
GLvoid
*
a
,
GLvoid
*
b
)
=
0
;
void
(
*
pfoot
)(
GLvoid
)
=
0
;
glGetIntegerv
(
GL_SHADE_MODEL
,
&
shademodel
);
gl2ps
.
shade
=
(
shademodel
==
GL_SMOOTH
);
...
...
This diff is collapsed.
Click to expand it.
Graphics/gl2ps.h
+
11
−
2
View file @
39708f6e
...
...
@@ -2,7 +2,7 @@
* GL2PS, an OpenGL to PostScript Printing Library
* Copyright (C) 1999-2002 Christophe Geuzaine
*
* $Id: gl2ps.h,v 1.1
6
2002-0
1-22 16:54:16
geuzaine Exp $
* $Id: gl2ps.h,v 1.1
7
2002-0
2-05 20:13:51
geuzaine Exp $
*
* E-mail: geuz@geuz.org
* URL: http://www.geuz.org/gl2ps/
...
...
@@ -34,7 +34,7 @@
#endif
#include
<GL/gl.h>
#define GL2PS_VERSION 0.5
1
#define GL2PS_VERSION 0.5
2
#define GL2PS_NONE 0
/* Output file format */
...
...
@@ -56,6 +56,7 @@
#define GL2PS_BEST_ROOT (1<<3)
#define GL2PS_OCCLUSION_CULL (1<<4)
#define GL2PS_NO_TEXT (1<<5)
#define GL2PS_LANDSCAPE (1<<6)
/* Arguments for gl2psEnable/gl2psDisable */
...
...
@@ -161,6 +162,10 @@ typedef struct {
/* public functions */
#ifdef __cplusplus
extern
"C"
{
#endif
GLvoid
gl2psBeginPage
(
char
*
title
,
char
*
producer
,
GLint
format
,
GLint
sort
,
GLint
options
,
GLint
colormode
,
GLint
colorsize
,
GL2PSrgba
*
colormap
,
...
...
@@ -172,4 +177,8 @@ GLvoid gl2psDisable(GLint mode);
GLvoid
gl2psPointSize
(
GLfloat
value
);
GLvoid
gl2psLineWidth
(
GLfloat
value
);
#ifdef __cplusplus
};
#endif
#endif
This diff is collapsed.
Click to expand it.
benchmarks/2d/wing-splines.geo
0 → 100644
+
616
−
0
View file @
39708f6e
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