Thomas Krijnen
8384235e10
Tree API extensions in wrapper
2021-05-10 11:47:16 +02:00
Thomas Krijnen
b231e9051b
Update main.py
2021-04-24 15:23:36 +02:00
Jesusbill
711acfe120
revert erroneous mod from bulk change
2021-03-26 17:51:35 +01:00
Jesusbill
9c00872a57
replace settings=None with {}
2021-03-25 00:54:42 +01:00
RobinVanTol
d0a9edd186
Update occ_utils.py
2021-02-21 16:04:42 +01:00
Thomas Krijnen
4e897a0c21
surface style ids on serialization
2021-02-13 16:03:57 +01:00
Manuel
3202174903
Attempt for compatibility with PythonOCC 7.4.1
...
Used import statement from occ_utils.py
added an If-Statement to the GetObject()-call.
Calling SetSelectionPriority directly on ais, as proposed by aothms (https://github.com/IfcOpenShell/IfcOpenShell/issues/1098 ) did not work.
Could load some ifc-models but needs further testing.
2021-01-21 13:34:33 +01:00
Thomas Krijnen
5a11ac0545
Remove debugging statement
2021-01-16 15:12:19 +01:00
Dion Moult
06685f9768
Fix example script for printing out properties. See #1145 .
2020-12-04 10:59:59 +11:00
Laurens Oostwegel
1f938c7f1a
Deleted IfcWall duplicate in defaut styles
2020-11-19 20:35:56 +11:00
htlcnn
286c77e3b0
black ifcopenshell-python
2020-11-02 08:28:02 +11:00
CyrilWaechter
60147a8ec9
Fix collections deprecation warning
...
```python
ifcopenshell/geom/occ_utils.py:28ifcopenshell/geom/occ_utils.py:28
/home/cyril/git/BIMxBEM/ifcopenshell/geom/occ_utils.py:28: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working
from collections import namedtuple, Iterable
```
2020-10-10 10:30:08 +02:00
Thomas Krijnen
e2784fb69b
Backwards pyocc compatibility in occ_utils
2020-06-15 11:36:13 +02:00
Thomas Krijnen
e2e217700d
#843 SetTransparency requires theToUpdateViewer
2020-06-12 11:18:30 +02:00
Thomas Krijnen
6aa32fb77a
Remove debugging statement
2020-05-31 17:11:00 +02:00
Thomas Krijnen
be96cee77d
Iterator include/exclude of entity_instance in Python
2020-05-31 17:08:19 +02:00
Thomas Krijnen
1eea532c9e
python interator include/exlude entity types
2020-05-31 12:51:21 +02:00
didi-ux
2ee9dafd16
Fix visualization for pythonocc 7.4.0
...
Following up the issue disscused here: https://sourceforge.net/p/ifcopenshell/discussion/1782717/thread/06e3103d93/
The yield and for-loop in initialize_display() changed slightly, 'GetHandles' and 'SetDiffuse' were removed. The directions are now V3d_TypeOfOrientation enumerations (randomly chosen by me) instead of tuples of integers.
2020-05-20 16:14:41 +02:00
Thomas Krijnen
3937d995b6
Merge branch 'master' into v0.6.0
...
# Conflicts:
# src/ifcopenshell-python/ifcopenshell/geom/main.py
2019-12-16 13:41:54 +01:00
Mieszko Boczkowski
1426c7066b
Move has_occ() function to __init__
2019-12-11 11:54:56 +01:00
Mieszko Boczkowski
f84982f99a
Change exception on failed import for Python 2 compatibility
2019-12-11 11:54:56 +01:00
Mieszko Boczkowski
8d4f34461e
Fix OCC imports in Python
2019-12-11 11:54:56 +01:00
Demetrio92
e6cae6e7b9
minor bugfix
...
should be OR, not AN; color is spelled without U everywhere else; exception call itself was breaking
2019-10-17 14:14:15 +02:00
Dion Moult
3d11a98eef
Fix #665 - Display curves too, not just solid elements
2019-09-07 07:40:16 +10:00
Thomas Krijnen
6e4a692de3
Threads in python app
2019-07-19 15:55:22 +02:00
Thomas Krijnen
03da7bc6e4
Fix missing schema identifier in geometry function
2018-09-05 14:43:25 +02:00
Thomas Krijnen
5245341cdc
Correct previous commit
2018-07-08 11:06:45 +02:00
Thomas Krijnen
49932ba5c0
Python wrapper precision updates
2018-07-08 10:32:26 +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
thorade
20cd383504
triple double-quoted docstring
...
and do not use builtin names for variables
2018-05-30 11:32:47 +02:00
Thomas Krijnen
fd821d08cd
Dont fail on missing AIS_MultipleConnectedShape in earlier versions of pyocc
2018-05-17 15:54:12 +02:00
Thomas Krijnen
6b772d18b8
Fixes to qt5 port of viewer app
2018-05-17 15:53:40 +02:00
civilx64
33635c2c40
Port viewer app to PyQt5
2018-05-17 00:11:09 -04:00
Thomas Krijnen
4bed639d9c
Python wrapper geometry handling
2018-01-01 11:22:12 +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
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
0f825b7050
Fix missing import
2017-05-03 15:10:20 +02: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