Anders Granskogen Bjørnstad
aec9d32ce7
test: Add {cylinders,ellipses}.ifc samples
...
A bare-bones IFC with four cylinders/ellipses. Used for SVG conversion
testing.
2017-11-25 13:06:03 +01:00
Anders Granskogen Bjørnstad
376c2de85c
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
d53d4a96c9
SvgSerializer: Add closed circle warning
...
Only refactoring, adding a warning.
2017-11-25 13:06:03 +01:00
Thomas Krijnen
91f8ba2c3e
Don't rely on man for ld feature detection
2017-11-18 16:51:59 +01:00
Thomas Krijnen
41ef6958a7
Don't pass empty arguments to boost build
2017-11-18 16:50:38 +01:00
Thomas Krijnen
1e851ca5ad
Fix typo
2017-11-13 13:01:59 +01:00
Thomas Krijnen
21c5400406
Fixes for boolean ops on recent OCCT versions
2017-11-13 12:41:37 +01:00
Anders Granskogen Bjørnstad
468555f24c
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
092f073647
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
2dbc3b43c6
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
3071caf4b1
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
civilx64
7829041a7c
Create docstrings for generated python code.
2017-11-08 13:29:09 +01:00
Thomas Krijnen
9765faa35c
Fill holes in composite curves, fixes #282
2017-11-08 13:27:45 +01:00
thorade
8d33abc5c7
autopep8 aggressive
...
autopep8 --in-place --recursive --max-line-length=200 --aggressive --aggressive --aggressive ifcopenshell
2017-11-07 15:28:45 +01:00
thorade
80360c278d
autopep8
...
autopep8 --in-place --recursive --max-line-length=200 ifcopenshell
2017-11-07 15:28:45 +01:00
Stinkfist0
c357ab2c69
build-deps.cmd: fix boost build configuration for VS 2015. Fixes #279 . [ci skip]
2017-11-05 16:18:00 +01:00
thorade
407388503e
identical from __future__ import in ALL py files
2017-11-05 16:17:27 +01:00
Anders Granskogen Bjørnstad
8b0f2b650a
geom/app.py: ConfigParser py2/py3 fix
...
When running the viewer app in python3, I got the following crash:
Traceback (most recent call last):
File "geom_app.py", line 2, in <module>
ifcopenshell.geom.app.application().start()
File "/usr/lib/python3/dist-packages/ifcopenshell/geom/app.py", line 534, in __init__
self.editor = code_edit(self.canvas, configuration().options('snippets'))
File "/usr/lib/python3/dist-packages/ifcopenshell/geom/app.py", line 68, in __init__
config = Cfg()
TypeError: 'ConfigParser' object is not callable
Unify configparser usage for py2 and py3 by making sure the py3 path
also gives a callable Cfg
2017-11-05 16:16:49 +01:00
thorade
0f150b1522
ignore *.py.bak files
2017-11-03 11:05:02 +01:00
thorade
2978cc1912
also ignoe files generated by PyCharm
2017-11-03 11:05:02 +01:00
Matthis Thorade
e8b15cc0ef
py 2 and 3
...
http://python3porting.com/noconv.html#handling-exceptions
this is the first error i get when i try to start th eviewer from python 3
using the two-line from https://github.com/IfcOpenShell/IfcOpenShell/commit/1d1fb6d27a5bb1f221aed4dc290c1dc99a324e0f#commitcomment-17161165
2017-10-30 10:31:35 +01:00
Thomas Krijnen
6148f08d14
update SWIG to latest release
...
#277
2017-10-30 10:26:27 +01:00
Matthis Thorade
eb87d50548
update SWIG to latest release
...
because SWIG 3.0.7 is two years old and the intermediate releases all mention minor Python fixes.
http://www.swig.org/
I have used this for the last couple of builds and did not notice any negative effects.
2017-10-30 10:23:53 +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
Thomas Krijnen
095801faa1
Fix warning
2017-10-23 13:47:37 +02:00
Thomas Krijnen
07954122fb
Fix #275
2017-10-23 13:32:57 +02:00
Stinkfist0
b347a488af
build-deps.cmd: update Boost to latest 1.65.1. Fixes #249 .
2017-10-18 13:58:32 +02:00
Campbell Barton
0429e765b5
Validate mesh input
...
This report comes from a but reported to Blender, where invalid geometry is apparently created by this importer.
https://developer.blender.org/T52921
2017-10-15 12:32:49 +02:00
Thomas Krijnen
33220fa78c
Update python module install script
2017-10-06 16:37:22 +02:00
Thomas Krijnen
effcecc75f
ifcopenshell.template.create()
2017-10-06 16:05:55 +02:00
Thomas Krijnen
85f872d3b8
ifcopenshell.guid.new()
2017-10-06 16:03:04 +02:00
Thomas Krijnen
f3b3e2a441
More meaningful error message setting attributes in python
2017-10-06 16:02:34 +02:00
Thomas Krijnen
25d68d320d
Remove auto keyword
2017-10-06 16:01:18 +02:00
Matthis Thorade
c38ac108cc
basestring for py3
...
this closes #262
2017-10-06 15:49:19 +02: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
Thomas Krijnen
34d04c0da7
Add test case
2017-10-06 15:41:39 +02:00
Thomas Krijnen
6c4fee1028
Color elements by material association. Reimplement reuse detection. Fix #265
2017-10-06 15:36:51 +02:00
Thomas Krijnen
ada503dbf1
Fix #266
2017-10-02 10:22:57 +02:00
Thomas Krijnen
8d0c95a939
Fix typo
2017-09-26 21:16:44 +02:00
Thomas Krijnen
7ba0b04031
Set mmacosx-version-min to 10.9 for OCCT
...
See https://github.com/openMVG/openMVG/issues/316#issuecomment-332142824
2017-09-26 11:43:03 +02:00
Thomas Krijnen
688a652bc1
Fix #261
2017-09-25 14:57:49 +02:00
Thomas Krijnen
d839238949
Yet another repetition for cyclic symbol references
2017-09-24 22:15:33 +02:00
Thomas Krijnen
f91ac2b375
Add py 3.6.2 to build-all.py
2017-09-24 13:37:14 +02:00
thomas.guenet
8792a8d750
CMakeLists.txt: add icui18n library for linux compilation
2017-09-22 11:56:10 +02:00
Thomas Krijnen
f981c43042
More robust file download
2017-09-18 14:51:58 +02:00
Thomas Krijnen
8c26037f84
Fix null dereference
2017-09-17 20:22:29 +02:00
Thomas Krijnen
96ec925f31
Spatial Querying: Implementation of BVH tree for IFC files using NCollection_UBTree ( #130 )
...
* Implementation of BVH tree for IFC files using NCollection_UBTree
* Fixes for gcc and OCCT < v6.8
* Enable BVH selection by TopoDS_Shape
* Small fixes to tree
* Merge conflicted files and other changes
* Eliminate one warning (some remain) + add tree test
2017-09-13 13:16:58 +02:00
Thomas Krijnen
ee16deabe5
Fix #38
2017-09-10 17:15:04 +02:00
Thomas Krijnen
4f31b9467a
Fix #248
2017-09-10 16:59:05 +02:00