Export["test.pdf",
Graphics3D[{
Polygon[Table[Chop[{Cos[t], Sin[t], 0}], {t, 0, 2 Pi, 0.1}]]
}]
]
results in a PDF file which has lots of extra lines on the surface.
Is there a way to get rid of them?
-- m
In this specific case I cannot see any lines with Adobe Reader 8.1.2.
However I think I know the problem that you are referring to. The lines
are an artifact of antialiasing, so there is not way to get rid of them
(apart from using a different PDF reader).
For some reason Mathematica likes to break up large polygons into many
small ones and their edges become visible.
See this thread:
The lines are rendering artifacts caused by the fact that whatever PDF
viewer you are using is antialiasing the graphic. Your options are
either to disable antialiasing in the viewer application, or to force
Mathematica to rasterize the image (by choosing "Use Bitmap
Representation" from the "Graphics Containing Smooth Shading" popup
menu in the "Options" button dialog in the "Save Selection As"
dialog).
-Rob
there is no any extra lines on the surface. are you trying to get rid
of the box? if that what you are looking for then
use:
Export["test.pdf",
Graphics3D[{Polygon[
Table[Chop[{Cos[t], Sin[t], 0}], {t, 0, 2 Pi, 0.1}]]},
Boxed -> False]]
not with Mathematica 6.0.2
Regards
Jens
I guessed it was antialiasing. It very much
destroys the esthetics of these graphics I'm
working on (sets of symmetry planes of polyhedra,
each one drawn as a disc), sadly, for PDF output.
I guess I was wondering if there is some way
to tell Mathematica to work harder and not use that
many polygons. Rasterizing in order to include
in a PDF seems like a very wrong path...
Oh well.
-- m
On Mar 20, 8:00 am, Mariano Su=E1rez-Alvarez
<mariano.suarezalva...@gmail.com> wrote:
> On Mar 19, 7:22 am, Szabolcs Horv=E1t <szhor...@gmail.com> wrote:
>
>
>
> > Mariano Su=E1rez-Alvarez wrote:
> > > Simple code as
>
> > > Export["test.pdf",
> > > Graphics3D[{
> > > Polygon[Table[Chop[{Cos[t], Sin[t], 0}], {t, 0, 2 Pi, 0.1}]]
> > > }]
> > > ]
>
> > > results in a PDF file which has lots of extra lines on the surface.
>
> > > Is there a way to get rid of them?
>
> > In this specific case I cannot see any lines with Adobe Reader 8.1.2.
> > However I think I know the problem that you are referring to. The lines=
> > are an artifact of antialiasing, so there is not way to get rid of them
> > (apart from using a different PDF reader).
>
> > For some reason Mathematica likes to break up large polygons into many
> > small ones and their edges become visible.
>
> > See this thread:
>