Plugins for Model Tidying Up
-
Are there any plugins that allow for detection of tiny line segments in a model please? eg. 0.0001mm long. I use the Cleanup plugin which gets most of them if they are lonely edges, but it does not detect tiny segments that are connected both ends and not co-linear with another segment.
The only way they become apparent is when trying to create another face that connects to that corner. The face refuses to close even when it is triangular. If you then drag a selection box around the corner the Entity Info window says: Edge with length say 0.0002.
-
DeleteShortLines.rb at Smustard might do the trick.
Also useful for cleaning up CAD imports: CloseOpens and ExtendCloseLines. -
Is there a free version that does the same?
-
Maybe Straylines.rb also at Smustard.
-
It refers to cleanup of open-ended lines. Cleanup.rb does those I believe. I am talking about lines that are part of a closed loop.
-
It's easy enough to write a snippet that find short edges, either selects or deletes them. But what do you do next? if you remove that 0.0002 long edge segment then a face won't be created either.
Have you tried RepairBrokenEdges ?
-
The main thing is really just to find them. I can use Clean.rb to remove stray lines but these are different. As you say it is necessary to fix them rather than just delete them.
I cannot find repairbrokenedges.???
-
@pmolsen said:
I cannot find repairbrokenedges.???
http://rhin.crai.archi.fr/RubyLibraryDepot/plugin_details.php?id=334
It repair sets of edges that are co-linear.
CleanUp does implement this feature, but I wonder if I have broken it somehow...
-
You can try to use this one-liner (in the Ruby Console) to select all edges that are 0.001 inch or less (0.001 inch is SU's minimum precision.)
model=Sketchup.active_model;sel=model.selection;sel.clear;model.active_entities.each{|e|sel.add(e)if e.is_a?(Sketchup::Edge) && e.length<=0.001}
-
@thomthom said:
It repair sets of edges that are co-linear.
CleanUp does implement this feature, but I wonder if I have broken it somehow...
The problem is not with co-linear lines but ones that are not co-linear. Maybe something that CleanUp could check for and highlight rather than deleting.
-
@pmolsen said:
The problem is not with co-linear lines but ones that are not co-linear. Maybe something that CleanUp could check for and highlight rather than deleting.
I do have some plans for CleanUp3 what would give a list of issues in the model where one could choose to inspect (and autofix if possible.) Maybe a highlighter similar to Solid Inspector. But it'd not in the immediate future.
What about a revision of the one-liner I poster previously, but instead of selecting the edges it'd insert a text pointing to the edge?
-
what about "loose to group"... would that not do what you want?
-
What do you mean loose to group?
-
CLF_Loose2groups.rb
This Plugin will make groups of all your loose (ungrouped) geometry. It will not change existing groups or components.
Advertisement