[Plugin] SolidSolver

[Plugin] SolidSolver

Postby TIG » Thu Oct 13, 2011 1:19 pm

Copyright 2011-2017 TIG (c)
Permission to use, copy, modify, and distribute this software for any
purpose, and currently without fee, is hereby granted, provided that
this text and the above copyright (c) 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.
###
Parts are based on ThomThom's 'solid_inspector' tool which can also be
used prior to this tool, so that you get a better understanding of what
is wrong with your Non-Solid Group...
###
Name: TIG-solidsolver.rb
###
Menu: 'Tools' > 'SolidSolver'
Context-menu: > 'SolidSolver'
###
Usage: [Note this works on >= v8 only]
Select a Non-Solid Group/Component-Instance and run the tool from the menu
or context-menu.
If it contains nested groups or instances you are warned, and given the
option to explode these - it could never be a 'solid' otherwise.
It analyzes the object's form for holes [which it heals], small faces
[also healed] and removes partitions/flaps that are making the form
'non-manifold', and it merges any 'split' colinear edges.
If there are any coplanar edges it asks if you want to remove them.
It then reports on the results 'solidity' & what was done to achieve it.
It is one step undoable.
If the object remains 'non-solid' it's likely be due to some edges still
having more than two faces - e.g. two otherwise solid cubes touching at
an edge will therefore use that edge for four faces, which is therefore
regarded as making it a non-solid. An additional dialog explains, and it
then offers the chance to try to rectify this. A 'fix' might produce odd
results - for example the common edge to two cubes might be removed so
there are no longer any edges with more than two faces, but the form
might then be folded back on itself to achieve interpenetrating faces -
which, although then regarded as forming a 'solid', is an 'impossible
object' in normal three dimensions... You are given a separate undo for
this step if you do try it.
Tip: IF you have this type of form temporarily group one of the 'cubes'
and move if over say 0.5mm, so that there are then two distinct edges
and it will become a proper solid of two separated volumes, without the
involuted faces issue.
###
Donations: PayPal.com to info @ revitrev.org
###
###

###
###
Get the latest version from the PluginStore...

Download

3
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] SolidSolver v1.0 20111013

Postby Pixero » Thu Oct 13, 2011 1:41 pm

This will be handy. Thanks!
0
User avatar
Pixero 
Premium Member
Premium Member
 

Re: [Plugin] SolidSolver v1.0 20111013

Postby pbacot » Thu Oct 13, 2011 6:08 pm

uh,....

Just Fantastic! :berserk:

Expect payment.
0
MacOSX (El Capitan) ShetchUp Pro v16 Layout Twilight Pro v2 M2 Kerkythea PowerCADD
User avatar
pbacot 
Top SketchUcator
 

Re: [Plugin] SolidSolver v1.0 20111013

Postby jgb » Thu Oct 13, 2011 8:12 pm

Any reason it is V8-Pro only :?
0
__________________
jgb
User avatar
jgb 
 

Re: [Plugin] SolidSolver v1.0 20111013

Postby TIG » Thu Oct 13, 2011 9:21 pm

You are welcome to try it on other versions... [worst that can happen is Ruby Console Errors] but I think some of the methods it uses are available for v8/Pro only ??
EDIT: Actually it should work on v8 free too...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] SolidSolver v1.1 20111014

Postby TIG » Fri Oct 14, 2011 12:36 pm

Here is v1.1 viewtopic.php?p=359994#p359994
Now if it contains nested groups/instances you are told, and given the option to explode these - remember that it will never be considered to be a 'solid' otherwise: any nested groups/instances within the exploded ones are exploded too...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] SolidSolver v1.2 20111016

Postby TIG » Sun Oct 16, 2011 3:09 pm

Here's v1.2 viewtopic.php?p=359994#p359994
It now spots if problems arise from nested groups/instances, shared-edges or geometry that can never form a 'solid' - no matter what you try to do to it !
The closing dialogs now explain what's what... as appropriate... :roll:
So... it's best to use this tool on a group you think is nearly [or could easily become] a 'solid'...
You're wasting your time using it on a poorly made mess because it won't be 'solvable'... :?
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] SolidSolver v1.3 20111019

