![]() Home Overview FAQ Documentation Download Mailing List Geomview For Windows? Support Users Development Bug Reporting Contributing Contact Us Sponsors
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [ REQ 5359]: PS Snapshot bug (no z buffer?)
I loaded the geomview file "tetr" to make a postscript file of a tetrahedron.
Saving it with PS Snapshot produced the file below, which draws the faces
in the wrong order. It is easy enough in this case to reorder the file by
hand, and I guess I understand that the algorithm is probably just ordering
faces by the z positions of their centers. It is too much to ask PS Snapshot
to do everything right for intersecting faces. But in cases like this, where
two faces _share an edge_ it is easy enough to do the really correct ordering.
-John
-------------------------------------------------------------------------------
%!PS-Adobe-2.0 EPSF-1.2
%%Title: PSSnapshot
%%Creator: pssnap.c
%%CreationDate: Thu Apr 20 10:32:07 1995
%%For: sullivan
%%Pages: 0 1
%%BoundingBox: 48 138 563 653
%%EndComments
currentdict /edgecolor known not { /edgecolor {0 setgray} def } if
/drawpoly { setgray newpath moveto count 4 ge {
count 2 idiv { lineto } repeat closepath
gsave fill grestore edgecolor stroke }
{ count 2 eq {lineto} {0 0 rlineto} ifelse stroke }
ifelse
} def
/NaN { 0 } def
306.000000 396.000000 translate 252.000000 252.000000 scale
.001 setlinewidth
1 setlinejoin
1 setlinecap
newpath -1.0 -1.0 moveto
2.0 0 rlineto 0 2.0 rlineto 2.0 neg 0 rlineto
closepath clip newpath
%% Min: -1.0 -1.0 Max: 1.0 1.0
gsave
0.780102 -0.491499
-0.617381 -0.444541
-0.010307 0.747273
0.28
drawpoly
-0.010307 0.747273
-0.617381 -0.444541
-0.252828 -0.610557
0.16
drawpoly
-0.252828 -0.610557
-0.617381 -0.444541
0.780102 -0.491499
0.00
drawpoly
0.780102 -0.491499
-0.010307 0.747273
-0.252828 -0.610557
0.31
drawpoly
grestore
showpage
|
||
|
Home | Overview | FAQ | Documentation | Support | Download | Mailing List Windows? | Development | Bug Reporting | Contributing | Contact Us | Sponsors |
|||
|
site hosted by |
|||