Commit Graph

1681 Commits

Author SHA1 Message Date
Andrej730 f522e2beb7 some typing 2024-04-16 11:38:20 +02:00
Andrej730 075b9e4775 Fix bug in ExtractElements recipe adding a lot unrelated products
if you'd add a type product and it had material that were used in bunch of ther products
example - https://community.osarch.org/discussion/1965/error-extracting-ifcslab-or-ifccolumn
2024-04-16 11:38:20 +02:00
Andrej730 e289f23c40 root.remove_product - fix some cases producing invalid ifc #4313
always remove IfcRelNests
1) if product is RelatingObject
2) if product is the only RelatedObject
2024-04-16 11:35:31 +02:00
Andrej730 e2ef636209 add fallback to the previous schema versions for docs and mappings
before it was breaking part of BlenderBIM UI if we would open IFC4X1 file
2024-04-16 11:35:31 +02:00
Andrej730 3dd94889fa ifcopenshell installation notion about compiling only specific schemas 2024-04-16 11:33:53 +02:00
Andrej730 c4bf4d7d92 bump required cmake version to remove deprecation warning
deprecation warning:
CMake Deprecation Warning at CMakeLists.txt:20 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
2024-04-16 11:32:04 +02:00
Andrej730 7fc8119956 add a note on get_info_2() #4270 2024-04-16 11:28:59 +02:00
Andrej730 e8055ec396 remove_representation to consider representation item's layers too
and purge layers if they are out of items as they become invalid
2024-04-16 11:28:59 +02:00
Andrej730 8091b25fcd access layer assignments from inverse attribute instead of going through representation inverses 2024-04-16 11:28:59 +02:00
Andrej730 90a77d3453 geometry.remove_representation documentation 2024-04-16 11:28:59 +02:00
Andrej730 947ae02ab9 black format 2024-04-16 11:28:59 +02:00
Andrej730 5b0528cdbc shape builder docs 2024-04-16 11:28:59 +02:00
Andrej730 6d8de6425f shape builder polyline example and tests 2024-04-16 11:28:59 +02:00
Andrej730 c3ddfbdae2 fix couple building docs errors / warnings 2024-04-16 11:28:59 +02:00
Andrej730 d344923a3c shape builder docs fixes 2024-04-16 11:28:59 +02:00
Andrej730 a28e24d2f5 IFC4 Landscape Library
Created IFC library with simple trees, shrubs and hedges - with both 2d and 3d representations. Example - https://i.imgur.com/pOjh1si.png
Now it's available along with the furniture library when creating new project - https://i.imgur.com/Ho0B5Gn.png
2024-04-16 11:28:59 +02:00
Andrej730 8ba68d0f0b static ifcopenshell.geom.serializers and some typing for IDE code hints
code itself should work exactly the same way
2024-04-16 11:28:58 +02:00
Dion Moult 7b7dece5e7 See #4240. Guard against possible user creating invalid userdefined attribute values. 2024-04-16 11:28:58 +02:00
Dion Moult 0d3901336b See #4240. Fix validation issue with perspective drawing pyramid booleans. Boolean clipping results can only be used on swept solids. 2024-04-16 11:28:58 +02:00
Dion Moult 34c6be0f02 See #4240. Fix bug where 2D arbitrary profiles were invalid IFC (used 3D point lists not 2D) 2024-04-16 11:28:58 +02:00
Dion Moult 3d19d4d319 See #4216. Document using OpenCASCADE geometry serialisation to create geometry. 2024-04-16 11:26:47 +02:00
Dion Moult 4ee0930e05 Fix #4109. Write docs about geometry serialiser. 2024-04-16 11:26:47 +02:00
Dion Moult 881f38e163 Fix #4227. Add shapely as an optional dependency for IOS-Python 2024-04-16 11:26:45 +02:00
Thomas Krijnen 1764741027 #4220 weakref to file 2024-04-16 11:26:37 +02:00
Thomas Krijnen eb35b88a1e #4220 Update file.py 2024-04-16 11:26:37 +02:00
Dion Moult f2fab06438 Fix #4089. Document support for Linux AArch64 on Conda. 2024-04-16 11:26:37 +02:00
Dion Moult 1fbc770775 Fix #4211. Minor documentation fix that clarifies upstream bug about whether qto can be assigned to types. 2024-04-16 11:26:37 +02:00
Dion Moult aafda4e787 Fix #4224. Fix sequencing lint bugs. 2024-04-16 11:26:36 +02:00
Andrej730 e841d6ee3a Migrator - basic support for migrating attributes ifc4 -> ifc4x3
And added one of the IfcProperty renamed attribute as an example
2024-04-16 11:26:36 +02:00
Andrej730 f8d38b11e6 Migrator - display some error message for unhandled schemas
Noticed it was resulting in error below migrating to IFC4X3 in some cases as we don't have a mapping for IFC4X3 yet.
```
    if value is None and not attribute.optional():
UnboundLocalError: local variable 'value' referenced before assignment
```
2024-04-16 11:26:36 +02:00
Andrej730 30b51b93af black format 2024-04-16 11:26:36 +02:00
Thomas Krijnen 2aa048d0c9 #4220 Update entity_instance.py 2024-04-16 11:26:36 +02:00
mohamadalbaaj 6f7be74e7c Fixing Dimension Mismatch in Matrix Multiplication 2024-04-16 11:26:36 +02:00
Dion Moult 65c00f75dd Minor test fix 2024-04-16 11:26:36 +02:00
Dion Moult 608147c245 Fix #4195. Fix regressions from f840da3 and add support for "contains string" comparisons. 2024-04-16 11:26:36 +02:00
Dion Moult 33051c0139 Fix #4203. Fix bug where removing nested cost items left orphaned relationships. 2024-04-16 11:26:36 +02:00
c4rlosdias 43259c0124 Added more comparisons in search 2024-04-16 11:26:36 +02:00
sennhvi fd657f2b6f Update geometry_processing.rst
Add an usage example of the parameter include  for the Geometry Iterator
2024-04-16 11:26:36 +02:00
Dion Moult f55b7d439f Fix bug where updating type text literals didn't propagate and formatting rounding null values wasn't handled. 2024-04-16 11:26:35 +02:00
Dion Moult 009d1a0aba Add support for groups in selection queries 2024-04-16 11:25:27 +02:00
Sigma Dimensions (Yass) 63e3786354 add conversion based unit symbols 2024-04-16 11:25:27 +02:00
Thomas Krijnen aca4b4f957 Generalize shortened file.schema attribute 2024-04-16 11:25:27 +02:00
Sigma Dimensions (Yass) a2eef4995c fix resource cost calculation 2024-04-16 11:25:27 +02:00
Sigma Dimensions (Yass) e58495161b Record formula and resource name for cost values when calculating resource cost 2024-04-16 11:25:27 +02:00
Sigma Dimensions (Yass) bf2027ff96 fix cost value calculation when using parent cost 2024-04-16 11:25:27 +02:00
Thomas Krijnen ebd995d98d Update src/ifcopenshell-python/docs/ifcopenshell-python/geometry_processing.rst 2024-04-16 11:17:58 +02:00
wangsenhui c6f7417ce8 add geometry processing with multiple representations example 2024-04-16 11:17:58 +02:00
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