code for Introduction to Polygonal Modeling and Three.js article