Thanks for your reply but I still struggle to copy a material object. May be the solution is so simple that I just do not see it. What I currently try is:
ChunkMaterialPtr newMat = ChunkMaterialPtr::dcast(deepClone(oldMat));
This compiles, seems not to return a NullFC and I can set values on the newMat. But later my program crashes. The way I copy the Material is correct or what am I doing wrong?
Kind regards,
Bjoern
----- Ursprüngliche Nachricht -----
Von: Carsten Neumann <[EMAIL PROTECTED]>
Datum: Dienstag, 16. Oktober 2007, 19:03
Betreff: Re: [Opensg-users] 1.) Materials and scenegraph, 2.) copy of objects
An: [email protected]
> there is also some variants of deepClone which do that, they are
> declared in Source/System/FieldContainer/Impl/OSGNodeImpl.h and
> defined
> in Source/System/FieldContainer/OSGNode.cpp. The variants differ
> in how
> you can specify what types to share instead of deep copy them.
>
> Hope it helps,
> Carsten
>
> -----------------------------------------------------------------
> --------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a
> browser.Download your FREE copy of Splunk now >>
> http://get.splunk.com/_______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
-------------------------------------------------------------------------
Dr. Bjoern Zehner
UFZ Centre for Environmental Research Leipzig-Halle
Permoserstrasse 15
04318 Leipzig
Germany
http://www.ufz.de/index.php?en=5673
Tel: ++49 (341) 235 3979
Fax: ++49 (341) 235 3939
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
