mirror of
https://github.com/lgfischer/dcel.git
synced 2026-11-16 00:07:05 -03:00
The first commit
This commit is contained in:
commit
907922fdee
45 files changed
+7594
No files matched your search
@@ -0,0 +1,58 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright Leonardo Fischer 2011 - http://coderender.blogspot.com
|
||||
//
|
||||
// Distributed under the licence available in the accompanying file
|
||||
// LICENCE.txt. Please read it before use this code.
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef DCEL_Face_h
|
||||
#define DCEL_Face_h
|
||||
|
||||
//#include <cassert>
|
||||
|
||||
template<class VertexDataT, class HalfEdgeDataT, class FaceDataT>
|
||||
class HalfEdgeT;
|
||||
|
||||
template<class VertexDataT, class HalfEdgeDataT, class FaceDataT>
|
||||
class FaceT
|
||||
{
|
||||
typedef HalfEdgeT<VertexDataT, HalfEdgeDataT, FaceDataT> HalfEdge;
|
||||
typedef FaceT<VertexDataT, HalfEdgeDataT, FaceDataT> Face;
|
||||
|
||||
public:
|
||||
|
||||
FaceT():
|
||||
boundary( NULL )
|
||||
{
|
||||
};
|
||||
|
||||
inline HalfEdge* getBoundary() const
|
||||
{
|
||||
return this->boundary;
|
||||
};
|
||||
|
||||
inline void setBoundary(HalfEdge* bound)
|
||||
{
|
||||
//assert( this );
|
||||
this->boundary = bound;
|
||||
};
|
||||
|
||||
inline FaceDataT& getData()
|
||||
{
|
||||
return data;
|
||||
};
|
||||
|
||||
inline const FaceDataT& getData() const
|
||||
{
|
||||
return data;
|
||||
};
|
||||
|
||||
protected:
|
||||
private:
|
||||
HalfEdge* boundary;
|
||||
FaceDataT data;
|
||||
};
|
||||
|
||||
#endif//DCEL_Face_h
|
||||
Reference in new issue
Block a user