Thomas Krijnen
4bed639d9c
Python wrapper geometry handling
2018-01-01 11:22:12 +01:00
Thomas Krijnen
e2f79ec1ba
Work on python wrapper
2017-12-31 12:20:13 +01:00
tymokvo
39b0d11746
fixed missing bracket
2017-12-06 12:20:22 +01:00
tymokvo
e06105e878
added some documentation/examples
2017-12-06 12:20:22 +01:00
thorade
6cd59aa121
autopep8 aggressive
...
autopep8 --in-place --recursive --max-line-length=200 --aggressive --aggressive --aggressive ifcopenshell
2017-11-07 15:28:45 +01:00
thorade
8439e5b46d
autopep8
...
autopep8 --in-place --recursive --max-line-length=200 ifcopenshell
2017-11-07 15:28:45 +01:00
thorade
6bffee83fe
identical from __future__ import in ALL py files
2017-11-05 16:17:27 +01:00
Anders Granskogen Bjørnstad
f3e20ae450
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
Matthis Thorade
afce8b37c4
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
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
Matthis Thorade
c38ac108cc
basestring for py3
...
this closes #262
2017-10-06 15:49:19 +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
430ab54602
ifcopenshell.file.from_string()
2017-08-22 10:16:07 +02:00
Thomas Krijnen
7bea054c1e
get_log in python
2017-08-19 16:54:06 +02:00
Thomas Krijnen
f12d8eeaa6
by_guid() and unicode in py2
2017-08-04 16:31:10 +02:00
Thomas Krijnen
85524170dd
More advanced entity_instance.get_info()
2017-08-04 16:30:43 +02:00
Thomas Krijnen
a58f23fae2
Missing introspection methods in Python
2017-08-02 16:08:07 +02:00
Thomas Krijnen
94224411a9
Recursive get_info()
2017-08-02 16:06:27 +02:00
Thomas Krijnen
5c7e7cab1a
Raise IndexError
2017-08-02 16:05:56 +02:00
Thomas Krijnen
04e3018f3c
Use default logger
2017-07-17 18:09:49 +02:00
Thomas Krijnen
901ef57d60
Fix #180
2017-07-03 14:18:56 +02:00
Thomas Krijnen
a27e516011
Elided argument in ifcopenshell.file constructor
2017-06-20 18:53:39 +02:00
Thomas Krijnen
5e0da9725a
ifcparse refactoring ( #190 )
...
Unify attribute containers, provide latebound attribute access on IfcBaseEntity, more basic tests on Travis
2017-06-05 17:26:58 +02:00
Thomas Krijnen
0f825b7050
Fix missing import
2017-05-03 15:10:20 +02:00
Thomas Krijnen
4faa66f9b8
Fix for python 2.7
2017-03-09 12:04:07 +01:00
Thomas Krijnen
5705f24f3e
python: make logging import conditional in case time is not built
2017-03-09 11:47:54 +01:00
Thomas Krijnen
52d035d09a
python: don't import platform module as it may depend on select which might be unavailable
2017-03-09 10:16:22 +01:00
Jelle Feringa
5d6160b47a
log exceptions on get_info method
...
these exceptions currently are actively being hidden, which is
intransparent / could make debugging challenging
improved formatting tot pep8
2017-01-04 10:26:04 +01:00
aahoo
99bde93af5
adds get_info method for class #resolves #175
2017-01-01 18:15:55 +01:00
Thomas Krijnen
c94ed73b8d
Incorporate console into main app, fallback to QPlainTextEdit, some styling
2016-11-28 17:46:57 +01:00
jakob-beetz
90e4f21f29
Interactive scripting pane added to pyQt viewer geom.app
2016-11-28 17:46:57 +01:00
jakob-beetz
3ba2f781d8
added a property panel tab to the PyQt geom.app viewer that shows all properties from IfcPropertySets attached to the currently selected object
2016-11-28 17:46:57 +01:00
Thomas Krijnen
8a92e1a766
Speed up geometry generation in ifcopenshell.geom.application by using iterator pt2.
2016-09-22 13:45:32 +02:00
Thomas Krijnen
efd6eb7f97
Speed up geometry generation in ifcopenshell.geom.application by using iterator
2016-09-22 13:40:39 +02:00
Thomas Krijnen
7ed98869d2
Update ifcopenshell.geom.app for pyocc-0.16.5
...
https://github.com/tpaviot/pythonocc-core/commit/3d7b9745359b436b4144105f7e17aa0040acb8c6
2016-09-13 14:05:28 +02:00
Thomas Krijnen
240133515a
Unify usage of spaces in Python library code
2016-07-18 15:53:20 +02:00
Thomas Krijnen
b7f23ee701
Implement option to get generic inverses from Python
2016-07-18 14:47:32 +02:00
Thomas Krijnen
aebb9e324b
Geometry serialization ( #71 )
...
Serialize geometry to IFC instances directly from a TopoDS_Shape
2016-06-22 15:03:18 +02:00
Thomas Krijnen
7c0944e43b
Defer pythonOCC imports in order not to break if unavailable
2016-05-19 13:31:54 +02:00
Thomas Krijnen
fefa8a0563
option to pass settings to pyqt4 app
2016-05-03 11:05:46 +02:00
Thomas Krijnen
416b163050
Correct display_shape on TopoDS_Shape
2016-04-19 15:42:59 +02:00
Thomas Krijnen
1d1fb6d27a
First steps towards a PyQt4 application
2016-04-17 15:27:05 +02:00
Thomas Krijnen
81ee60079e
Enable per-item styles in the pythonOCC viewer
2016-04-11 11:50:43 +02:00
Thomas Krijnen
426b1279e3
Implement __hash__ and __eq__ functions on entity_instance
2016-04-09 20:20:08 +02:00
aothms
0d42a293ad
Add license header to occ_utils
2016-01-08 08:38:21 +01:00
aothms
fe699e0a81
Fix python module import
2015-12-21 11:47:38 +01:00
aothms
fdf1b29682
Return shape for arbitrary representation items in ifcopenshell.geom.create_shape()
2015-10-22 12:04:49 +02:00
aothms
a58b2ede63
Fixes for unicode handling in Python
2015-09-13 14:43:42 +02:00