PathArray Strange Behavior

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
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!
User avatar
clintonsam75
Posts: 291
Joined: Thu Jun 19, 2014 5:54 pm
Location: South Korea
Contact:

PathArray Strange Behavior

Post by clintonsam75 »

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
path.png
path.png (6.06 KiB) Viewed 2379 times
patharray.png
patharray.png (49.28 KiB) Viewed 2379 times
path (another view).png
path (another view).png (5.19 KiB) Viewed 2379 times
patharray (another view).png
patharray (another view).png (6.19 KiB) Viewed 2379 times
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: PathArray Strange Behavior

Post by bejant »

I'm getting an error in PathArray:

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
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
User avatar
clintonsam75
Posts: 291
Joined: Thu Jun 19, 2014 5:54 pm
Location: South Korea
Contact:

Re: PathArray Strange Behavior

Post by clintonsam75 »

Any ideas as to the cause?
User avatar
shoogen
Veteran
Posts: 2823
Joined: Thu Dec 01, 2011 5:24 pm

Re: PathArray Strange Behavior

Post by shoogen »

LProp_CLProps::Normal(...):Curvature is null or infinity
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: PathArray Strange Behavior

Post by yorik »

This is apparently a bug in the patharray code... Do you mind to share your .fcstd file?
User avatar
shoogen
Veteran
Posts: 2823
Joined: Thu Dec 01, 2011 5:24 pm

Re: PathArray Strange Behavior

Post by shoogen »

There is in the link to dropbox in the OP.
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: PathArray Strange Behavior

Post by NormandC »

This looks like a GT2 belt. :)
User avatar
clintonsam75
Posts: 291
Joined: Thu Jun 19, 2014 5:54 pm
Location: South Korea
Contact:

Re: PathArray Strange Behavior

Post by clintonsam75 »

NormandC wrote:This looks like a GT2 belt. :)
Good eye! ;)
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: PathArray Strange Behavior

Post by yorik »

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...
User avatar
clintonsam75
Posts: 291
Joined: Thu Jun 19, 2014 5:54 pm
Location: South Korea
Contact:

Re: PathArray Strange Behavior

Post by clintonsam75 »

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...
Sure. I can do that. Thank you! So, how do I get the fix?
Post Reply