h o m e d o c u m e n t a t i o n c l a s s h i e r a r c h y

Nature.h

Go to the documentation of this file.
00001 //
00002 //  Filename         : Nature.h
00003 //  Author(s)        : Emmanuel Turquin
00004 //  Purpose          : Different natures for both vertices and edges
00005 //  Date of creation : 01/07/2003
00006 //
00008 
00009 
00010 //
00011 //  Copyright (C) : Please refer to the COPYRIGHT file distributed 
00012 //   with this source distribution. 
00013 //
00014 //  This program is free software; you can redistribute it and/or
00015 //  modify it under the terms of the GNU General Public License
00016 //  as published by the Free Software Foundation; either version 2
00017 //  of the License, or (at your option) any later version.
00018 //
00019 //  This program is distributed in the hope that it will be useful,
00020 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00021 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00022 //  GNU General Public License for more details.
00023 //
00024 //  You should have received a copy of the GNU General Public License
00025 //  along with this program; if not, write to the Free Software
00026 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00027 //
00029 
00030 #ifndef  NATURE_H
00031 # define NATURE_H
00032 
00040 namespace Nature {
00041   
00042   typedef unsigned short VertexNature;
00043 
00045   static const VertexNature POINT               = 0;            // 0
00047   static const VertexNature S_VERTEX            = (1 << 0);     // 1
00049   static const VertexNature VIEW_VERTEX         = (1 << 1);     // 2
00051   static const VertexNature NON_T_VERTEX        = (1 << 2);     // 4
00053   static const VertexNature T_VERTEX            = (1 << 3);     // 8
00055   static const VertexNature CUSP                = (1 << 4);     // 16
00056 
00057   typedef unsigned short EdgeNature;
00059   static const EdgeNature NO_FEATURE            = 0;            // 0
00061   static const EdgeNature SILHOUETTE            = (1 << 0);     // 1
00063   static const EdgeNature BORDER                = (1 << 1);     // 2
00065   static const EdgeNature CREASE                = (1 << 2);     // 4
00067   static const EdgeNature RIDGE                 = (1 << 3);     // 8
00069   static const EdgeNature VALLEY                = (1 << 4);     // 16
00071   static const EdgeNature SUGGESTIVE_CONTOUR    = (1 << 5);     // 32
00072 
00073 } // end of namespace Nature
00074 
00075 #endif // NATURE_H