Releases: edemaine/fold
Releases · edemaine/fold
v0.10.2
- 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 usesFOLD.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
- 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
filter.addVertex
andfilter.addEdge
to add vertices and edges to crease patterns while subdividing as neededfilter.subdivideCrossingEdges_vertices
tweaks to make this happen- Document all of the above
geom.closestIndex
for finding closest point to a point
v0.9.12
v0.9.11
- 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
v0.9.7
- Spec change (1.1): Rename
edges_foldAngles
->edges_foldAngle
andedges_lengths
->edges_length
for consistent pluralization - Viewer API improvements:
viewer.processInput
supports direct FOLD file input, instead of just JSONviewer
'sexamples
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 ignoringeps
argument)
v0.9.6
filter.unassignedEdges
is now correct (previously returnedfilter.foldedEdges
)filter.edges_vertices_to_vertices_vertices
now creates an entry for all vertices, using newfilter.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