mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 11:24:19 +00:00
--elevation-ref-guid setElevationRefGuid
This commit is contained in:
@@ -543,7 +543,12 @@ void SvgSerializer::write(const IfcGeom::BRepElement<real_t>* brep_obj) {
|
||||
const gp_Trsf& trsf = brep_obj->transformation().data();
|
||||
|
||||
const bool is_section = (section_ref_ && object_type && *section_ref_ == *object_type);
|
||||
const bool is_elevation = (elevation_ref_ && object_type && *elevation_ref_ == *object_type);
|
||||
bool is_elevation = false;
|
||||
if (elevation_ref_ && object_type) {
|
||||
is_elevation = *elevation_ref_ == *object_type;
|
||||
} else if (elevation_ref_guid_) {
|
||||
is_elevation = *elevation_ref_guid_ == brep_obj->guid();
|
||||
}
|
||||
|
||||
if (is_section || is_elevation) {
|
||||
BRepBuilderAPI_Transform make_transform_global(compound_local, trsf, true);
|
||||
|
||||
@@ -167,7 +167,7 @@ protected:
|
||||
float_item_list xcoords, ycoords, radii;
|
||||
size_t xcoords_begin, ycoords_begin, radii_begin;
|
||||
|
||||
boost::optional<std::string> section_ref_, elevation_ref_;
|
||||
boost::optional<std::string> section_ref_, elevation_ref_, elevation_ref_guid_;
|
||||
|
||||
std::list<geometry_data> element_buffer_;
|
||||
|
||||
@@ -242,8 +242,15 @@ public:
|
||||
void setSectionRef(const boost::optional<std::string>& s) {
|
||||
section_ref_ = s;
|
||||
}
|
||||
|
||||
void setElevationRef(const boost::optional<std::string>& s) {
|
||||
elevation_ref_ = s;
|
||||
elevation_ref_guid_ = boost::none;
|
||||
}
|
||||
|
||||
void setElevationRefGuid(const boost::optional<std::string>& s) {
|
||||
elevation_ref_ = boost::none;
|
||||
elevation_ref_guid_ = s;
|
||||
}
|
||||
|
||||
void setAutoSection(bool b) {
|
||||
|
||||
Reference in New Issue
Block a user