Commit Graph

472 Commits

Author SHA1 Message Date
Andrej730 0980075c88 ifcpixeltexture tests to reflect actual order of data 2024-04-16 11:17:07 +02:00
Andrej730 5cae82cded Fixed issue with flipped ifcblobtexture loaded to blender 2024-04-16 11:17:07 +02:00
Andrej730 8a1149f0de Fix a few uses of assigning/unassigning agregation after 165262933 2024-04-16 11:17:07 +02:00
Andrej730 994358c50d Support loading styles with IfcPixelTexture 2024-04-16 11:17:06 +02:00
Andrej730 baf00b5b48 Purge IfcWindow/DoorStyle/IfcTypeProduct #4137 2024-04-16 11:17:06 +02:00
Andrej730 50e568b706 prefix bim.assign/unassign_object to avoid operator override #4099
Co-Authored-By: Bruno Perdigão <57102715+brunoperdigao@users.noreply.github.com>
2024-04-16 11:16:59 +02:00
Andrej730 8b69bf00f6 test for loading ifc with blob textures 2024-04-16 11:16:08 +02:00
Andrej730 f526819ef3 test for loading ifc style to blender material 2024-04-16 11:16:08 +02:00
Andrej730 e926547c92 test for tool.Blender.copy_node_graph #3876 2024-04-16 11:12:08 +02:00
Andrej730 83c9d70991 Fix reference images import after styles ui change 2024-04-16 11:12:08 +02:00
Andrej730 fa31e10a77 Styles UI - moved UI from shader graph N-panel to Styles UI #3912
Moved all shading style and textures parameters from shader-graph N-panel to general Styles UI. Shader graph now also update in real time on any prop changes in Styles UI.

Now there is practically no need to switch to shader graph to edit styles shaders - all parameters are available from the Styles UI. That also allows you to edit styles and see the results in viewport even if the edited style is not the one that's currently active.

small demo - https://imgur.com/a/i2suoZw
2024-04-16 11:12:08 +02:00
Dion Moult 401db55c55 Implement support for managing nest hosts and components. 2024-04-16 11:10:58 +02:00
Bruno Perdigão e25948bd03 added more tests 2024-04-16 11:10:58 +02:00
Bruno Perdigão b21b0751fa added test scenario for duplicating an aggregate 2024-04-16 11:10:58 +02:00
Andrej730 44c05ce71d Fix normals for generic parametric stairs #4020
Also made concrete stair normals defined more explicitly.
2024-04-16 11:10:57 +02:00
Andrej730 c3d24c76f2 Reference images attached to the drawings #3447
You can also save them as annotation types.
Example - https://imgur.com/a/6trT7SZ
2024-04-16 11:09:32 +02:00
Andrej730 e51d2daf64 Fixed issues applying arrays
because pset wasn't removed BBIM was recognizing those elements as parts of an array resulting in issues during deletion and duplication. This issue is a regression after ec4f0e5, the root problem was that `keep_objs` wasn't working with `sync_children`.

Since `keep_objs` was used only for applying array layers I've replaced it with `array_layers_to_apply` that works for both `sync_children` = True and False.

