34 normalSmoothingAngle(normalSmoothAngle),
35 vertexWeldRadius(0.001f),
36 textureWeldRadius(0.0001f),
37 normalWeldRadius(0.01f) {}
63 const Settings& settings);
82 weld(vertices, textureCoords, normals, meta, settings);
static void weld(Array< Vector3 > &vertices, Array< Vector2 > &textureCoords, Array< Vector3 > &normals, Array< int > &indices, const Settings &settings)
Definition: Welder.h:73
float vertexWeldRadius
Definition: Welder.h:27
Dynamic 1D array tuned for performance.
Definition: Array.h:95
bool any(float x)
Definition: g3dmath.h:424
float textureWeldRadius
Definition: Welder.h:29
float normalWeldRadius
Definition: Welder.h:31
Easy loading and saving of human-readable configuration files.
Definition: Any.h:184
Any toAny() const
Definition: Welder.cpp:518
double toRadians(double deg)
Definition: g3dmath.h:798
Welder()
Definition: Welder.h:16
static void weld(Array< Vector3 > &vertices, Array< Vector2 > &textureCoords, Array< Vector3 > &normals, Array< Array< int > * > &indices, const Settings &settings)
Definition: Welder.cpp:485
void deserialize(class BinaryInput &b)
Definition: Welder.cpp:476
void serialize(class BinaryOutput &b) const
Definition: Welder.cpp:468
float normalSmoothingAngle
Definition: Welder.h:24
Definition: BinaryOutput.h:52
Settings(float normalSmoothAngle=toRadians(70.0f))
Definition: Welder.h:33
void append(const T &value)
Definition: Array.h:583