00001
00002 #ifndef _MESHER_ADAPTER_HPP
00003 #define _MESHER_ADAPTER_HPP
00004
00005 #include "mesher/Mesher.hpp"
00006 #include "mesher/TriSurf.hpp"
00007 #include "mesher/TriSurf$FaceIterator.hpp"
00008 #include "mesher/TriSurf$Node.hpp"
00009 #include "mesher/TriSurf$Face.hpp"
00010 #include "geom/Point.hpp"
00011 #include "geom/PolyLine.hpp"
00012 #include "geom/Facet.hpp"
00013 #include "geom/Declarations.hpp"
00014 #include "jmath/jblas.hpp"
00015 #include <vector>
00016 #include <java/lang/Float.h>
00017 #include <java/util/Vector.h>
00018 #include <list>
00019
00020 namespace jafar {
00021 namespace mesher {
00022 class MesherAdapter {
00024 std::vector<jblas::vecf3> _points;
00026 ::java::util::Vector *_jpoints;
00028 static edu::mines::jtk::mesh::Mesher _mesher;
00030 std::list<jafar::geom::Facet3D> _facets;
00031 ::edu::mines::jtk::mesh::TriSurf$FaceIterator* _surface;
00032 public:
00034 MesherAdapter() : _points(0) {};
00036 MesherAdapter(const std::vector<jblas::vecf3>& points) : _points(points) {};
00038 void build();
00040 void display();
00041 };
00042 };
00043 }
00044
00045 #endif