Andrej730
7597b1b29c
bonsai, ifcopenshell - append IfcSurfaceStyles from other projects
...
And other IfcPresentationStyles, though they are not currently supported by bonsai.
Example - https://imgur.com/a/AHlvowp
2024-08-15 18:18:05 +05:00
Andrej730
3860884db3
bonsai other ifcopenshell packages #5178
2024-08-14 16:49:34 +05:00
Andrej730
2a1d1d6e10
bonsaibim urls #5178
2024-08-14 16:49:34 +05:00
Andrej730
eca1d47d06
typing
2024-08-08 18:12:45 +05:00
Andrej730
644f32d11c
Fix errors appending assets when projects are using georeferencing #5110
2024-08-08 18:11:00 +05:00
Dion Moult
b01e93161e
Use vertex buffer for more efficient centroids
2024-08-08 08:24:12 +10:00
Dion Moult
4fd802bf3d
More efficient shape bbox and average vertex centroid function
2024-08-07 17:21:49 +10:00
Andrej730
c8466e0606
typing
2024-08-01 18:01:58 +05:00
Andrej730
e7ef307984
remove redundant indent in bdc5a7a
...
Co-Authored-By: Adi Shavit <1814800+adishavit@users.noreply.github.com >
2024-07-30 18:56:02 +05:00
Blender Defender
5572991a7c
style: Run black on geom/occ_utils.py
2024-07-30 23:04:58 +10:00
Andrej730
46b3bfecd1
fix issues assigning material sets and material lists
2024-07-29 18:53:12 +05:00
Andrej730
a0bda1afd3
typing
2024-07-29 18:53:11 +05:00
Kurt Battisti
dfd505a794
Fix. Docs Georeferencing URL ( #5096 )
...
use users/advanced/georeferencing.html
2024-07-28 00:14:50 +10:00
Dion Moult
a6286293d8
Run black on IOS-Python
2024-07-26 12:00:57 +10:00
Andrej730
eac4e80ee9
typing
2024-07-25 18:36:17 +05:00
Andrej730
8b29e50f11
add_classification - remove dead and deprecated code
2024-07-24 18:24:22 +05:00
Andrej730
075a0c79e2
migrator - consider IfcClassification renamed property
2024-07-24 18:24:22 +05:00
tim
390b280442
Screed added to IfcCovering options
...
Screed added to IfcCovering-predefined_types FLOORING and TOPPING
2024-07-24 10:08:09 +10:00
Thomas Krijnen
e95e92356f
Update src/ifcopenshell-python/ifcopenshell/util/shape.py
...
Co-authored-by: Vyacheslav Dobranov <112861900+VDobranov@users.noreply.github.com >
2024-07-22 03:51:12 +02:00
VDobranov
e27980f746
Update shape.py
...
Following the discussion in Live Chat about length of all edges in a given geometry:
https://matrix.to/#/!ssOmSJysZpXBupsgjO:matrix.org/$0ZHjIFCtpwQl06xdGWlQ9ymsiKWpPuLMczVJnNYmN84?via=matrix.org&via=crossbach.de&via=infeeeee.duckdns.org
2024-07-22 03:51:12 +02:00
Ryan Schultz
ab97f23b47
Fix #5039 - Assure count is an integer
2024-07-20 10:36:26 -05:00
Andrej730
09d5fafdf8
note on OCC imports
2024-07-15 18:34:39 +05:00
Andrej730
54cc4192bd
typing for pythonocc types
2024-07-15 18:34:39 +05:00
Andrej730
eff778d5be
support pythonocc >= 7.8.0 #4942
...
Related: https://github.com/tpaviot/pythonocc-core/issues/1350
Also added a print so this type of errors won't go silently.
2024-07-15 18:34:38 +05:00
Andrej730
66877c227b
typing
2024-07-15 18:34:38 +05:00
Dion Moult
04365053a8
Fix deep purge of unit when converting units and fix bug where unit was removed if map unit was the same as the project unit
2024-07-12 22:48:23 +10:00
VDobranov
f56bae141b
Update shape_builder.py
...
Described in the https://github.com/IfcOpenShell/IfcOpenShell/issues/4989
2024-07-12 14:59:04 +10:00
Andrej730
8579c61ab6
ifcopenshell.draw - add drawing_object_type argument and descriptions
2024-07-11 19:03:09 +05:00
Andrej730
5440445cbc
ifcopenshell.draw - error if just 1 file is provided
2024-07-11 19:03:09 +05:00
Dion Moult
e28b4d40ab
Converting project length units now intelligently preserves map unit and coordinate operation scale.
2024-07-11 23:10:24 +10:00
Dion Moult
a6940d2cba
Fix bug where schema instead of schema_identifer was used to get the schema_by_name. Fix tests to use IFC4X3_ADD2 so that you only need the official version compiled
2024-07-11 22:26:19 +10:00
Andrej730
86fa24aba3
fix support for Python <3.11
2024-07-10 21:37:08 +05:00
Andrej730
feea42f988
ifcopenshell.draw - add hlr_poly option
2024-07-10 15:34:35 +05:00
Dion Moult
4e78de6ce9
You can now select group and system data in selectors
2024-07-10 17:30:38 +10:00
Andrej730
8e86b3d1d8
util.shape - optimize by using shape buffers and numpy
2024-07-08 18:49:12 +05:00
Andrej730
acf135a6ed
Store item_ids in imported meshes and set them on toggling edit mode
...
It will be used later to add more IFC capabilities to EDIT mode.
Example - https://imgur.com/a/HAkjoCY
2024-07-08 17:46:11 +05:00
Andrej730
b45a995bb3
typing
2024-07-08 17:43:55 +05:00
Dion Moult
95f71a2e2f
You can now specify custom project norths when loading in models in absolute terms
2024-07-06 15:43:16 +10:00
Andrej730
f1290ef061
Replace SEW_SHELLS with REORIENT_SHELLS #4832
2024-07-04 11:10:24 +05:00
Thomas Krijnen
10059a722b
Handling of None in draw.py #4924 - mostly untested
2024-07-03 20:02:13 +02:00
Andrej730
8f92877fb4
typing
2024-07-03 18:12:20 +05:00
Andrej730
5d1b2e4651
black format
2024-07-03 18:12:19 +05:00
Andrej730
9485190604
ifcopenshell.draw - omit sys.argv + help message
...
To make sure user will get an error if files are not provided - if we use sys.argv then we always have __file__ in it and if user won't provide fiels they'll get a less readable error
Before:
sr.setFile(files[0])
~~~~~^^^
IndexError: list index out of range
Now:
usage: draw.py files [files ...]
draw.py: error: the following arguments are required: files
2024-07-02 15:32:48 +05:00
Andrej730
d1523eaeac
ifcopenshell.draw - update to v0.8
2024-07-02 15:32:48 +05:00
Andrej730
1af8e7d0ef
ifcopenshell.geom.serializers - avoid wrappers for svg/obj
...
To keep the signatures
2024-07-02 15:32:48 +05:00
Andrej730
ae2a299616
move IfcHeaderExtractor to util.file
...
edited pyproject.toml as `disableBytesTypePromotions` is disabled by default in non-strict mode and type checker intrerprets `bytes` as `bytes | memoryview | bytearray` which is deprecated in https://peps.python.org/pep-0688/#no-special-meaning-for-bytes
2024-07-01 18:26:03 +05:00
Andrej730
8538a916a3
ifcopenshell.file docs
2024-07-01 18:26:02 +05:00
shungeer
8c12da13e6
Update README.md about extend express usage ( #4841 )
...
1. C++ code generation by extend express.
2. python rule code generation by extend express.
2024-07-01 11:20:30 +10:00
Dion Moult
0d401c9272
Fix bug where migrating length units didn't change properties. Unit utility for checking attribute types now considers select types too
...
Changing properties is very critical for IFC2X3 georeferencing which is stored in a pset.
2024-06-29 17:04:27 +10:00
Andrej730
dcc568f5a3
ifcopenshell.geom.create_shape - expose geometry_library argument
2024-06-28 18:24:58 +05:00