Commit Graph

148 Commits

Author SHA1 Message Date
Thomas Krijnen d4efcd40f9 Advanced brep, sweeps and various fixes #4848 #4895 2024-07-03 14:36:35 +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 42b96d6290 Further work on trying to get orientation properly mapped 2024-06-28 13:41:01 +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 eccbdfa76e Eval eigen auto #4727 2024-06-26 21:21:47 +02:00
Thomas Krijnen 8da68f599b Move print() to header, distinguish properly between curve_sense and edge orientation, unwrap trimmed curves as edge bases, don't mutated cached edge in oriented edge processing, etc. #4895 2024-06-24 21:56:27 +02:00
Thomas Krijnen 278524ee3e Uninitialized use of context 2024-06-24 21:52:31 +02:00
Thomas Krijnen a9912f351f Don't dereference empty unit assignment list 2024-06-24 21:52:08 +02:00
Andrej730 1e092c140f add ifc2x3 support for 301cdf650 2024-06-21 17:50:22 +05:00
Andrej730 68d3539a86 mapping binding - never overwrite already set item->instance
1) this way code should be more straightforward
2) this allows us not to reimplement mapping.get_surface_style logic in IfcGeomWrapper as it will be already handled in map_impl(const IfcSchema::IfcStyledItem* inst) and the resulting item->instance is not overridden by IfcStyledItem.
2024-06-21 14:52:37 +05:00
Andrej730 301cdf6504 Fix creating representation with inherited materials
It should be considered as inherited material can also have a style.
Though occurrence's material is still prioritized.
2024-06-21 14:52:37 +05:00
Andrej730 882e0a4ae9 Fix instance_id in geometry.materials returning material id instead of style id 2024-06-21 14:52:37 +05:00
Thomas Krijnen 82496e8126 m4 not referenced in IfcEllipseProfileDef 2024-06-18 12:32:00 +02:00
Thomas Krijnen 9c22e6ecc8 Support evaluation of faces directly, add identity matrix on unplaced circle profile curves #4832 2024-06-18 12:32:00 +02:00
Thomas Krijnen 2a5e42e359 Don't log 'no op defined' for failed conversions 2024-06-11 20:09:37 +02:00
Thomas Krijnen dae7d86dad Fix style lookup in accordance with v0.7 #4844 2024-06-11 20:09:37 +02:00
Thomas Krijnen c2efcda7bb Don't use cached items in multi-threaded mode for now until we have proper immutability 2024-06-11 11:20:40 +02:00
Richard Brice 579768c35f Fixes problem with cant values 2024-05-22 13:51:55 -07:00
Richard Brice a45f6f980f Prevents divide by zero when clothoid constant is 0.0 2024-05-20 13:17:18 -07:00
Richard Brice 507e4a8211 Fixes problem with constant cant 2024-05-08 10:28:01 -07:00
Richard Brice a0b4c24224 Updates taxonomy::piecewise_function so it's immutable and implements internal caching. Adds new evaluate2 method that returns loop and vector of distance along for each loop point. 2024-05-07 10:24:46 -07:00
Richard Brice 648ca4d477 Resolves IfcSegmentCurve parent curve parameterization for line and clothoid 2024-05-04 18:07:09 -07:00
Richard Brice 6cb511b681 Removed IfcPolyLine as a parent curve for IfcCurveSegment. 2024-05-04 16:14:15 -07:00
Richard Brice 4dec319333 Re-write of IfcCurveSegment to eliminate recursion problem and provides a more standardized approach for all parent curve types 2024-05-04 16:03:36 -07:00
Thomas Krijnen 7af9944c27 find_openings() on representation as a hint for hybrid kernel 2024-04-29 21:29:34 +02:00
Thomas Krijnen 710f19af08 Prevent stackoverflow on long alignments in adjustments 2024-04-29 21:02:31 +02:00
Thomas Krijnen e6cc500227 Some basic code to lookup lengths for pre ADD2 schemas 2024-04-29 21:00:59 +02:00
Thomas Krijnen 4e35e7455f Also lookup style association on solids 2024-04-29 20:57:09 +02:00
Thomas Krijnen 6fdf46f151 Add back support for IfcSphere 2024-04-29 20:56:37 +02:00
Thomas Krijnen ae2600afb9 Set style name 2024-04-29 20:51:17 +02:00
Thomas Krijnen 053c80a577 Uncomment debugging code 2024-04-20 13:21:50 +02:00
Thomas Krijnen ffe1442974 Fixes after settings rework 2024-04-18 21:36:45 +02:00
Thomas Krijnen 29fd32be75 Fixes after settings rework 2024-04-18 21:15:40 +02:00
Thomas Krijnen 4828db0f6c Merge branch 'v0.8.0' of https://github.com/IfcOpenShell/IfcOpenShell into v08attempt1 2024-04-18 11:45:07 +02:00
Thomas Krijnen 7aa7f26708 Fix #4307 2024-04-18 10:14:15 +02:00
Thomas Krijnen e3867a118c IfcConvert --keep-bounding-boxes option, default is now exluded. #4012 #2138 #2044 #4032 2024-04-16 13:27:16 +02:00
Thomas Krijnen 64454a001f Apply handling of openings on IfcFeatureElementSubtraction generically #3889 2024-04-16 11:03:26 +02:00
Thomas Krijnen aa7b5bd1e3 Implement IfcGridPlacement 2024-04-16 10:08:33 +02:00
luzpaz 1819a45e4c Fix various typos in src/ifcgeom* subdirs 2024-04-16 10:05:04 +02:00
Richard Brice e946e34823 Apparent fix to cant placement matrix 2024-04-15 12:41:36 -07:00
Thomas Krijnen 3266648896 IfcGeom dynamic casting updates #2805 2024-04-15 13:23:11 +02:00
Chetan 86c93ac1e7 If an IFC file has an IFCRELASSOCIATESMATERIAL but did not supply an IFCMATERIAL, IfcConvert will crash. This commit prevents the crash, catches the exception and prints an error on the terminal 2024-04-15 11:16:59 +02:00
Thomas Krijnen 969b7382b6 Replace unpacking with boost::tie() for compatibility with msvc17 build machine 2024-04-15 08:55:37 +02:00
Thomas Krijnen 44deaedccc Incorporate profile in FixedRefSolid, some attempt at DirectrixDerived 2024-04-12 10:24:24 +02:00
Thomas Krijnen 7b296629d6 Doing a transpose was most likely misguided 2024-04-12 10:23:27 +02:00
Thomas Krijnen 85887b6db0 Clone profile for immutability in IfcDerivedProfileDef 2024-04-11 20:15:55 +02:00
Thomas Krijnen 9e2645d4cf Respect face matrix in IfcSectionedSolidHorizontal 2024-04-11 20:15:55 +02:00
Thomas Krijnen c535c000a6 Wrong axis typo causing singular matrices 2024-04-11 20:15:55 +02:00