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

Home » Public Forums » archive » Re: Vertices and Polygons
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: Vertices and Polygons [message #20556] Thu, 06 July 2000 00:00
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Larry Busse <ljb@ljbdev.com> writes:

> I have an N-element list of vertices v(3,N) which describe a series of
> points on a surface of a complex object.
>
> Is there an IDL function or method which would sort through this list
> and generate the polygon array that is required by POLYSHADE for doing
> surface rendering?
>
> It's been awhile since I've used IDL so maybe there's a newer object
> oriented approach that you could recommend.

I don't think that a simple list of vertices is enough information to
reconstruct a complex polyhedron, especially if there are some
concavities. [ If you want the complex hull, that's a different
story, but as Chris J. reports, this may not even work right. Doh! ]

Craig


--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
Re: Vertices and Polygons [message #20557 is a reply to message #20556] Thu, 06 July 2000 00:00 Go to previous message
Chris J. is currently offline  Chris J.
Messages: 1
Registered: July 2000
Junior Member
I use MESH_OBJ to do this in direct graphics. Sorry, but I'm
unfamiliar with object graphics so can't give you any help there.

Unfortunately, mesh_obj doesn't always give me the surface I
want, it probably has something to do with the order the
vertices are given. I'm trying to display a convex hull, and
although I know the resulting vertices are correct, the 3D
surface usually has some concavities. So, incidentally, if
anyone knows a way around this, I'd love to hear!

Chris


-----------------------------------------------------------

Got questions? Get answers over the phone at Keen.com.
Up to 100 minutes free!
http://www.keen.com
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Watersheds and Label_Region for 1d
Next Topic: Object graphics scaling on printer

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

Current Time: Wed Oct 08 14:00:56 PDT 2025

Total time taken to generate the page: 0.00478 seconds