Eric Trombly
5ecbc89f30
change isOnLine to isOnLineSegment
2020-04-06 06:34:53 -05:00
Eric Trombly
5f648aa2c1
remove sleep calls, change some for loops to list comp, move isPointOnLine to base vector
2020-04-06 06:34:53 -05:00
Zheng, Lei
43e0d96160
Base: remove VectorPy right multiplication to matrix/placement/rotation
2019-10-07 17:24:30 +02:00
Zheng, Lei
83284a3cdd
Base: add Python number protocol support to Placement/Rotation
2019-09-28 15:32:00 +02:00
Zheng, Lei
783947ecd4
Base: improve base python object number protocol
2019-09-28 15:30:23 +02:00
wmayer
83f61b4372
implement true divide handler of the number protocol for Quantity
2018-10-27 15:27:27 +02:00
wmayer
f231871cb0
replace epsilon to check for null vector
2018-09-11 11:33:38 +02:00
Mark Ganson TheMarkster
41102edf67
fix bug in draft path array
...
put lnodes.normalize() inside try/except block
replace hard-coded 1e-6 with Vector3d::epsilon() in VectorPy::normalize()
2018-09-11 11:11:39 +02:00
wmayer
840c9e8b3c
prepare for PyCXX 7.0
2018-04-18 19:20:50 +02:00
wmayer
78c9a34f50
fix compiler warning
2018-01-08 19:55:07 +01:00
wmayer
9e2fa2d91a
support some more handlers in VectorPy and throw better exceptions for unsupported operators
2018-01-01 15:45:21 +01:00
wmayer
012cffefe8
implement slicing for VectorPy class
2017-08-21 15:16:03 +02:00
wmayer
e7c7c07cda
implement object serialization for Vector class
2017-06-22 21:52:53 +02:00
Yorik van Havre
0e9e49cbcc
py3: Base: files R-Z ported to python3
...
issue 0000995
2017-05-21 12:35:41 +02:00
Kurt Kremitzki
5c619ee285
Handle right and left hand scalar-vector multiplication
2016-12-28 13:20:03 +01:00
wmayer
f408f3180b
fix -Wextra in FreeCADBase
2016-09-21 15:02:02 +02:00
wmayer
aea769af3d
use a stricter tolerance to check for equal points
...
add method IsEqual to Vector3 class to support user-defined tolerance
2016-08-15 14:09:26 +02:00
wmayer
1e2e24b652
+ rename methods in Vector3 class
...
+ add convenience methods Cross and Dot to Vector3 class
+ fix bug in DistanceToLineSegment in Vector3 class
2016-07-30 15:14:47 +02:00
wmayer
732eb7fee3
support any sequence type in init method of Vector class
2016-07-27 09:23:20 +02:00
Sebastian Hoogen
5e51a6cdf7
fixes #0001422 : Subclass Exception
...
inherit Base.FreeCADError form RuntimeError
inherit Part.OCCError from Base.FreeCADError
inherit OCCDomainError from Part.OCCError
inherit OCCRangeError from Part.OCCError
inherit OCCConstructionError from OCCDomainError
inherit OCCDimensionError from OCCDomainError
Added PY_CATCH_OCC macro
replace PyExc_Exception
use FreeCADError in makeWireString
catch exception in BSplineCurve.increasedegree
2014-09-17 11:15:56 +02:00
wmayer
89b5d7e6f1
+ extend number protocol
2014-02-14 13:53:47 +01:00
wmayer
e916d65a5c
+ extend number protocol
2014-02-14 13:45:56 +01:00
wmayer
98bab1ebbe
+ extend number protocol
2014-02-14 12:46:30 +01:00
Yorik van Havre
a81c16c391
Exposed vector negative to python
2013-07-30 12:17:06 -03:00
wmayer
a882476c25
Add distanceToPoint to VectorPy
2013-07-17 16:41:09 +02:00
wmayer
b63f9d7a2b
0001152: The output of __repr__() of Vector and Rotatio would create Objects with different Values do to inapropriate rounding
2013-06-17 13:21:25 +02:00
wmayer
f22fc55363
Return a NotImplemented exception when comparing Matrix or Vector with other types
2012-03-13 08:49:01 +01:00
wmayer
44147e71ab
0000623: Matrix and Vector API extension
2012-03-11 16:22:17 +01:00
wmayer
d102002bdf
Make new method in Vector3 accesible from Python
2012-02-24 19:43:44 +01:00
wmayer
120ca87015
+ unify DLL export defines to namespace names
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00