Commit Graph

1634 Commits

Author SHA1 Message Date
wangsenhui 6084354932 add geometry processing with multiple representations example 2024-04-16 11:17:58 +02:00
wangsenhui 73f81b18fd add geometry processing with multiple representations example 2024-04-16 11:17:58 +02:00
Andrej730 3008599eec Clean up IfcIndexedColourMap removing representation #4138
Because we wasn't removing colour map, remove_representation was producing orphaned IfcPolygonalFaceSet that were referred by colour map.
2024-04-16 11:17:07 +02:00
Andrej730 6b7936c0ce Fix typo in 92cf0d9 2024-04-16 11:17:06 +02:00
Andrej730 0fb2a7e5ec remove_representation not to leave brokens refs with batch_remove #4138 2024-04-16 11:17:06 +02:00
Sigma Dimensions (Yass) 38502734e8 consider unit basis for calculating resource costs #4122 2024-04-16 11:17:06 +02:00
krande f73a438d38 add test and update ci 2024-04-16 11:16:40 +02:00
krande 680f075b1b remove ifc2x3 conditional in conversion utility 2024-04-16 11:16:08 +02:00
krande 5a61173052 update name of function to make its purpose more clear 2024-04-16 11:16:08 +02:00
krande 187da13de8 update unit_assignment 2024-04-16 11:16:08 +02:00
krande 5c75cc6a39 initial proposal for updating units conversion 2024-04-16 11:16:08 +02:00
Sigma Dimensions (Yass) 7f4ab61b8a fix displaying derived task durations 2024-04-16 11:16:08 +02:00
Dion Moult 83a12ea7f9 Nesting collections only generate for element nesting, not port nesting 2024-04-16 11:16:07 +02:00
Andrej730 eb30b30186 style.edit_surface_style to support editing IfcSurfaceStyleLighting
It was failing because api method wasn't supporting IfcColourRgb attributes edit in general but only for IfcSurfaceStyleShading.SurfaceColour
2024-04-16 11:16:07 +02:00
Andrej730 b6b0e958b5 style.add_surface_texture to work without blender material provided 2024-04-16 11:16:07 +02:00
Bruno Postle 343589f1c0 Fix Clipping divide error (reported in #4057) 2024-04-16 11:16:07 +02:00
Dion Moult e40336be2a Fix #4086. Add support for non predefined bSDD pset and qto values. 2024-04-16 11:12:08 +02:00
Andrej730 32c1f20eb3 style.edit_surface_style - fix crash setting attribute to None
Occured on setting IfcColourOrFactor attribute to None (e.g. DiffuseColour).
2024-04-16 11:12:08 +02:00
Martin15135215 55227daf17 add cff for ifcopenshell-python 2024-04-16 11:12:08 +02:00
Ryan Schultz b847656e69 Added classification to selector 2024-04-16 11:10:59 +02:00
Dion Moult 401db55c55 Implement support for managing nest hosts and components. 2024-04-16 11:10:58 +02:00
Andrej730 661d6bcfe7 fixed typo 2024-04-16 11:09:32 +02:00
Thomas Krijnen f50509d2d4 occ_utils.py - #1037 2024-04-16 11:09:32 +02:00
MicheleBenedetti aa33148fe5 mistype-fix 2024-04-16 11:09:32 +02:00
Dion Moult f071c5746b Fix #4057. Data objects for the API are now in util.data instead of mixed into the shape builder utility and only depends on numpy. 2024-04-16 11:09:32 +02:00
Bruno Postle a2a7d56691 minor documentation typo fix 2024-04-16 11:09:32 +02:00
Dion Moult b4bfc6e979 Fix #4057. Move clipping info dataclass to util.shape_builder 2024-04-16 11:09:32 +02:00
Dion Moult d6142d90a9 Fix #3996. Reassigning occurrences or types now also reassigns the correlating occurrence or type. 2024-04-16 11:09:28 +02:00
Dion Moult 4f8a6c47a1 Fix #4052. Bug where invalid plane was generated due to missing X axis. 2024-04-16 11:09:28 +02:00
Dion Moult ac42318a64 Fix #3974. Bug where orphaned histories would be left in API remove operations. 2024-04-16 11:09:28 +02:00
Kristoffer Andersen 4f655870b3 Update installation.rst
add more information about conda package installation
2024-04-16 11:09:28 +02:00
Dion Moult d0cab0821d See #3974. WIP review to ensure history removal in API. 2024-04-16 11:09:28 +02:00
Dion Moult 267505bd99 Fix #4034. Bug where abstract pset template applicabilities didn't apply to occurrences as well as types. 2024-04-16 11:09:24 +02:00
Bruno Postle c846edd896 Revert 1d972a6 as no datetime.UTC on CI server 2024-04-16 11:09:24 +02:00
Bruno Postle 98cba98f7d fix python 3.12 utcnow() deprecation warning
Warning is:

/usr/lib64/python3.12/site-packages/ifcopenshell/api/project/create_file.py:61:
DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version.
Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
2024-04-16 11:09:24 +02:00
Bruno Postle 4b074fc79e python api documentation fix 2024-04-16 11:09:24 +02:00
Andrej730 518f054cbd edit_object_placement optimization for objects with subchildren #4035
1) We were iterating over same subchildren 2 or more times.
2) There is no need to change subchildren position at all since their parent position is already adjusted.

