On 19/04/2015 at 12:13, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 15
Platform: Mac OSX ;
Language(s) : C++ ;
---------
I'm writing a plugin that uses arrays of Vector like this:
Vector* point_list=NULL;
...
point_list=new Vector[n_elements];
...
delete [] point_list;
I access these arrays of Vector elements in the usual way:
value=point_list[i];
and
point_list[i]=value;
Is this the fastest method to deal with a list of Vector values?
Is there a more efficient way?
Because I have to deal with, sometimes, HUGE amounts of vectors.
And to create a spline I use this:
SplineObject* my_spline = SplineObject::Alloc(n_points, spline_type);
Vector* padr = my_spline->GetPointW();
for (LONG i=0; i<n_points; i++) padr[i]=point_list[i];
Is there any faster way?