mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-20 06:20:50 +01:00
A drag in the 3D or 2D view draws a rectangle and fills what it selects live; releasing it records one undo step. A click still fills one target, now also in the 2D view. Fill modes gain Polygon (the source quad or n-gon, from the importer's diagonals), and Mesh fills connected geometry. The hit-test picks polygons the rectangle touches or whose center it holds; visible polygons only uses a nearest-triangle buffer next to the eye-depth raster, leaving hidden texture sets out. Polygon fill's properties show its own settings and, by selection, the material, the mask gray, or why it can't fill. Wireframes show while the tool is active without changing the saved toggles. Commands: tool.fillMode takes polygon, tool.fillSelection sets hitTest and visibleOnly, and tool.click takes a screen box, a UV point or a UV box.