mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 13:36:25 +00:00
Increase SVG precision to prevent self-intersections on detailed polygons
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <iomanip>
|
||||||
|
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
|
|
||||||
@@ -50,7 +51,7 @@ namespace util {
|
|||||||
void assign(const double& d) { this->d = d; }
|
void assign(const double& d) { this->d = d; }
|
||||||
const double& value() const { return d; }
|
const double& value() const { return d; }
|
||||||
double& value() { return d; }
|
double& value() { return d; }
|
||||||
std::string str() const { std::stringstream ss; ss << d; return ss.str(); }
|
std::string str() const { std::stringstream ss; ss << std::setprecision(std::numeric_limits<double>::max_digits10) << d; return ss.str(); }
|
||||||
virtual ~float_item() {};
|
virtual ~float_item() {};
|
||||||
};
|
};
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user