template<int offset, int stepe, int stepm>
static void FX::TnFXGraph::ReduceE ( QMemArray< FXVec3f > &  out,
const QMemArray< FXVec3f > &  in 
) [inline, static, inherited]

Translates a 3d array into a 2d array by elimination of a coordinate, stepping stepe at the end and stepm in the middle.

Definition at line 140 of file TnFXGraph.h.

References FX::QMemArray< type, allocator >::count(), FX::QMemArray< type, allocator >::data(), and FX::QMemArray< type, allocator >::resize().

00141     {
00142         out.resize(in.count()*3/(stepe+stepm));
00143         FXfloat *FXRESTRICT o=(FXfloat *) out.data();
00144         const FXfloat *FXRESTRICT i=(const FXfloat *) in.data();
00145         for(FXuint n=offset; n<in.count()*3; n+=stepe)
00146         {
00147             *o++=i[n];
00148             *o++=i[n+stepm];
00149             *o++=0;
00150         }
00151     }


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:37:48 2009 for TnFOX by doxygen v1.4.7