mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
Draw door arcs only on floor plans
This commit is contained in:
@@ -428,7 +428,7 @@ void SvgSerializer::write(const geometry_data& data) {
|
|||||||
|
|
||||||
TopoDS_Wire annotation;
|
TopoDS_Wire annotation;
|
||||||
|
|
||||||
if (draw_door_arcs_ && data.product->declaration().is("IfcDoor")) {
|
if (is_floor_plan_ && draw_door_arcs_ && data.product->declaration().is("IfcDoor")) {
|
||||||
|
|
||||||
boost::optional<std::string> operation_type;
|
boost::optional<std::string> operation_type;
|
||||||
|
|
||||||
@@ -886,6 +886,10 @@ void SvgSerializer::finalize() {
|
|||||||
resize();
|
resize();
|
||||||
|
|
||||||
if (deferred_section_data_ && deferred_section_data_->size() && element_buffer_.size()) {
|
if (deferred_section_data_ && deferred_section_data_->size() && element_buffer_.size()) {
|
||||||
|
|
||||||
|
// Draw door arcs only on floor plans.
|
||||||
|
is_floor_plan_ = false;
|
||||||
|
|
||||||
for (auto& sd : *deferred_section_data_) {
|
for (auto& sd : *deferred_section_data_) {
|
||||||
bool use_hlr = false;
|
bool use_hlr = false;
|
||||||
std::string drawing_name;
|
std::string drawing_name;
|
||||||
|
|||||||
@@ -116,7 +116,11 @@ protected:
|
|||||||
boost::optional<std::vector<section_data>> section_data_;
|
boost::optional<std::vector<section_data>> section_data_;
|
||||||
boost::optional<std::vector<section_data>> deferred_section_data_;
|
boost::optional<std::vector<section_data>> deferred_section_data_;
|
||||||
boost::optional<double> scale_, calculated_scale_;
|
boost::optional<double> scale_, calculated_scale_;
|
||||||
bool rescale, print_space_names_, print_space_areas_, draw_door_arcs_, with_section_heights_from_storey_, buffer_elements_;
|
|
||||||
|
bool rescale, print_space_names_, print_space_areas_, draw_door_arcs_;
|
||||||
|
bool with_section_heights_from_storey_, buffer_elements_;
|
||||||
|
bool is_floor_plan_;
|
||||||
|
|
||||||
std::multimap<drawing_key, path_object, storey_sorter> paths;
|
std::multimap<drawing_key, path_object, storey_sorter> paths;
|
||||||
|
|
||||||
float_item_list xcoords, ycoords, radii;
|
float_item_list xcoords, ycoords, radii;
|
||||||
@@ -142,6 +146,7 @@ public:
|
|||||||
, print_space_areas_(false)
|
, print_space_areas_(false)
|
||||||
, draw_door_arcs_(false)
|
, draw_door_arcs_(false)
|
||||||
, buffer_elements_(false)
|
, buffer_elements_(false)
|
||||||
|
, is_floor_plan_(true)
|
||||||
, file(0)
|
, file(0)
|
||||||
, storey_(0)
|
, storey_(0)
|
||||||
, xcoords_begin(0)
|
, xcoords_begin(0)
|
||||||
|
|||||||
Reference in New Issue
Block a user