// octreeFace.h: interface for the octreeFace class. // ////////////////////////////////////////////////////////////////////// #ifndef __OCTREEFACE_H__ #define __OCTREEFACE_H__ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class octreeFace { public: octreeFace(); virtual ~octreeFace(); float evaluateFace(float x,float y); //evaluate the curve at (x,y), where 0<= x <=1, y float setABC(float a1, float a2, float a3, float a4, float a5, float a6, float a7, float a8, float a9); void computeABCFromSamples(float d1, float d2, float d3, float d4, float d5, float d6, float d7, float d8, float d9);//compute a,b and c from sample points on the edge static void decompose(int quadrant, octreeFace& bigFace, octreeFace& smallFace); float getC(int index){ return m_c[index];} void setC(int index, float v){ m_c[index] = v;} private: float m_c[9]; }; #endif // __OCTREEFACE_H__