Dion Moult
d0333ac7cd
Penetration distances now are influenced by the normal for better results.
...
Add cache for points that have already been checked.
Separate out new add_triangulated function with new kwarg add_element(should_triangulate=True) so that you can still have the old geom tree using aabb only if you want, also because add() is used in boolean_utils. Tolerance is now a kwarg.
I misunderstood the OBB dimension and should *2 not /2 which now makes it much slower since there's more triangles to check.
2024-02-02 23:35:06 +11:00
Dion Moult
e95e16c102
First attempt at implementation of intersection clash checks.
...
This considers only protruding clashes. It does not consider touching nor encroaching clashes and does not consider protrusion direction in the protrusion distance.
2024-02-01 18:30:20 +11:00
Dion Moult
7a7fde0a2a
See #4247 . Loading models now skips excessively voided objects for performance.
2024-01-24 10:39:31 +11:00
Ryan Schultz
7992bd9902
Give user additional feedback when trying to duplicate an IFCproject and Drawing. Also deselects the object to prevent inadvertently moving it.
2024-01-23 08:04:12 -06:00
Dion Moult
3182fe9c15
Fix bug where merging by type when loading broke if a type didn't have a name
2024-01-23 19:45:31 +11:00
Dion Moult
e8858aeeb3
Fix bug where loading filtered IFC2X3 models didn't work.
2024-01-23 17:39:13 +11:00
Dion Moult
ec79d61095
Fix #2719 . Indicator whether or not IFC is dirty to help users know when to save.
2024-01-23 16:29:42 +11:00
Dion Moult
266236ee49
See #4241 . Only use shapely to repolygonise if IfcOpenShell returns unclosed paths. Hollow cuts typically are closed paths.
2024-01-23 16:06:54 +11:00
Dion Moult
192e4e43a4
Fix #4239 . Stop users from duplicating IfcProject.
2024-01-23 12:30:25 +11:00
Dion Moult
b22c92e951
Fix regression where you couldn't unlink an object that already had a broken element link, and bug where you couldn't unlink a spatial element or similar with its own collection.
2024-01-23 12:27:09 +11:00
Dion Moult
7634e71434
See #4239 . Ensure that all copy pasted objects are unlinked. Use duplicate if you want to copy.
2024-01-23 12:25:46 +11:00
Dion Moult
dda803df2e
See 0028fd3. Fix regression when duplicating objects without connections.
2024-01-23 09:05:40 +11:00
Andrej730
c3ded31a6a
static ifcopenshell.geom.serializers and some typing for IDE code hints
...
code itself should work exactly the same way
2024-01-22 14:24:24 +05:00
Thomas Krijnen
f2d19ab2c3
#4216 todo note
2024-01-22 09:38:05 +01:00
Dion Moult
ab80400e16
See #4240 . Guard against possible user creating invalid userdefined attribute values.
2024-01-21 21:56:45 +11:00
Dion Moult
c88496c6a6
See #4240 . Fix validation issue with perspective drawing pyramid booleans. Boolean clipping results can only be used on swept solids.
2024-01-21 19:13:40 +11:00
Dion Moult
0ee07fb8cc
See #4240 . Fix bug where 2D arbitrary profiles were invalid IFC (used 3D point lists not 2D)
2024-01-21 16:07:00 +11:00
Dion Moult
40f332d674
Fix #3947 . Do slight 2mm offset to account for Z-fighting on 2D plan views and RCPs.
2024-01-20 21:53:34 +11:00
Dion Moult
e8a272dc97
Fix #4213 . Allow having separate windows to trigger drawing operators.
2024-01-20 15:06:47 +11:00
Dion Moult
0b308770a6
See #4216 . Document using OpenCASCADE geometry serialisation to create geometry.
2024-01-20 14:35:52 +11:00
Dion Moult
96c8323a06
Fix #4221 . Only load leaf rows with cost values. Createing a monetary measure with None results in a segfault on Windows.
2024-01-20 14:17:19 +11:00
Dion Moult
25573cd0e0
Fix #4236 . Consolidate revert, reload IFC, and reload selected IFC operations.
...
Reload IFC incrementally (via diff) is moved to the debug panel since it is a dangerous advanced user command.
2024-01-20 13:15:59 +11:00
Dion Moult
ff3c7786f6
Fix #4109 . Write docs about geometry serialiser.
2024-01-19 23:18:38 +11:00
Dion Moult
5f4dfcf215
Fix #4231 . Bug where you couldn't add a door to an element assembly.
2024-01-19 22:47:53 +11:00
Andrej730
9a89555a53
bbim_translations.py - remove operator context from operator tooltips
...
noticed editing translations from ui that operator tooltip doesn't appear in ui if tooltips has `msgctxt "Operator"`
2024-01-19 16:31:34 +05:00
Dion Moult
fc69a2acbe
Fix #4127 . Bug where IfcTester couldn't save ODS report.
2024-01-19 22:25:03 +11:00
Andrej730
85a2a5ad12
fix build error
2024-01-19 15:11:59 +05:00
Andrej730
49c3d28a0b
Merge branch 'localization' into v0.7.0
2024-01-19 15:02:01 +05:00
Andrej730
a8f20b2c6b
drop bpy related translations.py<->.po stuff as we won't be using it
2024-01-19 15:00:41 +05:00
Andrej730
66fa1cedd9
run bbim_translations.py without bpy
2024-01-19 15:00:41 +05:00
Andrej730
eb971d3d73
save just a final dictionary to translations.py instead of tuples
...
We can do that since In our workflow we won't be converting translations.py to .po files, that way it will be much shorter as it's containing only translated strings and doesn't have strings sources.
2024-01-19 13:58:49 +05:00
Andrej730
a30a796c07
generate translations.py without bpy
2024-01-19 13:58:49 +05:00
Andrej730
9e46bacc12
gettext bug fix
2024-01-19 12:06:11 +05:00
Ioannis P. Christovasilis
b33378e135
ifc2ca major update - todo: update readme file
2024-01-18 12:53:31 +01:00
Vukas Pajic
d42e19f491
Fix #4226
2024-01-18 08:54:24 +01:00
Eduardo Schilling
2597827ab3
Roof slope as percentage property
2024-01-18 09:40:33 +11:00
Dion Moult
3f71efea6d
Fix #4227 . Add shapely as an optional dependency for IOS-Python
2024-01-18 09:22:35 +11:00
Andrej730
2d279b7a7f
update blenderbim build to include translation data
2024-01-17 17:18:04 +05:00
Andrej730
e5fe039fd0
expose current blender locale in bbim translations ui
2024-01-17 17:18:04 +05:00
Andrej730
9e14829cc1
bbim messages parser to also parse gettext
2024-01-17 17:10:26 +05:00
Andrej730
e867602d9d
keep order of strings in .pot as they were parsed and store source filepaths
2024-01-17 17:10:26 +05:00
Andrej730
aecc3d56b8
switch to our own string parser instead of blender's
2024-01-17 17:10:26 +05:00
Andrej730
e3f5d3d2b7
rename BlenderBIM translation script/addon
2024-01-17 17:10:26 +05:00
Thomas Krijnen
65f8b1a532
#4222 template kw
2024-01-17 11:10:06 +01:00
Thomas Krijnen
96b4df10ba
#4222 typename keywords
2024-01-17 11:02:02 +01:00
Andrej730
98b56aea42
allow missing translations.py as not everyone will need translations for BBIM
2024-01-17 12:07:02 +05:00
Andrej730
ba6ba29da8
auto enable "Manage UI Translations" addon if it's not enabled
2024-01-16 17:34:24 +05:00
Andrej730
1112b102f7
add without-blender-way to generate translations module from po files
...
though it does require `bpy` module which is available only for python 3.10.
Actually, `bpy` module by itself is not necessary - we just need `bl_i18n_utils` that becomes available after `import `bpy`. So alternatively we can just download that module from Blender https://projects.blender.org/blender/blender/src/branch/main/scripts/modules/bl_i18n_utils
2024-01-16 17:06:43 +05:00
Andrej730
04b8172ea9
black format
2024-01-16 15:28:55 +05:00
Andrej730
f5f3edbc79
check if translation ui is loaded by current Blender session instead of current Blender file
...
as it's more reliable and thing could change after Blender restart
2024-01-16 15:27:43 +05:00