Commit Graph

10239 Commits

Author SHA1 Message Date
Dion Moult 2c169fdc24 Forgot to commit clash tool 2024-04-18 10:43:02 +02:00
Dion Moult 94bad4c4cb Switch over clash to latest add_element signature 2024-04-18 10:43:02 +02:00
Dion Moult 3f456c14b6 Minor note about which OCCT version is currently supported 2024-04-18 10:43:02 +02:00
Dion Moult 24677683ba Write docs about new geometry tree clash functions 2024-04-18 10:43:02 +02:00
Dion Moult 8f19f6ce07 Reinclude missing max_protrusions_ 2024-04-18 10:42:35 +02:00
Thomas Krijnen ea17cd9b42 Fix is_manifold(), sorry :( 2024-04-18 10:42:35 +02:00
Thomas Krijnen 75732d1d5d Integrate @Moult's add_element(TriangulationElement*) 2024-04-18 10:42:33 +02:00
Dion Moult 23f91c73af Clash detection features 2024-04-18 10:40:32 +02:00
Thomas Krijnen 4e4b8e0de1 Resolve merge conflict 2024-04-18 10:14:42 +02:00
Thomas Krijnen 7aa7f26708 Fix #4307 2024-04-18 10:14:15 +02:00
Andrej730 4f92b3587c fix styles tests 2024-04-17 15:00:40 +02:00
Andrej730 6acdadba75 Fix tests, clean up file creating empty project
To fix tests changed bim.unlink_object not to unlink original blender materials as they might be used elsewhere.
2024-04-17 15:00:40 +02:00
Andrej730 6d6c9e19b9 restore accidentally unregistered operator in 9be7d95 (caused issue in tests) 2024-04-17 15:00:40 +02:00
Andrej730 edd8d5470e small optimization
not to calculate each quantity twice
2024-04-17 15:00:40 +02:00
Andrej730 d5384e76eb fix tests 2024-04-17 15:00:39 +02:00
Andrej730 7cfeaa6047 typing 2024-04-17 15:00:39 +02:00
Andrej730 91765d3156 fix test after 7634e71 2024-04-17 15:00:39 +02:00
Thomas Krijnen a764387b90 Don't accept non-finite floats #4329 2024-04-17 15:00:07 +02:00
Ian b40c3fc173 Update build-deps.cmd 2024-04-17 14:58:14 +02:00
Gorgious56 ac72534ae0 You can now select only the aggregate or the aggregate and all its part using the interface 2024-04-17 14:58:13 +02:00
Dion Moult 9f43e9422a Blender IfcClash interface now supports new IfcClash modes
The dumb clash manager has been merged in with the main clash sets window. Loading and saving clashes now also bring in clash results, so the dumb clash manager's load/save is being deprecated. New decorator highlights clash result visually.
2024-04-17 14:58:13 +02:00
Dion Moult 18c38b312d Upgrade IfcClash to use new clash capabilities (currently unmerged from feature-clash2) 2024-04-17 14:58:13 +02:00
Andrej730 71013a48d4 Fix hiding annotation objects without repr on drawing activation 2024-04-17 14:58:13 +02:00
Andrej730 98e0070be7 typing 2024-04-17 14:58:13 +02:00
Andrej730 9ae39f1edc fix duplicated function names in test_feature 2024-04-17 14:58:13 +02:00
Andrej730 1a449905f4 fix linked ifc selectability toggle 2024-04-17 14:58:13 +02:00
Andrej730 2fadfc8eff fix load/unload linked ifc tests 2024-04-17 14:58:13 +02:00
Andrej730 4a513e1e41 fix linked ifc visibility toggle tests 2024-04-17 14:58:13 +02:00
Andrej730 812c2652d3 fix linked ifc wireframe mode toggle 2024-04-17 14:58:13 +02:00
tim ca50044dba Remove object text from subheadings (#4445)
https://github.com/IfcOpenShell/IfcOpenShell/issues/4312
2024-04-17 14:58:13 +02:00
Thomas Krijnen 75b9e6cec9 setOnlyValid() option that skips and logs invalid topology #4130 2024-04-17 14:57:44 +02:00
Bruno Postle 6944c247ca Drawings panel: fix select_all_drawings operator
Previously it always deselected all drawings, now works as advertised
2024-04-17 14:54:42 +02:00
Andrej730 aee264b587 black format 2024-04-17 14:54:42 +02:00
Andrej730 4490efc017 Fix ifc linking tests 2024-04-17 14:54:42 +02:00
Andrej730 37e06338c4 Fix issue removing material set
1) core.remove_material_set were removing material set and calling material_tool.get_active_material_type()
2) material_tool.get_active_material_type() called MaterialsData which failed with the traceback below since props.materias[current_index] had ifc id that were just removed

