Commit Graph

152 Commits

Author SHA1 Message Date
Dave Cowden
4e2168cad6 initial working version of cqgi 2015-12-08 21:35:01 -05:00
Dave Cowden
c12e663638 beginnings of cqgi 2015-12-07 16:35:10 -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
8f198eddad Made changes in preparation for the release of v0.3.0. 2015-11-25 16:20:52 -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
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
Jeremy Mack Wright
76b6ce10a5 Forgot to push the changes made from comments on PR #121. 2015-10-14 07:54:40 -04:00
Jeremy Mack Wright
4cd0afc29e Changed polyline to work with a list of edges instead of a wire. 2015-10-13 11:30:17 -04:00
Jeremy Wright
e2ac623acc Merge pull request #120 from galou/unicode
Fix bug
2015-10-12 17:06:36 -04:00
Gaël Ecorchard
c2bd3b45a8 Fix bug 2015-10-12 23:03:49 +02:00
Jeremy Wright
bdf2be9807 Merge pull request #119 from galou/unicode
Improve unicode support
2015-10-12 16:57:04 -04:00
Gaël Ecorchard
4f043c0875 Improve unicode support 2015-10-12 22:48:17 +02:00
Jeremy Mack Wright
74b4f0057d Fixed findSolid() so that it handles compounds properly. 2015-10-12 14:04:03 -04:00
Jeremy Mack Wright
afd186e23a Fixed a bug with polygon where forConstruction couldn't be passed, which caused constructions problems. 2015-10-12 12:17:35 -04:00
Jeremy Mack Wright
3e462655fd Merge branch 'master' of https://github.com/dcowden/cadquery 2015-10-12 08:40:22 -04:00
Jeremy Mack Wright
1f9788b3ef Fixed a case where the close function was not resetting the first point. 2015-10-12 08:39:38 -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
94f26399ef updated documentation of workplane() method 2015-09-17 23:14:47 +03:00
Hasan Yavuz ÖZDERYA
51327a822d normals should be the same, 1 of the faces may have its center on another face but may be none co-planar 2015-09-17 23:07:54 +03: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
562e44c01d fail to prevent creating random workplanes 2015-09-17 07:41:52 +03:00
Hasan Yavuz ÖZDERYA
89b109b956 min/max selector will return all objects within a tolerance 2015-09-16 23:41:32 +03:00
Hasan Yavuz ÖZDERYA
cb21c0db4a added AndSelector, SumSelector, SubtractSelector, InverseSelector 2015-09-13 12:56:23 +03:00
Hasan Yavuz ÖZDERYA
0aba116505 added dummy clean() methods for Wire and Compound types 2015-09-01 21:56:22 +03:00
Hasan Yavuz ÖZDERYA
9da3ea3c9f refactor clean() to support objects other than Solid 2015-09-01 21:34:20 +03:00
hyOzd
247762f6a3 updated the docstring of clean() method and added clean parameter to each related docstring 2015-08-06 23:19:28 +03:00
hyOzd
d7d1e5ee7b added clean parameter to sphere() API, although it's not supported by FreeCAD implementation 2015-08-06 23:00:43 +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
43f29e63f6 added clean parameter to box() method 2015-08-03 23:12:28 +03:00
hyOzd
a159a71cce added clean parameter to cskHole and cutThruAll 2015-08-03 23:03:30 +03: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