mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
SVG --space-name-transform
This commit is contained in:
@@ -428,6 +428,8 @@ int main(int argc, char** argv) {
|
||||
" and any other value means that 6 or 7 decimals are used.")
|
||||
("print-space-names", "Prints IfcSpace LongName and Name in the geometry output. Applicable for SVG output")
|
||||
("print-space-areas", "Prints calculated IfcSpace areas in square meters. Applicable for SVG output")
|
||||
("space-name-transform", po::value<std::string>(),
|
||||
"Additional transform to the space labels in SVG")
|
||||
("edge-arrows", "Adds arrow heads to edge segments to signify edge direction")
|
||||
;
|
||||
|
||||
@@ -1015,6 +1017,11 @@ int main(int argc, char** argv) {
|
||||
vmap["storey-height-line-length"].as<double>()
|
||||
);
|
||||
}
|
||||
if (vmap.count("space-name-transform")) {
|
||||
static_cast<SvgSerializer*>(serializer.get())->setSpaceNameTransform(
|
||||
vmap["space-name-transform"].as<std::string>()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (convert_back_units) {
|
||||
|
||||
Reference in New Issue
Block a user