mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-24 11:23:43 +01:00
With a twist, a band cuts each edge into pieces whose cut corners lie on the art's curve, but the smoothed mesh normals and the 60 degree crease test were worked out on straight chords between the edge's corners. On a curved outline the normals then described quads other than the faces the mesh holds. The corner rule is now one function, cut_corner, which curved_band and smoothed_rows both use, so each piece's smoothed normal comes from the quad that is built. Straight and uncut edges are as before. The test a_twisted_round_bevels_smoothed_normals_follow_its_curved_pieces checks that each smoothed corner of a twisted, rounded bevel on a circle is the mean of the normals of the two faces that meet there, with and without perspective.