• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[Plugin] Slicer v4.3 20110619

Scheduled Pinned Locked Moved Plugins
102 Posts 20 Posters 137.5k Views
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.
  • P Offline
    princedragoncok
    last edited by 4 Mar 2010, 10:28

    Slotter... that's exactly it. Don't really know what to add to your description at the moment apart from laying them out neatly after slotting. I have a laser cutter at my disposal at the moment (I work in a model shop) and would love to realise some concept designs with slotter, slicer and slicermodeller. Looking forward to the next upgrade!

    1 Reply Last reply Reply Quote 0
    • X Offline
      xrok1
      last edited by 18 Mar 2010, 05:31

      πŸŽ‰
      wtf πŸ˜†
      we need a smiley of someone tapping there watch. πŸ˜†

      [edit] guess this will have to do

      http://t2.gstatic.com/images?q=tbn;2qN6u957f_4AnM;http://neatliving.typepad.com/photos/uncategorized/2008/10/03/smiley.png

      🀣

      β€œThere are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

      http://www.Twilightrender.com try it!

      1 Reply Last reply Reply Quote 0
      • T Offline
        TIG Moderator
        last edited by 18 Mar 2010, 09:16

        I do the impossible immediately, but miracles take a little longer... πŸ˜‰

        TIG

        1 Reply Last reply Reply Quote 0
        • P Offline
          princedragoncok
          last edited by 19 Mar 2010, 17:53

          @tig said:

          I do the impossible immediately, but miracles take a little longer... πŸ˜‰

          Lol, a slicing miracle... I can't wait

          1 Reply Last reply Reply Quote 0
          • M Offline
            mariocha
            last edited by 24 Mar 2010, 14:36

            @tig said:

            If you made a curve along the front edge then the ribs could be angled to match the angle-bisector to each pair of edges at a node, or square at the ends ?

            I just encountered a situation where I am asked for ribs that follow the curve, staying perpendicular to it (like radial).

            %(#008000)[Mario C.
            Every rule has exceptions, but some.]

            1 Reply Last reply Reply Quote 0
            • T Offline
              TIG Moderator
              last edited by 24 Mar 2010, 15:11

              Noted...

              TIG

              1 Reply Last reply Reply Quote 0
              • X Offline
                xrok1
                last edited by 4 May 2010, 18:13

                @tig said:

                @xrok1 said:

                @unknownuser said:

                I have a [privately written and hopefully paid for] 'Slicer v4' that has such lines added etc for CNC work - watch this space.

                hey, are you finally going to make your own and bust that slicemodeler @&&hole

                I have written a paid commercial version [private] - Slicer_v4 - for someone for CNC use etc... it [or some of its ideas] might leak out to you too... πŸ˜‰

                any news? πŸ˜„

                β€œThere are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                http://www.Twilightrender.com try it!

                1 Reply Last reply Reply Quote 0
                • T Offline
                  TIG Moderator
                  last edited by 4 May 2010, 18:22

                  The news is, no news... I am bogged down with other 'paid stuff' at the moment... BUT it is around 2nd on the list [after some big stuff] πŸ˜’

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    TIG Moderator
                    last edited by 11 Feb 2011, 13:00

                    Here is v3.0 of Slicer.rb.

                    You can now choose / make its Layer on the fly and select any 'Colour'...

                    Enjoy...

                    (see v. 3.1 here instead)

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • O Offline
                      orangutanlibrarian
                      last edited by 21 May 2011, 07:19

                      I am working on a 3D printer so i was thrilled when i found you program. I just wonder if there is a way to save each slice individually?
                      thanks foe a great program.

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        TIG Moderator
                        last edited by 21 May 2011, 09:04

                        @orangutanlibrarian said:

                        I am working on a 3D printer so i was thrilled when i found you program. I just wonder if there is a way to save each slice individually?
                        thanks foe a great program.

                        I've a new version of Slicer on the back-burner that actually makes the slices as components.
                        Meanwhile this code snippet will do something for you.
                        First it converts the slice-groups to component-instances and then it saves them separately as SKPs in a folder called 'Slices' with the Model, each named after "model-name_slice-name.skp"...

                        def slicerexporter()
                          mod=Sketchup.active_model
                          pat=mod.path
                          (UI.messagebox("Save Model First!");return nil) if pat==''
                          sel=mod.selection ### process selection
                          gps=[]; sel.each{|e|gps << e if e.class==Sketchup;;Group}
                          (UI.messagebox("No Groups Selected!");return nil) if not gps[0]
                          fol=File.dirname(pat)
                          mna=mod.title
                          sfo=File.join(fol,"Slices")
                          Dir.mkdir(sfo) if not File.exist?(sfo)
                          mod.start_operation("slicerexporter")
                          puts "Saving SKPs...\n" 
                          gps.each{|grp|
                            sleep(1.0)
                            nam=grp.name
                            ins=grp.to_component
                            dfn=ins.definition
                            dfn.name=nam
                            pat=File.join(sfo, mna+"_"+nam+".skp")
                            dfn.save_as(pat)
                            puts pat.tr("\\","/")
                          }
                          sleep(1.0)
                          mod.commit_operation ### one step undo group >> compo = 'groups' reverted
                          puts "\nDone."
                          UI.openURL("file;///"+sfo)
                          ### NOTE; Sometimes these SKPs CAN be corruped on save_as ;(
                        end
                        

                        Copy+Pase into a file called slicerexporter.rb in Plugins - it should auto-load...
                        select Slices then in Ruby Console type slicerexporter and watch messages... πŸ€“

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • S Offline
                          Sir
                          last edited by 8 Jun 2011, 17:34

                          the plugin works great, but the end step is really buggy on my current file, rarely does it give the option to flatten slices for me.

                          its a large terrain model, 23923 edges, 9696 faces.

                          its offered to flatten once of ten times or so, and id entered the settings wrong! 😑

                          any tips on making it work?

                          thanks TIG!

                          -edit-
                          only trying to cut it into 66 slices

                          infact, it doesnt offer any of the final 3 steps, the xray, hide or flatten options

                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            TIG Moderator
                            last edited by 8 Jun 2011, 17:42

                            Sir

                            That's still a lot of slices, with complex geometry !
                            It should always do the steps... BUT obviously it takes ages to process that many slices, and then offer to flatten them.
                            There are no shortcuts, except waiting.... πŸ˜•

                            EDIT: Run it with the Ruby Console open and see if there are any error messages - especially when it gets to the latter stages........

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • S Offline
                              Sir
                              last edited by 8 Jun 2011, 20:07

                              Error; #<TypeError; reference to deleted Face>
                              C;/PROGRA~2/Google/GOOGLE~1/Plugins/Slicer31.rb;454;in `pushpull'
                              C;/PROGRA~2/Google/GOOGLE~1/Plugins/Slicer31.rb;454;in `calculate'
                              C;/PROGRA~2/Google/GOOGLE~1/Plugins/Slicer31.rb;453;in `each'
                              C;/PROGRA~2/Google/GOOGLE~1/Plugins/Slicer31.rb;453;in `calculate'
                              C;/PROGRA~2/Google/GOOGLE~1/Plugins/Slicer31.rb;363;in `each'
                              C;/PROGRA~2/Google/GOOGLE~1/Plugins/Slicer31.rb;363;in `calculate'
                              C;/PROGRA~2/Google/GOOGLE~1/Plugins/Slicer31.rb;804
                              C;/PROGRA~2/Google/GOOGLE~1/Plugins/Slicer31.rb;454;in `call'
                              C;/PROGRA~2/Google/GOOGLE~1/Plugins/Slicer31.rb;454
                              

                              this was the response

                              no geom on hidden layers

                              1 Reply Last reply Reply Quote 0
                              • T Offline
                                TIG Moderator
                                last edited by 8 Jun 2011, 21:44

                                OK... sounds like the resulting slices are failing to pushpull because a face isn't 'enduring'...
                                It's easy enough to trap for that BUT it begs the question - what is the actual problem?

                                Can you post/PM a zipped version of the surface/volume you want to slice, with some notes about what you want to achieve... and I'll look at it... and report back...

                                TIG

                                1 Reply Last reply Reply Quote 0
                                • T Offline
                                  TIG Moderator
                                  last edited by 9 Jun 2011, 09:03

                                  Here's a new version http://forums.sketchucation.com/viewtopic.php?p=16689#p16689
                                  Please read the notes - particularly about removing earlier version[s]...
                                  It should now make all slices, even if your 3d form is non-solid and so complex that a meaningful slice cannot be made/faced/extruded; it will no longer stall even if some slices are not made as you might hope... To ensure good results ensure that the form you are slicing is 'solid' or at least simple enough the slice if it's not...
                                  [Sir's recent problem was from an overly complex form... BUT this update does mean that even that doesn't stall part way through the slicing...]

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    Sir
                                    last edited by 9 Jun 2011, 09:14

                                    thanks for updating this fantastic plugin, will give it a whirl now!

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      TIG Moderator
                                      last edited by 19 Jun 2011, 21:52

                                      Here's an updated version
                                      http://forums.sketchucation.com/viewtopic.php?p=16689#p16689

                                      An Image export option has been added.
                                      Usage:
                                      Run the main Slicer tool and make your flatten slices set.
                                      Then preselect the 'Flat-Slice-nnnnnnnn' group and type into Ruby Console: Slicer::images
                                      It then makes .png image files of 0.9 quality, with no anti-aliasing, each named after the slice; all within a folder with the model, named 'ModelName-Slice-Images-nnnnnnnn'. All images are made the same size [based on the screen] with the relative size of each slice maintained in the 'pixel sizes', so subsequent auto-cropping of the white-space leaves images that are all 'relatively sized'...
                                      Tip: use a Style with a white '[back]ground', no profiles, no extensions, no endpoints etc so the images are as sharp as possible.
                                      πŸ€“

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • G Offline
                                        Gschwartz9
                                        last edited by 20 Jun 2011, 18:24

                                        Despite studying and testing essentially everything in this thread, I'm unable to accomplish what I need.

                                        I'm laying out laminated flooring in my home. Each laminate plank measures ~ 4"x30"x3/8". I've made a group of the plank.

                                        I need to "saw" the planks to varying lengths, and save the pieces sawed off, minus 1/8" saw kerf. The saved pieces will be used where short pieces are needed on the opposite end of the room.

                                        I'm prepared to give myself a dope slap if I've failed to recognize the solution in this thread.

                                        SU8 Pro, Win7

                                        Gary

                                        There's always a better way.

                                        1 Reply Last reply Reply Quote 0
                                        • T Offline
                                          TIG Moderator
                                          last edited by 21 Jun 2011, 10:41

                                          Gschwartz9

                                          I think that Slicer really isn't the tool you want...
                                          You are using groups rather than components which will make editing just one easier...
                                          You simply lay out the first line of planks as you would in real life.
                                          Using Move+Ctrl then Nx to make enough copies off to the right.
                                          The last one will need to be 'cut'.
                                          Copy the last group to the side of itself [Move+Ctrl with snap-points as appropriate].
                                          Now edit that copy and pushpull the end of the copied plank that's inside the room until it is level with the wall/skirting face [or door=threshold etc as appropriate to its location], now you could pushpull it another 1/8" to account for the saw cut [but this level of accuracy is probably unnecessary - I suspect you won't have modeled the rooms skirting trims and left a 1/2" movement gap around the perimeter etc...].
                                          You can also repeat on the last piece in the first line, editing it so the cut of end is no longer there...
                                          Take the 'off-cut' and place it at the left-hand start again, next to the initial piece.
                                          Now place a whole plank to the right of that and repeat the Move+Ctrl then Nx to make enough copies off to the right.
                                          Again the last one will need to be 'cut'.
                                          Repeat the copying it and pushpull the end of the copied plank that's inside the room etc as before.
                                          Keep repeating this until all of the floor is covered.

                                          Note that if you want to have regularly spaced butt-joints, rather than whatever the off-cut gives you [e.g. the planks are 'tile-like' rather than 'wooden-planks'] then you need to mark the tiling repeat as a line in the initial group and slide the off-cut at the restart until it aligns with the mark - if it can't then it's has to be discarded and you use a new plank - if you are trying to stagger the plank ends in alternate rows slide the next start plank to align with a mark - leave the part you'd actually need to cut off sticking into the wall for now... make the run of planks until the last one that needs cutting to fit - if it'd be smaller than the off-cut you would have from the first plank in the lien then you can make the copy of the plank and edit/pushpull that plank and its copy in opposite directions so you have the two pieces... then take the piece current stuck in the wall [I recommend you do this using a 2d copy of the floor plane without the walls to get in your way, or use layers to hide most stuff]... and use that at the right-hand end, again cutting it as needed to fit [this time the final off-cut will be useless because it'll not have a start or end slot to connect to another plank!]...

                                          It's easier to do it than write it...Capture.PNG

                                          TIG

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 6
                                          • 3 / 6
                                          • First post
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement