Re: Adding and removing polygons

New Message Reply Date view Thread view Subject view Author view

From: Marcin Romaszewicz (marcin++at++asmodean.engr.sgi.com)
Date: 02/15/2001 11:59:43


You could create a pfBox (or pfSphere, pfPolytope) and query it as to
whether it contains particular points. Just test the vertices of your
polygons one by one to see if the polygon is contained within the
bounding region. If your polygons are complex, as a first approximation
intersect the bounding box of the polygon against the bounding region. All
this is covered in the pfBox, pfSphere and pfPolytope man pages.

If you're adding and removing polygons within geosets in a multi-processed
program, then you need to use pfFluxes to make your changes MP-safe and
frame synchronous. If you're just modifying the geosets that geodes
contain, that's already MP-safe.

-- Marcin

On Thu, 15 Feb 2001, Tim Woodard wrote:

> Is there a way in performer to query which polygons fall into a given
> bounding box? Given these polygons, I need the ability to add remove
> polygons dynamically. There's mention of this in the performer programmer's
> guide in regard to using flux buffers, but no details are provided. What
> are some possible approaches?
>
> Thanks!
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Feb 15 2001 - 11:59:50 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.