mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
Increase SVG precision to prevent self-intersections on detailed polygons
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
|
||||
#include <sstream>
|
||||
#include <vector>
|
||||
#include <iomanip>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
@@ -50,7 +51,7 @@ namespace util {
|
||||
void assign(const double& d) { this->d = d; }
|
||||
const double& value() const { 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() {};
|
||||
};
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user