https://community.osarch.org/discussion/1831/duplicating-failed-for-array-items-after-apply-array
2024-04-16 11:09:32 +02:00
Andrej730 f99029d8ad moved load_texture_map to tool.Loader, added a test 2024-04-16 11:09:29 +02:00
Andrej730 4e71671412 test creating surface style without IFC entities 2024-04-16 11:09:28 +02:00
Andrej730 4fba7461c2 Fixed more overlooked context overrides... #3876 2024-04-16 11:05:26 +02:00
Andrej730 d56ec42905 minor fix - clean up after debug 2024-04-16 11:05:26 +02:00
Andrej730 bf943951c1 Tests for connecting mep elements and regenerating them
Also:
- fixed bug with bim.mep_connect_elements not considering actual blender blender object's position
- moved syncing ifc position with blender object position to tools (sync_object_ifc_position)
- fixed a bug in adding a bend that occured if either any of the start/end points of the start/end segments matched - in that case one of the segments end up not connected to the bend
2024-04-16 11:05:26 +02:00
Andrej730 0cc337fa88 fixed issue adding bend between segments located at the same point
also added some tests
2024-04-16 11:05:26 +02:00
Andrej730 fd69d91776 UI for assigning controls to flow elements #3981
Example - https://imgur.com/a/CZQIoHp
2024-04-16 11:05:25 +02:00
Andrej730 61e5533598 tool.System.add_ports tests 2024-04-16 11:05:25 +02:00
Andrej730 29dda335ea test stairs calculated params 2024-04-16 11:05:25 +02:00
Andrej730 168095b1c1 Nosing Lengths / Tread Gap for parametric stairs #3422
Example - https://imgur.com/d8PxLV4
2024-04-16 11:05:25 +02:00
Andrej730 ba1a84e51b add force depsgraph update method 2024-04-16 11:05:24 +02:00
Andrej730 617c8b9fd5 stair profile generation code refactor
hopefully it's now a bit more readable
2024-04-16 11:05:24 +02:00
Andrej730 7d25261395 move generate_stair_2d_profile to tool, add tests 2024-04-16 11:05:24 +02:00
Andrej730 5695efa997 fixing test after 0d0b91e 2024-04-16 11:05:23 +02:00
Andrej730 371c54036d test creating mep transition 2024-04-16 11:05:23 +02:00
Andrej730 056e0b050d fixed core tests after switch_representation changes 2024-04-16 11:05:23 +02:00
Dion Moult ca1925cc9f You can now specify a name when adding materials 2024-04-16 11:04:29 +02:00
Andrej730 fb650a8516 option to set active system
Now it's possible to set in UI active system (currently it's done "select" button next to the system).

Also changed the elements that are going to be decorated with system decorator. Previously it was decorating all the mep elements in the projects which was very performance heavy on large projects.
2024-04-16 11:04:29 +02:00
Andrej730 91c7fe4628 Fixed tests after selector syntax update 2024-04-16 11:04:29 +02:00
Andrej730 64f1ea9034 Fix tests after 808ff54 2024-04-16 11:04:29 +02:00
Andrej730 6297afa04c Fixed test after c34a9c5
Also fixed bug in the sheeter
2024-04-16 11:04:29 +02:00
Andrej730 219a5bbcf7 Fixed test after 418444a 2024-04-16 11:04:29 +02:00
Andrej730 ab39983d26 Fixed test after 90b40ff 2024-04-16 11:04:29 +02:00
Andrej730 52d67052bd Fixed test after 88d96f7 2024-04-16 11:04:29 +02:00
Andrej730 834bde2b63 Fixed test after 6e9639446 2024-04-16 11:04:29 +02:00
Andrej730 6a7f8f65c7 move to tools methods for working with manual booleans #3709
Also fixed a bug adding boolean when pset is already added and representation type in add_boolean

```
  File "\addons\blenderbim\tool\ifc.py", line 201, in execute
    IfcStore.execute_ifc_operator(self, context)
  File "\addons\blenderbim\bim\ifc.py", line 336, in execute_ifc_operator
    result = getattr(operator, "_execute")(context)
  File "\addons\blenderbim\bim\module\model\opening.py", line 534, in _execute
    data = json.loads(pset["Data"])
  File "\addons\blenderbim\libs\site\packages\ifcopenshell\entity_instance.py", line 248, in __getitem__
    if key < 0 or key >= len(self):
TypeError: '<' not supported between instances of 'str' and 'int'
```
2024-04-16 11:04:28 +02:00
Massimo Fabbro fee390c7ed refactor create spaces from walls 2024-04-16 10:55:57 +02:00
Dion Moult 22ba8ce496 You can now easily create orthographic and perspective model drawings from a preset 2024-04-16 10:55:57 +02:00
Andrej730 739b793cd7 test for model.get_manual_booleans() #3709
added test that model.get_manual_booleans will ignore IfcBooleanClippings until we find some other solution to distinguish automatic and manual clippings. And some refactor along the way.
2024-04-16 10:55:56 +02:00
Dion Moult 74ca102f6a Georeference module now supports IFC2X3 georeferencing / conversion utilities. 2024-04-16 10:55:56 +02:00
Sigma Dimensions (Yass) 2575348c9d change tests due to new class assignment workflow ref commit 808ff54 2024-04-16 10:37:18 +02:00
Dion Moult f6cd6d2591 Splitting by edge now resolved mapped representations, voided, and non-mesh geometries 2024-04-16 10:37:17 +02:00
Massimo Fabbro d3a37bf0eb Add model test about manual booleans 2024-04-16 10:37:17 +02:00