35 #ifndef AIMS_MESH_FACET_H 36 #define AIMS_MESH_FACET_H 51 bool equal(
const Facet& other )
const;
60 short*
offset()
const {
return _offset; }
65 void setNeighbor(
Facet** pNeighor,
int nNeighbor );
66 void setNeighbor(
int nNeighbor );
68 Facet** pNeighor )
const;
72 {
return (
const Facet *&)_pNeighbor[ index ]; }
101 delete [] _pNeighbor;
108 return ( (
uint)_type << 29 ) |
109 ( 640000U * (
uint)_location[ 2 ] +
110 800U * (
uint)_location[ 1 ] +
111 (
uint)_location[ 0 ] );
118 return _offset == other.
_offset && _type == other.
_type;
126 delete [] _pNeighbor;
128 _nNeighbor = nNeighbor;
129 _pNeighbor =
new Facet*[ nNeighbor ];
131 memcpy( _pNeighbor, pNeighbor, nNeighbor *
sizeof(
Facet* ) );
138 _nNeighbor = nNeighbor;
141 delete [] _pNeighbor;
143 _pNeighbor =
new Facet*[ nNeighbor ];
152 out <<
"{location=" << thing.
location()
153 <<
", type=" << (int)thing.
type()
154 <<
", offset=" << thing.
offset()
155 <<
", id=" << thing.
id()
158 for (
int n = 0; n < thing.
nNeighbor(); n++ )
const Point3d & location() const
std::ostream & operator<<(std::ostream &out, const Facet &thing)
void setNeighbor(Facet **pNeighor, int nNeighbor)
const Facet *& pNeighbor(int index) const
bool equal(const Facet &other) const
Facet *& pNeighbor(int index)