Commit Graph
18 Commits
Author SHA1 Message Date
dotCooCoo cb96dc123a Merge main into feat/3d-graphics-inflate 2026-11-19 04:53:50 -08:00
dotCooCoo 52e959d4be 3D (Classic): Map Art keeps to the limits the art draws within
- When any solid's mapped art passes the shared limits, every solid in
  the effect draws without its mapped art, so Invisible Geometry hides
  all of them or none.
- A revolved group lists its surfaces with the members' shared curve
  sampling, and an extruded group lists none past the faces of one
  object.
- Commands refuse art on walls, bevels and Revolve's side whose curves,
  cut into straight pieces at the map's scale and placed about the
  surface's center, pass 400,000 points. Caps are not counted.
- Each contour's bounds test counts as a cut, in Map Art and in the side
  graphics.
- On a facet whose curved edge bows out of its cell, the art reaches the
  whole facet.
- A bevel as deep as the solid leaves no walls, and its bevels take the
  numbers after the caps.
- Surfaces past the face limit are refused as the side is.
- threeD.mapArt keeps a deleted symbol only while the request leaves
  `symbol` out.
2026-11-18 16:25:43 -08:00
dotCooCoo 86f821754f Merge main into feat/3d-graphics-inflate 2026-11-18 06:16:38 -08:00
dotCooCoo 19b5ca1869 Merge main into feat/3d-classic-map-art 2026-11-18 01:15:52 -08:00
dotCooCoo 76a36e482f Map Art: name the group member whose side Revolve (Classic) maps
On a group, Revolve (Classic) has one surface: the side of the member
with the longest profile. docs/mcp.md and the threeD.mapArt params text
now say so, and that the other members take no map.
2026-11-15 20:19:17 -08:00
dotCooCoo b409e13924 Map Art: art left out frees its allowance, and the dialog draws the art in its box's proportions
- Mapped art that goes past a limit is left out together with the paint
  copies and points it would have taken, so a later solid's or appearance
  item's map still draws.
- The surface list collects every surface's outline in one pass over the
  facets.
- The Map Art dialog draws the mapped symbol stretched to its box, as its
  map scales it, and renders it at most 1,024 pixels on a side. Symbol
  thumbnails are bounded the same way.
- The params text and docs/mcp.md say that a hollow solid (cap false) has
  no caps, so its numbering starts at its first side wall.
2026-11-15 19:34:49 -08:00
dotCooCoo 441e8f58ee Map Art: a map past the surface count can be removed, and 64 maps fill the dialog
- The flattened symbol points and the points drawn on faces are counted
  apart, so the art drawn on earlier surfaces no longer uses up the next
  symbol's 400,000-point allowance and drops every map.
- `threeD.mapArt` with `symbol: null` removes a map kept past the
  object's surface count (for example after Depth goes to 0); a surface
  past the count without a map is still refused.
- The Map Art dialog's Symbol menu is unavailable on an unmapped surface
  while the object already has its 64 maps, so no 65th map is written.
- docs: the Feature areas rows no longer list Map Art as missing, and
  three-d.md no longer calls 3D export unbuilt.
2026-11-15 08:48:11 -08:00
dotCooCoo f6ea57442b Map Art: symbol null with placement values is refused, and Invisible Geometry hides every revolved member
threeD.mapArt refuses `symbol: null` given with x, y, scaleX, scaleY,
rotation or fit true instead of ignoring those values. With Invisible
Geometry, every member of a revolved group leaves its faces out once the
mapped art on the longest member's side does; Wireframe still draws them.
A new test pastes a mapped object into another document, one of them
holding other art under the same symbol name. The catalog gives the x and
y range for both classic effects, the help links point at the Map Art
page, and docs/gaps.md and docs/effects-parity.md no longer list Map Art
as missing.
2026-11-15 07:21:57 -08:00
dotCooCoo 55fd56acf4 Merge main into feat/3d-classic-map-art 2026-11-15 06:25:08 -08:00
dotCooCoo c17e5395e0 Merge main into feat/3d-graphics-extrude-side 2026-11-14 22:57:20 -08:00
dotCooCoo 2ffaa673fe 3D and Materials: graphics map onto Inflate objects
A Materials-tab graphic now lies on Inflate's puffed front, and on its
puffed back when Both sides and Cap are on. The graphic is placed in the
art's plane with the same X, Y, Scale and Rotation as on a cap and is
carried straight out onto the puff, so it follows the membrane; Twist and
Taper turn and shrink the back's graphics with it. The membrane is cut
into triangles that draw their part of the graphic shaded with them and
only where the outside faces the viewer, in Revolve's side order with its
seams and limits. The blue handle sits on the puffed face.

