Andrej730
4dbfeefe53
Fix UI errors getting elements using qset in IFC2X3
...
In IFC2X3 IfcQuantitySet didn't existed yet
Mentioned in #5404
2024-09-18 18:44:33 +05:00
Andrej730
eb823a5ecd
bsdd search to check whether query is long enough
...
It's an API requirement and using shorter queries was giving confusing results.
https://github.com/buildingSMART/bSDD/blob/master/Documentation/bSDD%20OpenAPI.yaml
2024-09-18 18:44:33 +05:00
Andrej730
8f7949808a
Move id to IfcGeom::Representation::Representation and document it
...
as it's a common attribute for all 3 Representation subclasses we have
2024-09-18 18:44:33 +05:00
Andrej730
5860c3fe50
black .
2024-09-18 18:44:33 +05:00
Dion Moult
dbfa4ecf65
Fix minor regression in fe0be0c
2024-09-18 22:58:22 +10:00
Dion Moult
1320eac800
Switch representation now cleans up orphaned meshes itself so callers don't need that responsibility
2024-09-18 22:58:22 +10:00
ArturTomczak
81e4ad2ce2
handle numeric simpleValue ( #5376 )
...
The input value can be a string or number, but 1.0 schema only accepts strings. The processing of int and float was missing. The casting to string might no longer be needed in IDS 1.1. https://github.com/buildingSMART/IDS/issues/342
2024-09-18 21:42:31 +10:00
Dion Moult
736d91f38e
Shape builder now supportes meshy things and faceted breps
2024-09-18 21:35:40 +10:00
Dion Moult
a1d99b544a
Basic support for deleting items, and editing meshlike items
2024-09-18 21:35:40 +10:00
Dion Moult
ed530f737c
Remove deprecated code for fixed bug #2002 .
2024-09-18 21:35:40 +10:00
Dion Moult
0899a2a87b
Fix bug where switching geometry may not correctly share representations
2024-09-18 21:35:40 +10:00
Thomas Krijnen
3bdbb3d513
Don't import cwd ifcopenshell folder when running tests
2024-09-18 11:35:24 +02:00
Andrej730
e22ec57e16
Fix #5409
2024-09-18 13:56:06 +05:00
Dion Moult
9b06797efa
Fix crash when removing representation item with removed inverses
bonsai-0.8.1-alpha240918
2024-09-18 17:35:51 +10:00
Dion Moult
96ba8e8e29
Fix bug where dissolving edges created corrupted geometry for advanced breps with curved surfaces
2024-09-18 17:34:41 +10:00
Bruno Postle
6e9e270683
IfcGit don't switch colouring so much closes #5402
...
Viewing changes necessarily sets object colours and switches the
viewport to object colouring. Previously most other operations switched
the viewport 'back' to material colouring. This was an annoyance for
users whose workflow makes use of manual object colouring.
Now only operators that reload the model (revert, switch and merge), the
refresh button, and attempting to view changes with the current revision
switch to material colouring.
2024-09-17 23:34:04 +01:00
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