Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpolation > Short Segment Finder for G3 #229

Open
mekkablue opened this issue May 4, 2021 · 2 comments
Open

Interpolation > Short Segment Finder for G3 #229

mekkablue opened this issue May 4, 2021 · 2 comments
Assignees

Comments

@mekkablue
Copy link
Owner

Throws a lot of errors like this in G3:

😬 ERROR in germandbls (layer: Black): Possible single-node path.
SEGMENT: "C: |(307,27)--(340,-2), (401,-16)--(483,-16)| >176,-43)0 obj:2"
SEGMENT LENGTH: 4
Traceback (most recent call last):
  File "Short Segment Finder.py", line 138, in approxLengthOfSegment
    p0,p1,p2,p3 = [p.pointValue() for p in segment]
  File "Short Segment Finder.py", line 138, in <listcomp>
    p0,p1,p2,p3 = [p.pointValue() for p in segment]
AttributeError: 'NSPoint' object has no attribute 'pointValue'
@schriftgestalt
Copy link
Collaborator

Path.segments did return a list of NSArrays that contained NSValues.
In G3 those segments are GSPathSegment that contains the NSPoints directly. So remove all .pointValue().

@RafalBuchner
Copy link
Collaborator

removed, but unfortunately, another very weird thing happened:
at least on my copy of G3 it freezes the app.
I've made debugging checkpoints in the code (in code they are print statements) and tried to find any place that could cause the freeze.

So far no clue
Short Segment Finder.py.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants