Commit Graph

51 Commits

Author SHA1 Message Date
Jeremy Mack Wright
02dd0f2508 Changed where val was being called to keep the implementation cosistent with what has been done before. 2016-04-26 20:20:18 -04:00
Jeremy Mack Wright
822af6c7f5 Finished sweep operation and added tests. 2016-04-26 20:11:12 -04:00
Jeremy Mack Wright
3e12726333 Rough draft of the sweep operation implementation. No unit tests yet. 2016-04-25 22:38:28 -04:00
Dave Cowden
e0e14a133d fixed tests to pass with FreeCAD 0.15 2016-04-03 20:24:13 -04:00
Simon Huskier
8c8432410b Small format fix for function mirror in Shapes.py file...... 2016-01-20 17:08:32 +08:00
Simon Huskier
9d9b6d310e Small format fix for function BoundingBox in shapes.py...... 2016-01-20 17:01:14 +08:00
Simon Huskier
7225d84905 1. Add a mirroring example into doc/example.rst; 2. Add a tolerance parameter into BoundingBox function, and default it as 0.1, otherwise, it's very slow when compile the docs with sphinx-build, don't know why; 3. Add a testBoundingBox function into TestCadQuery.py file... 2016-01-20 16:56:48 +08:00
Youbao Zhang
3186b68b05 1. Add a mirror function into CQ class(wrap) and Shape class(implement); 2. To get precise BoundBox, add tessellate(0.000001) in the BoundBox function implement...... 2015-12-31 12:34:20 +00:00
Dave Cowden
142a5c88d8 workable version of cqgi version 2015-12-09 21:01:14 -05:00
Dave Cowden
a967e1f0b9 Tried to get documentation Into Shape 2015-11-28 21:05:20 -05:00
Jeremy Mack Wright
007725a28c Added a label instance attribute to each of the shapes so that they can be identified separately. 2015-11-24 15:45:12 -05:00
Youbao Zhang
f7738dd857 1. Add CenterOfBoundBox() and CombinedCenterOfBoundBox() functions into Shape class; 2. Add another parameter centerOption into CQ.workplane([offset, invert]), and default the parameter to CenterOfMass which is the current behavior. 2015-11-21 15:00:55 +00:00
Jeremy Mack Wright
d6ec0ea6bd Added a test to ensure that finding the center of a compound works correctly. 2015-09-17 19:13:05 -04:00
Jeremy Mack Wright
23f1a0ea68 Fixed Center function to handle multiple solids correctly. 2015-09-17 18:17:22 -04:00
Hasan Yavuz ÖZDERYA
ea4ba70b06 improve workplane() method to create workplanes from multiple co-planar face selection 2015-09-17 22:40:22 +03:00
Hasan Yavuz ÖZDERYA
0aba116505 added dummy clean() methods for Wire and Compound types 2015-09-01 21:56:22 +03:00
hyOzd
605eabf243 cast to actual shape type after calling removeSplitter() 2015-08-06 22:33:38 +03:00
hyOzd
299ecf5cf5 Merge remote-tracking branch 'refs/remotes/upstream/master' into add-simplify 2015-08-06 22:06:23 +03:00
Jeremy Wright
07acfba4b9 Made Shape.Center() more intelligent to handle switch-ups between Shape and Solid. 2015-08-06 00:13:19 -04:00
hyOzd
c11cff1d2c Merge remote-tracking branch 'refs/remotes/upstream/master' into add-simplify 2015-08-03 22:16:45 +03:00
Jeremy Wright
4a7a7963ed Removed some unneeded commented code. 2015-08-03 12:23:59 -04:00
Jeremy Wright
6e70ad5e97 Fixed the Center call for Shape objects on rotateAboutCenter, and changed CenterOfMass usage so that it won't fail silently. 2015-08-03 12:06:59 -04:00
hyOzd
29ef1937ab renamed simplify to clean 2015-08-02 14:37:02 +03:00
hyOzd
ea26397b83 added simplify API that calls freecad's removeSplitter() function to
clean faces from unwanted edges
2015-07-19 13:00:46 +03:00
hyOzd
807aa5d604 use 'length' for chamfer instead of 'radius' 2015-06-22 21:09:56 +03:00
hyOzd
46f6001a4a added chamfer api 2015-06-21 23:49:31 +03:00
hyOzd
ff74557899 added ruled option for loft 2015-06-08 22:06:34 +03:00
Jeremy Wright
89efc14ec9 Updated copyright dates and fixed a few docstring errors. 2015-04-27 13:04:34 -04:00
Jeremy Wright
2ce0041354 Fixed the Solid.makeSphere implementation and added CQ.sphere that mirrors the CQ.box high-level functionality. 2015-04-07 14:19:45 -04:00
Jeremy Wright
e51b54d6c4 Made the STEP import function more robust so that it could return a CQ.Workplane object. 2014-12-11 14:35:29 -05:00
Jeremy Wright
087f0621a7 Initial attempt to fix import issues caused by verutil.py implementation. 2014-12-01 11:51:26 -05:00
Jeremy Wright
3bf871b0ea Added cylinder and donut tests for the revolve operation and started on the cone test. 2014-10-20 17:41:53 -04:00
Jeremy Wright
458c55b64b The revolve operation should be complete except for tests. 2014-10-19 22:23:26 -04:00
Jeremy Wright
af386836a6 Fixed comments on code that was changed. 2014-10-17 23:01:57 -04:00
Jeremy Wright
55d659fa9c Fixed the cases where the revolve didn't work as expected. 2014-10-17 14:06:55 -04:00
Jeremy Wright
43042f433d Accidentally left an duplicate line in the FreeCAD implementation. 2014-10-16 16:57:09 -04:00
Jeremy Wright
6549d561f5 Got revolution mostly working except for defaulting the axis of revolution end point if the user doesn't specify one. 2014-10-16 16:48:12 -04:00
Jeremy Wright
ebcc449f84 Started implementing the final form of the revolve operation. 2014-10-09 23:04:48 -04:00
Jeremy Wright
f20d52ebd9 Got the revolve operation working by preventing the wire(s) from being centered. 2014-10-08 11:32:41 -04:00
Jeremy Wright
2c3e34becc Added commented lines to the resolve function in shapes.py that shows that FreeCAD wires work properly. 2014-10-08 08:52:24 -04:00
Jeremy Wright
77e84bfb9a Did more work on the revolve operation but it is not working yet. 2014-10-07 22:19:30 -04:00
Jeremy Wright
bfcc07ba60 Got the revolution operation partly working. There seems to be something wrong with how the wires are being handled still. 2014-09-30 17:38:24 -04:00
Jeremy Wright
0d0c40f596 Working to fix the revolve function which appears to be extruding. 2014-09-30 14:58:42 -04:00
Jeremy Wright
e57b36c58c Rough swipe at a revolve feature utilizing FreeCAD as a library. 2014-09-30 13:35:09 -04:00
Jeremy Wright
699636d699 Fixed copyright dates, added the STEP file importer, and added the supporting tests. 2014-08-18 14:45:02 -04:00
Derek Anderson
c3290fca92 Updated to work with 0.13
- This is _totally_ experimental, and I haven't done exhaustive
   tests
 - 88 unit tests do pass though, and I added a new import test.
 - 0.12 and 0.13 seem to structure stuff a bit differently,
   probably due to changes in the FreeCAD lib wrappers.
 - Not tested on windows (but should work) or 0.12. Need some
   help there.
2013-04-27 23:49:41 -07:00
Dave Cowden
26cd0a443d the test cases pass now at least 2013-04-16 22:29:06 -04:00
Dave Cowden
3f7d38cdeb now at least you can import 2013-04-15 21:46:52 -04:00
Dave Cowden
8943b8dd10 renamed folders to standard ones 2013-04-15 21:22:54 -04:00
Dave Cowden
911d00bfd7 updated licenses 2013-04-14 19:29:35 -04:00