Skip to content

Releases: edemaine/fold

v0.10.2

19 Jan 17:36
Compare
Choose a tag to compare
  • Add FOLD.convert.toJSON for nice JSON file output
  • Add FOLD.filter.addVertexAndSubdivide for adding a vertex possibly in the middle of an existing edge
  • FOLD.filter.addEdgeAndSubdivide now uses FOLD.filter.addVertexAndSubdivide and returns two arrays of edges, for more efficient updating.
  • Add FOLD.filter.addEdgeLike as useful tool needed by other functions

v0.10.1

19 Jan 00:40
Compare
Choose a tag to compare
  • Bug fixes for FOLD.filter.subdivideCrossingEdges_vertices
    • Replace for loops with while loops to find all intersections
    • Always strip duplicate and loop edges that might be made via intersections
  • Export FOLD.geom.EPS (a reasonable value for epsilon)
  • Rename addVertex -> maybeAddVertex, addEdge -> addEdgeAndSubdivide

v0.10.0

18 Jan 21:37
Compare
Choose a tag to compare
  • filter.addVertex and filter.addEdge to add vertices and edges to crease patterns while subdividing as needed
  • filter.subdivideCrossingEdges_vertices tweaks to make this happen
  • Document all of the above
  • geom.closestIndex for finding closest point to a point

v0.9.12

29 Mar 04:30
Compare
Choose a tag to compare
  • Improve lib/file.js to use #!/usr/bin/env node which will help when node is in /usr/local/bin

v0.9.11

29 Mar 04:28
Compare
Choose a tag to compare
  • Two helper construction functions to build more data structures for crease patterns:
    • convert.edges_vertices_faces_vertices_to_faces_edges
    • convert.vertices_vertices_to_vertices_edges
  • (v0.9.10 had incorrect lib. New NPM scripts should avoid this in the future...)

v0.9.9

26 Mar 02:43
Compare
Choose a tag to compare
  • Bug fix in filter.mountainEdges etc. (thanks to Amanda Ghassaei)
  • Support no edges_assignment field in viewer. Just need vertices_coords and faces_vertices now.
  • (v0.9.8 had an incorrect dist)

v0.9.7

21 Jan 11:51
Compare
Choose a tag to compare
  • Spec change (1.1): Rename edges_foldAngles -> edges_foldAngle and edges_lengths -> edges_length for consistent pluralization
  • Viewer API improvements:
    • viewer.processInput supports direct FOLD file input, instead of just JSON
    • viewer's examples option is now a dictionary mapping instead of a boolean (and default is a false value, instead of true, which caused crashes)
  • Fix bug in geom.polygonNormal (was ignoring eps argument)

v0.9.6

25 Nov 20:09
Compare
Choose a tag to compare
  • filter.unassignedEdges is now correct (previously returned filter.foldedEdges)
  • filter.edges_vertices_to_vertices_vertices now creates an entry for all vertices, using new filter.numVertices
  • New filter.numType, filter.numVertices, filter.numEdges, filter.numFaces count number of objects of a given type, based on fields that have a key starting with that type_.
  • filter.subdivideCrossingEdges_vertices now copies other edge fields from the old edge into the subdivided edge
  • Thanks to @amandaghassaei for suggesting these changes, via amandaghassaei/OrigamiSimulator@bc0c8be
  • Switch from prepublish to prepare in package.json

v0.9.5

13 Jun 17:38
Compare
Choose a tag to compare
  • Bug fix in duplicate vertex detection
  • Additional warnings in viewer

v0.9.4

17 Apr 14:49
Compare
Choose a tag to compare
  • Rename functions in convert to do less magic and be more intuitively named