4 Comments

  1. ABSOLUTELY LOVED IT!
    Thank you very much, Christopher.

  2. That was a fun tutorial, enjoying your pdg coarse.

    A note about your SOP parse of the gcode. For situations like this its better to do on the detail wrangle rather than points, as we can iterate trough each point in sequential order. So no need to back track in sop wrangle to find the missing “gaps” in positions. I was able to consolidate those 4 wrangle in a simple detail wrangle step after you filtered the “G1” lines:

    int np = npoints(0);
    string vecs[] = {‘X’, ‘Y’, ‘Z’, ‘E’};
    vector pos = {0,0,0};
    float x,y,z = 0.0;
    for(int pt=0; pt0), ‘set’);
    }
    }
    }
    setpointattrib(0, ‘P’, pt, pos, ‘set’);
    }

    • int np = npoints(0);
      string vecs[] = {‘X’, ‘Y’, ‘Z’, ‘E’};
      vector pos = {0,0,0};
      float x,y,z = 0.0;
      for(int pt=0; pt0), ‘set’);
      }
      }
      }
      setpointattrib(0, ‘P’, pt, pos, ‘set’);
      }

  3. sorry these comments are trash and wont let me past the full code

Leave a Reply to Hannes Cancel reply