Thomas Krijnen
5d1dee4480
Apply transformation to swept surfaces in occt advanced brep impl #5484
2024-09-30 12:29:14 +02:00
Thomas Krijnen
62f696da51
Don't handle bspline-edges on planar faces in cgal-kernel #5484
2024-09-30 12:28:28 +02:00
Dion Moult
af7bdf6b9f
Deprecate type_class in favour of new simpler type manager workflow
bonsai-0.8.1-alpha240930
2024-09-30 14:04:03 +10:00
Thomas Krijnen
2c22421889
Don't consume token on invalid entity typename #5504
2024-09-29 19:15:29 +02:00
Dion Moult
8a0e87b8f8
Start cleaning up type manager to serve its new purpose as a fancy dropdown
2024-09-29 22:39:21 +10:00
Dion Moult
1bcc7199f6
Redesign BIM tool to have mutually exclusive add/edit modes.
2024-09-29 21:20:17 +10:00
Dion Moult
275d615d42
Shift-A now triggers the wall polyline tool for all LAYER2 elements
2024-09-29 18:11:08 +10:00
Dion Moult
905044f0d7
Shift-A in BIM tools now lets you pick a point interactively. No more 3D cursor requirement.
...
Still incomplete, but the goal is to not require a "huh?" moment for new users who have no idea what a 3D cursor is.
bonsai-0.8.1-alpha240929
2024-09-29 17:11:32 +10:00
Thomas Krijnen
e2ae2a4a89
Fix negative modelo #5509
2024-09-28 19:44:19 +02:00
Richard Brice
abe3d7e5db
Fixes problem normalizing IfcDirection direction ratios
2024-09-28 06:19:41 -07:00
Thomas Krijnen
dd01cb0e51
BaseUri setting for TTL+WKT
2024-09-28 14:47:08 +02:00
Daniel Bo Olesen
2eecda17e4
Minor updates
...
Added a debug and run script to the documentation section. Added a tip and clarifies how to roll back to a previous version, when running unstable release.
2024-09-28 21:48:56 +10:00
Daniel Bo Olesen
c45b4372a8
Update writing_docs.rst
...
Some additions on how to get the local server up and running
2024-09-28 21:48:56 +10:00
Dion Moult
5bb40111c1
Pop up add menu in item mode
2024-09-28 21:22:57 +10:00
Dion Moult
faa94eb636
Fix #5466 . Support duplicating representation items
2024-09-28 19:39:29 +10:00
Dion Moult
2a6616707c
Remove random debug print statements
2024-09-28 17:45:32 +10:00
Dion Moult
d1c430cd4d
Show clipping plane in front to make it easy to select
bonsai-0.8.1-alpha240928
2024-09-28 17:35:06 +10:00
Dion Moult
a5e6539ddf
Support joining representation items
2024-09-28 17:35:06 +10:00
Dion Moult
7bc4b5100b
Support separating representation items
2024-09-28 17:35:06 +10:00
Bruno Perdigão
8d08d358af
Measure tool persists on screen and can be snapped.
...
The user has an option to clean previous measurements polylines by pressing "E" while using the measure tool.
2024-09-27 16:48:28 -03:00
Thomas Krijnen
314534436d
Add .ttl + Well Known Text geometry serializer
2024-09-27 16:32:47 +02:00
Andrej730
be68a8fdde
Support for moving/rotating/scaling for linked models
...
Example - https://imgchest.com/p/lqye6da2z4d
2024-09-27 19:06:31 +05:00
Andrej730
400ebf2efb
bim.append_inspected_linked_element to ensure linked file schema is compatible
2024-09-27 19:06:31 +05:00
Andrej730
0dff19ba6a
Project library dropdown - show only libraries compatible with the current schema
...
To prevent errors trying to append elements from the wrong schema library
2024-09-27 19:06:31 +05:00
Andrej730
24a6ed0e5c
Show an error if library file schema is not compatible with the current file
...
Example - https://i.imgur.com/t1gxBJ4.png ("Schema of library file (IFC4X3_ADD2) is not compatible with the current IFC file (IFC4).")
2024-09-27 19:06:31 +05:00
Andrej730
63ffa1aadb
Add upgrade to ifc4/ifc4x3 button to libraries file browser
...
Example - https://i.imgur.com/cTdwCvt.png
2024-09-27 19:06:31 +05:00
Andrej730
f7bf440848
AbstractKernel::dispatch_curve_creation - use static cast
...
Similar to 93c4749
2024-09-27 19:06:31 +05:00
Dion Moult
82fd49e4c4
Fix bug when tabbing into empties
2024-09-27 23:14:22 +10:00
Dion Moult
4261fdbed6
Rewrite coordinate offset to use np.array not Vector() for precision
2024-09-27 23:09:00 +10:00
Andrej730
9f02737a2e
Fix segfault trying to create IfcSweptDiskSolid with invalid curve #5474
...
In my case it was IfcIndexedPolyCurve with just 1 vertex. Though kernel->convert does return a boolean value to indicate if conversion was successful, we never used it - so it failed silently leading to segfault later on.
Now we also stop processing those polycurves during mapping stage but checking kernel->convert result still might be useful in some other cases.
bonsai-0.8.1-alpha240927
2024-09-27 17:00:33 +05:00
Andrej730
fe3b66c044
Stop processing IfcIndexedPolyCurve with < 2 verts at mapping stage #5474
...
as they're invalid and would't be able to create a curve
2024-09-27 17:00:33 +05:00
Andrej730
14cea7453b
Skip failed to load IfcSweptDiskSolid shapes
...
Noticed in the file attached in #5474 (note that it's not the issue that's causing the segfault), it was failing due IFCSWEPTDISKSOLID's IFCINDEXEDPOLYCURVE having just 1 point, resulting in something like '[Error] [ 14:07:00] No segment successfully converted: 80=IfcIndexedPolyCurve(79,$)'.
Not sure if this kind of polyline is considered valid in IFC but it doesn't trigger any validation errors, so I guess it shouldn't stop IFC project from loading in BBIM.
2024-09-27 17:00:33 +05:00
Andrej730
cfa2dc5d97
Contexts UI - import Precision as string due problems with Blender UI
...
Btw this is where you can edit model geometry precision - https://i.imgur.com/CLln0oK.png
Related Blender issue - https://projects.blender.org/blender/blender/issues/128238
2024-09-27 17:00:33 +05:00
Andrej730
123d023bb3
context.operator - remove unnecessary ifc operators
2024-09-27 17:00:33 +05:00
Andrej730
8ff94d3f61
context.data - skip passing unnecessary attributes
2024-09-27 17:00:33 +05:00
Andrej730
3b64350a3f
bim.create_shape_from_step_id to include ifc class and id to object name
2024-09-27 17:00:33 +05:00
Andrej730
78302d1583
typing
2024-09-27 17:00:33 +05:00
Dion Moult
d93ffb1fe6
See #5491 . Clean up orphaned meshes when editing.
2024-09-27 21:59:42 +10:00
Bruno Postle
ceeba53c18
Fix linux Associate Bonsai with *.ifc files #5494
...
The package configuration only included files with extensions, so the
`bonsai` wrapper script was not packaged in the wheel
2024-09-26 22:23:38 +01:00
Andrej730
ecd147675e
Ooops, revert wip commit c80c52c248 commited by accident
2024-09-26 22:02:42 +05:00
Andrej730
1cf7f65902
Hide non-simple property types to avoid breaking UI #5496
...
Property types that are now skipped (at least in IFC4):
<type IfcArcIndex: <list [3:3] of <type IfcPositiveInteger: <type IfcInteger: <integer>>>>> ('list', 'integer')
<type IfcBinary: <binary>> binary
<type IfcComplexNumber: <array [1:2] of <real>>> ('array', 'float')
<type IfcCompoundPlaneAngleMeasure: <list [3:4] of <integer>>> ('list', 'integer')
<type IfcLineIndex: <list [2:?] of <type IfcPositiveInteger: <type IfcInteger: <integer>>>>> ('list', 'integer')
<type IfcPropertySetDefinitionSet: <set [1:?] of <entity IfcPropertySetDefinition>>> ('set', 'entity')
2024-09-26 18:40:52 +05:00
Andrej730
7d8ef3ffd0
Fix invalid IfcRevolvedAreaSolid representations with angle <360 deg
...
It was always assuming angle is 360 deg
2024-09-26 18:40:52 +05:00
Andrej730
ca5f083481
Fix error trying to tab into IfcRevolvedAreaSolid
...
by temporary not recognizing reprs with IfcRevolvedAreaSolid as a profile usage
2024-09-26 18:40:52 +05:00
Andrej730
a35304f1d5
lock_object to also lock scales and additional rotations
...
to indicate that they won't have an effect (or might break things)
2024-09-26 18:40:52 +05:00
Andrej730
c80c52c248
Allow editing poly curve representation items
2024-09-26 18:40:52 +05:00
Andrej730
dd516fb873
Support moving IfcConic representation items
...
Example - https://imgur.com/a/UDWxXWX
2024-09-26 18:40:52 +05:00
Andrej730
f8680503ef
Add default values for IfcEllipseProfileDef
2024-09-26 18:40:51 +05:00
Andrej730
23389dcac0
Update ellipse profile just for consistency with 11deb95
2024-09-26 18:40:51 +05:00
Andrej730
8814d3a22b
Lock all representation items that are not movable
...
Otherwise it was confusing that user can move item but when they exit item mode position was lost
2024-09-26 18:40:51 +05:00
Andrej730
340e8515f5
Fix error switching mode for multiple objects
2024-09-26 18:40:51 +05:00