mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-24 19:36:42 +00:00
Every mesh the 3D effects build now carries texture coordinates for each corner and a part for each triangle (front, back, side, front bevel, back bevel, end cap, cut side). Corners shared by two bands of one bevel take the mean of the bands' normals unless the bevel turns there by 60 degrees or more or a band lies flat toward the front or back, and Inflate's puffed front and back keep the surface's own normals. The vector facets do not change. - Caps, Rotate's plane and Inflate's front and back map the art's bounds; walls and bevels run u along each contour and v from the front cap's edge to the back cap's; Revolve's side runs u around the sweep and v along the profile. - OBJ, glTF and USD write every corner's texture coordinates, not only those of faces with mapped graphics. - Mesh::join checks its index offsets, and joining or exporting a mesh whose lists do not match or that holds a value that is not a number is an error. Docs: docs/three-d.md (3D meshes), docs/mcp.md, docs/effects-parity.md, docs/target-app-parity.md.