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

    Triangulate triangles ?

    已排程 已置頂 已鎖定 已移動 Plugins
    41 貼文 8 Posters 7.9k 瀏覽 8 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • pilouP 離線
      pilou
      最後由 pilou 編輯

      Does this is existing ?

      SandBox makes something but one by one and you must find the red point! 😮
      (read image right to left 😳 Like Suzan 😄
      media.jpg

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

      1 條回覆 最後回覆 回覆 引用 0
      • TIGT 離線
        TIG Moderator
        最後由 編輯

        See a new entry of an oldie in the SCF PluginStore...
        http://sketchucation.com/forums/viewtopic.php?p=495376#p495376

        TIG

        1 條回覆 最後回覆 回覆 引用 0
        • pilouP 離線
          pilou
          最後由 編輯

          Seems that is not the trick!
          You must find first the middle point intersection on the face! 😄
          And works only face by face!

          I have tried your "Add Center Point": alas that don't work for a triangle! (for it's edges yes but not for the face itself)
          I have tried your "Center of Gravity": alas that don't work with a face

          There is something cool with your roof plugin, alas that works only one trangular face by one triangular face (and the minimum angle of roof is 1° and not 0° 😄
          (the angle problem will be not a problem : we can flatten the result - but face one by one is a problem 😄
          And there is a little deviation / view top / Camera projection Parallel

          deviation.jpg

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

          1 條回覆 最後回覆 回覆 引用 0
          • pilouP 離線
            pilou
            最後由 編輯

            seems it's also the connections of the medians and the gravity center of a triangle so
            an interesting thing! 😄

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

            1 條回覆 最後回覆 回覆 引用 0
            • Rich O BrienR 離線
              Rich O Brien Moderator
              最後由 編輯

              Does it need to be 3 tris? Can it be 4?

              Download the free D'oh Book for SketchUp 📖

              1 條回覆 最後回覆 回覆 引用 0
              • Rich O BrienR 離線
                Rich O Brien Moderator
                最後由 編輯

                Image 1.png

                Download the free D'oh Book for SketchUp 📖

                1 條回覆 最後回覆 回覆 引用 0
                • pilouP 離線
                  pilou
                  最後由 編輯

                  4 ? Like what ? Please an image! You speak of a quadrangle hidden on a triangle ?
                  No 3 triangles!
                  A simple triangle(s)( any number ) with this simple construction of 3 medians 😄

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

                  1 條回覆 最後回覆 回覆 引用 0
                  • renderizaR 離線
                    renderiza
                    最後由 編輯

                    Adding the feature to slit multiple face by automatically finding the center point will be great addition! This should triangulate any type of face aka trig, quad, ect... Because your connecting a line from center to every other vertex. Maybe adding things like skip one vertex every time you add a line will be interesting to see.

                    Rich O Brian that would be great as well!

                    [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

                    1 條回覆 最後回覆 回覆 引用 0
                    • Rich O BrienR 離線
                      Rich O Brien Moderator
                      最後由 編輯

                      It is Artisan subdivide. Thank you Catmull Clark 😉

                      Download the free D'oh Book for SketchUp 📖

                      1 條回覆 最後回覆 回覆 引用 0
                      • pilouP 離線
                        pilou
                        最後由 編輯

                        So no! 😄 And why not the connections with middles ?

                        Medians are wanted! 😄
                        But if you a have the plugin why not, that can be used for other thing 😄

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

                        1 條回覆 最後回覆 回覆 引用 0
                        • pilouP 離線
                          pilou
                          最後由 編輯

                          Yep cool, but not like the first post 😄
                          And I should know it! 😉

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

                          1 條回覆 最後回覆 回覆 引用 0
                          • pilouP 離線
                            pilou
                            最後由 編輯

                            Alas I have deserted the Ruby language for a while! 😞

                            If you can make a little plugin that will be wonderful 😎

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

                            1 條回覆 最後回覆 回覆 引用 0
                            • renderizaR 離線
                              renderiza
                              最後由 編輯

                              Here is an example code for achieving what you want Pilou...

                              
                              model = Sketchup.active_model
                              ents = model.active_entities
                              sel = model.selection
                              faces = ents.grep(Sketchup;;Face)
                              
                              faces.each do |face|
                                vertices = face.vertices
                                bbox = face.bounds
                                cpoint = bbox.center
                              
                                vertices.each do |vertex|
                                  p1 = cpoint
                                  p2 = vertex
                                  line = ents.add_line p1,p2 
                                 end
                              end
                              
                              

                              Note: Some very pretty geometry start appearing when you keep splitting! 👍

                              [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

                              1 條回覆 最後回覆 回覆 引用 0
                              • renderizaR 離線
                                renderiza
                                最後由 編輯

                                I will do that! 👍

                                [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

                                1 條回覆 最後回覆 回覆 引用 0
                                • TIGT 離線
                                  TIG Moderator
                                  最後由 編輯

                                  Beat me to it 😉
                                  You might want to change the
                                  faces = ents.grep(Sketchup::Face)
                                  to
                                  faces = **sel**.grep(Sketchup::Face)
                                  So then the user changes only selected faces ?
                                  OR perhaps
                                  faces = sel.grep(Sketchup::Face) faces = ents.grep(Sketchup::Face) **unless faces[0]**
                                  so it works on a selection OR everything if there is no selection...

                                  Also you want to make it undoable, so add
                                  **model.start_operation('subtri')** faces.each... ...end **model.commit_operation**
                                  🤓

                                  TIG

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • renderizaR 離線
                                    renderiza
                                    最後由 編輯

                                    Hahaha!

                                    TIG I would be very happy if you modify your existing plugin to add Pilou is feature request. 👍

                                    I am interested in making this for learning and I have some additional ideas I want to explore. I consider you my mentor TIG and there will never be competition between you and me I promise! 💚

                                    By the way thanks for the suggestion! 👍

                                    Here is updated code...

                                    model = Sketchup.active_model
                                    ents = model.active_entities
                                    sel = model.selection
                                    faces = sel.grep(Sketchup;;Face)
                                    
                                    model.start_operation('csplit')
                                      faces.each do |face|
                                        vertices = face.vertices
                                        bbox = face.bounds
                                        cpoint = bbox.center
                                    
                                        vertices.each do |vertex|
                                          p1 = cpoint
                                          p2 = vertex
                                          line = ents.add_line p1,p2
                                        end
                                      end
                                      sel.clear
                                    model.commit_operation
                                    

                                    [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • TIGT 離線
                                      TIG Moderator
                                      最後由 編輯

                                      OK
                                      I'll make a simple script and publish it shortly...

                                      TIG

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • renderizaR 離線
                                        renderiza
                                        最後由 編輯

                                        Thank you TIG! 👍

                                        [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • A 離線
                                          anar
                                          最後由 編輯

                                          Thanks Pilou !
                                          You convinced TIG...
                                          And Thanks TIG, I think it's a must have !

                                          http://www.polyloop.net/attachment.php?attachmentid=32959&d=1382032801

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • TIGT 離線
                                            TIG Moderator
                                            最後由 編輯

                                            Try this http://sketchucation.com/forums/viewtopic.php?p=495430#p495430
                                            TriangulateAllFaces...

                                            TIG

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement