Using the hemesh library in ruby processing (and export to PovRAY mesh2)
in
Processing with Other Languages
•
1 year ago
I have just posted my latest experiments in ruby processing:-
http://learning-ruby-processing.blogspot.com/2012/02/export-ruby-processing-sketch-to-povray.html
It demonstrates how to use a vanilla processing library in ruby-processing (since version 10.0 this library is detected from your regular processing sketchbook/libraries folder). The export to PovRAY relies on my modifications to the hemesh library, but may be available in Frederik Vanhouttes next release. Of particular interest to those of you that have struggled with supplying java float[] to a java class from ruby, I include a conversion from a 3D ruby array to a 3D array of java float.