50 ,
zlevel(ground_level + pcfg.full_height() - pcfg.required_elevation())
51{
52 thr();
53
55
56 float zstart = float(
zlevel);
57 float zend = zstart + float(pcfg.full_height() +
EPSILON);
58
61
63 for (
auto &p :
tmesh.vertices) p += offs;
64
66}
#define EPSILON
Definition ColorUtils.cpp:64
void pad_blueprint(const indexed_triangle_set &mesh, ExPolygons &output, const std::vector< float > &heights, ThrowOnCancel thrfn)
Calculate the polygon representing the silhouette.
Definition Pad.cpp:470
void create_pad(const ExPolygons &sup_blueprint, const ExPolygons &model_blueprint, indexed_triangle_set &out, const PadConfig &cfg, ThrowOnCancel thr)
Definition Pad.cpp:510
int its_merge_vertices(indexed_triangle_set &its, bool shrink_to_fit)
Definition TriangleMesh.cpp:690
std::vector< ExPolygon > ExPolygons
Definition ExPolygon.hpp:20
Eigen::Matrix< float, 3, 1, Eigen::DontAlign > Vec3f
Definition Point.hpp:65
std::vector< ArithmeticOnly< T > > grid(const T &start, const T &stop, const T &stride)
A set of equidistant values starting from 'start' (inclusive), ending in the closest multiple of 'str...
Definition MTUtils.hpp:127
PadConfig cfg
Definition SupportTreeBuilder.hpp:198
indexed_triangle_set tmesh
Definition SupportTreeBuilder.hpp:197
double zlevel
Definition SupportTreeBuilder.hpp:199