Ring malfunction

Discussion in 'ShapeJS' started by jasolo, Sep 14, 2013.

  1. jasolo
    jasolo Member
    When testing the Ring data source, I got a cylinder. :confused

    Code:
    TEXT: args[0] = 6
    TEXT: args[1] = 1
    TEXT: args[2] = 5
    
    function main(args) {
      var innerRadius = args[0]*MM;
      var thickness = args[1]*MM;
      var width = args[2]*MM;
      var ring = Ring(innerRadius,thickness,width);
      var grid = createGrid(-8*MM,8*MM,-3*MM,3*MM,-8*MM,8*MM,0.1*MM);
      var maker = new GridMaker();
      maker.setSource(ring);
      maker.makeGrid(grid);
      return grid;
    }
     
  2. AlanHudson
    AlanHudson Shapeways Employee Dev Team
    I can confirm I'm seeing the same issue. We'll figure out if the code or docs are wrong. Thanks for the report.
     
  3. AlanHudson
    AlanHudson Shapeways Employee Dev Team
    We've fixed the issue. Thanks again for the report.