FOLD file format for origami models, crease patterns, etc.
vertices_edges
and faces_faces
definitions, null
values, and adds lots of clarifying text.filter.cutEdges
→ filter.splitCuts
, which now automatically splits all cut edges (from FOLD 1.2) into regular boundary edges (from FOLD 1.0/1.1).filter.cutEdges
and filter.joinEdges
to list all cut and join edges respectively.Full Changelog: https://github.com/edemaine/fold/compare/v0.11.6...v0.12.0
filter.cutEdges
(and cp-editor) not properly handling T junctions of cutsfilter.cutEdges
now recomputes vertices_vertices
if it exists, instead of just discarding itFull Changelog: https://github.com/edemaine/fold/compare/v0.11.5...v0.11.6
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: https://github.com/edemaine/fold/compare/v0.11.4...v0.11.5
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]
.diagonal-cp
and diagonal-folded
accordingly.Full Changelog: https://github.com/edemaine/fold/compare/v0.11.3...v0.11.4
geom.matrixMatrix
when multiplying nonsquare (e.g. translation) matrix by square (e.g. rotation) matrix or vice versaconvert.flat_folded_geometry
→ geom.flatFoldedGeometry
(for consistency)faces_flatFoldOrientation
output from convert.flatFoldedGeometry
browserify
and coffeeify
bin
directory, removing shebang from file.coffee
and file.js
(fixes #18 and needed for CoffeeScript 2 upgrade)geom.matrixMatrix
: multiply two matricesgeom.matrixVector
: multiple matrix times vectorgeom.matrixInverse
: invert matrixgeom.matrixRotate2D
: 2D rotation matrixgeom.matrixTranslate
: translation matrixgeom.matrixReflectAxis
: reflection through coordinate axisgeom.matrixReflectLine
: reflect through a line segment
geom.reflectPoint
and geom.reflectLine
filter.transform
for applying a transformation matrixfilter.remove
, filter.removeVertex
, filter.removeEdge
, filter.removeFace
for removing a vertex/edge/face by indexconvert.flat_folded_geometry
: convert flat foldable crease pattern into flat folded geometry
fold-convert --flat-fold
, which modifies vertices_coords
and changes creasePattern
class to foldedForm
class.convert.edges_vertices_to_edges_faces_edges
convert.faces_vertices_to_edges
convert.edges_vertices_to_faces_vertices_edges
(#20).FOLD.filter.cutEdges
for cutting apart ("unwelding") edges in 2D crease pattern, using vertices_edges
vertices_edges
manipulators:
FOLD.convert.vertices_edges_to_faces_vertices_edges
FOLD.convert.edges_vertices_to_vertices_edges_sorted
helperFOLD.convert.edges_vertices_to_faces_vertices_edges
helperFOLD.convert.edges_vertices_faces_vertices_to_faces_edges
to FOLD.convert.faces_vertices_to_faces_edges
.FOLD.filter.addVertexLike
similar to FOLD.filter.addEdgeLike
(for vertex duplication)FOLD.filter.addEdgeLike
(for edge duplication)FOLD.convert.deepCopy
for deep copying fold structuresFOLD.filter.numType
(and thus FOLD.filter.numVertices
) to use ..._type
keys when there are no type_...
keys.filter.edges_verticesIncident
to return common vertex when the answer is "yes" (instead of true
), and null
otherwise (instead of false
).