Hi Jelle,

You don't need to move the ode.GeomBox.

You jts have to be careful that the TopoDS_Shape is moved *before* it is
passed to the add_shape method.

Thomas

2010/3/24 Jelle Feringa <jelleferi...@gmail.com>

> A question on the DYN framework.
>
> Let's say that I build a unit cube ( min 0,0,0 max 1,1,1 ) and than move
> the unit cube from the origin to say (3,4,1) by calling
> translate_topods_from_vector.
> After I do so, do I need to move my ode.GeomBox as well in order to shadow
> it correctly, or does the DYN framework takes care of this?
> I suppose I do not, judging from the start_open_loop method, correct?
>
>         d = self.dyn_context.add_shape(self.box_occ)
>         self.box_ode = ode.GeomBox(self.dyn_context._space,
>
> lengths=(self.width,self.depth,self.height)
>                                     )
>         #self.box_ode.setPosition( ( self.position-selfsize).Coord() )
>
>         self.box_ode.setBody(d)
>
> Thanks,
>
> -jelle
>
> _______________________________________________
> Pythonocc-users mailing list
> Pythonocc-users@gna.org
> https://mail.gna.org/listinfo/pythonocc-users
>
>
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to