Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members
CEdge.h
Go to the documentation of this file.00001 #ifndef __cEDGE_h__ 00002 #define __cEDGE_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 // FIXME: Add edge2 member which will point to edge with next vertex. 00021 00022 #include "CList.h" 00023 #include "CPlane.h" 00024 #include "CVertex.h" 00025 00026 //--------------------------------------------------------------------------- 00027 00029 00033 class CEdge : public CVertex 00034 { 00035 00036 public: 00037 00038 CEdge() : CVertex() 00039 { 00040 edge2 = 0; 00041 prev = 0; 00042 next = 0; 00043 } 00044 ~CEdge() 00045 { 00046 00047 } 00048 00049 public: 00050 00051 CPlane plane; 00052 CPlane edge_plane; 00053 CPlane poly_plane; 00054 CEdge* edge2; 00055 00056 public: 00057 00061 void operator=(CEdge& edge) 00062 { 00063 CVertex::operator=(edge); 00064 plane = edge.plane; 00065 edge_plane = edge.edge_plane; 00066 } 00067 00068 public: 00069 00070 CEdge* prev; 00071 CEdge* next; 00072 00073 public: 00074 00078 CEdge* unlink() 00079 { 00080 DLLIST_UNLINK_SELF(); 00081 } 00082 00083 }; 00084 00085 //--------------------------------------------------------------------------- 00086 00087 #endif
Generated on Tue Feb 8 21:59:02 2005 for MarSTDv2004 by
