sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [Plugin] Slicer5

    Scheduled Pinned Locked Moved Plugins
    336 Posts 82 Posters 296.4k Views 81 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.
    • TIGT Offline
      TIG Moderator
      last edited by

      Any changes to the status-bar display and any additional calculations [even like ctr.next!] will inevitable add a tiny amount to each iteration, which will add up - and there are very many iterations in complex tools like this.
      I have many tools with 'counters' [the older Slicer did it!], but they all reach a limit at some point when there is too much to calculate and Sketchup will become unresponsive and appear to stall, although it is continuing in the background! Simple operations will appear OK and display as say '5%' or '1 of 1234' etc incrementing successfully until completion... BUT if you try making the processed objects more and more complex then at some point a 'white-out' will happen...

      TIG

      1 Reply Last reply Reply Quote 0
      • M Offline
        miki71ita
        last edited by

        ok...then we have to wait for... SU version n.9! πŸ’š 😑

        1 Reply Last reply Reply Quote 0
        • S Offline
          sketchymick
          last edited by

          Hello TIG, thanks for this plugin - you do some fantastic work!

          I was just playing around with it an noticed that the slices for x or y axes always seem to be aligned with the original axis orientations, even if the group is aligned differently. So even if I reset the axes with a group, or for the entire model, to get the alignment I'd like - the slices seem to ignore this. Is this right or am I missing something?

          thanks

          • Mick
            slices.jpg

          "I love the sound that deadlines make as they rush past"

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            THE XYZ axes are the model axes - ignoring any temporary resetting of the axes that you might have done.
            Any changing of them cannot be found in the API, as far as I know.
            The XY 'angled' slice option could be set to the angle of the XY axes if know ?

            TIG

            1 Reply Last reply Reply Quote 0
            • S Offline
              sketchymick
              last edited by

              cutfill.jpg
              @tig said:

              THE XYZ axes are the model axes - ignoring any temporary resetting of the axes that you might have done.
              Any changing of them cannot be found in the API, as far as I know.
              The XY 'angled' slice option could be set to the angle of the XY axes if know ?

              Thankyou TIG, that worked (set axis to 'A' and enter the angle in the 2nd dialog box) - just wasn't sure if I was missing something or not. I can't write rubies, but I'm surprised that the API doesn't provide a way to know the group axis settings?

              Funny how things work actually, I downloaded your plugin out of curiosity, but almost immediately found a potential application for it - looking at cut and fill cross-sections. I have a idea/suggestion though... what about allowing the user to select a path for which the cross-sections would be aligned? So for my pic below, instead of just following one line, if my shape had a significant bend in it, a central path could be drawn and the cross sections would be aligned along and perpendicular to that path?

              In any case thanks for the plugin - nice.

              Cheers

              • Mick

              "I love the sound that deadlines make as they rush past"

              1 Reply Last reply Reply Quote 0
              • TIGT Offline
                TIG Moderator
                last edited by

                The API can get the 'local axes' used inside a group/definition... BUT not any reset model axes, to which is what I thought you were referring.
                The XYZ slicing always follows the models axis [ignoring any reset].
                It easiest [but not essential] if the sliced manifold group/instance is in the model's entities...

                TIG

                1 Reply Last reply Reply Quote 0
                • pilouP Offline
                  pilou
                  last edited by

                  Does it possible to have the Slices of the volume follow the colors (or textures) of the original?
                  (here with Slicer3 in V6, maybe this exist in the Slicer5? )
                  v6slice1.jpg

                  Frenchy Pilou
                  Is beautiful that please without concept!
                  My Little site :)

                  1 Reply Last reply Reply Quote 0
                  • TIGT Offline
                    TIG Moderator
                    last edited by

                    No.
                    😞

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • pilouP Offline
                      pilou
                      last edited by

                      In the future? πŸ˜„

                      Frenchy Pilou
                      Is beautiful that please without concept!
                      My Little site :)

                      1 Reply Last reply Reply Quote 0
                      • TIGT Offline
                        TIG Moderator
                        last edited by

                        Perhaps, if I live till I'm 90 πŸ˜‰

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • pilouP Offline
                          pilou
                          last edited by

                          So long life to you! β˜€

                          Frenchy Pilou
                          Is beautiful that please without concept!
                          My Little site :)

                          1 Reply Last reply Reply Quote 0
                          • massimoM Offline
                            massimo Moderator
                            last edited by

                            @unknownuser said:

                            Does it possible to have the Slices of the volume follow the colors (or textures) of the original?

                            @tig said:

                            No.
                            😞

                            @unknownuser said:

                            In the future? πŸ˜„

                            @tig said:

                            Perhaps, if I live till I'm 90 πŸ˜‰

                            @unknownuser said:

                            So long life to you! β˜€

                            πŸ˜†

                            1 Reply Last reply Reply Quote 0
                            • pilouP Offline
                              pilou
                              last edited by

                              http://forums.sketchucation.com/download/file.php?id=88889

                              @unknownuser said:

                              Does it possible to have the Slices of the volume follow the colors (or textures) of the original?

                              http://forums.sketchucation.com/download/file.php?id=89737

                              In fact with the Super Drape that's a beginning πŸ˜‰
                              (Take an image from the view Top of the original)

                              Just to find something for the vertical faces who are unicolor
                              Maybe 2 pass

                              terrain2.jpg

                              Frenchy Pilou
                              Is beautiful that please without concept!
                              My Little site :)

                              1 Reply Last reply Reply Quote 0
                              • P Offline
                                pbeseda
                                last edited by

                                TIG, great plugin. You've made architecture students and architects across the world quite happy.

                                I'm doing a rather complex site model, and I've done simpler site models with great success before. This time, I can't get it to flatten. It seems as if it quits after creating the slice outlines and before it thickens them. Here is the error it throws:

                                Error; #<TypeError; reference to deleted Face>
                                C;/Program Files (x86)/Google/Google SketchUp 8new/Plugins/TIG-Slicer/TIG-Slicer.rb;2041;in `pushpull'
                                C;/Program Files (x86)/Google/Google SketchUp 8new/Plugins/TIG-Slicer/TIG-Slicer.rb;2041;in `fatten'
                                C;/Program Files (x86)/Google/Google SketchUp 8new/Plugins/TIG-Slicer/TIG-Slicer.rb;2041;in `each'
                                C;/Program Files (x86)/Google/Google SketchUp 8new/Plugins/TIG-Slicer/TIG-Slicer.rb;2041;in `fatten'
                                C;/Program Files (x86)/Google/Google SketchUp 8new/Plugins/TIG-Slicer/TIG-Slicer.rb;2035;in `each'
                                C;/Program Files (x86)/Google/Google SketchUp 8new/Plugins/TIG-Slicer/TIG-Slicer.rb;2035;in `fatten'
                                C;/Program Files (x86)/Google/Google SketchUp 8new/Plugins/TIG-Slicer/TIG-Slicer.rb;1612;in `run'
                                C;/Program Files (x86)/Google/Google SketchUp 8new/Plugins/TIG-Slicer/TIG-Slicer.rb;793;in `initialize'
                                C;/Program Files (x86)/Google/Google SketchUp 8new/Plugins/TIG-Slicer/TIG-Slicer.rb;657;in `new'
                                C;/Program Files (x86)/Google/Google SketchUp 8new/Plugins/TIG-Slicer/TIG-Slicer.rb;657
                                

                                Anyone have any idea what could be wrong? It works great and fast with simple geometry. My site model is about 10' x 10' and I'm working with 1 inch thicknesses.

                                1 Reply Last reply Reply Quote 0
                                • TIGT Offline
                                  TIG Moderator
                                  last edited by

                                  If the terrain results in some tiny edges you can get a failure of the intersection to form full loops which face and extrude into slices, which then cause issues with later operations.
                                  I do have a newer version that traps these errors and lets you complete even if there are some failures -which you might be able to manually fix by drawing in missing bits etc...
                                  It's not down to be issued until after Basecamp this coming week - I am typing this from my hotel room in Boulder !
                                  I'll PM you a version - please treat it confidentially until it's released properly though.
                                  You could perhaps avoid the issue by slicing the terrain at x10 the size you gave [100'] then very small edges and facets are much more unlikely. There is this known issue of SketchUp/OpenGL having problems creating very tiny and very enormous geometry.
                                  You can always scale the model down x0.1 afterwards - tiny facets/edges can exist, it's just the creation that;s an issue...
                                  Several of us will be pretty busy at Boulder over the next few days but we'll check on SCF as time allows...

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • P Offline
                                    pbeseda
                                    last edited by

                                    TIG is the greatest.

                                    I'm running it with the new version. I'll let you know the results. Funny, I was in Boulder yesterday but didn't see your post till this morning. I go to school in Denver.

                                    Cheers!

                                    1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      mohsyn
                                      last edited by

                                      Thanks for an awesome plugin TIG

                                      Im facing some issues and hope you will be able to help

                                      The flattened components are automatically centered/orientation changed. Is it possible that they are presented where the appear in a whole block and not aligned?

                                      Camera zoom to component function also changes the size of block in output.. can it remain as actual ?

                                      I tried to do that on my own but since i'm not good at scripting i could not do much 😞

                                      Thanks in advance

                                      1 Reply Last reply Reply Quote 0
                                      • TIGT Offline
                                        TIG Moderator
                                        last edited by

                                        I think your issue might be related to your Style - please ensure that Guides are enabled.
                                        To make each zoomed PNG view for each piece the same size guide-points are added at the bounds of the largest piece.
                                        If guides are 'off' the zoom will not be consistently changed...
                                        I need to update the code to force guides to display - they should do but might fail for you ?... but in the meanwhile simply ensuring the current Style displays guides will fix that issue.
                                        It's not possible to reorient the slices as laid flat - the function is based on the slice type [XYZ etc] which then dictates how the slice is transformed flat.

                                        TIG

                                        1 Reply Last reply Reply Quote 0
                                        • P Offline
                                          pbeseda
                                          last edited by

                                          I ended up simplifying my model before slicing it. Of course it works perfectly.

                                          Still having trouble with the really complex model both at my model scale (which forces really tiny edges) and full scale. The data is coming from a topo surface exported from Revit. I'll continue to experiment.

                                          1 Reply Last reply Reply Quote 0
                                          • TIGT Offline
                                            TIG Moderator
                                            last edited by

                                            @pbeseda said:

                                            I ended up simplifying my model before slicing it. Of course it works perfectly.

                                            Still having trouble with the really complex model both at my model scale (which forces really tiny edges) and full scale. The data is coming from a topo surface exported from Revit. I'll continue to experiment.
                                            This is a well known and documented issue...
                                            The native SketchUp tools [and their API coded equivalents] will fail with tiny [or enormous] facets [<~0.1mm] - so when using FollowMe, Solid-Tools, Sandbox-Tools or Intersect etc, it's recommended that you work in 'full-size' [i.e. not the size of the physical-model-you might make from board, glue etc, calculating dialog values to suit that... and finally scale down at the very end], OR you can scale up what you have - say x10 [or more] - do the changes [remembering to make x10 changes to dialog entries too!] and scale back down by say x0.1 afterwards. These problem small facets can 'exist' when they are shrunk back down, but they will fail to be created initially. Since

                                            The Slicer tool uses 'intersect' API tools so this 'tininess' is the culprit - the small facets in the mesh can intersect leaving tiny holes in the intersections' resultant edge-loops, these won't therefore 'hold' a face... πŸ˜•

                                            TIG

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 16
                                            • 17
                                            • 7 / 17
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement