00001 /* 00002 * PROPRIETARY INFORMATION. This software is proprietary to 00003 * Side Effects Software Inc., and is not to be reproduced, 00004 * transmitted, or disclosed in any way without written permission. 00005 * 00006 * Produced by: 00007 * Side Effects Software Inc. 00008 * 477 Richmond Street West 00009 * Toronto, Ontario, M5V 3E7 00010 * Canada 00011 * 416-504-9876 00012 * 00013 * NAME: GDT Library (C++) 00014 * 00015 * COMMENTS: 00016 * 00017 */ 00018 00019 #ifndef __GDT_MirrorTransform_h__ 00020 #define __GDT_MirrorTransform_h__ 00021 00022 #include "GDT_API.h" 00023 #include "GDT_SymmetryTransform.h" 00024 00025 #include <GU/GU_Detail.h> 00026 #include <UT/UT_PointTree.h> 00027 00028 class GDT_API GDT_MirrorTransform : public GDT_SymmetryTransform 00029 { 00030 public: 00031 GDT_MirrorTransform(); 00032 void rebuild(const GU_Detail *gdp); 00033 void setMirrorProperties(UT_Vector3 &axis, UT_Vector3 &origin, float distance, float threshold); 00034 virtual void transform(int &ptnum, UT_Vector4 &delta); 00035 void clear(); 00036 00037 private: 00038 const GU_Detail *myDetail; 00039 UT_Vector3 myAxis; 00040 UT_Vector3 myOrigin; 00041 float myDistance; 00042 float myThreshold; 00043 UT_PointTree myPointTree; 00044 }; 00045 00046 #endif
1.5.9