threeD.mapGraphic refuses a back graphic on Inflate without Both sides
and Cap, and changing the type to Inflate keeps the graphics. The panel
note, the params text and docs/three-d.md, docs/mcp.md and
docs/effects-parity.md list Inflate.
2026-11-14 22:12:33 -08:00
dotCooCoo e7dfd70367 3D: graphics map onto Extrude & Bevel's walls and bevels
A graphic's face can be `side` on Extrude & Bevel. The side is unrolled
flat: x runs along the art's own outline, through corners and curves,
clockwise from the top of the outline's middle line, and y runs from
the front edge toward the back, across the bevel steps and the walls.
Twist and taper carry the graphic with the side. Each piece of the side
that faces the viewer draws the part of the graphic that falls on it,
shaded as the piece is, as on Revolve's side.

The graphics go once, on the solid with the longest outline. A hollow
object takes side graphics. The Materials tab offers Side beside Front
and Back, and the blue handle moves a side graphic over the visible
part of the side. Plane and Revolve drop side graphics on a type
change. threeD.mapGraphic fits a new side graphic inside the side
unrolled.
2026-11-14 14:58:58 -08:00
dotCooCoo b2b775b26f 3D (Classic): Map Art maps symbols onto Extrude & Bevel and Revolve surfaces
Extrude & Bevel (Classic) and Revolve (Classic) get a Map Art… button on
their Object tab. Map Art picks a numbered surface (first, previous,
next, last, a number field and the count, with a visible or hidden mark
and a red outline on the artboard while Preview is on), maps one
document symbol onto it, and moves, scales and rotates the art on the
surface laid out flat. Scale to Fit, Clear, Clear All, Shade Artwork and
Invisible Geometry work on the maps. Rotate (Classic) takes none.

The maps are the effects' mapArt, mapShade and mapInvisible parameters.
They are drawn on the canvas, in exports and by Expand Appearance, a map
past the surface count is ignored, renaming a symbol renames it in the
maps, copying an object brings their symbols, and Select All Unused
counts them as used. threeD.mapArt sets, edits or removes a surface's
map and refuses bad surfaces, unknown symbols and out-of-range values,
with no undo step when nothing changes.

Docs: docs/mcp.md, docs/three-d.md, docs/effects-parity.md.
2026-11-14 10:30:57 -08:00
dotCooCoo 01043c05cd Graphs: paint, stroke and transparency commands leave a design's art in a series out
The graph draws the art of a column or marker design in a series again
from the design when its data, type or designs change, and an edit made
to that art is lost.

- stroke.set, stroke.weightUp, stroke.weightDown, stroke.setAdvanced,
  paint.editGradient, paint.setGradientGeom, object.setOverprint,
  paint.swap, paint.default, and paint.invert and paint.complement with
  an item leave the art out and edit the other objects given.
- transparency.set without an item, the paint.freeform.* commands that
  edit points and lines, graphicStyle.breakLink and
  effect.expandAppearance are an error when all their objects are
  design art. Expand Appearance is disabled for a selection of only
  design art, and it leaves the design art inside a selected graph or
  series group as it was.
- When the first selected object is design art, the commands do not
  use the Appearance panel's active row, which is a row of that art.
- The error names the command that ran.

docs/mcp.md lists the commands. The params texts of the appearance.*
commands and graphicStyle.apply name the rule, and the Graph column
designs entry in docs/target-app-parity.md states it.
2026-11-13 17:49:07 -08:00
dotCooCoo 0d26724a7c Graphs: Appearance and effect commands leave a design's art in a series out
A graph draws the art of a column or marker design inside a series again
from the stored design. Rows, effects and graphic styles that a command
gave that art were lost the next time the graph's data, type or size
changed. The paint commands already left the art out.

