Commit Graph

71 Commits

Author SHA1 Message Date
86edb67106 Correct errors for the last commit, mainly for test function testEdgeWrapperMakeCircle and testFaceWrapperMakePlane. Now testEdgeWrapperMakeCircle passed, but there is still one problem prevent testFaceWrapperMakePlane from passing. 2016-11-28 23:54:23 +08:00
e2c866681a 1. Add 'testEdgeWrapperMakeCircle' and 'testFaceWrapperMakePlane' test functions in TestCadObjects.py file;
2. Add self.wrapped.tessellate(tolerance) statement in CenterOfBoundBox and CombinedCenterOfBoundBox function in class Shape, and make the tolerance default value 0.1. This will make the result more accurate.
3. Add empty test functions 'testCenterOfBoundBox' and 'testCombinedCenterOfBoundBox', and will add detailed code in the near future.
2016-11-28 23:04:30 +08:00
e5e42050c7 remove unneeded comment in testGrammar 2016-07-10 19:15:51 +02:00
d06f3e6153 "Except" did not match properly
Making the testGrammer test case strict showed that "except" was not
matched properly. Fixed by using onOf i.s.o. | operator
2016-07-10 19:14:06 +02:00
a42cad1c3e Change logical ops names, add tests, general code cleanup
Changed the op names to

and
or
not
exc(ept)

Added more test-cases
Cleanup up the Selectors code

Code should be ready for merging now
2016-07-10 18:51:45 +02:00
f5a91a6980 Added simple test cases for string selector with logical ops
Also fixed found bug (missing return statement)

NB: the grammar is not finalized yet
2016-07-07 20:43:30 +02:00
f6d532328f Extend testNthDistance to test DirectionNthSelector using the new string syntax too 2016-06-29 21:03:30 +02:00
76a2207a6e Added simple test case for the string selector grammar 2016-06-21 20:30:53 +02:00
9df0e39133 Updated docstring for DirectionNthSelector and extended the related test-case 2016-06-05 21:26:26 +02:00
6678d3f546 Implemented test-case for DirectionNthSelector 2016-06-05 16:54:29 +02:00
58683d0eb0 Testcase for symmetric extrusion
Added a test case for symmetric extrusion operation.
2016-05-22 21:39:54 +02:00
822af6c7f5 Finished sweep operation and added tests. 2016-04-26 20:11:12 -04:00
b22409d88c added describe_parameter 2016-04-05 21:04:09 -04:00
65480d4bf1 added debug function to cqgi 2016-04-03 21:01:36 -04:00
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
142a5c88d8 workable version of cqgi version 2015-12-09 21:01:14 -05:00
190980d4a1 got first directive workign 2015-12-08 22:36:19 -05:00
4e2168cad6 initial working version of cqgi 2015-12-08 21:35:01 -05:00
c12e663638 beginnings of cqgi 2015-12-07 16:35:10 -05:00
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
4cd0afc29e Changed polyline to work with a list of edges instead of a wire. 2015-10-13 11:30:17 -04:00
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
d6ec0ea6bd Added a test to ensure that finding the center of a compound works correctly. 2015-09-17 19:13:05 -04:00
ff72ac8318 add tests for workplane gen. from multiple faces 2015-09-17 22:41:42 +03:00
6551218d55 add test for multiple object at min/max selection 2015-09-17 07:46:46 +03:00
562e44c01d fail to prevent creating random workplanes 2015-09-17 07:41:52 +03:00
36c75f2c55 added tests for arithmetic selectors 2015-09-16 21:34:03 +03:00
8e89d901a7 Added a few more test cases for CQ.py. 2015-08-17 08:29:25 -04:00
935f6e1da9 added test for clean box 2015-08-06 22:39:25 +03:00
84f00a64c5 removed clean=True from tests for consistency 2015-08-03 23:07:48 +03:00
fd1e3076f8 add test for 'clean' cutThruAll() 2015-08-03 23:06:21 +03:00
2d1bdcad7b added clean argument for hole method 2015-08-02 17:36:35 +03:00
c0444cb0fa updated tests after 'simplify' renamed as 'clean' 2015-08-02 15:09:46 +03:00
8c6b3890d3 added tests for simplify() method 2015-07-22 23:39:11 +03:00
fd40107041 added tests for chamfer api 2015-06-22 22:02:20 +03:00
645e3cd6f7 Merge pull request #95 from hyOzd/add-boxselector
Added 3d box selector with an option to use the bounding box for selection.
2015-06-20 23:11:04 -04:00
f8989928a8 Next phase of cleaning up CQ.py. 2015-06-16 17:03:36 -04:00
c97eb8aed6 test boundingbox option of the boxselector 2015-06-16 23:22:25 +03:00
b3352790d0 test multiple face selection with boxselector 2015-06-16 23:22:25 +03:00
67b1844798 test multiple edge selection with boxselector 2015-06-16 23:22:25 +03:00
7be4d5a90a test multiple vertices selection with boxselector 2015-06-16 23:22:25 +03:00
c9a8d5d72d added test for selecting faces with BoxSelector 2015-06-16 23:22:25 +03:00
f3fc050913 added tests for selecting edges with BoxSelector 2015-06-16 23:22:25 +03:00
d5b9b38c7f test boxselector again by swapping box points 2015-06-16 23:22:24 +03:00
27948156b2 added tests for selecting vertices with BoxSelector 2015-06-16 23:22:24 +03:00
7f0ef93868 Next small step in the CQ.py code cleanup. 2015-06-15 15:59:28 -04:00
0c060925de Merge pull request #94 from dcowden/cleanup
Cleanup
2015-06-15 12:26:56 -04:00
5531d695fa First round of clean up on CQ.py. Coverage still needs to be increased. 2015-06-15 12:24:38 -04:00
e39bf56cbe fixed NearestToPointSelector failure with tuple as arguments 2015-06-14 23:09:58 +03:00
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