mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Merge remote-tracking branch 'origin/v0.6.0' into v0.7.0
# Conflicts: # src/ifcgeom/IfcGeomTree.h # src/ifcgeom_schema_agnostic/IfcGeomIterator.h # src/ifcgeom_schema_agnostic/IteratorImplementation.cpp # src/ifcgeom_schema_agnostic/IteratorImplementation.h # src/ifcparse/Ifc4x3_rc3.cpp # src/ifcparse/Ifc4x3_rc3.h # src/serializers/SvgSerializer.cpp
This commit is contained in:
@@ -356,7 +356,7 @@ int main(int argc, char** argv) {
|
||||
short precision;
|
||||
double section_height;
|
||||
std::string svg_scale, svg_center;
|
||||
std::string section_ref, elevation_ref;
|
||||
std::string section_ref, elevation_ref, elevation_ref_guid;
|
||||
// "none", "full" or "left"
|
||||
std::string storey_height_display;
|
||||
SvgSerializer::storey_height_display_types svg_storey_height_display = SvgSerializer::SH_NONE;
|
||||
@@ -378,9 +378,11 @@ int main(int argc, char** argv) {
|
||||
"When using --scale, specifies the location in the range [0 1]x[0 1] around which"
|
||||
"to center the drawings. Example 0.5x0.5 (default).")
|
||||
("section-ref", po::value<std::string>(§ion_ref),
|
||||
"Element at which vertical cross sections should be created")
|
||||
"Element at which cross sections should be created")
|
||||
("elevation-ref", po::value<std::string>(&elevation_ref),
|
||||
"Element at which vertical elevations should be created")
|
||||
"Element at which drawings should be created")
|
||||
("elevation-ref-guid", po::value<std::string>(&elevation_ref_guid),
|
||||
"Element guids at which drawings should be created")
|
||||
("auto-section",
|
||||
"Creates SVG cross section drawings automatically based on model extents")
|
||||
("auto-elevation",
|
||||
@@ -399,6 +401,7 @@ int main(int argc, char** argv) {
|
||||
("svg-project",
|
||||
"Always enable hidden line rendering instead of only on elevations")
|
||||
("svg-without-storeys", "Don't emit drawings for building storeys")
|
||||
("svg-no-css", "Don't emit CSS style declarations")
|
||||
("door-arcs", "Draw door openings arcs for IfcDoor elements")
|
||||
("section-height", po::value<double>(§ion_height),
|
||||
"Specifies the cut section height for SVG 2D geometry.")
|
||||
@@ -755,7 +758,7 @@ int main(int argc, char** argv) {
|
||||
std::uniform_int_distribution<int> index_dist('A', 'Z');
|
||||
{
|
||||
std::string v = ".ifcopenshell.";
|
||||
output_temp_filename += path_t(v.begin(), v.end());
|
||||
output_temp_filename = path_t(v.begin(), v.end());
|
||||
}
|
||||
for (int i = 0; i < 8; ++i) {
|
||||
output_temp_filename.push_back(static_cast<path_t::value_type>(index_dist(rng)));
|
||||
@@ -1016,6 +1019,9 @@ int main(int argc, char** argv) {
|
||||
if (vmap.count("elevation-ref")) {
|
||||
static_cast<SvgSerializer*>(serializer.get())->setElevationRef(elevation_ref);
|
||||
}
|
||||
if (vmap.count("elevation-ref-guid")) {
|
||||
static_cast<SvgSerializer*>(serializer.get())->setElevationRefGuid(elevation_ref_guid);
|
||||
}
|
||||
if (vmap.count("auto-section")) {
|
||||
static_cast<SvgSerializer*>(serializer.get())->setAutoSection(true);
|
||||
}
|
||||
@@ -1027,6 +1033,7 @@ int main(int argc, char** argv) {
|
||||
static_cast<SvgSerializer*>(serializer.get())->setPolygonal(vmap.count("svg-write-poly") > 0);
|
||||
static_cast<SvgSerializer*>(serializer.get())->setAlwaysProject(vmap.count("svg-project") > 0);
|
||||
static_cast<SvgSerializer*>(serializer.get())->setWithoutStoreys(vmap.count("svg-without-storeys") > 0);
|
||||
static_cast<SvgSerializer*>(serializer.get())->setNoCSS(vmap.count("svg-no-css") > 0);
|
||||
if (relative_center_x && relative_center_y) {
|
||||
static_cast<SvgSerializer*>(serializer.get())->setDrawingCenter(*relative_center_x, *relative_center_y);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user