- The appearance.* row and whole-appearance commands, effect.apply,
  appearance.addEffect and the effect.* commands that edit, move or
  remove an effect, threeD.mapGraphic, graphicStyle.apply,
  graphicStyle.addFromLibrary with apply, transparency.set with a fill
  or stroke item, and appearance.copyFrom (as the target) leave out any
  object inside a series group other than a path directly in it, given
  by id, selected or reached through target: "contents". They edit the
  other objects given, and a command whose objects are all design art
  is an error.
- appearance.transfer with design art as its target, or as its source
  without copy, is an error.
- A Pathfinder effect no longer groups selected design art.
- The paint commands given a design's copy with a fill or stroke item
  leave it out as well.

docs/mcp.md states the rule, and the Graphs line in
docs/target-app-parity.md names it.
2026-11-13 14:51:31 -08:00
dotCooCoo 1517c81262 3D and Materials: wrap graphics around the side of Revolve objects
The Materials tab and threeD.mapGraphic now map graphics onto
Revolve's swept side, unrolled flat: x runs around the axis (the
angle times the profile's distance from the axis at that point) and
y along the profile. A graphic keeps its size at every distance from
the axis, so it reaches farther around where the profile comes nearer
the axis. Each face of the side draws the part that falls on it: a
graphic narrows toward the silhouette, follows the profile along its
length, is shaded with the surface (several lights included) and is
hidden where the side faces away. A part that runs past the end of
the profile reaches the curved rim and stops there. The middle of the
side faces the viewer with the axis on either edge. On a compound
profile or a group the graphics go on the longest contour.

- three-d: with Revolve::map_surface set, side faces carry a
  SurfaceCell (corners on the page and on the unrolled side, whether
  the outside faces the viewer) and a closed profile off the axis
  takes an anchor where its side is cut; without it the faces are as
  before. revolve_surface_size gives the side's size for a new
  graphic's fit.
- effects: Revolve takes `graphics` (front only); surface_parts cuts
  and maps them per face; curves are cut into straight pieces one at
  a time, and commands refuse graphics past the point limits;
  switching between Extrude, Plane and Revolve keeps the front's
  graphics.
- The Materials tab hides Face for Revolve; params text, docs/mcp.md,
  docs/three-d.md and the progress docs describe the change.
- i18n: the complete-message catalogs translate the three new
  refusals in place of the planar-faces refusal they replace, and ja,
  es, zh-hans and zh-hant translate the Materials tab's label.
2026-11-13 05:06:03 -08:00
dotCooCoo af7c5d0432 3D: check an object's solids after the geometry effects before the effect
Validation built the Extrude & Bevel, Inflate and Rotate solids from the
stored shape, while drawing, Export 3D Object and Expand as Wireframes
build them after the geometry effects before the 3D effect. A Transform
effect with copies before Extrude & Bevel could pass the check and then
draw the source art. Validation now reshapes the object, the fill or
stroke, or a group's members with those effects first.

validate_three_d_at and validate_three_d_at_in take the effect's index
for an effect on the object too, so an edit checks the effects before
that effect, and effect.apply checks a new effect after the others.
2026-11-12 21:47:53 -08:00
dotCooCoo c3f7357ec2 3D and Materials: map graphics onto the planar faces of 3D objects
The Materials tab of the 3D and Materials panel lists the document's
graphics (symbols). Add as Single Graphic keeps the selected art as a
new symbol (threeD.addGraphic), and clicking a thumbnail maps it onto
the front of each selected object's 3D effect (threeD.mapGraphic) in
one undo step. The tab lists the mapped graphics with Face, X, Y, Scale
and Rotation and Remove Graphic, and a handle on the artboard drags a
graphic over its face.

The graphics are the new `graphics` parameter of threeD.extrude and
threeD.rotate: drawn on Extrude & Bevel's front and back caps and on
the Plane type, turned, foreshortened, twisted and tapered with the
face, shaded with its light and clipped to it. Symbol renames follow
into the graphics, and Select All Unused counts a symbol a graphic uses.

Docs: docs/mcp.md, docs/three-d.md, docs/effects-parity.md.
2026-11-12 10:31:37 -08:00