9 #ifndef G3D_MESHBUILDER_H
10 #define G3D_MESHBUILDER_H
55 inline MeshBuilder(
bool twoSided =
false,
bool scaleAndCenter =
true) : scaleAndCenter(scaleAndCenter), _twoSided(twoSided), close(
AUTO_WELD) {}
73 void setName(
const std::string& n);
Array< Vector3 > triList
Definition: MeshBuilder.h:43
void computeBounds(Vector3 &min, Vector3 &max)
Definition: MeshBuilder.cpp:84
void setName(const std::string &n)
Definition: MeshBuilder.cpp:15
void centerTriList()
Definition: MeshBuilder.cpp:59
MeshBuilder(bool twoSided=false, bool scaleAndCenter=true)
Definition: MeshBuilder.h:55
bool _twoSided
Definition: MeshBuilder.h:48
void commit(std::string &name, Array< int > &indexArray, Array< Vector3 > &vertexArray)
Definition: MeshBuilder.cpp:20
Definition: MeshBuilder.h:23
void addTriangle(const Vector3 &a, const Vector3 &b, const Vector3 &c)
Definition: MeshBuilder.cpp:96
Definition: MeshBuilder.h:30
std::string name
Definition: MeshBuilder.h:36
T max(const T &x, const T &y)
Definition: g3dmath.h:320
bool scaleAndCenter
Definition: MeshBuilder.h:38
void setWeldRadius(double r)
Definition: MeshBuilder.h:77
T min(const T &x, const T &y)
Definition: g3dmath.h:305
void addQuad(const Vector3 &a, const Vector3 &b, const Vector3 &c, const Vector3 &d)
Definition: MeshBuilder.cpp:105
Array< int > List
Definition: MeshBuilder.h:34
double close
Definition: MeshBuilder.h:51
Definition: Triangle.h:34