Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members
CBezier.h
Go to the documentation of this file.00001 #ifndef __Cbezier_h__ 00002 #define __Cbezier_h__ 00003 00005 // MarSTD version 2004 - (c)2004 - Marcel Smit // 00006 // // 00007 // [email protected] // 00008 // [email protected] // 00009 // // 00010 // This code may not be used in a commercial product without my // 00011 // permission. If you redistribute it, this message must remain // 00012 // intact. If you use this code, some acknowledgement would be // 00013 // appreciated. ;-) // 00015 00017 00018 00019 00020 #include "CVector.h" 00021 #include "CPoly.h" 00022 00023 //--------------------------------------------------------------------------- 00024 00026 00055 class CBezier3 00056 { 00057 00058 public: 00059 00063 CBezier3(); 00067 ~CBezier3(); 00068 00069 public: 00070 00071 CVector p[4][4]; 00072 00073 public: 00074 00075 CVector** v; 00076 int resolution; 00077 00078 public: 00079 00085 void generate(int a_resolution = 7); 00091 void translate(CVector delta); 00092 00093 public: 00094 00099 void toMesh(CMesh& mesh); 00100 00101 }; 00102 00103 //--------------------------------------------------------------------------- 00104 00105 #endif
Generated on Tue Feb 8 21:59:02 2005 for MarSTDv2004 by
