vtf-logo

tile.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00008 #if !defined(__geom_mesh_simplicial_tile_h__)
00009 #define __geom_mesh_simplicial_tile_h__
00010 
00011 #include "../iss/tile.h"
00012 #include "SimpMeshRed.h"
00013 
00014 #include <iostream>
00015 
00016 #include <cassert>
00017 #include <cmath>
00018 
00019 BEGIN_NAMESPACE_GEOM
00020 
00022 
00034 template<int N, 
00035          int M,
00036          typename T,
00037          template<class> class Vertex,
00038          template<class> class Cell,
00039          template<class,class> class Container>
00040 inline
00041 void
00042 tile(const BBox<N,T>& domain, const T length,
00043      SimpMeshRed<N,M,T,Vertex,Cell,Container>* mesh) {
00044   IndSimpSet<N,M,true,T> iss;
00045   tile(domain, length, &iss);
00046   // Build the mesh from the indexed simplex set.
00047   mesh->build(iss);
00048 }
00049 
00050 
00052 
00063 template<int N, 
00064          int M,
00065          typename T,
00066          template<class> class Vertex,
00067          template<class> class Cell,
00068          template<class,class> class Container,
00069          class LSF>
00070 inline
00071 void
00072 tile(const BBox<N,T>& domain, const T length, const LSF& f,
00073      SimpMeshRed<N,M,T,Vertex,Cell,Container>* mesh) {
00074   IndSimpSet<N,M,true,T> iss;
00075   tile(domain, length, f, &iss);
00076   // Build the mesh from the indexed simplex set.
00077   mesh->build(iss);
00078 }
00079 
00080 END_NAMESPACE_GEOM
00081 
00082 #endif

Generated on Fri Aug 24 12:55:59 2007 for Computational Geometry Package by  doxygen 1.4.7