24 #include "axlCoreExport.h"
63 virtual QString description(
void)
const;
64 virtual QString identifier(
void)
const;
74 int vertex_count(
void)
const;
75 int color_count(
void)
const;
76 int normal_count(
void)
const;
77 int face_count(
void)
const;
78 int edge_count(
void)
const;
79 int all_edge_count(
void)
const;
81 bool vertex_show(
void)
const;
84 bool normal_used(
void)
const;
85 bool& normal_used(
void);
87 bool color_used(
void)
const;
88 bool& color_used(
void);
90 bool edge_show(
void)
const;
91 bool& edge_show(
void);
92 bool face_show(
void)
const;
93 bool& face_show(
void);
95 bool isPlanar(
void)
const;
98 void setEpsilon(
double epsilon);
101 int interpolation(
void)
const;
102 void setInterpolation(
int interpolation);
106 double vertexX(
const int& ind)
const;
107 double vertexY(
const int& ind)
const;
108 double vertexZ(
const int& ind)
const;
110 void vertex(
const int& ind,
double vertex[3] );
111 void vertex(
int ind,
axlPoint& point)
const;
112 void vertex(
int ind,
axlPoint *point)
const;
116 QVector<double> vertexSet(
void)
const;
118 void push_back_vertex(
const double &x,
const double &y,
const double &z);
119 void push_back_vertex(
const double vertex[3]);
120 void push_back_vertex(
const axlPoint& vertex);
121 void push_back_vertex(
axlPoint *vertex);
123 void set_vertex(
axlPoint* point,
const int &ind);
125 void setVertices(
const QVector<axlPoint*>& pointSet);
129 double normalX(
const int& ind)
const;
130 double normalY(
const int& ind)
const;
131 double normalZ(
const int& ind)
const;
133 void normal(
const int& ind,
double normal[3]);
134 void normal(
int ind,
axlPoint& normal);
135 void normal(
int ind,
axlPoint *normal);
138 QVector<double> normalSet(
void);
140 void push_back_normal(
axlPoint *normal);
141 void setNormals(
const QList<axlPoint*>& pointSet);
143 void push_back_normal(
const double &x,
const double &y,
const double &z);
144 void push_back_normal(
const double normal[3]);
146 void clearNormals(
void);
150 int colorR(
const int& ind);
151 int colorG(
const int& ind);
152 int colorB(
const int& ind);
153 double colorRF(
const int& ind);
154 double colorGF(
const int& ind);
155 double colorBF(
const int& ind);
156 void getColor(
const int& ind,
int color[3] );
157 void push_back_color(
const int &r,
const int &g,
const int &b);
158 void push_back_color(
const int color[3]);
162 Edge edge(
int ind)
const;
163 QVector<Edge> edgeSet(
void)
const;
164 int edgePointIndex(
int i,
int j)
const;
165 int edgePointCount(
int i)
const;
167 void push_back_edge(
int,
int);
168 void push_back_edge(
const Edge& e);
169 int push_back_new_edge(
void);
170 void edgePushBack(
int,
int);
174 Face face(
int ind)
const;
175 QVector<Face> faceSet(
void)
const;
176 int facePointIndex(
int i,
int j)
const;
177 int facePointCount(
int i)
const;
179 void push_back_face(
const Face& face);
181 void push_back_face(
int i1,
int i2,
int i3);
185 const QVector<double> boundingBoxVertex(
void)
const;
186 double meshVertexScaleFactor()
const;
189 void noDuplicateVertices(
void);
191 double distance(
int ind1,
int ind2);
195 static QVector<QSet<int> > neighborsFace(
const axlMesh& mesh);
196 static QVector<QSet<int> > VertexTofaceIndexes(
const axlMesh &mesh);
Class axlPoint defines 3D points.
axlPoint Point
A point of the mesh is an axlPoint.
QVector< int > Edge
An edge is represented by a sequence of vertices.
void insert_face(const Face &face)
virtual int convertQVariantToData(const QVariantList &data)
Modify properties and geometry variables of the axlAbstractData. Return 1 if the modification was suc...
QVector< int > Face
A face is a polygon represented by a loop of vertices.
virtual QVariantList convertDataToQVariant(void) const
Convert an axlAbstractData into a QVariantList that specifies all properties of the axlAbstractData...
dtkAbstractData * createaxlMesh(void)
Class axlAbstractData defines an API for all type of axel data.
Class axlMesh defines a piecewise-linear 3D object.