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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Draw a point in 3D graphic object ? [message #30273] Thu, 18 April 2002 06:27 Go to next 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
Re: Draw a point in 3D graphic object ? [message #30342 is a reply to message #30273] Fri, 19 April 2002 01:23 Go to previous message
xavier.presseq is currently offline  xavier.presseq
Messages: 2
Registered: April 2002
Junior Member
David Fanning <david@dfanning.com> wrote in message news:<MPG.1728778c2f08dcaa989896@news.frii.com>...
> 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

Thank you for for answer.
I have found my problem, I use Idl5.2. On highter version, my program
work better and faster with graphic objects like Polyline.
Thank you David.

Xavier
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Fri Oct 10 22:34:48 PDT 2025

Total time taken to generate the page: 0.96312 seconds