Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ethan A Merritt Newsgroups: comp.graphics.apps.gnuplot Subject: Re: How to properly visualize polygons by splot ? Date: Tue, 02 Jun 2015 08:33:04 -0700 Organization: A noiseless patient Spider Lines: 25 Message-ID: References: <47c24b68-c5f7-49d0-8b95-3c6bd60edce7@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Tue, 2 Jun 2015 15:31:52 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="7bbfccb08e3cb0f92ebf95516f5f5a81"; logging-data="19133"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18bmrMgWXhIfpc8a7crfaoT" User-Agent: KNode/4.12.5 Cancel-Lock: sha1:WFN3/zWyMkXEhJ9+RAeHnKU5MWc= Xref: csiph.com comp.graphics.apps.gnuplot:2917 Lukas Placek wrote: > Hello everybody, > I am trying to visualize some polygons in 3D. When I rotate the > visualized polygons, the rendering is obviously done wrongly. It looks > like the polygons are drawn in the order I defined them and not from > back to front. Correct. Gnuplot draws objects in the order the are defined, not based on coordinates. Also gnuplot does not calculation occlusion of solid objects, except for the case of surfaces drawn with "set hidden3d". > Does anybody know what needs to be done to get the > right rendering ? Thank you very much Lukas > > I draw polygons by this command: > set object 1 polygon from 0.912E-01, 0.331E-01, -0.327E-01 to > 0.913E-01, 0.328E-01, -0.324E-01 to 0.917E-01, 0.327E-01, > -0.323E-01 to 0.917E-01, 0.331E-01, -0.326E-01 to 0.912E-01, > 0.331E-01, -0.327E-01 fillstyle solid border 15 fillcolor rgb > "#8B8989" > > and use splot to view what I have drawn.