Postby TIG » Wed Oct 19, 2011 5:54 pm

Here's v1.3 viewtopic.php?p=359994#p359994
It now merges any split colinear edges into one continuous edge.
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] SolidSolver v1.3 20111019

Postby pbacot » Wed Oct 19, 2011 6:39 pm

Thanks Again TIG.

Now that you mention it, is there any merit in combining two coplanar faces (remove edge) where the material is the same. This is something I have to fix occasionally when joining solids. Usually it heals itself.

No wait. Do that and you'll soon get the opposite request.

Peter
0
MacOSX (El Capitan) ShetchUp Pro v16 Layout Twilight Pro v2 M2 Kerkythea PowerCADD
User avatar
pbacot 
Top SketchUcator
 

Re: [Plugin] SolidSolver v1.3 20111019

Postby TIG » Wed Oct 19, 2011 7:24 pm

It [already] removes coplanar edges if the two faces have the same material/back_material.
It now merges split colinear edges into a single edge
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] SolidSolver v1.3 20111019

Postby Pout » Thu Oct 27, 2011 8:41 am

Hey Tig,

I get this error when i try to use it on attached model
Error: #<NameError: undefined local variable or method `entities' for TIG:Module>
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/TIG-solidsolver.rb:294:in `solidsolver_heal_small'
...
0

Pout 
 

Re: [Plugin] SolidSolver v1.3 20111019

Postby TIG » Thu Oct 27, 2011 9:33 am

Pout

Thanks for the feedback - a stupid typo!
I'll fix it asap.
As for your SKP... it can't be made a 'Solid'. There are reversed faces, hidden edges, many multi-vertex straight edges, coplanar/unfaced edges, tiny edges, clear large gaps and holes etc... that all need 'fixing' - best to at least try - the tool is intended to fix issues with groups you think ought to be solid but aren't - rather than make a solid out of a collection of mismatched geometry that clearly is nothing like a solid to start with and which might never achieve solidity, no matter what is tried in code - although some manual redrawing it editing could nudge it in the right direction...
So do some tidying up [perhaps using SolidInspector after an initial attempt to see where the problems are - e.g. you have many 'coincident faces' - try intersecting the geometry with itself or group/explode/regroup] - it tries to fix hundreds of issues and fails - it can become a solid.
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] SolidSolver v1.4 20111027

Postby TIG » Thu Oct 27, 2011 9:37 am

Here's v1.4 viewtopic.php?p=359994#p359994
A daft typo in the heal small faces/holes code has been fixed.
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] SolidSolver v1.4 20111027

Postby rachmatrf » Tue Feb 21, 2012 10:54 am

:berserk: :berserk: :berserk: :berserk:
Thank you TIG. You Rock!
0

rachmatrf 
 

Re: [Plugin] SolidSolver v1.4 20111027

Postby Ken » Sun Mar 04, 2012 7:04 pm

TIG

Found an interesting error. If I use this program to fix a non solid, and do nothing else except go to the file save option to save the file. Before the file is saved, the solid reverts back to the non solid status. If I do something other than go to save, like draw a line the file will save without reverting to the non solid.
0
Fight like your the third monkey on Noah's Ark gangway.
User avatar
Ken 
Premium Member
Premium Member
 

Re: [Plugin] SolidSolver v1.4 20111027

Postby TIG » Sun Mar 04, 2012 8:31 pm

Weird... I'll try to reproduce it... :?
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] SolidSolver v1.4 20111027

Postby Anton_S » Fri Oct 12, 2012 10:13 am

Thanks, TIG!
SolidSolver is incredibly easy to use. Just go through a couple of steps and ur model is a solid! :shock: Although, it won't completely solve shapes that have edge with 3+ faces, but I understand it's complex. :thumb:
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: [Plugin] SolidSolver v1.4 20111027

Postby jgb » Fri Oct 12, 2012 2:51 pm

TIG; Just curious.... :|

Any reason SS does not work on components, but only on groups?

Since almost all my drawings are made of solid comps, I only use groups to keep stuff together, or for layering options. When SS says "Select a group..." when I select a comp, I have to edit the comp, select all, and group it to work, then explode the group. A bit of a pain.

Otherwise it works reasonably well on SU 8-Free. I generally like to cleanup my solids manually, after SI reports problems. SS tends to clobber very complex solids, which I generated in a quick but sloppy manner, so the fixing after SS may take longer than doing the fix manually in the first place.

Mind you, SS is far more adept at fixing some real toughies, such as co-linear lines, and co-resident faces. I had one "celebrated" comp that had 7 (count-em) 7 co-resident faces in 3 places. I went nuts fixing one of the faces, then sent SS after the others. I only had to redraw 2 lines to fix that after. :thumb: :thumb:
0
__________________
jgb
User avatar
jgb 
 

Re: [Plugin] SolidSolver v1.4 20111027

Postby TIG » Fri Oct 12, 2012 4:17 pm

It could readily deal with component instances too - it's just easy to write for a group...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] SolidSolver v1.5 20121012

Postby TIG » Fri Oct 12, 2012 5:14 pm

Here's v1.5 viewtopic.php?p=359994#p359994
it now works on groups AND component instances; makes the result unique, if needs be.
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] SolidSolver v1.5 20121012

Postby Anton_S » Fri Oct 12, 2012 9:33 pm

:thumb: :ecstatic:
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: [Plugin] SolidSolver v1.5 20121012

Postby jgb » Sat Oct 13, 2012 11:20 pm

TIG wrote:Here's v1.5 viewtopic.php?p=359994#p359994
it now works on groups AND component instances; makes the result unique, if needs be.


Thanks a bunch. :sketchstatic: I'll check it on Sunday.
0
__________________
jgb
User avatar
jgb 
 

Re: [Plugin] SolidSolver v1.5 20121012

Postby smicha » Sun Oct 14, 2012 9:19 pm

Thank you TIG. Great work as always.
0

smicha 
 

Re: [Plugin] SolidSolver v1.5 20121012

Postby jgb » Mon Oct 15, 2012 8:19 pm

TIG;
Seems to work fine with comps now. Thanks for the response. :sketchstatic:
0
__________________
jgb
User avatar
jgb 
 

Re: [Plugin] SolidSolver v1.3 20111019

Postby Bertier » Tue Oct 16, 2012 11:20 am

Pout wrote:Hey Tig, ...
Hey Pout good to see you there !
Sorry not to see you in Boulder !
0

Bertier 
 

Re: [Plugin] SolidSolver v1.5 20121012

Postby Sergio Morera » Wed Oct 17, 2012 2:33 pm

Brilliant as usual!
0

Sergio Morera 
 

Re: [Plugin] SolidSolver v1.6 20121024

Postby TIG » Wed Oct 24, 2012 5:04 pm

Here's v1.6 viewtopic.php?p=359994#p359994
It has:
  • Improved internal partition removal, even when they are not full width etc.
    [It is still fool-able though!]
  • A context-menu item is now available if there is an appropriate selection.
  • Its progress ... is now indicated in the status-bar.
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] SolidSolver v1.6 20121024

Postby pbacot » Wed Oct 24, 2012 5:27 pm

Thanks TIG. This is something I am looking at daily--ways to make solids.

Probably an obvious idea to many: I was getting a shape that had way too many interior faces. I decided that with smoothing, I had very few outside surfaces to deal with. So I selected the outside surfaces one by one (double click) and grouped--and had a solid rather quickly, without fussing about the center.

Your work on this is really appreciated.
0
MacOSX (El Capitan) ShetchUp Pro v16 Layout Twilight Pro v2 M2 Kerkythea PowerCADD
User avatar
pbacot 
Top SketchUcator
 

Re: [Plugin] SolidSolver v1.6 20121024

Postby cotty » Wed Oct 24, 2012 5:32 pm

Thank you for the update!
0
User avatar
cotty 
Top SketchUcator
 

Re: [Plugin] SolidSolver v1.6 20121024

Postby smicha » Wed Oct 24, 2012 7:27 pm

Thank you TIG.
0

smicha 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: Bing [Bot], sacro54 and 7 guests

Visit our sponsors: