Commit Graph

98 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
9b0fa9da83 Merge branch 'master' into sphinx_branch 2015-12-01 23:02:51 -05:00
Dave Cowden
d8d5669845 Merge pull request #128 from huskier/master
Import a STEP file from the web
2015-12-01 23:01:25 -05:00
Dave Cowden
0959d4bbaa fixed documentation 2015-12-01 22:54:36 -05:00
Simon Huskier
f94f9fe115 1. remove PY3 check; 2. replace the home-made local-file-way with tempfile module from the python std library; 3. NOTE: the suffix parameter in the tempfile.NamedTemporaryFile() function is a must, since Part.read need the suffix parameter...... 2015-12-02 11:37:28 +08:00
Simon Huskier
51a8d35645 Small fixes for importStepFromURL(url) function... 2015-12-01 08:50:33 +08:00
Youbao Zhang
e0832ec3eb Delete IsURL(url) function... 2015-11-30 23:17:03 +00:00
Youbao Zhang
10209482b7 Add a new function importStepFromURL(url) to import STEP file from the web... 2015-11-30 23:00:21 +00:00
Dave Cowden
a967e1f0b9 Tried to get documentation Into Shape 2015-11-28 21:05:20 -05:00
Simon Huskier
f7fcf9bd58 Add URL file import into importStep function, but FreeCAD has a bug for urllib.open() function......, not work properly.... 2015-11-27 17:08:13 +08: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
Jeremy Mack Wright
b1a6187d3e Made the normalize to normalized change to make CadQuery match the PythonOCC/OCC symantics. 2015-11-23 21:44:36 -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
146ecd589b Removed incorrectly used hash function from Vector and commented out a few non-critical test lines that break with FreeCAD daily. 2015-10-23 17:31:06 -04:00
Gaël Ecorchard
37890d132b Clean up geom.py
Remove Plane.setOrigin3d() and replace with Plane.origin = ...
2015-10-08 22:40:59 +02:00
Gaël Ecorchard
cc82031e51 Add the cadquery.Vector() constructor 2015-10-06 10:00:43 +02:00
Gaël Ecorchard
2ebae0461b Use the xDir parameter in Plane.XY() and similar.
Add simple tests for named planes
Use isinstance instead of type in Vector because type caused the
problem that 'type(Vector) is FreeCAD.Base.Vector'.
2015-10-04 22:49:34 +02:00
Gaël Ecorchard
b42375b3d6 Add the named planes ZX YX ZY 2015-10-02 21:41:36 +02: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
8763d42505 fix Vector.sub returning wrapped object instead of cadquery's Vector 2015-09-17 22:09:09 +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
Jeremy Wright
7f0ef93868 Next small step in the CQ.py code cleanup. 2015-06-15 15:59:28 -04:00
hyOzd
ff74557899 added ruled option for loft 2015-06-08 22:06:34 +03:00
Jeremy Wright
c585ddc050 Merge branch 'master' of https://github.com/dcowden/cadquery 2015-05-20 07:40:51 -04:00
Jeremy Wright
77e6c4bb5f Simple code cleanup. 2015-05-20 07:40:29 -04:00
moeb
a6a9bc6614 another improvement to https://github.com/dcowden/cadquery/pull/87 wich removes multiple calls to _fc_path 2015-05-15 13:26:34 +02:00
moeb
205a6ef01a a little improvement to https://github.com/dcowden/cadquery/pull/87 2015-05-15 13:12:40 +02:00
moeb
d36e5a10b7 fixes https://github.com/jmwright/cadquery-freecad-module/issues/53 and adds freecads library path for archlinux 2015-05-15 12:50:39 +02:00
Jeremy Wright
89efc14ec9 Updated copyright dates and fixed a few docstring errors. 2015-04-27 13:04:34 -04:00
Jeremy Wright
7754cd5f5b Fixed mirror when vertices weren't connected, which would cause the FreeCAD algorithm problems. Also just did some housekeeping and spelling corrections in the code. 2015-04-23 00:27:01 -04:00