Traceback (most recent call last):
  File "\prop.py", line 96, in get_material_types
    MaterialsData.load()
  File "\data.py", line 43, in load
    "active_styles": cls.active_styles(),
                     ^^^^^^^^^^^^^^^^^^^
  File "\data.py", line 119, in active_styles
    material = tool.Ifc.get().by_id(material)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File \blenderbim\libs\site\packages\ifcopenshell\file.py", line 411, in by_id
    return self[id]
           ~~~~^^^^
  File \blenderbim\libs\site\packages\ifcopenshell\file.py", line 396, in __getitem__
    return entity_instance(self.wrapped_data.by_id(key), self)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File \blenderbim\libs\site\packages\ifcopenshell\ifcopenshell_wrapper.py", line 4619, in by_id
    return _ifcopenshell_wrapper.file_by_id(self, id)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Instance # 66 not found
File "\prop.py", line 94, in get_material_types
WARN (bpy.rna): C:\Users\blender\git\blender-v410\blender.git\source\blender\python\intern\bpy_rna.cc:1366 pyrna_enum_to_py: current value '2' matches no enum in 'BIMMaterialProperties', '', 'material_type'
2024-04-17 14:54:42 +02:00
Andrej730 2b27f4423f fix ui error getting active styles for non IfcMaterial materials
Error was:

```
Traceback (most recent call last):
  File "\blenderbim\bim\module\material\ui.py", line 43, in draw
    MaterialsData.load()
  File "\blenderbim\bim\module\material\data.py", line 43, in load
    "active_styles": cls.active_styles(),
                     ^^^^^^^^^^^^^^^^^^^
  File "\blenderbim\bim\module\material\data.py", line 117, in active_styles
    return results

  File "\blenderbim\libs\site\packages\ifcopenshell\entity_instance.py", line 194, in __getattr__
    raise AttributeError(
AttributeError: entity instance of type 'IFC4.IfcMaterialLayerSet' has no attribute 'HasRepresentation'
```
2024-04-17 14:54:42 +02:00
Andrej730 ecc8832c46 typing and small refactor 2024-04-17 14:54:42 +02:00
Andrej730 dbff0e51aa Blender 4.1 - fix errors due to renamed type manager icon 2024-04-17 14:54:42 +02:00
FabioPiccinini 8464fb5aad Update sample.css (#4459)
Changed unescaped ; with , because it may cause problems if the style is included in svg
2024-04-17 14:54:42 +02:00
FabioPiccinini e3f66981e7 Unescaped ; was causing problems in Inkscape (#4456)
* Update default.css

An unescaped ; was causing problems when opening svgs that included this style with Inkscape

* Update default.css
2024-04-17 14:54:42 +02:00
Thomas Krijnen 7fa3cd45ca #4452 release gil in ifcopenshell.open() and read() 2024-04-17 14:54:42 +02:00
Andrej730 2f5190ac75 add macos py3.11-3.12 to docs 2024-04-17 14:54:42 +02:00
Andrej730 a29fbb6239 bump ifc version #4174 2024-04-17 14:54:42 +02:00
Andrej730 eaf6256048 TesselateElements - avoid processing queries that affect no elements
Previously it was failing with

 File "\ifcopenshell\geom\main.py", line 119, in __init__
    self.this = initializer(
  File "\ifcopenshell\ifcopenshell_wrapper.py", line 2467, in construct_iterator_with_include_exclude
    return _ifcopenshell_wrapper.construct_iterator_with_include_exclude(settings, file, elems, include, num_threads)
TypeError: Attribute of type AGGREGATE OF STRING needs a python sequence of strs
2024-04-17 14:54:42 +02:00
Andrej730 cbc7271885 add_mesh_representation - option to force faceted breps 2024-04-17 14:54:42 +02:00
Andrej730 ac191ac71d typing 2024-04-17 14:54:42 +02:00
Andrej730 afbf001694 grammar 😬 2024-04-17 14:54:42 +02:00
Andrej730 11bf227730 Clarifying info message saving guids to the text inside .blend #4446
Example - https://i.imgur.com/YtuQ9YA.png
2024-04-17 14:54:42 +02:00
Andrej730 860eb054d1 black format 2024-04-17 14:54:42 +02:00
Andrej730 489e92da4e typing 2024-04-17 14:54:42 +02:00