shape_doc 0.1
|
00001 /***************************************************************************** 00002 * M a t h e m a g i x 00003 ***************************************************************************** 00004 * Surface 00005 * 2008-03-21 00006 * Julien Wintz 00007 ***************************************************************************** 00008 * Copyright (C) 2006 INRIA Sophia-Antipolis 00009 ***************************************************************************** 00010 * Comments : 00011 ****************************************************************************/ 00012 00013 # ifndef SURFACE_H 00014 # define SURFACE_H 00015 00016 # include <shape/bounding_box.hpp> 00017 # include <shape/shape.hpp> 00018 00019 # define TMPL template<class V> 00020 //==================================================================== 00021 namespace mmx { 00022 namespace shape { 00023 00024 TMPL struct surface; 00025 //-------------------------------------------------------------------- 00026 struct surface_def {}; 00027 00028 template<> struct use<surface_def> { 00029 typedef surface<double> Surface; 00030 }; 00031 //-------------------------------------------------------------------- 00032 TMPL 00033 class surface : public SHAPE_OF(V) 00034 { 00035 public: 00036 surface(void): SHAPE_OF(V)() {} 00037 00038 virtual ~surface(void) {} 00039 } ; 00040 00041 } ; // namespace shape 00042 } ; // namespace mmx 00043 //==================================================================== 00044 # undef TMPL 00045 # undef Shape 00046 # endif // SURFACE_H