Karsten Schmidt is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

postspectacular / toxiclibs.clj http://toxiclibs.org/

A complete rewriting & rethinking exercise of toxiclibs in Clojure

Clone this repository (size: 207.3 KB): HTTPS / SSH
hg clone https://bitbucket.org/postspectacular/toxiclibs.clj
hg clone ssh://hg@bitbucket.org/postspectacular/toxiclibs.clj

Searching for commits

Mercurial supports a functional language for selecting a set of revisions.

The language supports a number of predicates which are joined by infix operators. Parenthesis can be used for grouping.

Identifiers such as branch names must be quoted with single or double quotes if they contain characters outside of [._a-zA-Z0-9\x80-\xff] or if they match one of the predefined predicates.

Prefix operators

not x
Changesets not in x. Short form is ! x.

Infix operators

x::y

A DAG range, meaning all changesets that are descendants of x and ancestors of y, including x and y themselves. If the first endpoint is left out, this is equivalent to ancestors(y), if the second is left out it is equivalent to descendants(x).

An alternative syntax is x..y.

x:y
All changesets with revision numbers between x and y, both inclusive. Either endpoint can be left out, they default to 0 and tip.
x and y
The intersection of changesets in x and y. Short form is x & y.
x or y
The union of changesets in x and y. There are two alternative short forms: x | y and x + y.
x - y
Changesets in x but not in y.

Predicates

