Navigation

    JSCAD User Group

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. gilboonet
    3. Topics
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Topics created by gilboonet

    • gilboonet

      boolean operation produces non manifold
      Comments & Feedback • • gilboonet  

      2
      0
      Votes
      2
      Posts
      6
      Views

      z3dev

      Yup. The old fixTJunctions() function is not present in V2. There's a pull request to add this functionality back, which is under review now.
    • gilboonet

      A simple pattern generator (for cardboard Butaï)
      General Discussions • • gilboonet  

      3
      0
      Votes
      3
      Posts
      6
      Views

      hrgdavor

      awesome
    • gilboonet

      Holes when using star primitive with extrusion and boolean operation
      General Discussions • • gilboonet  

      4
      0
      Votes
      4
      Posts
      8
      Views

      gilboonet

      @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/
    • gilboonet

      some feedback
      General Discussions • • gilboonet  

      3
      0
      Votes
      3
      Posts
      7
      Views

      gilboonet

      @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).
    • gilboonet

      V2 Feedback : about slicing
      Development Discussions • • gilboonet  

      7
      0
      Votes
      7
      Posts
      16
      Views

      gilboonet

      @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.
    • gilboonet

      No more display of parameters captions on v1
      Development Discussions • • gilboonet  

      4
      0
      Votes
      4
      Posts
      11
      Views

      gilboonet

      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.
    • gilboonet

      How to use same script with different targets ?
      Development Discussions • • gilboonet  

      6
      1
      Votes
      6
      Posts
      15
      Views

      gilboonet

      @hrgdavor Thank you for your code, it would be great to be able to load code and data like that then fire it. I hope it will be possible, with v1 I used gProcessor.setJJsCad() on an html/js app but here it is directly a jscad script.
    • gilboonet

      little feedback on how jscad v2 helps a "maker"
      General Discussions • • gilboonet  

      5
      1
      Votes
      5
      Posts
      16
      Views

      gilboonet

      @z3dev yes, examples I mentionned come from "vue-components" project
    • gilboonet

      Error when saving 2d rendering
      General Discussions • • gilboonet  

      9
      0
      Votes
      9
      Posts
      16
      Views

      gilboonet

      @z3dev Thanks a lot for your suggestions, I will try to implement them. I have some marginal cases where it will certainly help to have exact vertices
    • gilboonet

      Unexpected Holes into volume extruded from Svg paths
      General Discussions • • gilboonet  

      4
      0
      Votes
      4
      Posts
      13
      Views

      z3dev

      @gilboonet no problem. there's plenty to fix still, but each release improves V2 JSCAD. i'll post an update once there's something to test for this issue.
    • gilboonet

      V2 Feedback : require selection from parameter
      Development Discussions • • gilboonet  

      3
      0
      Votes
      3
      Posts
      13
      Views

      gilboonet

      @z3dev I could easily adapt to any solution allowing to feed a list parameter with files, it will be far a better UI practice than my current one that requires the user to type the file name. Or maybe the ability for a text parameter to receive a file from a drag-drop operation.
    • gilboonet

      V2 feedback : extrudeRotate
      Development Discussions • • gilboonet  

      7
      0
      Votes
      7
      Posts
      11
      Views

      gilboonet

      @z3dev the svg is here : https://github.com/gilboonet/gilboonet.github.io/blob/master/demos/demi_l.svg What I'm trying to do is a composite volume made of half a revolution of extrudeRotate then extrudeLinear with the same shape. I was able to have both extrusion method return a volume, but they don't coincide.
    • gilboonet

      V2 feedback : extrudeFromSlices
      Development Discussions • • gilboonet  

      4
      1
      Votes
      4
      Posts
      16
      Views

      gilboonet

      @z3dev An option to show/hide slider value would be great. Long ago I made some tweaks to parameters that looked like that, but now jscad architecture is too complex for me to make such changes. On the bottom of the screenshot you can see file browser to import/export parameters that I also added and was of great help to make complex models.
    • gilboonet

      V2 Feedback : extrudeRotate
      Development Discussions • • gilboonet  

      1
      0
      Votes
      1
      Posts
      6
      Views

      No one has replied

    • gilboonet

      Obj file with colors
      Development Discussions • • gilboonet  

      1
      0
      Votes
      1
      Posts
      2
      Views

      No one has replied

    • gilboonet

      About polygons winding
      Development Discussions • • gilboonet  

      8
      0
      Votes
      8
      Posts
      15
      Views

      gilboonet

      I'm trying now csg on a .obj file imported (require) into V2. It works fine with an intersect, but when I try to make lots of intersect, the return statement has errors. On my example, height is 104 units, I can return a slice every 3 units, but when I try to return a slice every 2 units (and my real process needs smaller slices) it bugs : elapse for solid generation: 39 design.js total time for design regeneration 7015 17 design.js Uncaught (in promise) TypeError: a is undefined (2 times)
    • gilboonet

      V2 Feedback : script hangs
      Development Discussions • • gilboonet  

      8
      0
      Votes
      8
      Posts
      14
      Views

      gilboonet

      @z3dev You're right, the problem was about winding and by correcting it for MeasureArea() < 0 and triangulating was enough to make it work. I updated my source here : https://github.com/gilboonet/gilboonet.github.io/blob/master/demos/gigi.js It contains a volume exported from Wings3d, with Cube1_default() that contains data with quads and table() with this : function table() { var a = Cube1_default(); var tmp = []; for(var i = 0; i < a.polygons.length; i++){ if (measureArea(a.polygons[i]) < 0){ a.polygons[i] = a.polygons[i].reverse(); } for(var j = 1; j< a.polygons[i].length-1; j++){ tmp.push([a.polygons[i][0], a.polygons[i][j], a.polygons[i][j+1]]); } } return scale([8,8,8], polyhedron({points:a.points, faces:tmp})); } There is certainly a way to write this code a more modern way with map() to speed it up.
    • gilboonet

      V2 Feedback : converting V1 examples
      Development Discussions • • gilboonet  

      9
      0
      Votes
      9
      Posts
      14
      Views

      gilboonet

      Eighth example, lookup : It looks ok, but my lookup function is maybe buggy, I needed to stretch return value (x2) to have same lengths as V1, and to add a center to each cylinders to make it look the same. // title : Lookup // author : OpenSCAD.org, adapted by Rene K. Mueller // description: testing lookup() function // file : lookup.jscad // from http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Mathematical_Functions const jscad = require('@jscad/modeling') const { primitives, transforms, colors, maths } = jscad const { cylinder } = primitives const { translate } = transforms const { colorize, hslToRgb } = colors const { vec2 } = maths const { lerp } = vec2 function getCylinderH (p) { return lookup(p, [ [ -200, 5 ], [ -50, 20 ], [ -20, 18 ], [ +80, 25 ], [ +150, 2 ] ]); } function main () { var w = []; for (var i = -100; i <= 100; i += 5) { w.push(colorize(hslToRgb([((i + 100) / 200) * 0.3 + 0.6, 1, 0.5]), translate([i, 0, -30], cylinder({radius: 4, height: getCylinderH(i) * 3 *2, segments: 16 , center : [i,0,getCylinderH(i) * 3] })))); } return w; } function lookup(ix, L){ // L = [ [ i0, v0], ..., [iN, vN] ] if (ix <= L[0][0]) return L[0][0]; var i = L.length-1; if (ix >= L[i][0]) return L[i][0]; i = L.findIndex( x => x[0] >= ix); v1 = L[i-1][1]; v2 = L[i][1]; if (ix === L[i-1][0]) return v1; if (ix === L[i][0]) return v2; var i1 = L[i-1][0], i2 = L[i][0]; var r = v1 + (v2-v1) / (i2-i1) * (ix-i1); return r; } module.exports = { main }
    • gilboonet

      Flattening 3d triangle
      Development Discussions • • gilboonet  

      3
      0
      Votes
      3
      Posts
      81
      Views

      gilboonet

      Thank you. I only work with triangulated models for coding simplicity, even if later (for designs clarity) I usually remove walls between co-planar neighbours. I will certainly soon start to make V2 versions of my code, was only missing this, but for the moment I'm making a vanilla JS pattern editor.
    • gilboonet

      little V2 feedback
      Development Discussions • • gilboonet  

      12
      0
      Votes
      12
      Posts
      470
      Views

      gilboonet

      @z3dev I update the docs with "npm run docs" and now documentation about color is available.