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
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
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
Thomas Krijnen
a3f17cd4e7
Enable passing explicit IfcRepresentation in IfcOpenShell-Python create_shape()
2015-06-02 13:30:02 +00:00
Thomas Krijnen
c97cf661a2
1. Also emit Plan and Axis shape representations and IfcTopologyRepresentations if requested. 2. Add serialization for curves. 3. In Python add option to specify representation for which to generate shape.
2015-04-22 09:15:48 +00:00
Thomas Krijnen
349e7ddaa7
USE_WORLD_COORDS by default when USE_PYTHON_OPENCASCADE is set.
2015-02-20 16:03:20 +00:00
Thomas Krijnen
f20ae8e25e
create a setting to produce pythonOCC shapes for ifcopenshell.geom.iterator and -create_shape()
2015-02-19 21:45:17 +00:00
Thomas Krijnen
1d319f7ac4
Compilation fixes and python 2 compatibility. Thanks Yorik.
2015-01-07 10:22:55 +00:00
Thomas Krijnen
4d5d749255
Merge developments from the python_wrapper branch into master
2015-01-05 14:11:42 +00:00