Commit Graph

773 Commits

Author SHA1 Message Date
Thomas Krijnen 67c27161ae SetNonDestructive does not exist prior to OCCT 7.0 2018-06-15 12:39:29 +02:00
Thomas Krijnen 4f280b1334 higher fuzz on half spaces 2018-06-12 16:15:28 +02:00
Thomas Krijnen d91a9d83eb 'nondestructive' boolean ops 2018-06-12 16:15:12 +02:00
Thomas Krijnen 7f8df04b2a Set precision on fix after boolean op 2018-06-08 14:12:01 +02:00
Thomas Krijnen 3205013d20 Additional improvements for comp curve wire building 2018-06-01 15:38:08 +02:00
thorade 6ad9e78930 triple double-quoted docstring
and do not use builtin names for variables
2018-05-30 11:32:47 +02:00
Thomas Krijnen d651a5fe53 Dont fail on missing AIS_MultipleConnectedShape in earlier versions of pyocc 2018-05-17 15:54:12 +02:00
Thomas Krijnen 30efd5f512 Fixes to qt5 port of viewer app 2018-05-17 15:53:40 +02:00
civilx64 5536d97d76 Port viewer app to PyQt5 2018-05-17 00:11:09 -04:00
Yorik van Havre 019684d762 adding exception for OCCT 7.3 2018-05-16 16:10:40 +02:00
Yorik van Havre 24fc57c743 Removed one last remaining BOPCol_ListOfShapes
Replaced one last remaining BOPCol_ListOfShapes with TopTools_ListOfShapes (deprecated in OCC7.3)
2018-05-16 16:10:40 +02:00
Otso Alho 06ed79dd7c use unordered map for entity by id 2018-05-14 13:36:38 +02:00
Otso Alho ac75a6d08c do not calculate reuse_ok multiple times for mapped representations 2018-05-14 13:36:38 +02:00
Thomas Krijnen e1000e0ab2 Optimize generation of faces with large (n > 128) number of edges. 2018-05-14 11:06:07 +02:00
Thomas Krijnen d258e2583c Add include, missing depending on occt version 2018-05-13 18:52:53 +02:00
Thomas Krijnen c477a10735 Add include, missing depending on occt version 2018-05-13 16:04:15 +02:00
Thomas Krijnen f23ffa856c Proper scope around goto labels 2018-05-13 15:30:20 +02:00
Thomas Krijnen 1ef813bf51 #332 2018-05-13 14:41:39 +02:00
Thomas Krijnen 082f16006a Limit boolean fuzz to edge length 2018-05-13 09:15:06 +02:00
Thomas Krijnen 68eab4310c Fix previous commit on gcc 2018-05-13 08:45:33 +02:00
Thomas Krijnen 10c10363c2 Machine readable progress with -q and --log-format json 2018-05-12 20:12:25 +02:00
Thomas Krijnen c8646feb4c ... but keep close point removal at 10 times precision 2018-05-08 16:19:47 +02:00
Thomas Krijnen 2cd88e12a4 Reduce radius on wire intersections 2018-05-08 09:41:19 +02:00
Thomas Krijnen 9422e375ea Copy operands prior to boolean operation 2018-05-05 16:09:12 +02:00
Thomas Krijnen eb9897c341 Don't fail on parse errors while resolving inverse attributes 2018-05-04 10:25:57 +02:00
Thomas Krijnen 7d65e9522a Better instance not found error messages 2018-04-23 10:51:59 +02:00
Thomas Krijnen 84f90c8b33 TColgp_SequenceOfPnt::Upper() does not exist on all versions of occt 2018-04-18 11:57:38 +02:00
Thomas Krijnen aeb2f10abb #288 #297 2018-04-18 11:33:57 +02:00
Thomas Krijnen 1b25f1a2cc #354 loose faces in SewedShape 2018-04-11 12:26:01 +02:00
Thomas Krijnen 38b87a24cc #348 2018-03-16 11:03:02 +01:00
Thomas Krijnen cdc018c9ea #329 Only auto close IfcCompositeCurve when used for profile 2018-03-09 10:41:22 +01:00
Thomas Krijnen b9b9b9c698 Fix geometry reuse in case of IfcTypeProducts with maps 2018-02-21 14:54:38 +01:00
Anders Granskogen Bjørnstad 4dd2623728 IfcConvert: Add --building-local-placement argument
Similar to --site-local-placement. Motivated by dealing with at least
two examples where IFC files for the same construction site have
inconsistent ObjectPlacement hierarchy:

- MEP models exported from MagiCAD for Revit:
   ObjectPlacement.PlacementRelTo of IfcBuilding is empty
- Regular construction models exported from Revit:
   ObjectPlacement.PlacementRelTo of IfcBuilding is pointing to
   IfcSite's placement
2018-02-19 16:17:12 +01:00
Thomas Krijnen ecbb6922e7 Update blender addon for str geometry.id 2018-01-15 11:00:25 +01:00
stefkeB 98b12c4325 BaseQuantities support in IfcConvert XmlSerializer
Added the export of BaseQuantities in the XML export of IfcConvert.
Very similar to the export of properties.
2017-12-22 11:33:28 +01:00
Thomas Krijnen 029bdddd7d Update SvgSerializer.cpp 2017-12-19 14:58:56 +01:00
Xsoiou ed3842943a SVG storey elevation (#315)
IfcConvert SVG does not generate <path d=""> for IfcSpace. #313
2017-12-19 12:10:19 +01:00
Thomas Krijnen 2464cb3f68 optional building storey argument added to setSectionHeight() 2017-12-11 11:19:15 +01:00
Thomas Krijnen e30679a513 2d edges in svg serializer 2017-12-11 11:18:37 +01:00
tymokvo 529a0c41b5 fixed missing bracket 2017-12-06 12:20:22 +01:00
tymokvo 6a9fda6972 added some documentation/examples 2017-12-06 12:20:22 +01:00
Anders Granskogen Bjørnstad 4fd2190e1d SvgSerializer: Fix bug in ellipse writeout
Add a missing "=" to create a valid SVG for ellipses.

I accidentally stumbled upon a way to actually get an ellipse in SVG by
tilting a cylinder. If I tilt the cylinder via the `ObjectPlacement` of
the `IfcProduct` I get an ellipse. If I set the `ExtrudedDirection` of
the `IfcExtrudedAreasolid`, however, I get a sampled path.
2017-12-04 17:23:32 +01:00
Thomas Krijnen 5b9a315823 Triangulate non-planar wires when invoked with --sew-shells 2017-11-27 16:27:36 +01:00
Thomas Krijnen 13551ed11b Eliminate warning 2017-11-27 16:24:29 +01:00
Thomas Krijnen cfd2b368f1 Approx other curve types in SVG, hollow circles 2017-11-25 13:08:34 +01:00
Anders Granskogen Bjørnstad ce970792ba SvgSerializer: Support full circles and ellipses
Use <circle> and <ellipse> to create a valid SVG for these geometries.

Limit to only the *first* edge. I am not sure whether there are
scenarios with multiple edges like this:
1. One or more straight line pieces or arc segments
2. A full closed circle
3. More straight lines or arc segments

If there is, we are keeping the original behavior here.
2017-11-25 13:06:03 +01:00
Anders Granskogen Bjørnstad 376c2de85c SvgSerializer: Fix bounding box for arc segments
Not necessarily minimal, but better to be conservative w.r.t. getting
all geometry inside bounds.
2017-11-25 13:06:03 +01:00
Anders Granskogen Bjørnstad d53d4a96c9 SvgSerializer: Add closed circle warning
Only refactoring, adding a warning.
2017-11-25 13:06:03 +01:00
Thomas Krijnen 1e851ca5ad Fix typo 2017-11-13 13:01:59 +01:00
Thomas Krijnen 21c5400406 Fixes for boolean ops on recent OCCT versions 2017-11-13 12:41:37 +01:00