BilinearFastBox.hpp
Go to the documentation of this file.
1 
35 #ifndef _LVR2_RECONSTRUCTION_BILINEARFASTBOX_H_
36 #define _LVR2_RECONSTRUCTION_BILINEARFASTBOX_H_
37 
40 
41 namespace lvr2
42 {
43 
44 template<typename BaseVecT>
45 class BilinearFastBox : public FastBox<BaseVecT>
46 {
47 public:
48  BilinearFastBox(BaseVecT center);
49  virtual ~BilinearFastBox();
50 
62  virtual void getSurface(
64  vector<QueryPoint<BaseVecT>>& query_points,
65  uint &globalIndex
66  );
67  virtual void getSurface(
68  BaseMesh<BaseVecT>& mesh,
69  vector<QueryPoint<BaseVecT>>& query_points,
70  uint& globalIndex,
72  vector<unsigned int>& duplicates,
73  float comparePrecision
74  );
75 
76  void optimizePlanarFaces(BaseMesh<BaseVecT>& mesh, size_t kc);
77 
78  // the point set surface
80 
81 
82 private:
83  vector<FaceHandle> m_faces;
84  int m_mcIndex;
85 
86 };
87 
88 template<typename BaseVecT>
89 struct BoxTraits<BilinearFastBox<BaseVecT>>
90 {
91  static const string type;
92 };
93 
94 
95 
96 } // namespace lvr2
97 
98 #include "lvr2/reconstruction/BilinearFastBox.tcc"
99 
100 #endif /* _LVR2_RECONSTRUCTION_BILINEARFASTBOX_H_ */
virtual ~BilinearFastBox()
BilinearFastBox(BaseVecT center)
HalfEdgeMesh< Vec > mesh
Interface for triangle-meshes with adjacency information.
Definition: BaseMesh.hpp:140
A dynamic bounding box class.
Definition: BoundingBox.hpp:49
A query Vector for marching cubes reconstructions. It represents a Vector in space together with a &#39;d...
Definition: QueryPoint.hpp:48
vector< FaceHandle > m_faces
virtual void getSurface(BaseMesh< BaseVecT > &mesh, vector< QueryPoint< BaseVecT >> &query_points, uint &globalIndex)
Performs a local reconstruction according to the standard Marching Cubes table from Paul Bourke...
void optimizePlanarFaces(BaseMesh< BaseVecT > &mesh, size_t kc)
unsigned int uint
Definition: Model.hpp:46
static PointsetSurfacePtr< BaseVecT > m_surface
std::shared_ptr< PointsetSurface< BaseVecT > > PointsetSurfacePtr
A volume representation used by the standard Marching Cubes implementation.
Definition: FastBox.hpp:65


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:06