9swampy / DeepNestSharp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

X and Y coordinates

dgeoffre opened this issue · comments

Hi !
Thanks for the nesting code, works perfectly
I just struggle to understand what the X and Y coordinates given in the .dnsp file are. Are they the coordinates of a special point for each part ? It seems to be changing wether the part has been rotated or not during the nesting.
Thanks again

They're just the offset of the part from the origin on the sheet.

On the Sheet Placement Editor you can edit the offsets or Shift+Click on parts to drag/drop in the Preview. FYI dragging is a little out of sync so multiple small moves work better than one large move. . . and atm you can only move around parts already present; todo => moving from one sheet to another, adding & removing additional parts etc.

okay, thanks for the answer, I managed to use the coordinates correctly !
Unfortunately, I'm struggling to nest some parts, the Pmap phase takes a lot of time... (like 15 min for each placement)
What is the purpose of the Pmap phase ? I'm nesting parts like these :
Capture baj

Do you think that the small notch in the part can be a problem for DeepNest ?

Thanks !

No the notch shouldn't be an issue. The pair-map is the core of the NoFitPolygon algorithm that generates the nest and it can take a while, but 15 mins a placement doesn't sound right. How many parts are you trying to nest?

I'm trying to nest 70 parts like these, maybe the problem comes from the precision of my dxfs, my dxfs are 17Ko for each part.
It seems that reducing the number of points in the dxfs accelerates the process

Curve Tolerance and Clip By Hull would have a similar effect sacrificing the tightness of the nest without losing precision on the individual parts ultimately output. As your original question is answered, if you don't mind could you close this issue?