mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-20 04:04:00 +00:00
--svg-poly option and correct HLR view direction
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user