You can maybe find some help here :
it's a project that creates a gallery from .jscad designs
Coder since 1978, cardboard crafter since 2007, digital cardboard crafter and JSCAD user since 2014.
Posts made by gilboonet
Regular polyhedrons example
Hello, here is another example script, it uses the 5 platonics solids, each one has its function :
tetrahedron(), octahedron(), hexahedron(), dodecahedron() and icosahedron(). I grabbed the math data from the OpenJSCAD platonics example. The sizes are not homogeneous.
Regular polygons example
Hello, I'm making some code examples, here is a regular polygon generator. it can be used to demo the function or make a polygon with it. It can be viewed here
My intention is to do the same for common polyhedrons (icosahedron and so on), so users could start a design from one of those volumes, just by picking the corresponding function.
I'm using a function (simpleRotate) to rotate my points, but was there a way to use an internal function to do the same ?
RE: Multicolor (by faces) model
My code (obj2jscad) only reads a very simple OBJ file (only triangular without normals or textures) and take use of its facets materials groups. Materials are described into another file that I don't use but it could be done to read colors as materials simplest expression can be colors. True OBJ format is much more complex than that.
Multicolor (by faces) model
Hello, i'm still working on improving my unflatten script, and the latest improvement I'm working on is a convenient way to specify separated spaces on a model. OBJ format can save a model with faces of different materials, so I adapt my Stl2Jscad nodejs script to obj. Here is an example using it :
To show the example into openjscad.org there's some work to do :
- copy the directory and open it,
- run node obj2jscad montage2 on the cli, that will create the file "modele_obj.jscad",
- open openjscad.org and drag "modele_obj.jscad" and "testOBJ.jscad"
You can then, easily modify the model colors (I do it with Wings 3D and what is important is not the colors but the materials), save the obj file, run obj2jscad on it again, and refresh jscad script.
I'm not certain that lots of people need multicolor models but I hope that that idea could be useful.
Unflatten volume with puzzle like notches
Hello, I added two features to my unflatten script :
- a list of facet couplets to not attach, in order to optimize the net
- a version of the pdf renderer (pdfP.js instead of pdf.js) with puzzle like notches, in order to ease the assembly.
The code is here : https://github.com/gilboonet/auto_flattener/tree/master/Puzzle_Moai
RE: google+ data?
@jamesnewton Indeed it is not that critical, it won't be bad to have already answered questions on the previous forum asked again here, so up to date answers could be provided. By the way those who have jscad knowledge/experience to share can make a post to show what they do, put some code.
RE: dockerized OpenJSCAD
My example is here :
You can test it by drag&drop the directory to openjscad.org