#include <Welder.h>
G3D::Welder::Settings::Settings |
( |
float |
normalSmoothAngle = toRadians(70.0f) | ) |
|
|
inline |
float vertexWeldRadius
Definition: Welder.h:27
float textureWeldRadius
Definition: Welder.h:29
float normalWeldRadius
Definition: Welder.h:31
float normalSmoothingAngle
Definition: Welder.h:24
G3D::Welder::Settings::Settings |
( |
const Any & |
any | ) |
|
500 any.verifyName(
"Welder::Settings");
501 for (Any::AnyTable::Iterator it =
any.table().begin(); it.isValid(); ++it) {
502 const std::string& key =
toLower(it->key);
503 if (key ==
"normalsmoothingangle") {
505 }
else if (key ==
"vertexweldradius") {
507 }
else if (key ==
"textureweldradius") {
509 }
else if (key ==
"normalweldradius") {
512 any.verify(
false,
"Illegal key: " + it->key);
float vertexWeldRadius
Definition: Welder.h:27
bool any(float x)
Definition: g3dmath.h:424
float textureWeldRadius
Definition: Welder.h:29
float normalWeldRadius
Definition: Welder.h:31
std::string toLower(const std::string &x)
Definition: stringutils.cpp:223
float normalSmoothingAngle
Definition: Welder.h:24
Settings(float normalSmoothAngle=toRadians(70.0f))
Definition: Welder.h:33
void G3D::Welder::Settings::deserialize |
( |
class BinaryInput & |
b | ) |
|
float vertexWeldRadius
Definition: Welder.h:27
float textureWeldRadius
Definition: Welder.h:29
float normalWeldRadius
Definition: Welder.h:31
float normalSmoothingAngle
Definition: Welder.h:24
void G3D::Welder::Settings::serialize |
( |
class BinaryOutput & |
b | ) |
const |
float vertexWeldRadius
Definition: Welder.h:27
float textureWeldRadius
Definition: Welder.h:29
float normalWeldRadius
Definition: Welder.h:31
float normalSmoothingAngle
Definition: Welder.h:24
Any G3D::Welder::Settings::toAny |
( |
| ) |
const |
float vertexWeldRadius
Definition: Welder.h:27
float textureWeldRadius
Definition: Welder.h:29
float normalWeldRadius
Definition: Welder.h:31
float normalSmoothingAngle
Definition: Welder.h:24
float G3D::Welder::Settings::normalSmoothingAngle |
Surfaces with normals that are within this angle of each other are considered to be curved. Default value is toRadians(70.0f).
float G3D::Welder::Settings::normalWeldRadius |
float G3D::Welder::Settings::textureWeldRadius |
float G3D::Welder::Settings::vertexWeldRadius |
The documentation for this class was generated from the following files: