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

Home » Public Forums » archive » Re: IDLgrPolygon borders
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDLgrPolygon borders [message #35531] Tue, 24 June 2003 10:27 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"Mark Hadfield" wrote in message...
> "David Fanning" wrote in message...
>> M. Katz writes:
>>
>>> With IDLgrPolygon objects, is it possible to have different colors
>>> for the fill and the border line? I'd like to avoid using two
>>> different objects. I'm drawing black borders around solid-colored
>>> regions.
>>
>> I think you are going to have to use IDLgrPolygon with IDLgrPolyline
>> to get what you want, probably with some sort of offset to get the
>> lines on top of the polygons. (Perhaps the offset won't be
>> necessary if you can wait for IDL 6.0 to come out. :-)
>
> The DEPTH_OFFSET keyword, introduced in version 5.5, addresses the
> "getting lines on top of filled objects" issue. Here is an excerpt
> from the documentation for IDLgrPolygon::Init:

6.0 doesn't magically eliminate stitching so I wouldn't hold your breath.
DEPTH_OFFSET or applying an appropriate transform (scale or translation) to
your border object are your two options.

If you simply want a border, take David's approach. If you want polygon
edging, use another polygon object. Use the SHARE_DATA keyword on your
edging (border) object so you don't duplicate vertex data (you will still
need to provide polygon connectivity data though).

-Rick
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Sinc interpolation
Next Topic: Random ordering

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

Current Time: Thu Oct 09 07:23:52 PDT 2025

Total time taken to generate the page: 1.20061 seconds