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 #67350 is a reply to message #67340] Wed, 15 July 2009 09:18 Go to previous messageGo to previous message
rtowler is currently offline  rtowler
Messages: 28
Registered: June 2006
Junior Member
On Jul 15, 5:32 am, David Fanning <n...@dfanning.com> wrote:
> 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
>

XOBJVIEW will automatically determine the extents of all objects
contained in the model hierarchy and it sets up the view such that it
is centered on these extents. So usually position is not an issue.

oModel = obj_new('IDLgrModel')
s = obj_new('orb',color=[250,250,250],radius=0.25,shading=1, $
POS=[4,13,10], select_target=0)
oModel->add, s
t = obj_new('orb',color=[250,250,250],radius=0.25,shading=1, $
POS=[14,23,3], select_target=0)
oModel->add, t

XOBJVIEW, oModel


I suspect there is something else going on. Post more of your code.

-Rick
[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 04:46:12 PDT 2025

Total time taken to generate the page: 1.03820 seconds