Make a variety of sword, knives, hammer/axes, polearms, and much more with only a few lines code. The code is split into 3 libraries:Mesh.py: Tools for processing triangle meshes. The triangle mesh is a list of triangles composed of 3 vertices, each with a corresponding colour (RGB from 0 to 1). Currently the library only […]
This library will allow for the easy creation of 3d Wavefront .Obj Files https://en.wikipedia.org/wiki/Wavefront_.obj_file in Scheme. I’ve made sure the code is R5RS compliant, tested under Dr-Racket but I’m pretty sure it should work in MIT-scheme and probably many other dialects.
This is my 3d library, from my personal R5RS build; It requires my .obj library be loaded.At the end I’ve also attached and commented out a few examples and demos. The simplest top-level Function is the surface of revolution, you simply enter a 2d shape as a list of 2d-points (just cons cells, no special […]