Commit Graph

25 Commits

Author SHA1 Message Date
c1a3fa0b47 Static method name fix 2020-01-13 22:14:13 +01:00
98fa16a0fd Initial OCP support 2020-01-04 13:54:58 +01:00
ae65dc3579 Differentiated projected plane origin and global origin for creating workplanes
Added ProjectedGlobalOrigin as centerOption for worplane constructor to differentiate between projecting the global origin and the current plane origin when creating new workplanes. Also updated projectToPlane method of Vector to only accept plane objects and it no longer does in inplace modification. Updated test converage for ProjectedOrigin and ProjectedGlobalOrigin options.
2019-06-01 18:54:56 -05:00
1d05eea6c0 projectToPlane returns self and added tests
The projectToPlane method of Vector returns self to allow for a fluent interface. There is now full test converge of projectToPlane method. Bug fixed in projectToPlane when plane is passed instead of base and normal.
2019-05-27 14:51:32 -05:00
b37d85615d Merge pull request #73 from fragmuffin/feature/matrix-err-messages
Matrix validation robustness
2019-01-05 17:02:58 -05:00
27539f081b Matrix validation robuustness
+ tests
2019-01-04 00:29:48 +11:00
8786d93bcb Plane equality
+ tests
2019-01-03 23:37:58 +11:00
9583160ad1 Refectored Vector and added more tests 2018-12-26 00:19:34 +01:00
a04dfe0afd Merge pull request #16 from justbuchanan/matrix-init-and-access
implement Matrix.__getitem__() and Matrix(list) constructor
2018-12-20 11:08:19 +01:00
f422a2cda4 Use nested lists instead of flat ones for Matrix initialization
Input looks like:
[[a, b],
 [c, d]]

instead of [a, b, c, d].
2018-12-12 00:24:05 -08:00
f8d38caa90 implement Matrix.__getitem__() and Matrix(list) constructor 2018-11-30 18:38:43 -08:00
66ce2d9d7d implement Vector __abs__ and __neg__ operators 2018-11-21 19:05:56 -08:00
3c3837fef3 implement Vector operators __add__, __sub__, __mul__, __truediv__ 2018-11-21 17:26:59 -08:00
084db38d56 Use gp_Vec.IsEqual() and add a test for Vector.__eq__() 2018-11-18 13:02:21 -08:00
1e05a45f9c First attempt at python2 and python3 support in single codebase
4 tests failing on python3 (CQGI, AMF export)
2017-09-17 00:57:12 +02:00
5c78f36885 Relax bounding box related tests 2017-09-02 17:12:44 +02:00
ff53dadd67 Stop using FreeCAD in TestCadObjects 2017-05-14 12:35:20 +02: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
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
d6ec0ea6bd Added a test to ensure that finding the center of a compound works correctly. 2015-09-17 19:13:05 -04:00
4b98b04465 Fixed import errors inside one of the tests. 2014-12-08 21:19:27 -05:00
087f0621a7 Initial attempt to fix import issues caused by verutil.py implementation. 2014-12-01 11:51:26 -05:00
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
26cd0a443d the test cases pass now at least 2013-04-16 22:29:06 -04:00
e6c2547329 initial try at the layout 2013-04-14 18:39:47 -04:00