Dion Moult
a67927ae67
Automatically merge excessive styles when loading models
...
Came across this problem with some models from 12D
bonsai-0.8.2-alpha2503070602
2025-03-07 17:02:05 +11:00
Dion Moult
1271e4b7e3
New IfcPatch recipe to merge identical styles
2025-03-07 17:01:14 +11:00
Andrej730
a44d0e713a
Bump Blender build and fix dead url
bonsai-0.8.2-alpha2503061412
2025-03-06 19:11:46 +05:00
Andrej730
a358cff1b7
Fix extrusion position update on OffsetFromReferenceLine changed #6255
...
Also fixed an issue when previously there was an offset and now it was set to 0 but slab did not reset it's position.
bonsai-0.8.2-alpha2503061344
2025-03-06 18:43:54 +05:00
Andrej730
188ca3e402
Fix bim.profiles_ui_select button in profiles set ui
...
It was using IfcMaterialProfile id instead of IfcProfileDef id, so profile was never selected
Example - https://imgur.com/a/Sf1ghPO
2025-03-06 18:43:54 +05:00
Andrej730
b5260d3005
copy_class to prevent duplicating profiles #6261
2025-03-06 18:43:54 +05:00
Andrej730
79940641b2
typing
2025-03-06 18:43:54 +05:00
Andrej730
7458040949
Fix ifcpatch unit conversion for lists of ifc entities #6280
bonsai-0.8.2-alpha2503061115
2025-03-06 16:14:02 +05:00
Andrej730
14eb543662
TestConvertFileLengthUnits - add attributes conversion tests
2025-03-06 16:14:02 +05:00
Andrej730
e786687882
ConvertFileLengthUnits - unify tests, add ifc4x3 tests
2025-03-06 16:14:02 +05:00
Andrej730
37e131193b
edit_georeferencing - add note on MapUnit data type
2025-03-06 16:14:02 +05:00
Andrej730
dfb00f27bb
Fix georeferencing docs url
2025-03-06 16:14:02 +05:00
Dion Moult
53dea65d8b
See #1227 . Implement joins for sloped walls.
bonsai-0.8.2-alpha2503060839
2025-03-06 19:38:46 +11:00
Andrej730
2c16839de7
Fix parametric stairs/railings/roofs not updating ifc link after representation update #6264
...
Related to 3107fd9
bonsai-0.8.2-alpha2503051354
2025-03-05 18:53:57 +05:00
Andrej730
c4f2d556f1
Uncomment use of get_edges_representation_item_ids
...
as build was updated awhile ago
2025-03-05 18:53:57 +05:00
Andrej730
74900193ee
merge_identical_objects to use quicker version of get_info
2025-03-05 18:53:57 +05:00
Andrej730
2987d38a31
append_asset - check unique styles based on their name #6269
2025-03-05 18:53:56 +05:00
Andrej730
08b50bb9ea
Library UI - recognize already appended styles
...
Example - https://i.imgur.com/XCXHY4C.png
Noticed investigating #6269
2025-03-05 18:53:56 +05:00
Andrej730
1257eb0872
append_asset - allow using same name for different ifcpresentationstyle types
...
Since they are not used interchangeably typically.
2025-03-05 18:53:56 +05:00
Andrej730
1c8ef176b1
typing
2025-03-05 18:53:56 +05:00
Andrej730
e1e51cbf26
black .
2025-03-05 18:53:56 +05:00
Andrej730
4c97cc8a41
import_ifc - not to break completely on facing breaking mesh #6270
...
create_mesh returns None only in case if it meets some exception and it prints logs in that case, but atleast some breaking mesh won't be in the way of users trying to open some model
2025-03-05 18:53:09 +05:00
Dion Moult
7c6e124fe9
See #1227 . Basic implementation of sloped walls (joins not yet considered)
bonsai-0.8.2-alpha2503051111
2025-03-05 22:10:33 +11:00
Andrej730
3fc312752b
Show an error for unsupport curve types #6259
bonsai-0.8.2-alpha2503041311
2025-03-04 18:10:42 +05:00
Andrej730
d0cb5456b3
Fix importing IfcPolylines always assuming they're closed
...
Resolved issue during import in #6259 but doesn't completely resolves the issue.
2025-03-04 18:10:42 +05:00
Andrej730
86072079de
draw_image_for_ifc_profile - optimizations using numpy
2025-03-04 18:10:42 +05:00
Andrej730
9440096106
Fix #6260 after 2f6ae17
2025-03-04 18:10:42 +05:00
Andrej730
649a913bbc
add_profile_representation - add test
2025-03-04 18:10:42 +05:00
Andrej730
53a3afaded
typing
2025-03-04 18:10:41 +05:00
Andrej730
33d3984990
add_profile_representation - reuse util.shape methods
2025-03-04 18:10:41 +05:00
Andrej730
5f86c6d1c2
shape_builder.create_axis2_placement_3d_from_matrix - small optimization
...
create_axis2_placement_3d now is fine with numpy arrays
bonsai-0.8.2-alpha2503030859
bonsai-0.8.2-alpha2503030857
2025-03-03 13:54:57 +05:00
Andrej730
10d5378ee3
TessellateElements - small optimization
...
tolist() supports conversion of multidimensional arrays too
2025-03-03 13:54:57 +05:00
Andrej730
7f27785927
docs fixes
...
1) material.add_profile_set doesn't exist
2) usecase.file is not defined, use `model` instead`
3) Specify material for material.assign_material
2025-03-03 13:54:57 +05:00
Andrej730
fed063a0c6
edit_profile_usage - add test
2025-03-03 13:54:56 +05:00
Andrej730
855062e36b
Quick to select profile from BIM Tool in Profile UI
...
Example - https://imgur.com/a/tJdQUGq
2025-03-03 13:54:56 +05:00
Andrej730
7b74b6c68f
Simplify edit_profile_usage with util.shape
2025-03-03 13:54:56 +05:00
Andrej730
a01278aa8d
ifcopenshell.util.shape to return Python floats if return is just a scalar
2025-03-03 13:54:56 +05:00
Ryan Schultz
99c49736fa
small tweak
bonsai-0.8.2-alpha2503021632
2025-03-02 10:31:46 -06:00
Bruno Postle
c1efdbb8ea
black .
bonsai-0.8.2-alpha2503021139
2025-03-02 11:37:52 +00:00
Bruno Postle
e240ae2669
Fix bpy.ops.bim.select_by_material() for layersets
...
This operator assumes all material definitions have a Name attribute,
mostly they do except that Material Layer Sets have a LayerSetName
attribute for reasons.
bonsai-0.8.2-alpha2503021127
2025-03-02 11:24:07 +00:00
Ryan Schultz
945099b817
Set IfcMaterialLayerSetUsage's DirectionSense/OffsetFromReferenceLine/ReferenceExtent on all selected objects
bonsai-0.8.2-alpha2503020005
2025-03-01 18:04:41 -06:00
Bruno Perdigão
f4b0fe6560
Polyline tool - Fix issue where Y and Z axis lock were inverted when in YZ plane.
bonsai-0.8.2-alpha2502281653
2025-02-28 13:52:20 -03:00
Bruno Perdigão
efc6842a9d
Improve snapping for empty objects.
bonsai-0.8.2-alpha2502281644
2025-02-28 13:44:00 -03:00
Bruno Perdigão
43931e951e
Fix another issue (follows 2609a8293c) with walls created with obtuse x_angle.
bonsai-0.8.2-alpha2502281622
2025-02-28 13:19:51 -03:00
Bruno Perdigão
134a480b03
Fix slab preview decorator when using obtuse x_angle.
bonsai-0.8.2-alpha2502281602
2025-02-28 13:02:02 -03:00
Bruno Perdigão
0eb32ed7b7
Refactor ChangeExtrusionXAngle to support obtuse x_angle for slabs.
...
To support obtuse x_angle a refactoring had to be made, which helped
improve the general code for slab addition. This is challenging because
there are a few features that interact with each other to create slabs,
like `depth`, `direction_sense`, `offset` and `x_angle`. In addition,
these interactions can happen in different parts of the code. This
commit addresses `ChangeExtrusionXAngle` in `model/wall.py`.
See e8e88c25fdcef55826443fe6b000aec1baa6f25a for more information.
2025-02-28 13:02:02 -03:00
Bruno Perdigão
1855ac421c
Refactor slab addition to support obtuse x_angle. See #5938
...
To support obtuse x_angle a refactoring had to be made, which helped
improve the general code for slab addition.
This is challenging because there are a few features that interact
with each other to create slabs, like `depth`, `direction_sense`, `offset`
and `x_angle`. In addition, these interactions can happen in different parts
of the code. This refactor improves the coherence between those different parts.
Files changed:
- `api/geometry/add_slab_representation.py`
- `model/slab.py` - inside the function `change_thickness()`
File to be changed in a following commit:
- `model/wall.py` - inside the operator `ChangeExtrusionXAngle` - To-do
2025-02-28 13:02:02 -03:00
Bruno Perdigão
7a69d6f20e
Fix issue when updating wall x_angle with obtuse angle. See #5938
2025-02-28 13:02:02 -03:00
Bruno Perdigão
2609a8293c
Fix issue where walls are created with obtuse x_angle. See #5938
2025-02-28 13:02:02 -03:00
Bruno Perdigão
e68c47a897
Remove code related to 0104a2cc9f
2025-02-28 13:02:02 -03:00