I hereby claim:
- I am tmpvar on github.
- I am tmpvar (https://keybase.io/tmpvar) on keybase.
- I have a public key ASDnoLe66_72oRYokyihcVYh5fOCT6WzjzKDPNYZPT-QXQo
To claim this, I am signing this object:
| build | |
| bin |
| // a single threaded SDF->octree evaluator on the cpu. | |
| #pragma CFLAGS=-I ../../include -march=native | |
| #include <stdio.h> | |
| #include <glm/glm.hpp> | |
| #include <types.h> | |
| using namespace glm; |
| #include <glm/glm.hpp> | |
| using namespace glm; | |
| struct DDACursor { | |
| vec3 mask; | |
| vec3 mapPos; | |
| vec3 rayStep; | |
| vec3 rayDir; | |
| vec3 rayPos; | |
| vec3 sideDist; |
| build |
| const ctx = require('fc')(render, 1) | |
| const center = require('ctx-translate-center') | |
| const {vec2, vec3, mat2, mat3 } = require('gl-matrix') | |
| const renderGrid = require('ctx-render-grid-lines') | |
| const segseg = require('segseg') | |
| const ndarray = require('ndarray') | |
| const raySlab = require('ray-aabb-slab') | |
| const particles = [] | |
| const constraints = [] |
I hereby claim:
To claim this, I am signing this object:
| var fc = require('fc') | |
| var center = require('ctx-translate-center') | |
| var grid = require('ctx-render-grid-lines') | |
| var circle = require('ctx-circle') | |
| var ndarray = require('ndarray') | |
| var fillArray = require('ndarray-fill') | |
| var marchingSquares = require('marching-squares') | |
| var surfaceNets = require('surface-nets') | |
| // where size is the bin size from 0..1 | |
| function createBinner(radius, width, height) { |
| var fc = require('fc') | |
| var center = require('ctx-translate-center') | |
| var grid = require('ctx-render-grid-lines') | |
| var circle = require('ctx-circle') | |
| var ndarray = require('ndarray') | |
| var fillArray = require('ndarray-fill') | |
| // where size is the bin size from 0..1 | |
| function createBinner(radius, width, height) { | |
| var cx = Math.ceil(width/radius) |
| var fc = require('fc'); | |
| var center = require('ctx-translate-center'); | |
| var poly = require('ctx-render-polyline'); | |
| var points = require('ctx-render-points'); | |
| var circle = require('ctx-circle'); | |
| var bounds2 = require('2d-bounds'); | |
| var gridlines = require('ctx-render-grid-lines'); | |
| var isect = require('robust-segment-intersect'); | |
| var createSDF = require('sdf-polygon-2d'); | |
| var area = require('2d-polygon-area'); |
| var toPoly = require('pslg-to-poly') | |
| var points = [ | |
| // loop 1 | |
| [-115, 100], | |
| [ 103, 100], | |
| [ 107, 50], | |
| [-100, -100], | |
| // loop 2 |