THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/10/2006 at 06:12, xxxxxxxx wrote:
Cinema 4D Version: 9.6
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
the docs say it´s not allowed to access the UVW data of an UVW tag directly.
The problem I have is that I cannot allocate an UVW tag for my polygon object directly, as the polygon count is dynamic and therefore impossible to allocate the correct UVW data count beforehand. And allocating the UVW tag after the polygon creation and filling it using the Set() method would require another loop thru all the polygons which is not feasible concerning performance.
Or does PolygonObject::ResizeObject() also change the UVW tag count? (which I don´t think)
So is there a way to set a dynamically allocated array of UVWStruct data directly to an UVWTag?
On 09/10/2006 at 02:23, xxxxxxxx wrote:
Anybody? I need a solution for this urgently! My client is waiting! What about the new plugincafe support member. I thought this would speed up things a little.
On 09/10/2006 at 11:03, xxxxxxxx wrote:
Afaics this is not possible, unless you somehow want to hack the GetDataAdress() array. I haven't tried it myself, so I don't know what its format is nor if the warning in the docs is warranted. Nevertheless, I've sent a mail to the developers asking if there's a workaround (other than the obvious one you've already stated: using the Set() function).
On 09/10/2006 at 11:49, xxxxxxxx wrote:
Thank you Mikael!
On 13/10/2006 at 03:21, xxxxxxxx wrote:
So, what do the devs say?
On 13/10/2006 at 21:46, xxxxxxxx wrote:
The answer is that there's nothing bad that would happen in the current version if you access the data through GetDataAddress(). The reason for the warning is that the format has changed in the past and may do so in the future. So I would recommend having a version check around the hack, defaulting to the safe Set() method for other versions.
On 14/10/2006 at 02:54, xxxxxxxx wrote:
Great! Thank you Mikael!