Thomas Krijnen
20b35ec4ea
Preprocessor stuff for stp and igs serializers
2018-07-08 11:08:07 +02:00
Thomas Krijnen
d105292817
Merge branch 'master' into v0.6.0
...
# Conflicts:
# src/ifcconvert/IfcConvert.cpp
# src/ifcgeom/IfcGeomFilter.h
# src/ifcgeom/IfcGeomIteratorImplementation.h
# src/ifcgeom/IfcGeomWires.cpp
# src/ifcparse/IfcFile.h
# src/ifcparse/IfcLogger.cpp
# src/ifcparse/IfcLogger.h
# src/ifcparse/IfcParse.cpp
# src/serializers/SvgSerializer.cpp
# src/serializers/schema_dependent/XmlSerializer.cpp
2018-07-07 17:15:54 +02:00
Thomas Krijnen
089bb95c9f
Fix previous commit on gcc
2018-05-13 08:45:33 +02:00
Thomas Krijnen
7786b89269
Machine readable progress with -q and --log-format json
2018-05-12 20:12:25 +02:00
Thomas Krijnen
5082fe8be4
Revive XML serializer
2018-03-16 16:04:48 +01:00
Thomas Krijnen
834780b726
Schema dependent serializers
2018-03-16 13:49:11 +01:00
Anders Granskogen Bjørnstad
8a316e45ed
IfcConvert: Add --building-local-placement argument
...
Similar to --site-local-placement. Motivated by dealing with at least
two examples where IFC files for the same construction site have
inconsistent ObjectPlacement hierarchy:
- MEP models exported from MagiCAD for Revit:
ObjectPlacement.PlacementRelTo of IfcBuilding is empty
- Regular construction models exported from Revit:
ObjectPlacement.PlacementRelTo of IfcBuilding is pointing to
IfcSite's placement
2018-02-19 16:17:12 +01:00
Thomas Krijnen
4d325e026e
Fix compilation and execution of IfcConvert
2017-12-21 14:14:04 +01:00
Thomas Krijnen
6622afd93a
Rename
2017-12-20 17:09:42 +01:00
Thomas Krijnen
8b4650b169
Fix compilation on msvc
2017-12-20 16:38:55 +01:00
Thomas Krijnen
6e525662c3
Disable XML serializer for the time being
2017-12-20 12:41:39 +01:00
Thomas Krijnen
d46dfb6061
Work on serializers
2017-12-20 12:40:15 +01:00
Thomas Krijnen
830a03ffcd
Schema agnostic iterator
2017-12-20 11:10:27 +01:00
Anders Granskogen Bjørnstad
478da8f658
IfcConvert: Add section-height argument for SVG
...
Enabling user specified overriding the default (zmin + 1 meter) value.
2017-11-11 10:02:41 +01:00
Anders Granskogen Bjørnstad
d14d63dd5c
IfcConvert: Fix bug with --bounds for SVG
...
`if(bounding_width)` evaluates to true as long as `bounding_width` is
non-zero (including negative values). Since `bounding_width` and
`bounding_height` are default initialized to -1.0, we were erroneously
setting a bounding rectangle of (-1.0, -1.0) here. This means the SVG
output has been broken/malformed if we didn't specify --bounds.
2017-10-06 15:49:07 +02:00
Stinkfist0
c7c5e692d3
IfcConvert --version: print also OCC version.
2017-08-27 16:11:54 +02:00
Anders Granskogen Bjørnstad
475b8554a8
Site local placement ( #240 )
...
* ifcgeom: Add placement_rel_to for convert()
Change geometry conversion in `convert()` for `ObjectPlacement` such
that we can stop the `PlacementRelTo()` recursion when we hit an
`ObjectPlacement` that places a certain type, e.g. a `IfcSite'.
Introduce a new IteratorSetting `SITE_LOCAL_PLACEMENT` which will be
exposed in `IfcConvert`.
* IfcConvert: Add --site-local-placement
Some IFC authoring tools may put the global origo at a large distance
away from the actual building geometry. Also, the global X- and Y-axes
may be at arbitrary angles with natural building axes. Using
--center-model or --model-offset may place the converted geometry closer
to origo, but will still use the global IFC definition of axis
directions. Also, in a scenario with multiple IFC files for one
construction site, using --center-model on each of them would not
generate consistent geometry across OBJ or DAE files.
Solve this by introducing --site-local-placement which will disregard
the ObjectPlacement at the IfcSite level.
2017-08-19 17:21:10 +02:00
Thomas Krijnen
62794d4b07
Unused variable warning
2017-08-09 12:55:03 +02:00
Thomas Krijnen
aa0a6aa5d1
Fix #178
2017-08-01 16:45:11 +02:00
Thomas Krijnen
ae0afe2c0a
mmap #22
2017-07-25 16:27:13 +02:00
Stinkfist0
7eb1346407
IfcConvert: prevent doing IfcFile::Init() "prematurely", e.g. before some additional program option parsing that might fail.
2017-06-23 14:12:07 +02:00
Stinkfist0
771b1f3d3c
IfcConvert: consistent style for user error prints.
2017-06-23 14:12:07 +02:00
Stinkfist0
3fb96cad0b
IfcConvert: make sure to delete temp file if no actual conversion occurs. Also fixes serializer memory leaks. Closes #199 .
...
C
2017-06-23 14:12:07 +02:00
Stinkfist0
f3f4c41f8d
IfcConvert: add --no-progress option to suppress possible progress bar type of prints that use carriage return.
2017-06-05 11:41:55 +02:00
Stinkfist0
0adcb9ae20
IfcConvert --filter-file: Specifies a filter file that describes the used filtering criteria.
2017-06-05 11:41:55 +02:00
Tristan Zimpfer
78b904dfeb
Differentiate slab types when option --use-element-types is used.
2017-04-26 10:28:38 +02:00
Balleux Benjamin
7edca081bf
Raise an error when the option --use-element-hierarchy is used with a file different of .dae
2017-04-25 10:13:18 +02:00
Balleux Benjamin
95acd4c517
Clean : remove debug lines
...
Find the floor of an element in the IfcGeomIterator class
2017-04-21 15:49:34 +02:00
Balleux Benjamin
7ce795def3
clean WIP
2017-04-20 15:06:49 +02:00
Balleux Benjamin
8e4febecc0
clean : Remove the debug print
...
debug : don't display the name of the element in unity anymore
2017-04-19 16:38:35 +02:00
Balleux Benjamin
195979d4f0
Merge branch 'feature/hierarchy' of https://github.com/mitmadness/IfcOpenShell into feature/hierarchy
...
# Conflicts:
# src/ifcconvert/ColladaSerializer.cpp
2017-04-19 15:09:59 +02:00
Balleux Benjamin
ab0e47c55f
Options added : --use-element-types and --use-element-hierarchy
2017-04-19 12:07:03 +02:00
Balleux Benjamin
a02b189f69
Bug Fix : the previous commit made the program crash when an object has no parent
2017-04-12 16:11:37 +02:00
Balleux Benjamin
a2aa2bf9eb
Send hierarchy data to the serializer WIP
2017-04-12 14:38:54 +02:00
Balleux Benjamin
b9e9bfeceb
Handle errors : when an object has no parent
2017-04-12 13:36:12 +02:00
Balleux Benjamin
37f7fbecca
Retrieve the type and the hierarchy of the IFC and write it in the .dae files
2017-04-11 17:26:30 +02:00
Thomas Krijnen
50ea73a28f
Update IfcConvert help text
2017-03-04 14:16:54 +01:00
Stinkfist0
026b4853a2
IfcConvert: single point for IFC file parsing and potential parsing error reporting.
2017-03-04 13:54:19 +01:00
Stinkfist0
cd132473f5
IfcConvert: instead of global --traverse option provide --include+ and --exclude+ options that control traversal on per filter basis.
2017-03-04 13:54:19 +01:00
Stinkfist0
06c1ea9d2c
Doc tweaks [ci skip]
2017-03-04 13:54:19 +01:00
Stinkfist0
b058647d46
IfcLogger: convenience shorthands Notice(), Warnings() and Error()
2017-03-04 13:54:19 +01:00
Stinkfist0
0383221d00
IfcConvert: print information about the used filters.
2017-03-04 13:54:19 +01:00
Stinkfist0
678d422ec8
Fix errors in rebase merge.
2017-03-04 13:54:19 +01:00
Stinkfist0
eade74c919
Fix --traverse --exlucde=<entities|layers> + clean up duplicate code. filter::traverse_match: dynamic_cast instead of static_cast as the decomposing entity is not guaranteed to be IfcProduct
2017-03-04 13:54:19 +01:00
Stinkfist0
9074f25e93
Fix --exclude=arg when --traverse used also.
2017-03-04 13:54:19 +01:00
Stinkfist0
4b5790e83a
IfcConvert: minor cleanup + fix guid exclusion filter's value population.
2017-03-04 13:54:19 +01:00
Stinkfist0
470b08cd04
IfcConvert: output regular prints to cout instead of cerr.
2017-03-04 13:54:19 +01:00
Stinkfist0
d88c93a150
Cleaning up geom filters.
2017-03-04 13:54:19 +01:00
Stinkfist0
7101ac22c8
Refactor template class arg_filter into string_arg_filter instead, support for IfcProxy.Tag (untested, did not find suitable test input yet).
2017-03-04 13:54:19 +01:00
Stinkfist0
1b7d38a56d
support for IfcConvert -include=arg <Description|Tag> (for IfcElement.Tag, not yet for IfcProxy.Tag).
2017-03-04 13:54:19 +01:00