[osg-submissions] osg::Object::clone
Robert Osfield
robert.osfield at gmail.com
Fri Jun 6 06:53:31 PDT 2008
Hi Valery,
On Fri, Jun 6, 2008 at 2:51 PM, Валерий Быков <valery.bickov at gmail.com> wrote:
> Thanks for answer, it is good thought that clone() is used for copying
> of objects with unknown type, but in my example I don't know exact type
> of copied Transform and therefore can't copy it directly.
What you could do is write a macro or a template functor for cloning
objects - to hide the dynamic_cast<> if you really want to write less
code.
Robert.
More information about the osg-submissions
mailing list