# Solid Inspector²

**URL:** <https://forums.sketchup.com/t/solid-inspector/5117>\
**Category:** Extensions\
**Created:** [December 20, 2014, 5:57pm UTC](https://forums.sketchup.com/t/solid-inspector/5117 "2014-12-20T17:57:27Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Box](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/box/32/235164_2.png) [@Box](https://forums.sketchup.com/u/Box)\
**Post date:** [January 5, 2015, 7:33am UTC](https://forums.sketchup.com/t/solid-inspector/5117/21 "2015-01-05T07:33:51Z")

</div>

There is something odd happening here.

```
   Error: #<NoMethodError: undefined method `<<' for #<Sketchup::Set:0x0000001605eb80>>
C:/Users/hp/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_solid_inspector2/error_finder.rb:48:in `block in find_errors'
C:/Users/hp/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_solid_inspector2/error_finder.rb:34:in `each'
C:/Users/hp/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_solid_inspector2/error_finder.rb:34:in `grep'
C:/Users/hp/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_solid_inspector2/error_finder.rb:34:in `find_errors'
C:/Users/hp/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_solid_inspector2/inspector_tool.rb:159:in `analyze'
C:/Users/hp/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_solid_inspector2/inspector_tool.rb:186:in `block in create_window'
C:/Users/hp/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_solid_inspector2/window.rb:95:in `call'
C:/Users/hp/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_solid_inspector2/window.rb:95:in `block in trigger_events'
C:/Users/hp/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_solid_inspector2/window.rb:94:in `each'
C:/Users/hp/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_solid_inspector2/window.rb:94:in `trigger_events'
C:/Users/hp/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_solid_inspector2/window.rb:35:in `block in initialize'
SketchUp:1:in `call'

```

---

<div class="post-metadata">

**Author:** ![thomthom](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/thomthom/32/12606_2.png) [@thomthom](https://forums.sketchup.com/u/thomthom)\
**Post date:** [January 5, 2015, 7:39am UTC](https://forums.sketchup.com/t/solid-inspector/5117/22 "2015-01-05T07:39:01Z")

</div>

> [@Box](#):
>
> There is something odd happening here.

Can you mark the entire message up in Pre Formatted text please? It would make it much easier to read.

---

<div class="post-metadata">

**Author:** ![thomthom](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/thomthom/32/12606_2.png) [@thomthom](https://forums.sketchup.com/u/thomthom)\
**Post date:** [January 5, 2015, 7:40am UTC](https://forums.sketchup.com/t/solid-inspector/5117/23 "2015-01-05T07:40:59Z")

</div>

> [@twcds\_simon](#):
>
> Error Loading File C:/Users/simon/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt\_solid\_inspector2/core.rbError: #C:/Users/simon/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt\_solid\_inspector2/inspector\_tool.rb:8:in require’

I’m going by a guess here since I don’t have the full error message - but are you by any chance using the first release of SketchUp 2014 and opening it by double clicking on SKP files? There was a bug that caused some extensions to fail, but it was fixed in later maintenance releases of SU2014. Can you please make sure you have the latest release of SU2014 and try again?

---

<div class="post-metadata">

**Author:** ![jim\_foltz](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/jim_foltz/32/74787_2.png) [@jim\_foltz](https://forums.sketchup.com/u/jim_foltz)\
**Post date:** [January 5, 2015, 7:46am UTC](https://forums.sketchup.com/t/solid-inspector/5117/24 "2015-01-05T07:46:55Z")

</div>

Are you going to have to start replacing `<` with `&lt;` in your exceptions? Hehe

---

<div class="post-metadata">

**Author:** ![thomthom](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/thomthom/32/12606_2.png) [@thomthom](https://forums.sketchup.com/u/thomthom)\
**Post date:** [January 5, 2015, 7:50am UTC](https://forums.sketchup.com/t/solid-inspector/5117/25 "2015-01-05T07:50:06Z")

</div>

> [@jim\_foltz](#):
>
> Are you going to have to start replacing \< with \< in your exceptions? Hehe

I was just about to start looking into the possibilities of making a forum extension that detects error messages and marks it up - because this is just plain painful. The most useful part of the error message is always lost unless the user marks it up. ☹

---

<div class="post-metadata">

**Author:** ![thomthom](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/thomthom/32/12606_2.png) [@thomthom](https://forums.sketchup.com/u/thomthom)\
**Post date:** [January 5, 2015, 7:52am UTC](https://forums.sketchup.com/t/solid-inspector/5117/26 "2015-01-05T07:52:23Z")

</div>

> [@Box](#):
>
> Error: #\<NoMethodError: undefined method `\<\<’ for #\<Sketchup::Set:0x0000001605eb80\>\>  
> C:/Users/hp/AppData/Roaming/SketchUp/SketchUp

It looks as though something has messed up the API namespace. I’m not making use of `Sketchup::Set` anywhere - so it appear that someone re-referenced `Set = Sketchup::Set` in the global namespace - which is very naughty.

Only thing I can recommend is that you disable your extensions one by one until you find the culprit. (Please report back which one it was so I can contact the developer.)

---

<div class="post-metadata">

**Author:** ![Box](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/box/32/235164_2.png) [@Box](https://forums.sketchup.com/u/Box)\
**Post date:** [January 5, 2015, 8:06am UTC](https://forums.sketchup.com/t/solid-inspector/5117/27 "2015-01-05T08:06:49Z")

</div>

Found it, it was Quick Selection, a Didier that you guys had already discussed for exactly this reason.  
I obviously didn’t edit the rb correctly when I recently tried it.  
I didn’t like it much as a plugin anyway so have deleted it.

---

<div class="post-metadata">

**Author:** ![jim\_foltz](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/jim_foltz/32/74787_2.png) [@jim\_foltz](https://forums.sketchup.com/u/jim_foltz)\
**Post date:** [January 5, 2015, 8:08am UTC](https://forums.sketchup.com/t/solid-inspector/5117/28 "2015-01-05T08:08:15Z")

</div>

Yes, I already updated the example I gave in that thread.

---

<div class="post-metadata">

**Author:** ![thomthom](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/thomthom/32/12606_2.png) [@thomthom](https://forums.sketchup.com/u/thomthom)\
**Post date:** [January 5, 2015, 8:10am UTC](https://forums.sketchup.com/t/solid-inspector/5117/29 "2015-01-05T08:10:16Z")

</div>

Ah, yes, it did sound familiar but I couldn’t recall. So it’s not a published version? That’s good.

If you need to use it again then using Jim’s updated example should work and avoid clashes.

---

<div class="post-metadata">

**Author:** ![Box](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/box/32/235164_2.png) [@Box](https://forums.sketchup.com/u/Box)\
**Post date:** [January 5, 2015, 8:11am UTC](https://forums.sketchup.com/t/solid-inspector/5117/30 "2015-01-05T08:11:51Z")

</div>

I’m happy to lose it.  
I thought I had broken it by doing some cleanup on my PC, glad to have it working again.

---

<div class="post-metadata">

**Author:** ![GenZod](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/genzod/32/4021_2.png) [@GenZod](https://forums.sketchup.com/u/GenZod)\
**Post date:** [January 5, 2015, 8:26pm UTC](https://forums.sketchup.com/t/solid-inspector/5117/31 "2015-01-05T20:26:29Z")

</div>

It says:

```
Degenerate face!
Error: #<TypeError: can't convert Geom::Point3d into Float>
C:/Users/user/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_solid_inspector2/error_finder.rb:516:in `transform'
C:/Users/user/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_solid_inspector2/error_finder.rb:516:in `block in transform_ray'
C:/Users/user/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_solid_inspector2/error_finder.rb:516:in `map'
C:/Users/user/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_solid_inspector2/error_finder.rb:516:in `transform_ray'
C:/Users/user/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_solid_inspector2/error_finder.rb:395:in `reversed_face?'
C:/Users/user/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_solid_inspector2/error_finder.rb:286:in `find_errors'
C:/Users/user/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_solid_inspector2/inspector_tool.rb:159:in `analyze'
C:/Users/user/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_solid_inspector2/inspector_tool.rb:186:in `block in create_window'
C:/Users/user/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_solid_inspector2/window.rb:95:in `call'
C:/Users/user/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_solid_inspector2/window.rb:95:in `block in trigger_events'
C:/Users/user/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_solid_inspector2/window.rb:94:in `each'
C:/Users/user/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_solid_inspector2/window.rb:94:in `trigger_events'
C:/Users/user/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_solid_inspector2/window.rb:35:in `block in initialize'
SketchUp:1:in `call'

```

I did use soap skin bubble to make the leg, just used skin part  
Plus Im not sure why but it considers the one with lines on it a solid and does not say anything to the one without any lines on it. Also I have no idea how those lines disappeared, just this one random day I copied it and I am not sure what else but the lines were gone and I thought oh good, looks neater.  
  
[All of the Spoiler Angles SU14 Copy.skp](https://forums.sketchup.com/uploads/default/2906/7a519af6ae7ffd28.skp) (626.4 KB)

---

<div class="post-metadata">

**Author:** ![tt\_su](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tt_su/32/17_2.png) [@tt\_su](https://forums.sketchup.com/u/tt_su)\
**Post date:** [January 5, 2015, 9:57pm UTC](https://forums.sketchup.com/t/solid-inspector/5117/32 "2015-01-05T21:57:10Z")

</div>

> [@GenZod](#):
>
> It says:

I edited your post so that the error message was wrapped up in Preformatted Text:

Without that part of the error message was lost.

---

<div class="post-metadata">

**Author:** ![thomthom](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/thomthom/32/12606_2.png) [@thomthom](https://forums.sketchup.com/u/thomthom)\
**Post date:** [January 5, 2015, 10:01pm UTC](https://forums.sketchup.com/t/solid-inspector/5117/33 "2015-01-05T22:01:31Z")

</div>

> [@GenZod](#):
>
> Plus Im not sure why but it considers the one with lines on it a solid and does not say anything to the one without any lines on it.

The lines are there on both meshes - it’s just that one of them has all the edges set as Soft and Smooth.  
See this article for more info: [Soft vs Smooth vs Hidden Edges | Procrastinators Revolt!](http://www.thomthom.net/thoughts/2012/06/soft-vs-smooth-vs-hidden-edges/)

You can see all edges by toggling View \> Hidden Geometry.

In the model you attached - which one where giving you the error?

---

<div class="post-metadata">

**Author:** ![thomthom](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/thomthom/32/12606_2.png) [@thomthom](https://forums.sketchup.com/u/thomthom)\
**Post date:** [January 5, 2015, 10:02pm UTC](https://forums.sketchup.com/t/solid-inspector/5117/34 "2015-01-05T22:02:41Z")

</div>

> [@GenZod](#):
>
> so if it looks like this does it mean im good?

Ah - that one. The error has been fixed in version 2.2 which will be released shortly. I’ll announce it here in the thread.

---

<div class="post-metadata">

**Author:** ![TIG](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tig/32/198_2.png) [@TIG](https://forums.sketchup.com/u/TIG)\
**Post date:** [January 5, 2015, 10:10pm UTC](https://forums.sketchup.com/t/solid-inspector/5117/35 "2015-01-05T22:10:04Z")

</div>

It’s quite possible to have a ‘solid’ object that will not 3d-print !  
The last image shows one - the two ‘legs’ are solid and penetrate the other part.  
As they have not been intersected SketchUp thinks it’s a ‘solid’ but a 3d-printer will break !

A final check on an object that is otherwise ‘solid’ would be to intersect all of its geometry with itself, if the result is not **[]** then it’s likely no longer **object.manifold?** and needs further work to become a ‘solid’ again - which can be 3d-printed !

---

<div class="post-metadata">

**Author:** ![thomthom](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/thomthom/32/12606_2.png) [@thomthom](https://forums.sketchup.com/u/thomthom)\
**Post date:** [January 5, 2015, 10:15pm UTC](https://forums.sketchup.com/t/solid-inspector/5117/36 "2015-01-05T22:15:08Z")

</div>

That’s true. Though, as part of how SI2 works it’s a bit tricky as it first analyse the mesh, then present the findings in the dialog - without modifying the model. One would have to make use of a temp operation - and then there is the issue of `intersect_with`’s performance. Maybe some bounds checking which be able to catch some of this.

---

<div class="post-metadata">

**Author:** ![TIG](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tig/32/198_2.png) [@TIG](https://forums.sketchup.com/u/TIG)\
**Post date:** [January 5, 2015, 10:25pm UTC](https://forums.sketchup.com/t/solid-inspector/5117/37 "2015-01-05T22:25:09Z")

</div>

You can easily do an operation and abort it, undoing the result.  
If the **res=entities.intersect\_with(…)** is **[]** then there are no problems.  
BUT if it makes some geometry then it’s not ‘really’ a ‘solid’ !  
In a similar way to it containing a nested group or component, that also messes it up …

---

<div class="post-metadata">

**Author:** ![thomthom](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/thomthom/32/12606_2.png) [@thomthom](https://forums.sketchup.com/u/thomthom)\
**Post date:** [January 5, 2015, 10:26pm UTC](https://forums.sketchup.com/t/solid-inspector/5117/38 "2015-01-05T22:26:39Z")

</div>

> [@TIG](#):
>
> is then there are no problems.

The potential performance hit with larger meshes is a concern. Could make SketchUp freeze up for minutes…

---

<div class="post-metadata">

**Author:** ![TIG](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tig/32/198_2.png) [@TIG](https://forums.sketchup.com/u/TIG)\
**Post date:** [January 5, 2015, 10:44pm UTC](https://forums.sketchup.com/t/solid-inspector/5117/39 "2015-01-05T22:44:25Z")

</div>

But you can never trust bounding-box intersections, as they can appear to intersect when there is no actual penetrative intersection…  
Alternative idea !  
Select a edge at random and get edge.all\_connected.  
If the result + [edge] is not the same length as edge.parent.entities.to\_a then there is some unconnected geometry ?  
BUT of course a true printable solid could have two quite separate collections of unconnected geometry !  
AND you can make a solid that pierces itself ! With every ting connected!! [SoildThatIsNotSolid.skp](https://forums.sketchup.com/uploads/default/2912/b94e050457a00857.skp) (44.8 KB)   
**entities.intersect\_with(…)** seems the only foolproof way ??

---

<div class="post-metadata">

**Author:** ![thomthom](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/thomthom/32/12606_2.png) [@thomthom](https://forums.sketchup.com/u/thomthom)\
**Post date:** [January 6, 2015, 12:38am UTC](https://forums.sketchup.com/t/solid-inspector/5117/40 "2015-01-06T00:38:35Z")

</div>

Yea, it’s tricky. I already detect and sort out disconnected geometry. But as you say, a mesh can self intersect.

What makes intersect slow is the merge controller. Maybe it can be resolved with a Ruby C Extension to perform intersection test. I’d think there would be libraries out there to do this already.

Thanks for the sample model. I’m building up a collection of edge cases for automated tests.

[Previous page](https://forums.sketchup.com/t/solid-inspector/5117.md?page=1)

[Next page](https://forums.sketchup.com/t/solid-inspector/5117.md?page=3)
