Skip to content

Instantly share code, notes, and snippets.

Avatar

Mikola Lysenko mikolalysenko

View GitHub Profile
View column.js
var surface = require('isosurface').surfaceNets
var vec3 = require('gl-vec3')
var mat4 = require('gl-mat4')
var length = vec3.length, sub = vec3.subtract
var max = vec3.max, min = vec3.min, dot = vec3.dot
var abs = elwise(Math.abs), sqrt = elwise(Math.sqrt)
function elwise (f) {
return function (out, v) {