Go to the documentation of this file.
3 #ifndef _POLYHEDRON_ALGORITHMS
4 # define _POLYHEDRON_ALGORITHMS
18 template<
class Archive>
34 template<
class Archive>
43 const Vector3 & p1 = v[
a]->getCoordinates();
44 const Vector3 & p2 = v[
b]->getCoordinates();
112 template<
class Archive>
SCH_API ~Polyhedron_algorithms(void)
Definition: Polyhedron_algorithms.h:28
Vector3 edge
Definition: Polyhedron_algorithms.h:31
size_t b
Definition: Polyhedron_algorithms.h:30
std::vector< PolyhedronEdge > edges_
Definition: Polyhedron_algorithms.h:124
S_PolyhedronVertex ** fastVertexes_
Definition: Polyhedron_algorithms.h:126
#define SCH_API
Definition: sch_api.h:13
SCH_API void fillEdges()
Fill the edges_ variable using the data from the polyhedron.
SCH_API void clearNeighbors()
clears the neighbors tables;
unsigned int c
Definition: Polyhedron_algorithms.h:14
void serialize(Archive &ar, const unsigned int)
Definition: Polyhedron_algorithms.h:35
void serialize(Archive &ar, const unsigned int)
Definition: Polyhedron_algorithms.h:113
std::vector< PolyhedronTriangle > triangles_
Definition: Polyhedron_algorithms.h:123
SCH_API void deleteVertexesWithoutNeighbors()
deletes aal the vertexes that dont have neighbors;
void computeEdge(const std::vector< S_PolyhedronVertex * > &v)
Definition: Polyhedron_algorithms.h:41
SCH_API void updateVertexNeighbors()
updates the Neighborhood of the vertexes, must be called on polyhedron \which vertexes have no neighb...
SCH_API size_t getEdgeKey(PolyhedronEdge e)
get the key of an edge computed automatically from its vertices
SCH_API Polyhedron_algorithms(void)
unsigned int b
Definition: Polyhedron_algorithms.h:14
size_t a
Definition: Polyhedron_algorithms.h:30
S_PolyhedronVertex ** lastVertexes_
Definition: Polyhedron_algorithms.h:127
SCH_API Point3 naiveSupport(const Vector3 &v) const
Definition: S_PolyhedronVertex.h:14
SCH_API void clear()
clears all the polyhedron;
unsigned numberOfVertices_
Definition: Polyhedron_algorithms.h:128
SCH_API Point3 support(const Vector3 &v, int &lastFeature) const
Computes the support point of the polyhedron.
const SCH_API Polyhedron_algorithms & operator=(const Polyhedron_algorithms &)
unsigned int a
Definition: Polyhedron_algorithms.h:14
SCH_API void openFromFile(const std::string &filename)
loads the polyhedron from a file. the file must be in the format of Qhull conconvex....
Vector3 normal
Definition: Polyhedron_algorithms.h:15
void serialize(Archive &ar, const unsigned int)
Definition: Polyhedron_algorithms.h:19
SCH_API void updateFastArrays()
updates the fast access arrays, must be called after each polyhedron modification
Definition: Polyhedron_algorithms.h:12
Definition: Polyhedron_algorithms.h:49
std::vector< S_PolyhedronVertex * > vertexes_
Definition: Polyhedron_algorithms.h:121