33 lines
867 B
C++
33 lines
867 B
C++
#ifndef _MESHFRAMES_HPP_
|
|
#define _MESHFRAMES_HPP_
|
|
#include <iostream.h>
|
|
#include <fstream.h>
|
|
#include <mdiwin/vector.hpp>
|
|
#include <mdiwin/catmull.hpp>
|
|
|
|
class MeshFrames
|
|
{
|
|
public:
|
|
typedef Vector<FloatPairs> VectoredPairs;
|
|
MeshFrames();
|
|
~MeshFrames();
|
|
WORD interpolateMeshFrames(Vector<FloatPairs> &srcPairs,Vector<FloatPairs> &dstPairs,Vector<VectoredPairs> &meshVectors,int nFrames);
|
|
void dumpMeshFrames(Vector<VectoredPairs> &meshVectors);
|
|
private:
|
|
enum{MaxTempPairs=2,SourceTempPair=0,DestTempPair=1};
|
|
void distributeMeshPoints(float srcPoint,float dstPoint,Vector<FloatPairs> &resamplePairs);
|
|
void replaceMeshColumn(Vector<VectoredPairs> &meshVectors,Vector<FloatPairs> &resamplePairs,int meshRow);
|
|
WORD distanceBetween(FloatPairs &srcPair,FloatPairs &dstPairs)const;
|
|
};
|
|
|
|
inline
|
|
MeshFrames::MeshFrames()
|
|
{
|
|
}
|
|
|
|
inline
|
|
MeshFrames::~MeshFrames()
|
|
{
|
|
}
|
|
#endif
|