PathArray Strange Behavior
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
- clintonsam75
- Posts: 291
- Joined: Thu Jun 19, 2014 5:54 pm
- Location: South Korea
- Contact:
PathArray Strange Behavior
Can someone explain to me why the object jumps up onto the top of the line only at this corner but not at any of the other corners? And is there a fast and simple way to fix it?
FCSTD File
Download Here
FCSTD File
Download Here
Re: PathArray Strange Behavior
I'm getting an error in PathArray:
OS: Ubuntu 14.04.2 LTS
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.16.4751 (Git)
Branch: master
Hash: 694b0339fdfb829316cf7770da69f521ec56a7c1
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
Code: Select all
DraftGeomUtils.sortEdges failed - running old version
Draft PathArray.orientShape - Cannot calculate Path normal.
Draft PathArray.orientShape - Path normal is Null. Cannot align.
(Snipped out a bunch of the same messages)
Draft PathArray.orientShape - Cannot calculate Path normal.
Draft PathArray.orientShape - Path normal is Null. Cannot align.
(Snipped out a bunch of the same messages)
Draft PathArray.orientShape - Cannot calculate Path normal.
Draft PathArray.orientShape - Path normal is Null. Cannot align.
Draft PathArray.orientShape - Aligned to tangent only (b == z).
Draft PathArray.orientShape - Aligned to tangent only (b == z).
Draft PathArray.orientShape - Aligned to tangent only (b == z).
Draft PathArray.orientShape - Aligned to tangent only (b == z).
Draft PathArray.orientShape - Aligned to tangent only (b == z).
Draft PathArray.orientShape - Aligned to tangent only (b == z).
Draft PathArray.orientShape - Aligned to tangent only (b == z).
Draft PathArray.orientShape - Aligned to tangent only (b == z).
Draft PathArray.orientShape - Aligned to tangent only (b == z).
Draft PathArray.orientShape - Aligned to tangent only (b == z).
Draft PathArray.orientShape - Aligned to tangent only (b == z).
Draft PathArray.orientShape - Aligned to tangent only (b == z).
Draft PathArray.orientShape - Aligned to tangent only (b == z).
Draft PathArray.orientShape - Aligned to tangent only (b == z).
Draft PathArray.orientShape - Aligned to tangent only (b == z).
Draft PathArray.orientShape - Cannot calculate Path normal.
Draft PathArray.orientShape - Path normal is Null. Cannot align.
(Snipped out a bunch of the same messages)
Draft PathArray.orientShape - Cannot calculate Path normal.
Draft PathArray.orientShape - Path normal is Null. Cannot align.
Traceback (most recent call last):
File "/usr/lib/freecad/Mod/Draft/Draft.py", line 4840, in execute
obj.Shape = self.pathArray(obj.Base.Shape,w,obj.Count,obj.Xlate,obj.Align)
File "/usr/lib/freecad/Mod/Draft/Draft.py", line 4963, in pathArray
ns = self.orientShape(shape,path[iend],offset,pt,xlate,align)
File "/usr/lib/freecad/Mod/Draft/Draft.py", line 4917, in orientShape
ns.rotate(RefPt,lnodes,theta)
<class 'Base.FreeCADError'>: Unknown C++ exception
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.16.4751 (Git)
Branch: master
Hash: 694b0339fdfb829316cf7770da69f521ec56a7c1
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
- clintonsam75
- Posts: 291
- Joined: Thu Jun 19, 2014 5:54 pm
- Location: South Korea
- Contact:
Re: PathArray Strange Behavior
Any ideas as to the cause?
Re: PathArray Strange Behavior
LProp_CLProps::Normal(...):Curvature is null or infinity
Re: PathArray Strange Behavior
This is apparently a bug in the patharray code... Do you mind to share your .fcstd file?
Re: PathArray Strange Behavior
There is in the link to dropbox in the OP.
Re: PathArray Strange Behavior
This looks like a GT2 belt.
- clintonsam75
- Posts: 291
- Joined: Thu Jun 19, 2014 5:54 pm
- Location: South Korea
- Contact:
Re: PathArray Strange Behavior
Good eye!NormandC wrote:This looks like a GT2 belt.
Re: PathArray Strange Behavior
Ok I committed a fix ( git commit 0c32b1b ) that makes sure the normal is the same for the whole path. But you will now probably need to rotate the base shape...
- clintonsam75
- Posts: 291
- Joined: Thu Jun 19, 2014 5:54 pm
- Location: South Korea
- Contact:
Re: PathArray Strange Behavior
Sure. I can do that. Thank you! So, how do I get the fix?yorik wrote:Ok I committed a fix ( git commit 0c32b1b ) that makes sure the normal is the same for the whole path. But you will now probably need to rotate the base shape...