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

[Plugin] Triangulate Points

Scheduled Pinned Locked Moved Plugins
23 Posts 10 Posters 31.8k Views 10 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.
  • P Offline
    pav180
    last edited by 23 Mar 2011, 09:19

    My answer is positive to all your questions. But it is negative if you ask me if I was sucessful. I have attached a sample point cloud I am working with.


    Ven2.skp

    1 Reply Last reply Reply Quote 0
    • P Offline
      pav180
      last edited by 23 Mar 2011, 09:37

      And one additional question please: your plugin works for selected spoints which is great, but it doesn't work for a group or whichever it's called in SU. After having imported a point cloud into SU with say Point_V8 it is a component or a group, but I have to unglue/ungroup it and than select it all again if I want to triangulate it as a whole with TIG plugin. Is it on purpose or I am doing something wrong as usually?

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gaieus
        last edited by 23 Mar 2011, 09:45

        Why don't you just edit the group and triangulate inside?
        Any new geometry created with ruby is safest inside a group anyway. You never know what other, loose geometry it encounters (and ultimately merges) with otherwise.

        Gai...

        1 Reply Last reply Reply Quote 0
        • P Offline
          pav180
          last edited by 23 Mar 2011, 10:02

          Right, Gaieus, this is what I have to do: triangulate portions of a group, and it is in fact very safe. I have experienced bad triangulation results of the whole group if it has complex organic shape. I was wondering if TIG has made this limitation on purpose to avoid inaccurate meshing of a compex shape, or I haven't figured something out. It's not a big deal anyway. Thanks for your suggestion!

          1 Reply Last reply Reply Quote 0
          • R Offline
            Rich O Brien Moderator
            last edited by 23 Mar 2011, 10:14

            @unknownuser said:

            I have experienced bad triangulation results of the whole group if it has complex organic shape

            What is the bad result?

            SU has problems skinning faces less than 1mm. If your points are closer than 1mm try scaling the point cloud up by 10 the Triangulating. Afterwards scaled it down by 0.1.

            Download the free D'oh Book for SketchUp πŸ“–

            1 Reply Last reply Reply Quote 0
            • T Offline
              TIG Moderator
              last edited by 23 Mar 2011, 11:29

              If you examine the points cloud it occupies barely 1 sq mm - so some are very close!
              I scaled it up x100 and it faced fine...
              As Rich says you can make very small facets in Sketchup <~0.5mm will usually fail.
              I suspect the points were perhaps let's say in 'm' and you imported in 'mm' ?Capture.PNG

              TIG

              1 Reply Last reply Reply Quote 0
              • P Offline
                pav180
                last edited by 23 Mar 2011, 12:04

                Wow! While I was working on my reply TIG has triangulated my point cloud. Great! But it was a planar model and I did the same in SU 7.1 (I can still not manage TIG's package in SU 8), let's do something more difficult.

                I scan with my3dscanner.com, I receive and download a .ply point cloud, than I import it into SU as CSV via Cloud_V7.1 (6 or 8).

                I am testing SU plugins to triangulate. I get bad results if I try to triangulate the whole model either by Cloud_V8 or great TIG package.

                I have scaled the model, but it didn't work. I am a little confused about scaling (my3dscanner HAS NO SCALE AT ALL which is bad), but scaling proposed by Rich did not work for Lion model.

                My point is to illustrate bad results (this is what Rich has asked for) if you mesh the model as a whole and if it is complex, not planar.

                This is a workflow: .ply dense point cloud, csv sparse point cloud imported into SU, bad triangulation results.

                LionSUNotGood.jpg

                I do know that if I triangulate a model in portions it will work. Little by little. I also suspect model orientation is a key. You are welcomed to play with the file I tried to triangulate (unfortunately CSV format is not supported here).

                Please be forgiving to my questions and comments. Sadly I know very little about SU and I am here to learn, not to promote my3dscanner which I used to be one of the developers. I feel awkward discussing these matters with gurus of SU.


                LionScaled.skp

                1 Reply Last reply Reply Quote 0
                • T Offline
                  TIG Moderator
                  last edited by 23 Mar 2011, 12:35

                  You might have made it too big by x10 but that's better than too small...
                  The use of a points cloud import is typically from surveyed land, so it's not expecting a 3D object - more a countoured surface.
                  I suggest you slice you points in something like 'half' horizontally and then merge the two surfaces together later... More like making a mold or a face-mask than a full 3D object straight off...

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    pav180
                    last edited by 23 Mar 2011, 14:30

                    TIG,

                    I see your point. Size limitation comment was very helpull as well. Thank you, guys!

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      pav180
                      last edited by 24 Mar 2011, 10:18

                      And TIG, your triangulation plugin works in SU8 beautifully. I was a dumb head...

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        thomthom
                        last edited by 7 Jul 2011, 14:15

                        It does not respect "Cancel" as a response to the inputbox...

                        Thomas Thomassen β€” SketchUp Monkey & Coding addict
                        List of my plugins and link to the CookieWare fund

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          TIG Moderator
                          last edited by 7 Jul 2011, 14:28

                          It never did - even in Didier's original version!
                          If you cancel the layer naming dialog then it'll use layer 'nil' - e.g. 'Layer0'.
                          Once you run the tool it runs the processing to the end - the layer dialog only lets you determine a layer for the mesh-group if desired, with cancel canceling the layer naming but not the main tool's operation, which carries on relentlessly. Frankly the whole layer part could be omitted, it's results are all grouped and you could easily re-layer that as desired later... πŸ˜’

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            TIG Moderator
                            last edited by 17 Sept 2014, 17:05

                            Here's v1.1...
                            http://sketchucation.com/plugin/1110-tig_points_cloud_triangulation
                            It fixes an issue discovered with the encoding of the helper file "delauney3.rb" - which was found to be incompatible with SketchUp v2014 and Ruby2...

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • B Offline
                              Baumgarten87
                              last edited by 5 Nov 2014, 10:28

                              I don't know what I'm doing wrong. I'm working on Sketchup 2014, installed the latest compatible version of the extension and when trying to triangulate a point cloud it always tells me "no guide-points selected". What is that I might be doing wrong?

                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                Mill29
                                last edited by 9 Dec 2014, 11:05

                                Same here

                                1 Reply Last reply Reply Quote 0
                                • T Offline
                                  TIG Moderator
                                  last edited by 9 Dec 2014, 11:25

                                  Are you actually selecting the guide-points before running the script ?
                                  Remember that if they are inside a group/component you must edit it, then select them before running the script...

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    schifezzevarie
                                    last edited by 29 Jul 2015, 10:40

                                    Hi Im' searching for the related "delaunay3.rb" pluging but I cannot find it, as the link in teh beginnig of teh post is not working. Could you fix that or give us a different link?
                                    Thanks a lot. πŸ˜„

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      TIG Moderator
                                      last edited by 25 Mar 2025, 18:24

                                      Version 2.0 is available from the PluginsStore.
                                      https://sketchucation.com/pluginstore?pln=TIG_points_cloud_triangulation
                                      It fixes issues with delauney3.rb using Constants in away that newer SketchUp versions Ruby chokes on, t also includes some tweaks of the main code - Layers v. Tags etc, and the RBZ is now signed...

                                      TIG

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

                                      Advertisement