Explained here in detail - https://github.com/IfcOpenShell/IfcOpenShell/issues/4035#issuecomment-1822824352
2024-04-16 11:05:27 +02:00
Andrej730 6fd629f707 Fixed issue reassigning class to type class with userdefined type #4018
When PredefinedType is not found in the related enum reassign_class is considering it USERDEFINED and trying to set .ObjectType. The problem was it was doing for type classes also, when it should have set .ElementType instead.

Why it crashed BlenderBIM - in IfcClassData.data["has_entity"] we store currently active IFC entity which is recreated during `ifcopenshell.util.schema.reassign_class` making old entity invalid. Since `root.reassign_class` was failing in the process, related BBIM operator was failing too, IfcClassData wasn't updated and removed entity was accessed from UI leading to crash.
2024-04-16 11:05:27 +02:00
Dion Moult 990611c160 Add support for loading nested elements and consider nesting for indirect spatial containment. 2024-04-16 11:05:26 +02:00
Andrej730 e17a6c326f minor fix to support union typing before python 3.10 #3774 2024-04-16 11:05:26 +02:00
Andrej730 8dc9376844 ClippingInfo util class to pass and apply plane clippings #3774
Co-Authored-By: Carlos Villagrasa <carvillasil@gmail.com>
2024-04-16 11:05:26 +02:00
Andrej730 1c002c6845 minor fixes
- error in settings poll message for bim.assign_selected_as_product
- test that drawing.assign_product won't create new assignments for the same product
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
VDobranov 8dfd122430 Update reference_structure.py
A mistype in docs: should be IfcRelReferencedInSpatialStructure instead of IfcRelContainedInSpatialStructure
2024-04-16 11:05:26 +02:00
Andrej730 944f8695c7 root.remove_product to remove IfcRelFlowControlElements 2024-04-16 11:05:25 +02:00
Andrej730 72b3f1e967 api for assigning/unassigning flow controls #3981 2024-04-16 11:05:25 +02:00
Andrej730 1bb5a14b65 Fixed typo in control.assign_control, added tests 2024-04-16 11:05:25 +02:00
Igor.Sokolov 4404470d91 bf: IfcBSplineCurve is an isntance of abstract entity 2024-04-16 11:05:24 +02:00
Igor.Sokolov fe4dc87cd1 bf: pass-valid-selected-enumeration.ifc 2024-04-16 11:05:24 +02:00
Igor.Sokolov 0f774a675d bf: pass-group-1-rels-IFC2X3.ifc failed 2024-04-16 11:05:24 +02:00