comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: IDLgrPolygon with different colors for shading and lines
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: IDLgrPolygon with different colors for shading and lines [message #49454] Wed, 26 July 2006 15:38
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
henders@lanl.gov wrote:
> I need to make a bunch of contiguous 3d triangles using IDLgrPolygon.
> I want the shading color to be blue, and the lines around the triangles
> to be white. It's not clear how to do this since shading uses style=2
> and line uses style=1. Doing both and adding them to the same model
> gives funky results. The obvious way to do it is IDLgrPolygon with
> style=2 to get the blue triangles, and then IDLgrPolyline to get the
> white lines around them, but I'm hoping there's an easier way with just
> IDLgrPolygon. Any suggestions?

Stop hoping for things you can't have :-)

Seriously, what you actually want is *two* IDLgrPolygons, identical
except that one has STYLE=2 for the blue triangles and the other has
STYLE=1 for the lines. Use DEPTH_OFFSET=1 on the filled polygon to avoid
the funky results (stitching artefacts). You could use SHARE_DATA to
minimise memory use (but I have no experience with that myself).



--
Mark Hadfield "Kei puwaha te tai nei, Hoea tahi tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDLgrPolygon with different colors for shading and lines
Next Topic: FFT with NANs in an array

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 20:05:26 PDT 2025

Total time taken to generate the page: 0.31620 seconds