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

    [Plugins] TriangulateAllFaces v1.2 20131020

    Scheduled Pinned Locked Moved Plugins
    17 Posts 5 Posters 4.6k Views 5 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

      Copyright 2013 TIG (c)

      Permission to use, copy, modify, and distribute this software for
      any purpose and without fee is hereby granted, provided that the
      copyright notice appear in all copies.
      THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
      IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
      WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

      Name: TriangulateAllFaces.rb

      Usage: Plugins > "TriangulateAllFaces"
      Processes all Selected Faces: Triangulating them, with a 'split'.
      Non-Tris are first Triangulated, then those Triangles are split.
      If there is no Selection then ALL Faces in the Current Context are processed.
      A dialog asks for 'Bisect-Angle' or 'Centroid' mode for the 'split' of the face.
      The last used mode is reused during that session.
      UV-mapping is preserved.
      It is one step undoable.

      Version:
      1.0 20131017 First issue.
      1.1 20131018 Triangulation improved. Triangles split 'centrally'.
      1.2 20131020 Dialog choice of Bisect-Angle or Centroid modes.

      Download from the SCF PluginStore http://sketchucation.com/plugin/704-triangulateallfaces or get the SketchUcation Plugin Store tools and AutoInstall it from within SketchUp itself... http://sketchucation.com/resources/plugin-store-download

      TIG

      1 Reply Last reply Reply Quote 0
      • A Offline
        anar
        last edited by

        It doesn't exacly do what was expected but it's OK with me because it does subdivide and preserve boundary edges which is what I was after.
        Thanks TIG !

        I will have to test it on a more complex example.

        http://www.polyloop.net/attachment.php?attachmentid=32960&d=1382035797

        http://www.polyloop.net/attachment.php?attachmentid=32961&d=1382035819

        http://www.polyloop.net/attachment.php?attachmentid=32962&d=1382035831

        http://www.polyloop.net/attachment.php?attachmentid=32963&d=1382035849

        1 Reply Last reply Reply Quote 0
        • A Offline
          anar
          last edited by

          I just tested it on a more complex surface and it seems ther is some problems (?).

          In red : edges seem to be not coplanar
          In green : it generates "spikes" (long triangles)

          But it looks promising !

          http://www.polyloop.net/attachment.php?attachmentid=32964&d=1382036627

          http://www.polyloop.net/attachment.php?attachmentid=32965&d=1382036643

          http://www.polyloop.net/attachment.php?attachmentid=32966&d=1382036673

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

            How big is that test piece ?
            Intersections of small geometry is known to cause issues. 😕
            If it's temporarily scaled up x100 does it still happen ?

            TIG

            1 Reply Last reply Reply Quote 0
            • A Offline
              anar
              last edited by

              It's a big piece.
              Because I know SU limitations with small faces (I've been using it since it's first release) I always work in meters.

              The smallest face before use of your plugin is about 5m x 5m x 6,5m.

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

                I'm working on v1.1... watch this space... 😉

                TIG

                1 Reply Last reply Reply Quote 0
                • A Offline
                  anar
                  last edited by

                  I do !
                  I press "F5" every 30mn...

                  Thanks TIG !

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

                    Here's an update, v1.1 http://sketchucation.com/forums/viewtopic.php?p=495430#p495430
                    It now handles non-Tris and splits better, centralizing them; incidentally, it now also preserves UV-mapping of textures etc...

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      anar
                      last edited by

                      You rock !

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        anar
                        last edited by

                        Works like a charm on that test :
                        Before
                        After

                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          anar
                          last edited by

                          Could be made even better if it was producing a symmetrical result.
                          But for now I'm very happy with this V1.1 !

                          Before
                          After (+ some delete)

                          1 Reply Last reply Reply Quote 0
                          • A Offline
                            anar
                            last edited by

                            @unknownuser said:

                            ...but that is not yet "median" ! 😉

                            And if it was I know of some people that would be very interested :
                            http://mathforum.org/sketchup/

                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              jumpjack
                              last edited by

                              Can the plugin also triangulate already triangular faces, i.e. split it into smaller faces? It would be useful if you need to usce the sculpt plugin.

                              What about the "opposite" of this plugin? De-triangulate faces would be very useful after importing an STL file!

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

                                It only triangulates triangular faces !
                                BUT... any faces that aren't triangular [>=4 sides], are first triangulated... 😄

                                To triangulate non-triangular faces, you could also use my 'Triangulate Selected Faces' tool...

                                They will both maintain UV-mapping etc.

                                Find my Quadrilateralizer tool that makes all selected faces into 'quadrilaterals' - first it triangulates any with >4 sides, the divides the triangle into 3 quadrilaterals etc - [it's probably not the result you hope for - but then it will be all quadrilaterals...]

                                Also look at thomthom's Quad-Face toolset...

                                Just try tkem and see what these things do 😕

                                TIG

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

                                  Very cool ...and fractalisissimo (if you repeat the function) ...but that is not yet "median" ! 😉
                                  only 3 triangles at start! 😄

                                  nomedian.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

                                    Here is v1.2 http://sketchucation.com/forums/viewtopic.php?p=495430#p495430
                                    Now dialog let's you choose Bisect-Angle or Centroid mode for the triangulation splits...

                                    TIG

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      tomot
                                      last edited by

                                      very nice TIG: I love this stuff: 🎉

                                      I was wondering if you could take a look at separate Ruby using Voronoi Tesselation
                                      I found some code that might help but needs Ruby interpretation.
                                      http://bl.ocks.org/mbostock/4060366

                                      Cheers!

                                      [my plugins](http://thingsvirtual.blogspot.ca/)
                                      tomot

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

                                      Advertisement