verb: A CAD Library for the Web

2014-09-26 00:00:00 +0100 by Alex R. Young

Peter Boyer shared two modules related to 3D graphics: Flood, a visual programming language, and verb, a library for working with NURBS surfaces.

Flood (GitHub: pboyer / flood, License: MIT) behaves a bit like a 3D modelling application. It uses a Scheme interpreter that's written with JavaScript, with immutable data and first order functions.

The beta application allows you to sign in with a Flood account, Google+, or Facebook. You can add nodes that perform arithmetical operations, shapes, and even functions.


It's built with Grunt and Bower, and uses libraries like three.js and Bootstrap.

Peter's other project is verb (GitHub: pboyer / verb, License: MIT), a library for creating and manipulating NURBS surfaces. It works with browsers and Node and supports advanced tools like derivative evaluation, adaptive tessellation, and intersection.

The examples include things like arcs, B├ęziers curves, and various extrusions. You can rotate the examples if you click and drag.

NURBS are used in CAD, I don't think they're particularly popular for game graphics, so presumably Peter intends to use this with the Flood project.