Files
vectorcraft/crates/three-d
dotCooCoo 74961dd25e Export 3D Object: mapped graphics export as textures of their faces
Graphics mapped onto a plane or onto Extrude & Bevel's front or back cap
now export as a PNG texture of that face: the face's color with its
graphics drawn over it, flat and unlit, on a mesh of the face's own
triangles with texture coordinates.

- glTF embeds the PNG (TEXCOORD_0, baseColorTexture, clamp sampler).
- USDA reads it through primvars:st, UsdPrimvarReader_float2 and a
  UsdUVTexture connected to diffuseColor; USDZ stores the PNG after the
  layer on a 64-byte boundary.
- OBJ writes vt coordinates and an MTL map_Kd.
- OBJ and USDA write <name>-texture-1.png and so on beside them.
- assets.export3D takes textureSize (128 to 4096, default 1024); one
  export draws at most 67,108,864 texture pixels.
- Faces with the same color, graphics and bounds share one texture, and
  output without graphics is unchanged. Graphics on Revolve's side are
  not exported yet.
2026-11-14 20:15:09 -08:00
..