It is nice to see more users and a new enviroment. @z3dev we should think about adding a section on jscad website with links to projects like this so other users that are interested in this way of interacting with jscad can find it.
@Nathan-Apter I'm interested in doing some freelance work. I'm pretty new to the project though, but planning to build up my three.js and webgl skills anyway, so might be a good match. I'm going to send you a message.
j'ai bien réussi à créer cette forme avec les "paths / expand / offset".
mais cela me pose beaucoup de problèmes pour la suite, à savoir, le positionnement des perçages. En effet c'est compliqué car l'angle de pliage peut varier en fonction des utilisateurs.
J'ai trouvé une fonction OPENSCAD qui effectue exactement ce que je souhaite. Est-il possible de mettre cela en place sur JSCAD https://www.youtube.com/watch?v=3xTjyYKtv4A
Je n'arrive pas bien à comprendre la logique de son code qui est "en vrac" dans la description de la vidéo.
Je vous remercie pour le temps que vous consacrerez à ma demande.
@Hermann-SW this is one of many thing we would like to implement, but it is not implemented, or even specified as a possible future feature.
Current 3d engine is regl, and I am working on interchangeable support for Three.js and Babylon.js.
regl has slowed down with development but Three.js and Babylon.js are very much active
Getting info what object is clicked or mouse over is easy in Three.js and Babylon , but for regl I am not sure (it may or may not be easy to do).
You likely want to use jacad to generate geometries, give them some identifiers, interact with them and then upon interaction change the model with performance in mind by updating only things that changed.
This is something we could colaborate on, but it is not something that can be simply implemented as part of jscad script runner. Because the current workflow for jscad is:
make a script
expose getParameterDefinitions - jscad can generate params form
expose main method - jscad will call it with parameters and display result
As you can see there is no concept of partial interactions or reactive changes, it is more like a commandline program that you write, and jscad calls to display it's output in 3d (and provide export option)
there are several building blocks that make this combo getParameterDefinitions + main work, with proper separation of those building blocks users would be allow to create much more than just scripts that produce 3d geometry. But such efforts take time, and we are low on man-power.
One such reusable block I started creating is code editor https://github.com/hrgdavor/jsx6/tree/main/libs/editor-monaco although there are nice code editors, they are not too easy to use or combine with JS projects (takes too much knowledge) so I am aiming to create more friendly wrappers. Each editor is stuck with their own cool build process and tooling that was popular at the time of the project start.
I am also improving my skills with web workers, and babel transformations to provide building blocks for script execution with proper line numbers in stack traces and built-in browser's debugger integration.
so, slowly something is comming along ... slowly...
@hrgdavor I tried that with openjscad.xyz and it did not work. But it does work with locally hosted demo.html !
Thanks, until now I had browser console open right, editor in middle and only half of 3D view left. After drag and drop, I can close the editor and see new graphs whenever I run node.tetra.js to produce a different x.jscad. So much easier to work now ...