JSCAD User Group
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Oct 2, 2016

    Scheduled Pinned Locked Moved Archives (Google+)
    1 Posts 1 Posters 1.1k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • z3devZ Offline
      z3dev
      last edited by

      Ami Fischman
      ETA: updated version linked from https://gist.github.com/fischman/287396e0593a7e083ad8ee85d945d668#flatteningunfolding-3d-into-2d

      Inspired by +Gilbert Duval's unfolding projects I wrote an automated flattener. Interested to hear people's thoughts ๐Ÿ™‚

      http://openjscad.org/#https://gist.githubusercontent.com/fischman/2db39c62a5b7a73d28f2657d6af2e00d/raw/436c163d103a1284acd0195aedf043a0c250c902/flattener.jscad

      (suggest reading the header comment before trying to use it)
      11 comments
      11
      4 plus ones
      4
      no shares
      Shared publiclyโ€ขView activity

      Ami Fischman
      Are the starting triangles random for you?

      Oct 26, 2016
      Ami Fischman
      +Gilbert Duval thanks for the feedback. Updated the posted version to:

      • allow scaling the model
      • split apart "polygons" into "triangles" in the input model
      • significantly speed up label generation by caching digit CAGs
      • add flaps to show what to connect to what
        Adding flaps makes the whole thing much more computationally intensive on the renderer, so while e.g. heart/teddy/bowl take <2.5s in my code (main()), the overall rendering can take 10-15s as openjscad chews on the returned CAGs ๐Ÿ˜‰

      LMK how this works out for you.

      Nov 7, 2016
      Ami Fischman
      +Gilbert Duval sure, go for it. FYI you misspelled my last name in the credit ๐Ÿ™‚ (only one N, not two).

      Nov 24, 2016
      Ami Fischman
      +Gilbert Duval since the long inline data for tdy and bowl was making it impossible to navigate the comments on this post in Android G+ I moved them to:
      https://gist.github.com/fischman/5ee48cf3476a4b4e6b9318027d1f6e94 and https://gist.github.com/fischman/1bdfee31897b05c404042e76ee152b46 resp. I hope you don't mind.

      Nov 24, 2016
      Ami Fischman
      +Laust Frederiksen the "Use areas instead of lines?" param checkbox is meant to be used this way - check the box to use areas and export SVG for the cut (outer boundary only) and then uncheck the box and export SVG for the crease lines (and use a different laser profile, obvs).
      Note I haven't actually tried to execute this recipe, so I'd be happy to hear how well/poorly it works ๐Ÿ™‚

      Apr 12, 2017
      Ami Fischman
      +Laust Frederiksen sorry I'm not seeing what's wrong with 308/293. Can you say more about them?
      The intent of getTransformToXY is to preserve normals. Can you repro a problem with a simpler/toy model?

      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better ๐Ÿ’—

      Register Login
      • First post
        Last post
      Powered by NodeBB | Contributors