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

Home » Public Forums » archive » Re: show a use-defined 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: show a use-defined object [message #67355 is a reply to message #67350] Wed, 15 July 2009 05:32 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
danyang writes:

> s = obj_new('orb',color=[250,250,250],radius=0.25,shading=1,$
> POS=[x(i),y(i),z(i)], select_target=0) ;to define a ball
>
> oModel->Add, s
> XOBJVIEW, oModel

You don't tell us where you are trying to position
the object, and my guess (from working with object
graphics in general) is that you are positioning
the object outside the viewplane rectangle. In
any case, to just answer your question, this works:

s = obj_new('orb',color=[250,250,250],radius=0.25,shading=1)
XOBJVIEW, s

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Printing Backspace Character on Windows Workbench
Next Topic: array

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

Current Time: Sat Oct 11 16:12:08 PDT 2025

Total time taken to generate the page: 1.92630 seconds