Andrej730
53a6192858
Skip loading mappings if representation has openings #5405
...
To avoid errors
bonsai-0.8.1-alpha240917
2024-09-17 18:25:59 +05:00
Andrej730
2a2efefac3
IfcSchema declaration_by_name to be safe
...
Couldn't find if we actually use it anywhere in the code but better to keep it safe, especially because it's exposed to Python and by accident user might provide some too bit integer instead of a string.
2024-09-17 16:28:02 +05:00
Andrej730
a7cac5c77b
IfcWrap cmake - regenerate .py and .cxx on changes in ifcopenshell libs
...
Previously they wouldn't be regenerated unless you edit .i files or manually remove .py/.cxx.
2024-09-17 16:28:01 +05:00
Andrej730
1575696a8b
ifcwrap cmake - use default CMP0078 policy
...
Something weird happened during merge in 7d90c31 and changes from 0055a5d were not applied
2024-09-17 16:28:01 +05:00
Thomas Krijnen
555eb44f00
Add IfcAlignmentSegments to XML output
2024-09-17 13:07:33 +02:00
Thomas Krijnen
0b555b30d2
Add IfcAlignmentSegments to XML output
2024-09-17 13:03:25 +02:00
Andrej730
06f14774f7
Avoid more unnecessary calls to docs api
...
Noticed that prop_value could be other types besides str (e.g. int when using context menu on UIList item) and we can skip them to avoid redundant api calls.
bonsai-0.8.1-alpha240916
2024-09-16 18:54:13 +05:00
Andrej730
11ddcb0256
IfcSchema declaration_by_name to use size_t instead of int
...
By accident noticed that `declaration_by_name(-1)` crashes python. If we use size_t it will just throw an error like below
NotImplementedError: Wrong number or type of arguments for overloaded function 'schema_definition_declaration_by_name'.
Possible C/C++ prototypes are:
IfcParse::schema_definition::declaration_by_name(std::string const &) const
IfcParse::schema_definition::declaration_by_name(size_t) const
2024-09-16 18:54:13 +05:00
Andrej730
0d77ff5270
remove debug code
2024-09-16 18:54:13 +05:00
Andrej730
c75fa70d23
Support for loading face colors from ifc (IfcIndexedColourMap)
...
example - https://imgur.com/a/l8Yn4Rr
2024-09-16 18:54:13 +05:00
Andrej730
6d8ffc27cc
ifcopenshell.util.shape.get_material_colors
2024-09-16 18:54:13 +05:00
Andrej730
531327578f
bim.print_unused_elements_stats - to skip colour map
2024-09-16 18:54:12 +05:00
Andrej730
6a47e68b78
fix typo
2024-09-16 18:54:12 +05:00
Andrej730
5ec10018d9
bim.purge_unused_elements_by_class - skip IfcRepresentationContext
2024-09-16 18:54:12 +05:00
Andrej730
ec0094ef33
bim.purge_unused_elements_by_class - keep list sorted
2024-09-16 18:54:12 +05:00
Andrej730
a2c2cf65a1
bim.purge_unused_elements_by_class - make filepath argument optional
2024-09-16 18:54:12 +05:00
Andrej730
cfd63392e7
Add to recent projects when project is saved
2024-09-16 18:54:12 +05:00
Andrej730
0891df5d6c
typing
2024-09-16 18:54:12 +05:00
Bruno Postle
cf95c9151c
black formatting after 71de39e
2024-09-15 17:34:44 +01:00
Bruno Postle
71de39ea7c
Recover external git repo changes, fixes #5311
...
IfcGit didn't cope gracefully when commits and/or repositories vanished
unexpectedly
bonsai-0.8.1-alpha240915
2024-09-15 17:24:36 +01:00
Andrej730
c487643d76
ifcgit - fix errors if paths are mixing up slashes and backslashes
...
`repo.path` is always setup using current platform type of slashes since it's normalized by get_path_dir but when we pass a path to index.add it's not normalized leading to errors
bonsai-0.8.1-alpha240914
2024-09-14 11:41:58 +05:00
Andrej730
6dbfb3afb3
black format
2024-09-14 11:41:58 +05:00
Bruno Perdigão
aa3a362391
Fixed issue in polyline tools where orbit and pan where not updating the ray cast.
2024-09-13 17:35:08 -03:00
Bruno Perdigão
a2cf95038a
Custom snap symbols #5325 .
2024-09-13 17:34:08 -03:00
Bruno Perdigão
96f3ee2f3a
Added text background to polyline measurements.
2024-09-13 15:38:05 -03:00
Bruno Perdigão
1659498c88
Fix 'C' to trigger wall preview
2024-09-13 14:08:18 -03:00
Bruno Perdigão
a992844e93
Fix enter to trigger wall preview
2024-09-13 13:50:27 -03:00
Bruno Perdigão
59b665758d
Colors update in polyline decorators.
2024-09-13 12:38:35 -03:00
Bruno Perdigão
4dc8a27e82
Fix on polyline wall preview when dealing with closed loops.
2024-09-13 12:38:35 -03:00
Bruno Perdigão
e83bdcc820
Polyline tool - Wall preview is now working for angled walls.
2024-09-13 12:38:35 -03:00
Bruno Perdigão
7ea3d63aa0
Small fix to clear wall preview when deleting all polyline points.
2024-09-13 12:38:35 -03:00
Bruno Perdigão
bd51363532
Small fix related to trying to use polyline wall without wall type.
2024-09-13 12:38:35 -03:00
Bruno Perdigão
d4ccc0dff9
More fixes related to d5b20397a
2024-09-13 12:38:35 -03:00
Bruno Perdigão
66fe2331ef
fix rebase conflict
2024-09-13 12:38:31 -03:00
Bruno Perdigão
b7c4f1a1f0
Minor fix in polyline decorator variables initialization.
2024-09-13 12:37:45 -03:00
Bruno Perdigão
c2cf8cd7dd
Fix bug in polyline tool when "=" were pressed before "TAB".
2024-09-13 12:37:45 -03:00
Bruno Perdigão
efcaf14fbb
fix rebase conflict
2024-09-13 12:37:39 -03:00
Bruno Perdigão
bc884c9dc4
fix rebase conflict
2024-09-13 12:35:50 -03:00
Andrej730
c340f496f2
swizzle material and style purging operators
...
purging material should come first as it may unlock purging more styles
2024-09-13 18:50:54 +05:00
Andrej730
b8aefe7df0
geometry.unassign_representation - fix missing ifc2x3 tests
2024-09-13 18:50:54 +05:00
Andrej730
8061e22480
geometry.unassign_representation to remove shape aspects
...
previously it was leaving unused shape aspects unconnected to any other elements, now it will purge them
2024-09-13 18:50:54 +05:00
Andrej730
aa289fd796
purge unused materials to consider IfcMaterialLists #3914
...
and IFC2X3 material sets and layers
2024-09-13 18:50:54 +05:00
Andrej730
b911b68aec
typing
2024-09-13 18:50:54 +05:00
Andrej730
80af847f99
purge unused material to try to purge materials recursively #3914
...
As on first iteration it may remove only unused material sets and on the next iteration it will be able to remove IfcMaterials that were not used anywhere else besides those material sets.
2024-09-13 15:15:51 +05:00
Andrej730
4d149e8a78
Purge unused materials to consider materials with styles and psets #3914
...
If material has a style or a pset it creates an inverse that shouldn't prevent material from being purged.
2024-09-13 15:15:51 +05:00
Andrej730
c41a4607d1
Fix missing return values in e5a59d0bea
2024-09-13 15:15:50 +05:00
Andrej730
148f8361be
make bump - show an error for incorrect use
2024-09-13 15:15:50 +05:00
Thomas Krijnen
d879bf9f89
Reintroduce --model-offset/-rotation MODEL_OFFSET/_ROTATION setting #5231
2024-09-13 11:38:24 +02:00
Andrej730
81399ffd19
Support loading project without clearing Blender session
...
It wasn't working anymore after 27a2c94 . Importing IFC file as just geometry should be a separate option from 'should_start_fresh_session' and I've added it as 'import_without_ifc_data' property during project load (now both options are also available for users in project load dialog - https://i.imgur.com/Fvbv4Dy.png )
bonsai-0.8.1-alpha240913
2024-09-13 11:47:49 +05:00
Thomas Krijnen
21cfd03301
Merge pull request #5362 from IfcOpenShell/fix-ifccircle-ifcellipse-processing
...
Fix error processing IfcCircle/IfcEllipse #5352
2024-09-12 20:19:17 +02:00