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
Best posts made by kaosat-dev
-
Series of video tutorials for OpenJSCAD !
-
RE: Hello !
Hi Gilbert and welcome to the new forums
Still amazed by all your paper creations ! Please keep up the awesome work !
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 -
RE: V2 Offset
@z3dev This looks absolutely amazing !
Lots of uses cases (I am a sucker for 2d in 3d haha) -
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 ?
-
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 -
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
-
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 -
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 }
-
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
-
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 !
-
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).