Thomas Krijnen
45be17c25a
Remove duplicate UseMaterialNames setting binding #5191
2024-08-19 09:15:49 +02:00
Cristian Ritter
876f059459
remove surface white if doesn't have surface colour
...
Signed-off-by: Cristian Ritter <cristian_ritter@hotmail.com >
2024-08-15 14:18:13 -03:00
Cristian Ritter
b5a61753a5
Adding --surface-color in conversion settings to force the use of surface color instead of diffuse color. Issue #5075
2024-08-15 13:56:31 -03:00
Richard Brice
c31c34b7d2
reimplements piecewise_function using PIMPL idiom
...
PIMPL idiom allows implementaiton of piecewise_function to evolve without envoking systemwide recompile (unless the class definition changes)
2024-08-01 12:34:49 -07:00
Richard Brice
b22ecba179
Implements mutually exclusive access to mapping cache with a mutex
2024-08-01 07:15:22 -07:00
Thomas Krijnen
db5167bbaf
Prevent infinite recursion
2024-08-01 07:59:23 +02:00
Thomas Krijnen
7d6e26bfd5
Add revolve as top-level item in occt kernel
2024-08-01 07:48:42 +02:00
Thomas Krijnen
2fd339ac6b
Hack/workaround for #5064
2024-08-01 07:48:28 +02:00
Richard Brice
60b007d28a
Fixes domain of vertical and cant pwf (Issue #5072 )
2024-07-29 09:48:15 -07:00
Andrej730
a1d8fbdbe9
Fix missing materials from sets #5093 #4832
...
Regression in ifcopenshell 0.8 - missing materials and styles from IfcMaterialProfileSets, IfcMaterialProfileSetUsages, IfcMaterialLayerSet.
2024-07-27 15:38:22 +05:00
Thomas Krijnen
91f4427bb5
Start from project instead of unit assignment #5074
2024-07-25 10:23:12 +02:00
Thomas Krijnen
b988df9e1f
Address old merge issue regarding style lookup #5069
2024-07-24 03:07:17 +02:00
Thomas Krijnen
dda010b130
Wire up ___localplacement settings #5031
2024-07-23 10:15:52 +02:00
Richard Brice
54131b3fe5
IfcSectionedSolidHorizontal logs warning if Directrix is not a piecewise function, rather than silently failing.
2024-07-22 13:21:49 -07:00
Thomas Krijnen
c0f2ac592e
Consider edge orientation in faceset helper for advanced planar breps #4895
2024-07-22 13:07:40 +02:00
Thomas Krijnen
41f1d66fee
Fix 2d transform op + fixed ref column order #5048
2024-07-22 04:33:35 +02:00
Thomas Krijnen
2b3035ec02
Lookup styles on (arbitrarily) more taxonomy kinds
2024-07-21 11:56:02 +02:00
Thomas Krijnen
cc0760d505
profile_helper() returns loop, not face, take into account in hollow profile def
2024-07-21 11:55:18 +02:00
Thomas Krijnen
f683fd220f
Take into account tapered extrusion position
2024-07-21 11:54:48 +02:00
Thomas Krijnen
889d3c5451
Don't fail on tapered extrusion over non-derived profile def #5046
2024-07-21 11:53:42 +02:00
Thomas Krijnen
c16cfc8afd
Support extrusion over composite profile
2024-07-21 11:52:48 +02:00
Thomas Krijnen
3bbe598dff
Minor formatting improvements
2024-07-21 02:40:56 +02:00
Thomas Krijnen
e88bd3af80
Fix profile fillets #4993
2024-07-21 02:40:09 +02:00
Richard Brice
9bf68db080
Fixes mapping of cant segments without superelevations
2024-07-17 15:46:36 -07:00
Thomas Krijnen
7a10edbd73
Fix ambiguous overload after dedbf7014a
2024-07-17 03:43:55 +02:00
Thomas Krijnen
669b0b8c83
Fix triangulated face set #5020
2024-07-17 03:26:23 +02:00
Thomas Krijnen
70336f179d
Keep identities on indexed face sets #5020
2024-07-17 03:12:35 +02:00
Andrej730
dedbf7014a
fill context attribute of the shape elements (similar to v0.7.0) #4832
2024-07-16 18:02:26 +05:00
Andrej730
83a0d7a63c
prevent freezing the iterator in case of unhandled exceptions
...
Solving an issue in 355cca3 I've noticed that because of some unhandled exception iterator was freezing and hanging indefinitely, this should be resolved now to be safe.
Also added had_errors_during_initialization() method that can help identify whether there were errors either during iterator initialization or processing elements.
2024-07-10 15:34:35 +05:00
Andrej730
355cca3679
Improve styles handling (partially support non-shading styles/fix bugs)
...
1) Previously create_shape (was failing with "RuntimeError: Unexpected topology") or iterator (was hanging indefinetely trying initialize with a IfcSlab from #4898 ) were breaking if element had a material that had IfcSurfaceStyle with just IfcExternallyDefinedSurfaceStyle and no IfcSurfaceStyleShading.
Now get_surface_style is returning IfcSurfaceStyle as first element of the pair even if there was no IfcSurfaceStyleShading - so it can be used to create a `taxonomy::style::ptr` with it to indicate that geometry is still referring to some style.
2) Added logs for unsupported presentation styles (non-IfcSurfaceStyles) to both `mapping::map_impl(const IfcSchema::IfcStyledItem* inst)` and `mapping::map_impl(const IfcSchema::IfcMaterial* material)`. Also `map_impl` will not break now if it will meet IfcCurveStyle.
2024-07-09 20:13:59 +05:00
Thomas Krijnen
dda4dd3ab5
occt 7.6 compatibility
2024-07-04 09:08:30 +02:00
Thomas Krijnen
cf3d050423
Rename taxonomy kind enum accordingly
2024-07-03 20:04:52 +02:00
Thomas Krijnen
10c3893b79
Missing file
2024-07-03 15:07:28 +02:00
Thomas Krijnen
e2198c3ba7
Advanced brep: closed underlying nurbs curve handling #4895
2024-07-03 15:03:49 +02:00
Thomas Krijnen
71ef1bf056
Advanced brep, sweeps and various fixes #4848 #4895
2024-07-03 14:42:51 +02:00
Thomas Krijnen
d4efcd40f9
Advanced brep, sweeps and various fixes #4848 #4895
2024-07-03 14:36:35 +02:00
Thomas Krijnen
19b89a3b1f
Workarounds for unstyled elements in tree and wrapper #4924
2024-07-02 11:44:00 +02:00
Thomas Krijnen
675e1982ee
Move macro logic into template function; mark failures as intended #4915
2024-07-01 20:34:51 +02:00
Thomas Krijnen
22cd1e8b9e
Another case of mutability causing havoc
2024-07-01 19:55:14 +02:00
Thomas Krijnen
c68dcba087
Implement element-hierarchy setting in USD
2024-06-29 14:16:07 +02:00
Thomas Krijnen
c7232a780a
Remove debug print
2024-06-28 16:21:33 +02:00
Thomas Krijnen
e96b4c11a2
Implement edge as top-level representation item #4924
2024-06-28 16:19:43 +02:00
Thomas Krijnen
fecca6a8b2
What a bad idea to let ellipse inherit from circle"
2024-06-28 16:19:43 +02:00
Andrej730
d1be0e8c1c
create_shape - raise the same error for representations and rep items
...
To be consistent with how it's handled when product+representation is passed, previously it would fail silently.
2024-06-28 18:24:58 +05:00
Thomas Krijnen
42b96d6290
Further work on trying to get orientation properly mapped
2024-06-28 13:41:01 +02:00
Thomas Krijnen
76b7748be1
Note some time points #4915
2024-06-28 13:39:58 +02:00
Thomas Krijnen
a2334f4ce0
More 4X3 non-ADD2 permissiveness in param values on polynomials
2024-06-28 13:39:19 +02:00
Thomas Krijnen
db50c87bf4
Fixed collections not being geom_items in mapped item handling
2024-06-28 13:38:56 +02:00
Thomas Krijnen
dc8766cf0a
Formatting improvements
2024-06-28 13:38:36 +02:00
Thomas Krijnen
599ca56496
Mark piecewise_function as geom_item #4727
2024-06-27 09:33:04 +02:00