Hello, I'm making a script to create a frame which will be a basic brick of simple furniture. Apparently the rendered volume is OK, but when I tried to unfold it, I accidentally made an impossible fold (right window, right vertical line with "undefined"). It corresponds to the yellow line on the middle window that does not fit to its neighbor line that is larger (they don't share any vertices). I can unfold it using a pattern that works, but maybe the boolean operation that creates this geometry could instead produce a manifold geometry ?

Posts made by gilboonet
-
boolean operation produces non manifold
-
RE: 2D slice from extruded polygon after substraction
@Ion-0 If I approximate your design, and get a slice of it, I have a set of 3 polygons
-
RE: 2D slice from extruded polygon after substraction
Hello, did you try to unify the polygons ? I have some code that does the same kind of thin slicing and the 2d slice is an union of the polygons.
-
A simple pattern generator (for cardboard Butaï)
I've been asked to make a pattern to build a Butaï. I tried to make it with jscad 2, and it went fine, I managed to do a parametric version with a 3d mode that is useful while prototyping, and a 2d mode to render the final pattern to svg.
https://jscad.xyz/#https://raw.githubusercontent.com/gilboonet/designs/master/butai.js
-
RE: V2 Update 2021 Jan 02
@z3dev Here is what I have with my 4K screen :
It might be useful to be able to reduce editor width, here it could easily be three times narrower, but at the same time it would be nice to be able to have a bigger font size (using navigator zoom would do that but also for parameters and render). Code folding would be a great addition, and the pinnacle that I'm looking for for a long time would be multi-column, but there's very little chance for that. There's no need for search/replace as navigator already provide them. -
RE: V2 Update 2021 Jan 02
I made a very simple 7 segments display script that uses union and if it still has holes when exported to wings 3d, it is the first time that those holes are easy to repair using only wings3d option for that (body mode, select the model, face mode, right click, select hole option, right click)
-
RE: V2 Update 2021 Jan 02
Thanks a lot, that's very nice to have this built-in editor. I was already accustomed to use my external editor, but to explain to non IT specialist users how to use jscad, it is nice to have it as simple as possible.
-
RE: Holes when using star primitive with extrusion and boolean operation
@z3dev I already tried to use a branch locally but didn't managed to make it work, so I stick to web version at https://jscad.xyz/
-
RE: Holes when using star primitive with extrusion and boolean operation
I rewrote it with v1 and the star rendered has no holes. I avoided rectangular_extrude because I wasn't able to use it without roundends. And I need to find a way to compute star width using a % from the outerpath (I form the star polygon with the outerpath minus itself scaled (0.8) for the moment.
-
Holes when using star primitive with extrusion and boolean operation
Hello, I made a little jscad script to make a star using the dedicated primitive, it went well, but unfortunately the model has holes and they appear on all combinations that my script can do :
- star + rectangular_extrude
- star + rectangular_extrude + linear_extrude + union
It might is due to T junction problem.
-
RE: some feedback
@z3dev I just tested again in order to write the issue, but apparently there is no more problem with text parameter, it was maybe a problem of cache (I'm using web version).
-
some feedback
Hello, here 2 things that I noticed :
-
I use a text parameter and i have troubles when typing something on it, it seems to reload default/initial value after each keystroke or something like that, so I cannot type my value and needed to type it somewhere else and copy/paste it.
-
I usually color faces of a volume for one of my processes, and I used to export it to .obj with those colors as materials. And when I want to use that .obj with a script regardless of those materials, I union the array that the required("./volume.obj") returns, but then the volume I have seems to have errors. Last one I tested returned 0 for Y measurementBox. I tried ti check this opening the .obj on a script but then it return good value for Y. So for now I'm using two versions of the same .obj, one with separated materials, and another without.
Here is the volume I tested, it is very simple. It's maybe the flat nature of my separated parts that causes union() to fail.
-
-
RE: V2 Feedback : about slicing
@z3dev I'm currently working with furniture models, they are all hand made. I sliced 8 models (they are available here https://github.com/gilboonet/designs/blob/master/MEUBLES/readme.md, each picture open the corresp. model into jscad) and they are clean because my scripts (slicer and unflattener) can only produce patterns for models without errors (holes, non-manifold). It's certainly my process that met an unhandled condition. To produce 2 axes imbricated crosspieces, I need to slice and then split slices that are made of multiple separated pieces because crosspiece cut need to be done for each piece. As you said it is too complex to debug. I need to simplify my process, maybe voxelization could help.
-
RE: V2 Feedback : about slicing
@z3dev It made the slices, but the error happened when exporting to 2d. At first, as it is a very large model (120 cm x 40 x 40) I try to halve it but it still didn't export. I didn't test deep enough to know what exactly is causing this but when choosing slices position, some cause errors on the top of other slices. The script with erroneous 3d model is here https://jscad.xyz#https://raw.githubusercontent.com/gilboonet/designs/master/MEUBLES/sq_ed0008_err.js.
-
RE: V2 Feedback : about slicing
@z3dev it is hand made model from Wings 3d, exported to .obj with triangular tessellation. It has many triangles because it is also used halved for another process, but it's something I do with lots of models that I was able to slice. The only difference is that to have it take the smaller possible bounding box, I rotated it 45° on Z.
-
V2 Feedback : about slicing
Hello, I had a 3d model that I wasn't able to export to 2d format after I sliced it on 2 axis , and I just found that there were extraneous lines on it that needed to be removed.
After I removed red lines (on the left model), I was able to slice it and export resulting slices to 2d (svg).
now when I encounter this export error, I will look for lines that can be removed, but I suppose that a solid projection function could work even with them. Does anyone know how I could do to make a real projection function ?
-
RE: No more display of parameters captions on v1
I finally understood what was happening, I inverted the colours parameter of Firefox to have white text and black background
I put text in black and it's ok.
-
RE: No more display of parameters captions on v1
@z3dev It's certainly my configuration that's causing this, I recently replaced dark settings by light ones on Firefox and also my OS display settings. I have the same with examples :
-
No more display of parameters captions on v1
Hello, I know there's no more support of v1, but I still have useful V1 scripts and it's the second time that I notice that it doesn't display parameters caption anymore.
the example :
https://openjscad.org/#https://raw.githubusercontent.com/gilboonet/designs/master/traverses.js
Anyway I will certainly convert it to v2 asap.