JSCAD User Group

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Oct 14, 2017

    Archives (Google+)
    1
    1
    798
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • z3dev
      z3dev last edited by

      Christian Brunschen
      Hi all,
      I'm trying to use CSG.ConnectorList but having mixed success. A simple example like

      function main() {
      var cs = new CSG.ConnectorList();
      cs.appendConnector(
      new CSG.Connector([0,0,0], [0,0,1], [1,0,0]));
      cs.appendConnector(
      new CSG.Connector([0,0,12], [0,0,1], [1,0,0]))
      return cs.followWith(CAG.circle({center:[0,0], radius:5,}));
      }

      works fine when entered into https://openjscad.org/ , but when I run OpenJSCAD locally, I get "TypeError: CSG.ConnectorList is not a constructor" .

      OpenJSCAD.org
      Editor. Render Code, F5 or SHIFT + Return. Save To Cache, CTRL + S. Load From Cache, CTRL + L. Download Code, CTRL + SHIFT + S. Reset View, CRTL + Return. 3D View. Rotate XZ, Left Mouse. Pan, Middle Mouse or SHIFT + Left Mouse. Rotate XY, Right Mouse or ALT + Left Mouse. Zoom In/Out ...
      openjscad.org
      7 comments
      7
      no plus ones
      no shares
      Shared publicly

      Christian Brunschen
      +Mark Moissette, I was referring to running a local web server, serving the contents of the openjscad.org - OpenJSCAD.org github repository, per the instructions:
      
      "Use within a Web Site (pre built files)
      
      cd base-directory-of-website
      git clone https://github.com/jscad/OpenJSCAD.org
      cd OpenJSCAD.org
      <start a web server here>"
      
      OpenJSCAD.org
      openjscad.org
      

      Oct 16, 2017
      Jeff Gay
      Moderator
      Will definitely try this but there shouldn't be any differences in your local copy versus openjscad.org.

      If you have any other information then please let us know.

      Oct 16, 2017
      Christian Brunschen
      I just did a fresh sequence of:

      git clone github.com - jscad/OpenJSCAD.org
      cd OpenJSCAD.org
      python -m SimpleHTTPServer 8001

      pointed a web browser (Google Chrome, version Version 61.0.3163.100) at

      http://localhost:8001/

      which reports version "1.0.3"; I pasted in the code above and reproduced the error, "TypeError: CSG.ConnectorList is not a constructor".

      I also pointed the same browser at https://openjscad.org/ which reports version "OpenJSCAD.org 1.0.1", pasted the exact same code, and there is worked.

      I took screenshots of each: https://imgur.com/a/gBJr7
      jscad/OpenJSCAD.org
      jscad/OpenJSCAD.org
      github.com

      Oct 17, 2017
      Christian Brunschen
      Thank you!

      Oct 17, 2017
      Christian Brunschen
      Done (with some copy-pasting from this thread):
      github.com - CSG.ConnectorList does not work in current code on github · Issue #299 · jscad/OpenJSCAD.org
      CSG.ConnectorList does not work in current code on github · Issue #299 · jscad/OpenJSCAD.org
      CSG.ConnectorList does not work in current code on github · Issue #299 · jscad/OpenJSCAD.org
      github.com

      Oct 17, 2017
      Christian Brunschen
      they seem to report somewhat different versions (1.0.1 on http://openjscad.org, 1.0.3 running locally). The two 'dist/index.js' files also seem quite different.

      Oct 17, 2017
      Christian Brunschen
      Hi! Just wondering, did your hunch play out?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Powered by NodeBB | Contributors