all()
All changesets, the same as 0:tip.
ancestor(single, single)
Greatest common ancestor of the two changesets.
ancestors(set)
Changesets that are ancestors of a changeset in set.
author(string)
Alias for user(string).
bookmark([name])
The named bookmark or all bookmarks.
branch(set)
All changesets belonging to the branches of changesets in set.
children(set)
Child changesets of changesets in set.
closed()
Changeset is closed.
date(interval)
Changesets within the interval, see hg help dates.
descendants(set)
Changesets which are descendants of changesets in set.
file(pattern)
Changesets affecting files matched by pattern.
follow()
An alias for ::. (ancestors of the working copy's first parent).
grep(regex)
Like keyword(string) but accepts a regex. Use grep(r'...') to ensure special escape characters are handled correctly.
head()
Changeset is a named branch head.
heads(set)
Members of set with no children in set.
id(string)
Revision non-ambiguously specified by the given hex string prefix.
keyword(string)
Search commit message, user name, and names of changed files for string.
limit(set, n)
First n members of set.
max(set)
Changeset with highest revision number in set.
merge()
Changeset is a merge changeset.
min(set)
Changeset with lowest revision number in set.
p1([set])
First parent of changesets in set, or the working directory.
p2([set])
Second parent of changesets in set, or the working directory.
parents([set])
The set of all parents for all changesets in set, or the working directory.
present(set)
An empty set, if any revision in set isn't found; otherwise, all revisions in set.
rev(number)
Revision with the given numeric identifier.
roots(set)
Changesets with no parent changeset in set.
tag(name)
The specified tag by name, or all tagged revisions if no name is given.
user(string)
User name is string.

Commits 1–30 of 78

Author Revision Comments Message Labels Date
Karsten Schmidt 0dbf02af5921 renaming toxi.core ns into toxi.macros, renaming IMesh/add-faces into conjf, add-meshes into merge-meshes, better use of destructuring in aabb/->mesh & in trianglemesh3d fn's, adding radius only version for ellipse constructor
Karsten Schmidt 2a5a500081f0 adding union fn to IRect and implementing for Rect, adding unit test, fixing indentation in linestrip2d
Karsten Schmidt f750efc96502 updating linestrip2d/point-on-line to return first or last vertex if t is out of range
Karsten Schmidt a88e4805e139 implementing successive-pairs fn's as fully lazy (no more use of (drop) & (butlast)), making common/edges* fully lazy, updating add2d/sub2d & add3d/sub3d to also accept pure coordinates as arguments
Karsten Schmidt c44acc3d6721 updating ILine protocol and line2d implementation, adding new tests
Karsten Schmidt 065f0591df17 adding apply-to-keys to collections.clj, adding transform/rotate/scale/translate/center-keys* fn's to common.clj, adding first bunch of docstrings to core protocols, implementing more protocols for line2d, linestrip2d, polygon2d, removing version meta from various functions, doing minor changes as proposed by kibitz, updating tests
Karsten Schmidt c4fac5056fde ongoing API simplification/consolidation and introduction of new toxi.geom.common NS for reusable functions, mainly for vertex containers. Added IHeading protocol and moved several fn's into IPath from other protocols, updating unit tests
Karsten Schmidt a47d932c8333 adding extrude & tesselate fn's to IPolygon2D, adding extrude-vertices to line-common, refactoring m3d-add-faces and adding m3d-flip (incl. IFlippable protocol), updating tests
Karsten Schmidt b6cafb6791fa moving generic line related fn's into new toxi.geom.line-common ns, adding IPath protocol and implementing for line2d, linestrip2d & polygon2d, adding new radius-only constructor version for ellipse
Karsten Schmidt 30256369bf4e major structural refactoring:
Karsten Schmidt 19f3bf8c5bdd adding IShape/center method, implementing for polygon2d and adding unit test
Karsten Schmidt 57073a541b3f adding linestrip2d, moving protocol definitions into toxi.geom.core (removing protocols.clj), re-organizing/re-distributing several functions into different protocols (added IIntersectable & IProximity), updating unit tests
Karsten Schmidt 7acd847c9029 bugfix polygon2d/transform to convert vertices into vec3d first before applying matrix, adding unit test for transform fn
Karsten Schmidt 035f1d91a590 Closed branch module-refactor
Branch
module-refactor
Karsten Schmidt 480396c85a4d Merge with module-refactor branch
Karsten Schmidt bc05d4576409 adding toxi.geom.clip ns with clip-convex fn (ported from ConvexPolygonClipper.java)
Branch
module-refactor
Karsten Schmidt 33c55376def3 adding dynamic *header* string to objexport and replacing (apply str …) with clojure.string/join
Branch
module-refactor
Karsten Schmidt 91af749ee7bb Added tag 0.2.0-20120309 for changeset 32c0f1a39439
Branch
module-refactor
Karsten Schmidt 32c0f1a39439 updating project version to 0.2.0-SNAPSHOT
Tag
0.2.0-20120309
Branch
module-refactor
Karsten Schmidt a1fc54d11e4d updating toxi.color files
Branch
module-refactor
Karsten Schmidt 1eef4b7a014e updating all remaining toxi.geom modules & their tests to new project structure, done minor tweaks to various fn's as proposed by kibit
Branch
module-refactor
Karsten Schmidt 338ab38c75e8 moving unique-item-index fn's from toxi.core to new toxi.data.index ns, also moving objexport & trianglemesh3d into new toxi.geom.mesh ns
Branch
module-refactor
Karsten Schmidt 8a784e16a8f3 updating circle, ellipse, rect & polygon2d to new structure, renaming all to-XXX fn's to ->XXX, updating unit tests, adding :dimensions to IRect
Branch
module-refactor
Karsten Schmidt 9176e16bbb8b adding no-arg version to math/random
Branch
module-refactor
Karsten Schmidt 30b35c009825 updating line2d & unit tests
Branch
module-refactor
Karsten Schmidt b5ff8312e5b2 updating .hgignore
Branch
module-refactor
Karsten Schmidt d2b60c25f7a3 started refractoring geom modules to avoid use of (load), finished vec2d/3d so far, incl. updated unit tests
Branch
module-refactor
Karsten Schmidt 473f144b1e95 renaming project into toxiclibs-clj, updating octree and scenegraph test
Karsten Schmidt 05f9f3906d50 adding octree.clj
Karsten Schmidt bd07f038b896 updating unit tests
  1. 1
  2. 2
  3. 3
  4. »