Thomas Krijnen
322dec6fd0
Update ifcconvert
2017-12-11 15:46:17 +01:00
Thomas Krijnen
be5bd2e735
optional building storey argument added to setSectionHeight()
2017-12-11 11:19:15 +01:00
Thomas Krijnen
ce782cc784
2d edges in svg serializer
2017-12-11 11:18:37 +01:00
Anders Granskogen Bjørnstad
34e2ff31bb
SvgSerializer: Fix bug in ellipse writeout
...
Add a missing "=" to create a valid SVG for ellipses.
I accidentally stumbled upon a way to actually get an ellipse in SVG by
tilting a cylinder. If I tilt the cylinder via the `ObjectPlacement` of
the `IfcProduct` I get an ellipse. If I set the `ExtrudedDirection` of
the `IfcExtrudedAreasolid`, however, I get a sampled path.
2017-12-04 17:23:32 +01:00
Thomas Krijnen
7cd354ee7d
Eliminate warning
2017-11-27 16:24:29 +01:00
Thomas Krijnen
111569ec1b
Approx other curve types in SVG, hollow circles
2017-11-25 13:08:34 +01:00
Anders Granskogen Bjørnstad
9c88a35173
SvgSerializer: Support full circles and ellipses
...
Use <circle> and <ellipse> to create a valid SVG for these geometries.
Limit to only the *first* edge. I am not sure whether there are
scenarios with multiple edges like this:
1. One or more straight line pieces or arc segments
2. A full closed circle
3. More straight lines or arc segments
If there is, we are keeping the original behavior here.
2017-11-25 13:06:03 +01:00
Anders Granskogen Bjørnstad
df942f6460
SvgSerializer: Fix bounding box for arc segments
...
Not necessarily minimal, but better to be conservative w.r.t. getting
all geometry inside bounds.
2017-11-25 13:06:03 +01:00
Anders Granskogen Bjørnstad
7de877823b
SvgSerializer: Add closed circle warning
...
Only refactoring, adding a warning.
2017-11-25 13:06:03 +01:00
Anders Granskogen Bjørnstad
9be413a308
SvgSerializer: Use storey elevation if available
...
For the scenario where we a building storey and it has an elevation:
Instead taking the cross section of every product 1 meter above it's
lowest, take the cross section at storey elevation + 1 meter.
2017-11-11 10:02:41 +01:00
Anders Granskogen Bjørnstad
a9606b3044
SvgSerializer: Name storeys properly too
...
- Fix correct "storey-" prefix for stories
- Follow user settings on names/guids/notset
2017-11-11 10:02:41 +01:00
Anders Granskogen Bjørnstad
c419885329
SvgSerializer: Fix error message logic
...
If we have no storeys *and* we didn't find any suitable fall-back, then
the error message makes sense.
2017-11-11 10:02:41 +01:00
Thomas Krijnen
f64246f7c5
Use building or site placement for SVG section height if file has no storeys
2017-10-23 14:17:54 +02:00
Thomas Krijnen
c5495d83e4
Invalid empty SVG file
2017-10-23 13:58:07 +02:00
Stinkfist0
2d58a1bc7c
Separate serialization-specific settings from IteratorSettings into its own class, SerializerSettings.
2017-01-14 20:13:46 +01:00
Thomas Krijnen
04acfe1169
Fix #63
2016-05-03 11:01:47 +02:00
Stinkfist0
24e2aece0b
Rename --use-guids and --use-names to --use-element-guids and --use-element-names. Add explicit --use-material-names for controlling material naming.
2016-03-10 12:01:04 +02:00
Stinkfist0
43f5d446ec
Implement --use-names and --use-guids for DAE, OBJ, and SVG output.
2016-03-10 11:35:32 +02:00
aothms
76a3146b70
Fix one statement deleted too much in https://github.com/IfcOpenShell/IfcOpenShell/commit/f3af39546be9ecd485737ff0954cfb92807fca1d
2016-01-29 15:25:18 +01:00
aothms
ed8cc620ea
Use boost::shared_ptr
...
Fixes https://github.com/IfcOpenShell/IfcOpenShell/issues/17
2016-01-25 14:42:41 +01:00
aothms
4eee9a1936
Merge remote-tracking branch 'official/master'
...
Conflicts:
src/ifcconvert/IfcConvert.cpp
src/ifcgeom/IfcGeomIterator.h
2015-12-21 11:36:23 +01:00
Stinkfist0
a13042f227
Fix warnings: unused variables, shadowing variable names, constant conditional expressions, integer conversions, inability to generate copy-ctor and/or assignment operator, etc.
2015-11-21 23:05:28 +02:00
Stinkfist0
921c3eb2d3
SvgSerializer.cpp: add missing #include <Standard_Version.hxx>
2015-10-28 21:25:23 +02:00
aothms
f3af39546b
Don't construct transformation from matrix, but use original data.
2015-10-13 11:15:45 +02:00
aothms
82143f226e
Small changes to SVG serialization
2015-09-06 14:50:07 +02:00
Thomas Krijnen
f5c32adff1
Be sure to flush fstream when finalizing SVG export
2015-07-26 17:59:52 +00:00
Thomas Krijnen
0e5edbcd84
Reverse preprocessor statement to work without definition, defaulting to 2x3
2015-07-26 15:26:34 +00:00
Thomas Krijnen
68fc361d96
Add SvgSerializer developed in collaboration with ROOT B.V.
2015-07-26 14:26:13 +00:00