Repository navigation
jitterbug 0.1.1
jitterbug v0.1.1
Fixes and checks that close the known gaps in 0.1.0; no API changes.
- Repository: https://github.com/jardarton/jitterbug
- Live web demo: https://jardarton.github.io/jitterbug/
Changes
jb-meshOBJ reader (docs/tools.md): faces of 5 to 1024 corners are now cut into triangles by ear clipping along the dominant axis of the Newell normal rather than fanned from the first corner, handling concave faces while keeping the previous fan on strictly convex ones (triangles and quads bypass ear clipping and its area and normal checks; collinear corners can change the triangulation). Faces of 5 to 1024 corners with zero area or a non-finite normal (a face of N corners with no area), uncuttable 5–1024-corner faces (a face of N corners that cannot be cut into triangles (does it cross itself?)), faces with more than 1024 corners, and emptyusemtl/newmtlnames are refused withpath:line. Backslash line continuations now work before CRLF as well as LF;#onusemtl,newmtlandmtlliblines starts a comment only when preceded by a space or tab and followed by a space, a tab or the end of the line (keeping names such asMaterial #1andmat#1whole; only numeric directives andfstop at any#beginning a token,map_Kdonly records that a texture was mentioned, and unknown directives are ignored).- Browser checks in
nix flake check(docs/testing.md):checks.<system>.browser-demoandchecks.<system>.browser-first-lightnow runexamples/*/web/check-browser.mjsin headless Chromium in the Nix sandbox onx86_64-linuxandaarch64-linux(not in hosted CI). The scripts check frame advancement by default (any non-emptyJB_CHECK_FPSvalue, e.g.JB_CHECK_FPS=1, adds a check expecting 30–70 frames of advance between two samples about a second apart when run by hand) and fail cleanly if Chromium or its DevTools connection drops. - CMake install and relocatability (docs/getting-started.md): with install rules enabled (the root with
JB_INSTALL=ON, and each tool withJB_INSTALL=ONandJB_TOOLS=ON), a-DJB_SANITIZE=ONbuild now refuses installation before copying any files, including when installing a tool directory alone. AcrossCMAKE_INSTALL_LIBDIR,INCLUDEDIR,BINDIRandDATADIR, relative destinations always followcmake --install --prefix, and if every absolute destination passes a lexical inside-prefix check againstCMAKE_INSTALL_PREFIX(mixing relative and absolute-inside-prefix is allowed), the absolute destinations are rewritten relative to the prefix so the install and CMake package remain relocatable; if any absolute destination fails the check, none of the absolute destinations is rewritten. Independently,jitterbug.pcderives eligible library and header paths from${pcfiledir}on its own. The containment check rejects..in either path rather than resolving it. - Native arm64 verification (docs/determinism.md): the
aarch64-linuxflake check suite as it stood before the browser checks were added, plus 20 repeated rebuilds of the threadedclangcheck, passed in an Apple silicon NixOS virtual machine (aarch64-linux).
The source tarball is the tracked tree at v0.1.1 (nix build .#source); check it with sha256sum -c jitterbug-0.1.1.tar.gz.sha256.