Well, I ended up finding a gem called ‘polygon_clipper’, which did seem to have the participation of the 'rbclipper` author. So, I’ve compiled a clipper gem that is using Clipper 6.4.2. It can be used with Ruby 2.2.x thru 2.6.x. Below are the steps to install it:
1. From stand-alone Ruby 2.5.1, enter
ridk version in a command or PowerShell window. You’ll see:
Add mingw64\bin to that path, and find two files there:
These files need to be added to:
C:\Program Files\SketchUp\SketchUp 2019
A complete list of the missing dll’s is above, but just these two are needed for clipper.
2. Also above is a file in a message of mine called
su_utils.zip. You need to download it and extract it somewhere. The file you’ll need is
3. The pre-compiled gem needs to be downloaded, the file is:
4. Now, you’re ready to do something in SketchUp. The following are the steps I did in the SketchUp console (prefixed by
>) and the output from them. Anywhere I’ve shown
<path>, you need to substitute the correct location:
> require '<path>/su_gem.rb'
> SUGem.install '-lN <path>/clipper-188.8.131.52-x64-mingw32.gem'
Successfully installed clipper-184.108.40.206-x64-mingw32
1 gem installed
> require 'clipper'
> Clipper::Clipper.instance_methods(false).sort.join "\r\n"
None of the ‘clipper’ repositories have tests, and I haven’t checked to see if it works. The methods that it should be defining are showing up, so that’s as far as I went…