Copy and append primitives from one GU_Detail to another

   2470   1   1
User Avatar
Member
5 posts
Joined: Jan. 2011
Offline
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
User Avatar
Member
255 posts
Joined: Aug. 2009
Offline
yongningbrg
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
GU_Detail* temp = new GU_Detail();
//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]
  • Quick Links