Skip to content

v0.11.0

Compare
Choose a tag to compare
@edemaine edemaine released this 01 Dec 19:50
  • Upgrade to CoffeeScript 2. The generated code will now not work in old browsers; open an issue if you have any problems.
    • Also upgrade browserify and coffeeify
  • Move executable script into bin directory, removing shebang from file.coffee and file.js (fixes #18 and needed for CoffeeScript 2 upgrade)
  • Change testing infrastructure to use Jest
  • Transformation matrices:
    • geom.matrixMatrix: multiply two matrices
    • geom.matrixVector: multiple matrix times vector
    • geom.matrixInverse: invert matrix
    • geom.matrixRotate2D: 2D rotation matrix
    • geom.matrixTranslate: translation matrix
    • geom.matrixReflectAxis: reflection through coordinate axis
    • geom.matrixReflectLine: reflect through a line segment
      • Also nonmatrix forms: geom.reflectPoint and geom.reflectLine
  • Add filter.transform for applying a transformation matrix
  • Add filter.remove, filter.removeVertex, filter.removeEdge, filter.removeFace for removing a vertex/edge/face by index
  • Add convert.flat_folded_geometry: convert flat foldable crease pattern into flat folded geometry
    • Available on command line via fold-convert --flat-fold, which modifies vertices_coords and changes creasePattern class to foldedForm class.
    • See new example: single diagonal fold (CP and folded)
  • Add convert.edges_vertices_to_edges_faces_edges
  • Fix boundary detection in convert.faces_vertices_to_edges