JSCAD User Group

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. kaosat-dev
    • Profile
    • Following 1
    • Followers 0
    • Topics 2
    • Posts 13
    • Best 2
    • Controversial 0
    • Groups 0

    kaosat-dev

    @kaosat-dev

    3
    Reputation
    735
    Profile views
    13
    Posts
    0
    Followers
    1
    Following
    Joined Last Online

    kaosat-dev Unfollow Follow

    Best posts made by kaosat-dev

    • Series of video tutorials for OpenJSCAD !

      Thanks to the very kind sponsorship of Serapath over on Twitter,
      we have created a small (ongoing) series of video tutorials for Jscad that you can find here : https://www.youtube.com/playlist?list=PLCiWVcSJ1UJQPNZWqu3OJzZbrwLdO39S9
      Enjoy !
      And feedback is also welcome 🙂

      posted in Announcements
      kaosat-dev
      kaosat-dev
    • RE: Hello !

      Hi Gilbert and welcome to the new forums 🙂
      Still amazed by all your paper creations ! Please keep up the awesome work !

      posted in General Discussions
      kaosat-dev
      kaosat-dev

    Latest posts made by kaosat-dev

    • RE: how to run demo in V2/web?

      Hi @LinGuanfu !
      Visually that seeems correct: if you click on help/question mark do you have a menu with a list of examples ?
      also looking at the console output it seems the two instances are created correctly.
      Please try opening a design in both panels (or drag & droping a jscad file/folder).
      The css is not finished and could use some tweaking (or might not be a perfect fit for all use cases, but should be easy to change 🙂

      posted in Development Discussions
      kaosat-dev
      kaosat-dev
    • RE: V2 Offset

      @z3dev This looks absolutely amazing !
      Lots of uses cases 🙂 (I am a sucker for 2d in 3d haha)

      posted in Development Discussions
      kaosat-dev
      kaosat-dev
    • RE: slicing with OpenJSCAD

      This is absolutely amazing, both from a technical and a design point of view ! big kudos !

      it works fine on a model with 1000 triangles

      I am guessing it does not scale particularly well ? 🙂

      posted in Comments & Feedback
      kaosat-dev
      kaosat-dev
    • Series of video tutorials for OpenJSCAD !

      Thanks to the very kind sponsorship of Serapath over on Twitter,
      we have created a small (ongoing) series of video tutorials for Jscad that you can find here : https://www.youtube.com/playlist?list=PLCiWVcSJ1UJQPNZWqu3OJzZbrwLdO39S9
      Enjoy !
      And feedback is also welcome 🙂

      posted in Announcements
      kaosat-dev
      kaosat-dev
    • RE: A little web app using OpenJsCad

      @William-Adams that is very nice indeed !
      Jscad is just a shorter name and less of a mouthful, either is fine 🙂

      @benkei it does indeed work like that, the parameter definitions are parsed by the internals of jscad to be displayed in the UI

      posted in Development Discussions
      kaosat-dev
      kaosat-dev
    • RE: A little web app using OpenJsCad

      Hi @benkei ! Glad you got some things working !
      What part about parameters do you need help with ? , we can help 🙂

      posted in Development Discussions
      kaosat-dev
      kaosat-dev
    • RE: function in getParameterDefinition

      @imkael désolé pour la réponse très tardive !

      • la version expérimentale avec gestion de modules est ici: https://jscad.xyz/playground.html
      • si j'ai bien compris, oui ça devrait être possible
      • il faudra juste bien exporter les bonnes variables dans chaque module:

      drilling.jscad

      const listdrill = function listdrill(type) {
      
        var toreturn = [];
        if (type == ' countersunk'){
        toreturn=[
          [1.6,3.73,1],
          [2,4.78,1.1],
          [3,6.82,1.4],
        ...
        ];
        if( type =='hexagonal'){
          toreturn = [......
        ];
        return toreturn;
      }
      // IMPORTANT !!
      module.exports = listdrill
      
      

      index.jscad

      const listdrill = require('..path/to/drilling.jscad')
      
      function getParameterDefinitions{
        const listdrillPerType = listdrill(type);
        const foruser = '{name:'drillDiameter', initial: '3', type:'choice', caption: 'diameter', values: [';
        for(i=0;i<listdrillPerType.length;i++) {
         foruser= foruser+'''+listdrillPerType[i][0]+'',';}
          ...
        return[
          foruser,
        ];
       }
      
      function main (params) {
      }
      
      module.exports = { getParameterDefinitions, main }
      
      posted in Development Discussions
      kaosat-dev
      kaosat-dev
    • RE: V2 cylinders

      @torejorg that is a very good point that we did not consider like that, but perhaps instead of having it as a parameter for cylinders we could (emphasis on "could") have a 'skew' operation (like translate & co), or even just leverage the transform (transformation by a 4x4 matrix) to achieve a similar result ? I am not aware of how limiting/acceptable that would be to be honest something like this

      posted in Development Discussions
      kaosat-dev
      kaosat-dev
    • RE: function in getParameterDefinition

      Hi @imkael !
      I regularly use something similar (if I get your question right): ie store all defaults for parameters for re-use (https://github.com/PiRo-bots/kiwikee/blob/master/cad/kiwikee/index.js#L14), however I am not sure it would work for the old 'include' syntax: but you can get it working trivially using the 'require' module syntax (available in the V2 prototype, CLI & the desktop app):

      in a file called 'parameterDefaults.js' (or whatever you want to call it)

      const paramDefaults = {
        quality: 120,
        robotName: 'SMARS',
      }
      
      module.exports = paramDefaults
      

      and then you can simply require that module as you need it:

      const paramDefaults = require('./parameterDefaults.js')
      //code that uses those values elsewhere
      

      hope this helps !

      posted in Development Discussions
      kaosat-dev
      kaosat-dev
    • RE: remote.pl for dockerized openjscad

      Hi Wolfgang !
      Sorry but I am not aware of another version of that script.
      Do you need the re-rewrite capability provided by that file ? The only use case is for being able to open jscad designs from other sites (to dance around CORS issue).

      posted in Development Discussions
      kaosat-dev
      kaosat-dev