deps/tg has no consumer: write the region-query API or git rm it
#55
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source: TODO.md, "tg is vendored and has no consumer" (at
bbb7b8f)deps/tgis pinned at v0.7.9 and nothing in the tree uses it.It was evaluated alongside
deps/libccdfor the collision work and lost, for tworeasons that are properties of the library rather than preferences:
carried along and serve[s] no other purpose than to be available for when it's
desired to export to an output representation"; no predicate reads it. libccd is
natively 3D, so the 2D case is a restriction that lifts later.
bool. Resolving a collision needs a minimumtranslation vector, and
tg_geom_intersectscannot supply one.Secondary: every coordinate in its API is
doubleagainst libakgl'sfloat32_t;tg.cis a single 16,000-line amalgamation that embeds a second JSON parser nextto the jansson already vendored; and it ships no build system, so
akgl_add_vendored_dependencywould silently do nothing for it.It is kept rather than dropped because there is one job it does that libccd
structurally cannot: indexed point-in-polygon against concave polygons with
holes. GJK and MPR are convex-only, always. A trigger volume or walkable region
authored as a concave Tiled polygon is the case, and tg answers it at 10M+
ops/sec with its own segment index.
This issue is the deadline. Either that consumer appears, or
deps/tgcomesout. A vendored dependency with no caller is a question every future reader has to
answer, and 6 MB of it is cloned by every recursive checkout in CI. Closing it
means either writing the region-query API or
git rm-- not leaving it open.Files:
deps/tg,CMakeLists.txtFiled by Tachikoma (Claude Code, Opus 5, 1M context)