Raytracer
Collections of tools based on raytracing - drop, rayspray, grow component to contruction points.
Raytracer

Collection of small snippets I made during my work on projects at the office. I just named it Raytracer as all the methods involved tracing rays around the model - mostly to detect the ground surface. These dropping methods do not stop on entities that are hidden or on hidden layers.

Bug Alert!

There is a bug in the first release of SketchUp 8 where the ray tracing is not working correctly when there is CPoint in the current context. Ensure you have updated SketchUp!

Functions

Drop CPoints

Drops the selected constructions points down onto the surface below.

Drop CPoints (Trace)

Adds a construction point on the surface below the selected construction point and adds a construction line between them.

Drop Components

Drops the selected groups/components down onto the surface below by their axis origin.

Drop Components by Bounds

Drops the selected groups/components down onto the surface below by the corners of the bounding box' bottom.

Drop Components by Geometry (WIP)

Work in progress.

Grow Components from CPoints

  1. Select a set of components.
  2. Activate the command.
  3. From the window that appear, enter a comma or pipe separated list of layers containing construction point
  4. When clicking OK, all construction points on the given layers will be traced down to the surface below and an random instance of the selected components will be inserted between the surface and the construction point.

Trace Ray Spray from CPoints

Shoots a user-determined number of rays in every direction from every CPoint in the selection. The rays that hits something will be traced by a CLine and CPoint, grouped.

Rays Stops at Ground Plane

Check this item to make rays stop at the virtual ground plane in SketchUp.

Menus & Toolbars

  • Plugins » Raytracer

Requirements

Related Links

CookieWare

I'd be happy if you donate a cookie (or a beer) if you find my plugins useful.

Reviews

Maxim B's picture

can't install on 2016 sketchup

ThomThom's picture

Can you describe in more detail what fails? Does the installation itself fail? Any error message? Menus missing?
Is it not listed in Preferences > Extensions? (Is it enabled?) Do you have TT_Lib2 installed?

Maxim B's picture

Thank you for quick reply and for your help
1. It's listed in preferences: tt_raytracer and also TT_Lib2, both are enabled, but i can't see it (raytracer) in extensions
2. When i try to open SketchUp it writes:

Error Loading File tt_raytracer.rb
Error: #
C:/PROGRA~1/SketchUp/SKETCH~2/Tools/extensions.rb:102:in `block in load_extension_info'
C:/PROGRA~1/SketchUp/SKETCH~2/Tools/extensions.rb:76:in `each'
C:/PROGRA~1/SketchUp/SKETCH~2/Tools/extensions.rb:76:in `load_extension_info'
C:/PROGRA~1/SketchUp/SKETCH~2/Tools/extensions.rb:38:in `initialize'
C:/Users/Acer/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/tt_raytracer.rb:34:in `new'
C:/Users/Acer/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/tt_raytracer.rb:34:in `'
C:/Users/Acer/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/tt_raytracer.rb:15:in `'
C:/Users/Acer/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/tt_raytracer.rb:14:in `'
C:/Users/Acer/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/tt_raytracer.rb:13:in `'

Windows 7 64 bit

ThomThom's picture

Hi Maxim
Can you contact me via this form? http://www.thomthom.net/thoughts/about/contact/

If you could send me the tt_raytracer.rb and tt_raytracer folder in your Plugins folder for inspection that would help me track this down.

kost P.'s picture

not working? cant find it in sketchup

Domini C's picture

First make sure you have TT_lib2. then under Plugins>raytracer you should see the commands