#include <PolyhedronFace.h>
29 PolyhedronEdge *edge1 =
new PolyhedronEdge(p1, p2,
this);
30 PolyhedronEdge *edge2 =
new PolyhedronEdge(p2, p3,
this);
31 PolyhedronEdge *edge3 =
new PolyhedronEdge(p3, p1,
this);
32 edge1->setNextEdge(edge2);
33 edge2->setNextEdge(edge3);
34 edge3->setNextEdge(
nullptr);
35 edge1->setPrevEdge(edge3);
36 edge2->setPrevEdge(edge1);
37 edge3->setPrevEdge(edge2);
void computeNormalVector()
Definition: PolyhedronFace.cc:70
Coord normalVector
Definition: PolyhedronFace.h:41
static const Coord NIL
Constant with all values set to 0.
Definition: Coord.h:40
void pushEdge(PolyhedronEdge *edge)
Definition: PolyhedronFace.cc:57
bool wrapped
Definition: PolyhedronFace.h:43
Coord outwardNormalVector
Definition: PolyhedronFace.h:40
Coord centroid
Definition: PolyhedronFace.h:42
inet::PolyhedronFace::~PolyhedronFace |
( |
| ) |
|
|
virtual |
66 for (
auto & elem :
edges)
Edges edges
Definition: PolyhedronFace.h:38
void inet::PolyhedronFace::computeCentroid |
( |
| ) |
|
Referenced by pushEdge().
47 unsigned int numberOfPoints =
edges.size();
48 for (Edges::const_iterator eit =
edges.begin(); eit !=
edges.end(); eit++)
50 PolyhedronPoint *point = (*eit)->getP1();
53 ASSERT(numberOfPoints != 0);
Edges edges
Definition: PolyhedronFace.h:38
Coord centroid
Definition: PolyhedronFace.h:42
void inet::PolyhedronFace::computeNormalVector |
( |
| ) |
|
Referenced by PolyhedronFace().
Coord normalVector
Definition: PolyhedronFace.h:41
Edges edges
Definition: PolyhedronFace.h:38
91 for (
auto currEdge :
edges)
94 if (*currEdge == *edge)
Edges edges
Definition: PolyhedronFace.h:38
Coord inet::PolyhedronFace::getCentroid |
( |
| ) |
const |
|
inline |
std::vector<PolyhedronPoint *>& inet::PolyhedronFace::getConflictVector |
( |
| ) |
|
|
inline |
const std::vector<PolyhedronPoint *>& inet::PolyhedronFace::getConflictVector |
( |
| ) |
const |
|
inline |
Points pConflict
Definition: PolyhedronFace.h:39
PolyhedronEdge * inet::PolyhedronFace::getEdge |
( |
unsigned int |
i | ) |
const |
Edges& inet::PolyhedronFace::getEdges |
( |
| ) |
|
|
inline |
const Edges& inet::PolyhedronFace::getEdges |
( |
| ) |
const |
|
inline |
Edges edges
Definition: PolyhedronFace.h:38
Coord inet::PolyhedronFace::getNormalVector |
( |
| ) |
const |
|
inline |
Coord inet::PolyhedronFace::getOutwardNormalVector |
( |
| ) |
const |
|
inline |
bool inet::PolyhedronFace::hasConflicts |
( |
| ) |
const |
|
inline |
Points pConflict
Definition: PolyhedronFace.h:39
bool inet::PolyhedronFace::isVisibleFrom |
( |
const PolyhedronPoint * |
point | ) |
const |
Referenced by inet::Polyhedron::setContlictListForNewFace().
85 PolyhedronPoint facePointPoint = *point - *facePoint;
PolyhedronEdge * getEdge(unsigned int i) const
Definition: PolyhedronFace.cc:75
PolyhedronPoint * getP1()
Definition: PolyhedronEdge.h:45
Coord outwardNormalVector
Definition: PolyhedronFace.h:40
bool inet::PolyhedronFace::isWrapped |
( |
| ) |
const |
|
inline |
Referenced by PolyhedronFace().
59 edges.push_back(edge);
void computeCentroid()
Definition: PolyhedronFace.cc:44
Edges edges
Definition: PolyhedronFace.h:38
void inet::PolyhedronFace::setOutwardNormalVector |
( |
const Coord & |
outwardNormalVector | ) |
|
|
inline |
void inet::PolyhedronFace::setToWrapped |
( |
| ) |
|
|
inline |
bool wrapped
Definition: PolyhedronFace.h:43
Coord inet::PolyhedronFace::centroid |
|
protected |
Edges inet::PolyhedronFace::edges |
|
protected |
Coord inet::PolyhedronFace::normalVector |
|
protected |
Coord inet::PolyhedronFace::outwardNormalVector |
|
protected |
Points inet::PolyhedronFace::pConflict |
|
protected |
bool inet::PolyhedronFace::wrapped |
|
protected |
The documentation for this class was generated from the following files: