Commit Graph

422 Commits

Author SHA1 Message Date
c2ce8feb4c Adding testcases for the new implementation of DirectionNthSelector 2017-04-18 18:38:34 +02:00
64156a792a Fixing DirectionNthSelector
Many corner cases were missed in the initial implementation. Especially
handling of multiple faces with same/similar distance was NOK
2017-04-18 18:37:59 +02:00
8bf31d0e6b Removed mention of the PPA for the FreeCAD module since it is not being kept up-to-date 2017-04-17 10:40:25 -04:00
9c24f8b703 Add projects using cadquery 2017-04-15 18:13:14 -04:00
731efe57e7 Updated everything for version 1.0.0 v1.0.0 2017-04-12 21:33:38 -04:00
ea966045b9 Merge pull request #178 from adam-urbanczyk/master
Increase the coverage of selector grammar testing
2017-04-11 14:59:22 -04:00
cde17b541e Increase the coverage of selector grammar testing 2017-04-11 20:30:59 +02:00
57d566e80b Merge pull request #176 from Peque/master
Make pyparsing an actual cadquery requirement
2017-02-11 13:08:32 -05:00
55b3991cfa Make pyparsing an actual cadquery requirement 2017-02-11 16:45:21 +01:00
26261c6ff5 Update readme to use master build status not latest 2016-12-28 15:01:38 -05:00
e6831d22a5 fixed formatting 2016-12-11 17:09:41 -05:00
6a485ae8c3 Update readme for CQ 2.0 roadmap 2016-12-11 17:08:50 -05:00
4aa7a8e9ac Added pyparsing to requirements list 2016-12-04 14:49:56 -05:00
4806cad2a0 Merge pull request #157 from Peque/freecadinit
Freecadinit updates for PEP8 and Python 3.
2016-11-28 20:23:14 -05:00
d0185c951a Merge pull request #159 from huskier/master
Fix "NameError: global name 'Face' is not defined"
2016-11-28 20:20:01 -05:00
c312ebcdf7 Fix "NameError: global name 'Face' is not defined", It appears that 'Face' class is missing from __all__ list in the __init__.py. 2016-11-29 09:02:38 +08:00
32c39a60ca Merge pull request #158 from huskier/master
Correct errors for the last pull request [Fix the "'toVector' is not defined" bug]
2016-11-28 16:34:32 -05:00
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
63dcf459f8 Merge pull request #156 from huskier/master
Fix the "'toVector' is not defined" bug
2016-11-28 10:13:08 -05: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
e3723b8b7c @dcowden's original fix is correct ,and it appears all my fault, for I use a very old version of geom.py file, in which the Vector type is not processed properly, so all the weird things. 2016-11-28 15:04:15 +08:00
3123f8c9a1 Fix if/elif statements in FreeCAD's __init__ file 2016-11-27 23:33:00 +01:00
bfad5f93f8 Add another possible FreeCAD library path
In Fedora, FreeCAD library can be located under `lib64` instead
of `lib`.
2016-11-27 21:45:11 +01:00
adc941ccab Refactor FreeCAD's __init__.py file
Remove and refactor some code to make it a bit cleaner and
PEP8-compliant.
2016-11-27 21:42:15 +01:00
525998239a 1. Fix the "'toVector' is not defined" bug. Since the type of center.wrapped with center = Vector(pnt) is not Base.Vector, I have to use center = FreeCAD.Base.Vector(pnt.x, pnt.y, pnt.z) to make the variable center a Base.Vector type. The fix worked, but I do not think it is elegant.
2. At present I do not know how to fix the 'toVector' issue in makePlane method in the Face class, for both the basePnt and dir are 'None'.
2016-11-25 15:28:57 +08:00
791741e162 Merge pull request #1 from dcowden/master
Merge original author's work
2016-11-25 15:04:52 +08:00
669bc3c69c Merge pull request #153 from baoboa/patch-1
Update README.md
2016-10-12 09:16:01 -04:00
fc3c9537a7 Update README.md
use code block for github markdown
2016-10-12 14:34:24 +02:00
fa71f9d569 Merge pull request #152 from baoboa/patch-1
Update changes.md
2016-10-12 07:16:50 -04:00
cc2ad7850c Update changes.md
cleaning
2016-10-12 12:29:34 +02:00
a2c4e4981e Update __init__.py
Cleaning up the version number.
2016-10-11 20:11:25 -04:00
7ad00ab279 Update PKG-INFO
Cleaning up version number.
2016-10-11 20:10:54 -04:00
90acdbc440 Merge pull request #151 from adam-urbanczyk/master
String selector with logical operations
Thanks for the contribution @adam-urbanczyk
2016-07-10 14:17:37 -04: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
40b11748a3 First working implementation of complex StringSyntax selecter (i.e. supporting nesting and logical operations)
Regression is OK. Progression not tested.
2016-07-06 21:41:43 +02:00
2d7813d0df Preliminary defnition of a complex string selector grammar 2016-07-05 22:03:58 +02:00
c84325e114 Initial implementation of the extended grammar including logical ops
NB: I changed the parsing of basic expressions to strict (i.e. parseAll
= True) to avoid unexpected behavioraf
2016-07-03 00:48:23 +02:00
7bb52eb859 Update changes.md 2016-06-29 22:30:32 -04:00
ffa54fb70a Merge pull request #148 from adam-urbanczyk/master
Extendend string selector syntax using PyParsing
2016-06-29 22:27:44 -04:00
5b0b5c0e96 Fix wrong handling of index in the string syntax selector 2016-06-29 21:04:28 +02:00
f6d532328f Extend testNthDistance to test DirectionNthSelector using the new string syntax too 2016-06-29 21:03:30 +02:00
d1593e6d8e First fully working implementation of the pyparsing based StringSelector
Fixed all failing test cases from the previous commit: extended the
grammat to handle upper and lowercase CQ types and fixed some typos
2016-06-21 20:50:28 +02:00
76a2207a6e Added simple test case for the string selector grammar 2016-06-21 20:30:53 +02:00
bde0fddc05 Initial almost working implementation of pyparsing based string selector
Two test cases are  still failing
2016-06-21 20:30:36 +02:00
f8c377c2f7 Fix typo in .travis.yml 2016-06-20 22:03:25 +02:00
42d109325f Change .travis.yml to include pyparsing 2016-06-20 21:54:03 +02:00
7d7591719b Initial implementation of the selector grammar using PyParsing
For now the grammar is defined. It is not yet used in the
StringSyntaxSelector
2016-06-20 21:48:25 +02:00