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.
See a further experiment here http://learning-ruby-processing.blogspot.com/2012/02/using-toxiclibs-volumeutils-etc-in-ruby.html, for a similar example, although this time featuring toxiclibs for the mesh creation. This sketch features the implementation of an abstract java class in ruby-processing (jruby), given the relative lack of jruby documentation I thought that may also be of interest. Frustratingly the the thing that took me longest to sort out was the old chestnut of float vs integer division. Here is a screenshot with a variant using the ruby-processing control panel.
Leave a comment on monkstone's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic