Skip to content

Releases: edemaine/fold

v0.12.0

25 Jun 16:40
Compare
Choose a tag to compare
  • Spec version 1.2 includes new edge assignments (cuts and joins), new frame attributes, vertices_edges and faces_faces definitions, null values, and adds lots of clarifying text.
  • API renamed filter.cutEdgesfilter.splitCuts, which now automatically splits all cut edges (from FOLD 1.2) into regular boundary edges (from FOLD 1.0/1.1).
  • API adds filter.cutEdges and filter.joinEdges to list all cut and join edges respectively.

Full Changelog: v0.11.6...v0.12.0

v0.11.6

15 Mar 20:27
Compare
Choose a tag to compare
  • Fix long-standing bug in filter.cutEdges (and cp-editor) not properly handling T junctions of cuts
  • filter.cutEdges now recomputes vertices_vertices if it exists, instead of just discarding it

Full Changelog: v0.11.5...v0.11.6

v0.11.5

12 Mar 16:56
Compare
Choose a tag to compare
  • Add convert.edges_vertices_to_vertices_edges_unsorted and filter.edges_vertices_to_vertices_edges for simple inversion of edges_vertices into vertices_edges.

Full Changelog: v0.11.4...v0.11.5

v0.11.4

12 Mar 16:55
Compare
Choose a tag to compare
  • Fix convert.vertices_edges_to_faces_vertices_edges to follow the spec: faces_edges[f][i] is the edge connecting faces_vertices[f][i] and faces_vertices[f][(i+1)%d].
  • Fix examples diagonal-cp and diagonal-folded accordingly.

Full Changelog: v0.11.3...v0.11.4

v0.11.3

20 Aug 15:13
Compare
Choose a tag to compare
  • Remove accidental inclusion of xmldom in js

v0.11.2

20 Aug 15:10
Compare
Choose a tag to compare

v0.11.1

01 Dec 23:52
Compare
Choose a tag to compare
  • Fix geom.matrixMatrix when multiplying nonsquare (e.g. translation) matrix by square (e.g. rotation) matrix or vice versa
  • Rename convert.flat_folded_geometrygeom.flatFoldedGeometry (for consistency)
  • Add faces_flatFoldOrientation output from convert.flatFoldedGeometry

v0.11.0

01 Dec 19:50
Compare
Choose a tag to compare
  • 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

v0.10.4

19 May 17:39
Compare
Choose a tag to compare
  • Bug fix in convert.edges_vertices_to_faces_vertices_edges (#20).

v0.10.3

20 Jan 10:41
Compare
Choose a tag to compare
  • Add FOLD.filter.cutEdges for cutting apart ("unwelding") edges in 2D crease pattern, using vertices_edges
  • vertices_edges manipulators:
    • Add FOLD.convert.vertices_edges_to_faces_vertices_edges
    • Add FOLD.convert.edges_vertices_to_vertices_edges_sorted helper
    • Add FOLD.convert.edges_vertices_to_faces_vertices_edges helper
    • Rename FOLD.convert.edges_vertices_faces_vertices_to_faces_edges to FOLD.convert.faces_vertices_to_faces_edges.
  • Helpers:
    • Add FOLD.filter.addVertexLike similar to FOLD.filter.addEdgeLike (for vertex duplication)
    • Re-order arguments of FOLD.filter.addEdgeLike (for edge duplication)
    • Add FOLD.convert.deepCopy for deep copying fold structures
    • Improve FOLD.filter.numType (and thus FOLD.filter.numVertices) to use ..._type keys when there are no type_... keys.
    • Change filter.edges_verticesIncident to return common vertex when the answer is "yes" (instead of true), and null otherwise (instead of false).
  • Update documentation