--svg-poly option and correct HLR view direction

This commit is contained in:
Thomas Krijnen
2021-01-02 12:34:10 +01:00
parent 23abc604f9
commit 979f37d7c6
3 changed files with 63 additions and 29 deletions
+10 -2
View File
@@ -29,6 +29,8 @@
#include <HLRBRep_Algo.hxx>
#include <HLRBRep_HLRToShape.hxx>
#include <HLRBRep_PolyAlgo.hxx>
#include <HLRAlgo_Projector.hxx>
#include <gp_Pln.hxx>
#include <sstream>
@@ -126,7 +128,7 @@ protected:
bool with_section_heights_from_storey_, rescale, print_space_names_, print_space_areas_;
bool draw_door_arcs_, is_floor_plan_;
bool auto_section_, auto_elevation_;
bool use_namespace_;
bool use_namespace_, use_hlr_poly_;
IfcParse::IfcFile* file;
IfcUtil::IfcBaseEntity* storey_;
@@ -140,7 +142,8 @@ protected:
std::list<geometry_data> element_buffer_;
Handle(HLRBRep_Algo) hlr;
Handle(HLRBRep_Algo) hlr_brep;
Handle(HLRBRep_PolyAlgo) hlr_poly;
std::string namespace_prefix_;
public:
@@ -160,6 +163,7 @@ public:
, auto_section_(false)
, auto_elevation_(false)
, use_namespace_(false)
, use_hlr_poly_(false)
, file(0)
, storey_(0)
, xcoords_begin(0)
@@ -213,6 +217,10 @@ public:
namespace_prefix_ = use_namespace_ ? "ifc:" : "data-";
}
void setUseHlrPoly(bool b) {
use_hlr_poly_ = b;
}
void setScale(double s) { scale_ = s; }
void setDrawingCenter(double x, double y) {
center_x_ = x; center_y_ = y;