35 #ifndef LVR2_LSR_OPTIONS_YAML_EXTENSIONS 36 #define LVR2_LSR_OPTIONS_YAML_EXTENSIONS 38 #include <yaml-cpp/yaml.h> 51 node[
"bigMesh"] = options.
bigMesh;
53 node[
"useGPU"] = options.
useGPU;
56 node[
"scale"] = options.
scale;
59 node[
"ki"] = options.
ki;
60 node[
"kd"] = options.
kd;
61 node[
"kn"] = options.
kn;
64 node[
"extrude"] = options.
extrude;
88 options.
bigMesh = node[
"bigMesh"].as<
bool>();
91 if (node[
"debugChunks"])
93 options.
debugChunks = node[
"debugChunks"].as<
bool>();
98 options.
useGPU = node[
"useGPU"].as<
bool>();
101 if (node[
"voxelSizes"])
103 options.
voxelSizes = node[
"voxelSizes"].as<std::vector<float>>();
106 if (node[
"bgVoxelSize"])
108 options.
bgVoxelSize = node[
"bgVoxelSize"].as<
float>();
113 options.
scale = node[
"scale"].as<
float>();
116 if (node[
"nodeSize"])
121 if (node[
"partMethod"])
123 options.
partMethod = node[
"partMethod"].as<
int>();
128 options.
ki = node[
"ki"].as<
int>();
133 options.
kd = node[
"kd"].as<
int>();
138 options.
kn = node[
"kn"].as<
int>();
141 if (node[
"useRansac"])
143 options.
useRansac = node[
"useRansac"].as<
bool>();
146 if (node[
"flipPoint"])
148 options.
flipPoint = node[
"flipPoint"].as<std::vector<float>>();
153 options.
extrude = node[
"extrude"].as<
bool>();
156 if (node[
"removeDanglingArtifacts"])
161 if (node[
"cleanContours"])
166 if (node[
"fillHoles"])
168 options.
fillHoles = node[
"fillHoles"].as<
int>();
171 if (node[
"optimizePlanes"])
176 if (node[
"planeNormalThreshold"])
181 if (node[
"planeIterations"])
186 if (node[
"minPlaneSize"])
191 if (node[
"smallRegionThreshold"])
196 if (node[
"retesselate"])
198 options.
retesselate = node[
"retesselate"].as<
bool>();
201 if (node[
"lineFusionThreshold"])
const kaboom::Options * options
float planeNormalThreshold
int removeDanglingArtifacts
void convert(COORD_SYSTEM from, COORD_SYSTEM to, float *point)
std::vector< float > flipPoint
static bool decode(const Node &node, lvr2::LSROptions &options)
float lineFusionThreshold
static Node encode(const lvr2::LSROptions &options)
std::vector< float > voxelSizes