Salut Christopher,
That's what I was afraid of, and rebuilding the array to be CValue compatible 
make multithreading useless.
The goal was to spit a 2D array
to create an ICE attribute in python, as it's way simplier than in C++. But 
I'll try to create it in C++ again tomorrow.
Merci!!
-A

Le 24 sept. 2013 à 19:17, Christopher Crouzet <[email protected]> a 
écrit :

> I'm no expert and can't be sure but at first glance I'd say no - even if the 
> internal structures of both the `std::vector` and the `CValueArray` were 
> identical, or if the `CValueArray` was just a simple wrap of a `std:vector`, 
> it would be unsafe to do a type cast, especially if you had to modify the 
> data afterwards.
> 
> If explicit conversion methods were provided by the Softimage API, like in 
> the `CString` class, it probably would do a copy anyways of the entire array.
> Then it would possibly provide a pointer to the internal structure like what 
> the `CString::GetWideString` method does.
> 
> There might be a workaround to use CValueArray with OpenMP but unfortunately 
> I don't know much about this (and don't have access to Softimage to try 
> things out), sorry.
> 
> 
> Cheers!
> Christopher.
> 
> 
> 
> On 24 September 2013 10:38, Ahmidou Lyazidi <[email protected]> wrote:
> Hello list people,
>  I'm working on a C++ command and I'm using openMP to multitrhead the 
> computation.
> As Softimage Arrays don't play nice with openMP I'm stuck with STD::vectors.
> Now I would like that command to output that vector (that is multidimentional 
> by the way),
> so I was wondering if there was a magical wat to cast it in a CValue in a 
> valid way without
> rebuilding the whole thing as CValues Arrays?
> Thanks!
> 
> -----------------------------------------------
> Ahmidou Lyazidi
> Director | TD | CG artist
> http://vimeo.com/ahmidou/videos
> http://www.cappuccino-films.com
> 
> --------------------------
> To unsubscribe: mail [email protected] with subject 
> "unsubscribe" and reply to the confirmation email.
> 
> --------------------------
> To unsubscribe: mail [email protected] with subject 
> "unsubscribe" and reply to the confirmation email.
--------------------------
To unsubscribe: mail [email protected] with subject 
"unsubscribe" and reply to the confirmation email.

Reply via email to