Aug 3, 2017

  • Jeff Gay
    First, see Issue #76

    The last reorganization of libraries makes this more possible but there are still some issues to overcome.
    Originally shared by ****
    Hello! I'm trying to import a class defined in another file, but neither import nor require seem to be support by OpenJSCAD. Is this correct? I want to be able to use ECMAScript 2015 classes with inheritence etc
    one comment
    no plus ones
    no shares
    Shared publicly

    Jeff Gay
    It depends.
    You can use any of the JSCAD libraries with any other libraries via NODEJS. That may help get things started.
    Browsers are different. Require is not standard yet, not Import. Also, browses impose security around what can be loaded into worker threads. This is the main issue to overcome if you want to use another library. - only imports what's necessary.

Log in to reply