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

Home » Public Forums » archive » POLYFILL / Z-Buffer Bug ?
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
POLYFILL / Z-Buffer Bug ? [message #18883] Sun, 13 February 2000 00:00
sharatc is currently offline  sharatc
Messages: 1
Registered: February 2000
Junior Member
I've noticed that when I use the Z-Buffer to store several moving
polygons, that if any polygon has only one vertex within the data
window, then using the /Pclip option causes the POLYFILL routine to
crash with the following diagnostic:

% POLYFILL: No valid points, must have at least 2 distinct points

This happens specifically when the polygon in question is just about to
move outside the data window.

Has anyone else observed this and if so, is there a fix for it?

Interestingly this dosent happen if I'm NOT using the Z-Buffer!

I've also found another anomaly with POLYFILL in that if the polygon has
vertices far outside the data window (beyond some cutoff limit), then
POLYFILL fills the COMPLEMENT of the intersection of the data-window and
the polygon (with clipping), rather than the intersection itself!!

Again, has anyone else noticed this. The fix that I use consists of
simply scaling the distant vertices (that violate the empirically
determined cutoff criteria) back along the lines joining them and their
corresponding "visible" neighbor vertices. As you can imagine, this
tends to slow down a dynamic simulation quite a bit!


Sent via Deja.com http://www.deja.com/
Before you buy.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Brains Wired Differently Was: REPLICATE with arrays
Next Topic: Superscripts in IDL [x-y]title

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

Current Time: Fri Oct 10 19:05:14 PDT 2025

Total time taken to generate the page: 0.47946 seconds