[Plugins] TriangulateAllFaces v1.2 20131020
-
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
-
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.
-
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 !
-
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 ? -
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.
-
I'm working on v1.1... watch this space...
-
I do !
I press "F5" every 30mn...Thanks TIG !
-
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... -
You rock !
-
Works like a charm on that test :
-
Could be made even better if it was producing a symmetrical result.
But for now I'm very happy with this V1.1 !
-
@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/ -
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!
-
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
-
Very cool ...and fractalisissimo (if you repeat the function) ...but that is not yet "median" !
only 3 triangles at start! -
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... -
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/4060366Cheers!
Advertisement