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

Home » Public Forums » archive » Re: Draw a point in 3D graphic object ?
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: Draw a point in 3D graphic object ? [message #30273] Thu, 18 April 2002 06:27 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Xavier (xavier.presseq@cesbio.cnes.fr) writes:

> Since one month I use IDL, but I have a basic problem with object.
> I know how make Surface, Volume with a graphic object but I just want
> draw a point in 3D, and I don't know do this.
> I have try with IDLgrPolyline and IDLgrSymbol but, I must draw 5000
> points and rotate or move this object become very slow.
> It's faster for mouvement with IDLgrPolygone but my computer take 30s
> to build the object in memory before draw it.

I think you must be creating a LOT of polylines where one
will do. :-)

I just took my much disparaged FSC_SURFACE program and
replaced the line that creates the surface object with
these lines:

x = Randomu(seed, 5000) * 100
y = Randomu(seed, 5000) * 100
z = Randomu(seed, 5000) * 100

symbol = Obj_New('IDLgrSymbol', 2)
thisSurface = Obj_New('IDLgrPolyline', x, y, z, $
Linestyle=6, Symbol=symbol)

The polyline is created instantly, and the resulting
points rotate in 3D space more or less instantaneously
on my (by now) middle of the road computer.

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Replicate from [1, 148] to [1000, 148]
Next Topic: psmod (colorconverting)

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

Current Time: Sat Oct 11 11:06:15 PDT 2025

Total time taken to generate the page: 0.40005 seconds