Hi,
I need to copy and append primitives from one GU_Detail to another, and I'm using GU_Detail::appendPrimitive(type, source_primitive), but that doesn't seem to copy the existing geometry.
Could some one please give some suggestion?
Thanks!
Yong
Copy and append primitives from one GU_Detail to another
2470 1 1- yongningbrg
- Member
- 5 posts
- Joined: Jan. 2011
- Offline
- cybermax
- Member
- 255 posts
- Joined: Aug. 2009
- Offline
yongningbrgGU_Detail* temp = new GU_Detail();
Hi,
I need to copy and append primitives from one GU_Detail to another, and I'm using GU_Detail::appendPrimitive(type, source_primitive), but that doesn't seem to copy the existing geometry.
Could some one please give some suggestion?
Thanks!
Yong
//fill temp with geo
gdp->copy(*temp, GB_COPY_ADD);
https://vimeo.com/user3251535 [vimeo.com]
https://twitter.com/milansuk [twitter.com]
https://github.com/milansuk [github.com]
https://twitter.com/milansuk [twitter.com]
https://github.com/milansuk [github.com]
-
- Quick Links