mmu_man, French
@mmu_man@m.g3l.org avatar

So I have this folded_package module I wrote for #OpenSCAD which approximates sheet cardboard work and seems ok, but the current code is not handy to use:

  • I have to declare several modules that are called by it to both draw the top layer cuts and remove the object volumes (with a parameter to ask it to return either the object for preview or their bounding boxes), instead of passing them as children,

poke @cdc

The same package but unfolded as a 2D-drawing, ready to be laser-cut.

mmu_man,
@mmu_man@m.g3l.org avatar
  • the children() call actually returns modules, not volumes, so a single module returning two volumes like on the example, I can't just use apply bbox() to the children(), since it'd make a single bounding box for both,

  • I don't think you can actually pass volumes/modules as parameters to other modules (in parentheses)?

cc @cdc

mmu_man,
@mmu_man@m.g3l.org avatar

I suppose the least weird way would be to have it called over the volumes directly, with the first one being the top-face module, and the other ones being the objects to package, directly being layed out and not from another module?
Like:

folded_package(…) {
top_layer_design();
translate(…) object_to_package1();
translate(…) object_to_package2();
}

Or is there another way?
(or an existing sheet-folding framework for #OpenSCAD?

cc @cdc

stevegenoud,

@mmu_man @cdc To build https://Deckinabox.sgenoud.com I used maker.js - drawing in 2D only. I keep playing with this kind of approach with my own stuff (https://github.com/sgenoud/pantograph)

mmu_man,
@mmu_man@m.g3l.org avatar

@stevegenoud

well I'm used to OpenSCAD and it kinda works already, but #bookmarked 🙂

@cdc

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • GTA5RPClips
  • JUstTest
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • megavids
  • lostlight
  • All magazines