Jump to content
Ultimaker Community of 3D Printing Experts

kreeser1

Member
  • Content Count

    7
  • Joined

  • Last visited

Community Reputation

0 Neutral
  1. I have a couple questions related to this thread from 2015, where there is a discussion of the nearest neighbor algorithm used to determine the order in which polygons are printed. Ghostkeeper comments: "The first is the order in which to draw polygons, which includes infill and walls and such. For these it first finds the point on each polygon that is closest to the starting position of the path. Then it treats the polygons as points so it can execute a simple nearest neighbor algorithm: Just keep going to whichever polygon is nearest to your current position that you haven't vis
  2. gr5 -- Thank you very much for not only providing your best guess, but then going back into the source code itself to check, and then posting again. I read an academic paper once (https://link.springer.com/article/10.1007/s00170-012-4706-y) which described it in a similar way. When I have heard this before, I never quite knew if counterclockwise and clockwise were physical path directions in this sense, or some mathematical definition I wasn't aware of.
  3. I understand in the general sense how slicer programs create sets of closed-loop polygons to print for each layer. For a given closed loop polygon which needs to be printed, the tool path generator will know the coordinates and which of those coordinates are connected to each other, such that traversing a set of segments in that order will bring the extruder head back to the first coordinate to complete the closed loop. My question is: By what mechanism does the tool path generator decide which 'direction' to traverse the closed loop? As it is a loop, that loop could be printed "cl
×
×
  • Create New...