Revolve: closed subpaths close the cut sides with what the fill rule fills

The closed subpaths of a profile now close a partial sweep's cut sides
together, with the area the object's fill rule fills, instead of one
region per subpath marked as a hole by most of its edges. Two closed
subpaths that overlap with only a corner inside each other no longer
fill their overlap under the even-odd rule, and under the nonzero rule
the overlap is filled once.

The cut-side regions are taken after the profile gets the anchor where
a mapped side is cut, so the cut sides kept for a mesh have a corner at
every corner of the edge they share with the side.
This commit is contained in:
dotCooCoo
2026-11-15 12:20:09 -08:00
parent 1caffdf463
commit a191b0dae5
4 changed files with 146 additions and 95 deletions
+3 -3
View File
@@ -4164,9 +4164,9 @@ default 0), `ambient` (Ambient Light, 0..200%, default 25; an earlier `lightAzim
as the same light), `cap` (boolean, default true), and `expandVisibleOnly` (boolean, default true). A vertical-line profile needs a positive offset to have a radius.
`cap` closes each circular endpoint of an open profile with one curved, uniformly shaded
vector path. Body faces share that curved rim. Partial sweeps use sectors, and `cap` also closes their two
angular cut sides with flat faces: the region between each open subpath and the axis and the area of each closed
subpath, one face for each region. A closed subpath that walls a hole under the object's fill rule leaves that
hole open.
angular cut sides with flat faces: the region between each open subpath and the axis and the area the closed
subpaths fill together under the object's fill rule, one face for each region. A closed subpath that walls a hole
leaves that hole open, and an overlap of closed subpaths is filled or left open as the fill rule fills it.
Exported 3D meshes include the cut sides.
Missing `cap` enables caps; set it to false for open endpoints and open cut sides (hollow). Shaded Revolve surfaces automatically interpolate curved-surface lighting with vector gradients while preserving profile corners and flat caps. There is no separate smoothing parameter. `shade: false` disables all lighting. Visibility of intersecting surfaces is approximate.
`lights` is null by default, retaining the earlier single-light controls. Set an array of one to ten objects to replace that light: `{color: "#rrggbb", intensity: 0..100, rotation: -180..180, height: 0..90, softness: 0..100, behind: bool}`. Defaults per light are white, 80%, 125.26 degrees, 30 degrees, 0%, false. Omitted fields use defaults; unknown nested keys and malformed lists are refused before mutation. `ambient` is shared and counted once. Set `lights: null` to restore the earlier controls. The list is saved in the native file and survives preview, undo and expansion.
+6 -4
View File
@@ -80,10 +80,12 @@ An endpoint on the axis needs no cap. Each open subpath of a compound profile is
With an Angle below 360°, Cap also closes the two angular cut sides, so the object appears solid; with Cap
off it is hollow ([Revolve options](https://web.archive.org/web/20210601162814/https://helpx.adobe.com/pdf/illustrator_reference.pdf#page=185)).
Each cut side is flat and uniformly shaded, and is drawn in depth order with the rest of the surface. It covers the
region between each open subpath and the axis, and the area each closed subpath encloses, with one face for each
region. A closed subpath that walls a hole under the object's fill rule leaves that hole open in the face of the
region around it, and the other regions are filled. A self-intersecting subpath fills what the nonzero rule fills,
with one face for each loop it encloses; this is VectorCraft's own rule. A cut side seen edge on is not drawn.
region between each open subpath and the axis, and the area the closed subpaths fill together under the object's
fill rule, with one face for each region. A closed subpath that walls a hole leaves that hole open in the face of
the region around it, and where closed subpaths overlap, the overlap is filled or left open as the fill rule fills
it. A self-intersecting open subpath, or a self-intersecting closed subpath that is the only closed one, fills what
the nonzero rule fills, with one face for each loop it encloses; this is VectorCraft's own rule. A cut side seen edge
on is not drawn.
The cut sides appear in preview, SVG/PDF export, Expand Appearance, Expand as Wireframes, Revolve (Classic) and
exported 3D meshes. Cap does not make intersecting profiles into a watertight solid.