Hi Aitor,
Aitor Moreno wrote:
Hi everyone,
I have a problem copying an existing geometry in a Geometry Core
derived class (using the fcd editor), having some extra functionality.
I need to copy the existing data in a "standard" geometry core to my
own one using something like this:
*beginEditCP(myGeometryCore, ......*/FieldMasks/*)*
*
**myGeometryCore**->setPositions(a_GeometryPtr_Node->getPositions()->clone());
*
*
**myGeometryCore**->setIndices(a_GeometryPtr_Node->getIndices()->clone());
*
*
**myGeometryCore**->setTypes(a_GeometryPtr_Node->getTypes()->clone()); *
*
**myGeometryCore**->setLengths(a_GeometryPtr_Node->getLengths()->clone());
*
*
**myGeometryCore**->setNormals(a_GeometryPtr_Node->getNormals()->clone());
*
*
**myGeometryCore**->setTexCoords2(a_GeometryPtr_Node->getTexCoords2()->clone());
**
endEditCP(**myGeometryCore**, ......*/FieldMasks/*)*
but when I run the code, it crashes and when I dump the derived node,
it is empty. However, the dump of /a_GeometryPtr_Node/ is ok.
...
Any idea or suggestions?
Not really, that should work just fine. Can you tell us a little more
about your new Geometry? What did you add? Could you send me the fcd
file for it (I won't be able to do anything with it until the end of
next week, but if there is something obvious I might see it)? It would
also be useful to get an idea of where it crashes, what does the
debugger say?
Dirk
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users