Commit Graph
146 Commits
Author SHA1 Message Date
bflatastic aa853ad275 Merge main into #8741
# Conflicts:
#	docs/effects-parity.md
#	docs/three-d.md
2026-11-20 06:07:45 +07:00
dotCooCoo 3fb77f58bb Merge main into feat/3d-custom-bevels 2026-11-19 04:54:39 -08:00
dotCooCoo cb96dc123a Merge main into feat/3d-graphics-inflate 2026-11-19 04:53:50 -08:00
BFlat 3892841db0 Merge pull request #8511 from dotCooCoo/fix/export3d-revolve-side-graphics
3D: Export 3D Object writes the art mapped onto a Revolve's side
2026-11-19 15:00:20 +07:00
dotCooCoo db1442db8a Merge main into feat/3d-custom-bevels 2026-11-18 23:53:53 -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 877befe5a6 3D: Revolve's drawn faces and exported mesh share one side-corner helper
The canvas faces and the exported side mesh each worked out where a
side quad's four corners lie on the unrolled surface. Both now call
surface_corners, so the two keep the same corner order and formula.
2026-11-18 16:04:41 -08:00
dotCooCoo 8ea7d2155c Merge main into fix/export3d-revolve-side-graphics 2026-11-18 07:39:59 -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 935558d489 Merge main into feat/3d-graphics-inflate 2026-11-17 22:21:50 -08:00
BFlat 1350204bfd Merge pull request #7706 from dotCooCoo/feat/3d-graphics-extrude-side
3D: graphics map onto Extrude & Bevel's walls and bevels
2026-11-18 13:13:27 +07:00
dotCooCoo ac6a625d52 Merge main into feat/3d-classic-map-art 2026-11-17 22:03:18 -08:00
dotCooCoo 6016f40cf6 Map Art: a wall set out by a bevel is laid out at its own length
The side surfaces were measured along the traced outline, so with a bevel
added around the shape each wall's art was stretched by the bevel's width
at both ends. Walls are now measured on the ring at the walls' inset, and
a bevel band takes the length of the wall below it. Docs: docs/three-d.md,
docs/mcp.md.
2026-11-17 22:03:06 -08:00
BFlat bbf6165fc8 Merge pull request #8206 from dotCooCoo/feat/packaging-fold-preview
Packaging Tools: Fold Preview folds the blank in 3D with the printed art on its panels
2026-11-18 10:30:50 +07:00
dotCooCoo 7f4e3077f0 3D: Export 3D Object writes the art mapped onto a Revolve's side
Export 3D Object wrote a Revolve as one plain mesh, so graphics mapped
onto its side were left out of the file. The side's triangles are now a
mesh of their own with a PNG texture, as Extrude & Bevel's caps and the
plane already export.

- three-d: revolve_mesh_surface gives, for each triangle of the side,
  the point of the unrolled side each corner shows, from the same layout
  the drawn faces carry (SurfaceCell): around the axis, the angle times
  the distance from it; along the profile, its length. End caps, cut
  sides and other contours of a compound profile carry none.
- effects: a Revolve with graphics splits its mesh into the side, with
  those points as its MeshGraphics art about the side's middle, and the
  rest. In a group, the graphics go on the side of the member with the
  longest profile, as the canvas draws them. A Revolve without graphics
  builds the same single mesh as before.
- The params text of assets.export3D, docs/mcp.md and the progress line
  in docs/target-app-parity.md describe the side textures.
2026-11-17 18:46:19 -08:00
dotCooCoo eb040a8390 Merge main into feat/3d-custom-bevels 2026-11-17 12:41:57 -08:00
dotCooCoo 8920f81410 Merge main into feat/3d-graphics-extrude-side 2026-11-17 12:41:57 -08:00
dotCooCoo 848633a629 Merge main into feat/3d-classic-map-art 2026-11-17 12:37:23 -08:00
dotCooCoo f0305c87a6 Merge main into feat/3d-graphics-inflate 2026-11-17 12:33:11 -08:00
BFlat aab753f4f2 Merge pull request #7819 from dotCooCoo/feat/textures-map-art-and-shading
Export 3D Object: mapped graphics export as textures of their faces
2026-11-18 03:23:34 +07:00
dotCooCoo 4a5931641a 3D: test that Inflate graphics pass over an ear whose new edge runs through a dent
Adds a test for a ring whose first ear's new edge runs through a dent's corner: the ear is passed over, so no triangle edge runs through a corner of the ring.
2026-11-17 05:02:42 -08:00
dotCooCoo 0b87940421 Packaging Tools: Fold Preview halves the print down to one pixel and reads #-named swatches
The print raster stopped after two halvings, so a 2,048-pixel print seen
far out sampled a 512-pixel level and fine art aliased. It is now halved
down to one pixel, and each halving weighs an odd last row or column by
the part of the print it covers, so an edge color does not spread across
a small level.

A swatch whose name starts with # could not be the inside color, and one
named like a hex color drew that hex color. The inside is now looked up
as a swatch first and read as #rrggbb only when no swatch with a plain
color has that name.
2026-11-16 12:26:28 -08:00
dotCooCoo d00e3b6ecd Packaging Tools: Fold Preview picks the print level by a pixel's longer side and draws the board opaque
A print tipped away from the view shrinks up and down but not across, so
the level of the print raster is now chosen by the longer of a pixel's
two sides in flat terms, not its width alone, and fine print lines no
longer alias when the view is tipped.

The board's inside and outside colors were premultiplied by their alpha
and then drawn with full alpha, so a see-through color drew darker
instead. The depth buffer treats every panel as opaque, so the board is
now drawn opaque in its colors' RGB and their alpha is not used.

The tray test now checks that each wall's print faces away from the base
on its own side and that the walls fold below the base.
2026-11-16 12:26:28 -08:00
dotCooCoo cd33666045 Merge main into feat/3d-custom-bevels 2026-11-16 10:35:47 -08:00
dotCooCoo 6076b01b1c Merge main into feat/3d-graphics-extrude-side 2026-11-16 10:34:59 -08:00
dotCooCoo ffb1ebea04 Merge main into feat/3d-graphics-inflate 2026-11-16 10:34:24 -08:00
dotCooCoo 4911e102b1 Packaging Tools: Fold Preview folds the blank in 3D with the printed art on its panels
Fold Preview (Object › Plug-ins › Packaging Tools, and the Fold Lines panel's button) shows the
document's blank folded about its largest panel, or the panel double-clicked. Creases and
perforations fold 90° away from the printed side and partial cuts 90° toward it. Each panel
samples a raster of the print, with the fold lines and non-printing layers left out, through its
projective map, with a depth buffer; the back shows the board's inside color. The window has a
Fold slider, seven view presets, orbit, zoom, pan and perspective, and its status line reports a
joint that does not close and panels that pass through each other.

- addon.packaging.fold returns each panel's frame, the hinges with their angle and gap, and the
  collisions. A closing hinge's gap is measured with every hinge folded all the way.
- ui.foldPreview sets the window and rejects values of the wrong kind or out of range; saved
  settings out of range are brought into range.
- The print renders off the UI thread where a worker exists and once per document revision. The
  fold and the view image are worked out again only when the document, the settings or the
  window's size change.
2026-11-16 10:20:36 -08:00
dotCooCoo 9e76750a96 Merge main into feat/3d-classic-map-art 2026-11-16 08:27:46 -08:00
dotCooCoo f54a3faa39 Packaging Tools: Check Fold Lines reports overshooting and stacked fold lines
- A crease that runs past the cut outline by the tolerance or more is
  reported as outside, though its hinge is still built.
- Two lines that fold, of any role, on top of each other are reported as
  duplicate; a line drawn twice is still checked for where it lies.
- Hidden lines are left out in every scope, members of a selected group
  included.
- The ids scope gets its own noCut message.
- The notStraight, ambiguous and summary texts say what the check finds:
  the summary counts hinges, not creases.
- The fold angle fields, which nothing in this change reads, are removed.
- A window drawn as open cut lines stays a hole when a cut line crosses
  it or when slits join it to an outline of open lines, so that three
  lines meet at a corner. Cut lines drawn whole that cross a cell leave
  it material.
- A slot drawn across the outline is a notch, not a hole, as when the
  notch is drawn in the outline; a crease in it lies outside the blank.
- notStraight measures each hinge piece at its farthest point from the
  hinge line instead of at five samples.
- Cut lines drawn on top of each other so many times that the gap search
  would look at more than 16,777,216 pairs are reported as tooComplex
  before the search.
2026-11-16 04:10:41 -08:00
dotCooCoo 532d2ea6d7 Packaging Tools: Check Fold Lines finds the panels and hinges of a blank and lists what is wrong
Object › Plug-ins › Packaging Tools › Check Fold Lines, and the Fold Lines
panel's Check button, check the fold lines of the selection, or of the
document while nothing is selected (`addon.packaging.check`).

- Cut lines bound the material: each connected piece that encloses an
  area is one blank, its largest closed cut line is the outline, and a
  closed cut line inside it is a hole. A slot drawn as a rectangle across
  the outline leaves the same material as a notch drawn in it, and an
  outline drawn as several open cut lines works too.
- Creases, partial cuts and perforations divide a blank into panels; the
  pieces between the same two panels form one hinge.
- 15 issue codes, errors and warnings, each naming its lines; cut line
  ends within a tolerance (0.1 pt, 0.01 to 10) are joined and reported as
  a gap. With `select`, the lines the issues name are selected.
- The panel lists the issues in the interface language, with a summary
  line; clicking an issue or its Select button selects its lines. The
  list is kept until the document changes.

`vectorcraft_pathops::adjacency` maps paths as live_paint does and keeps,
for each edge, every input it lies on and the faces on both sides; the
blank model is `vectorcraft_three_d::fold::blanks`. The engine now depends
on vectorcraft-three-d directly.

Docs: docs/mcp.md (Check Fold Lines), crates/pathops/README.md, ROADMAP.
2026-11-16 01:47:15 -08:00
dotCooCoo f2376b05f7 3D: Inflate graphics keep membrane corners on an ear's new edge
With corners kept along a cell's edges, ear clipping could still take an ear whose new edge ran through kept corners, leaving them off every triangle and the triangles beside them flat. Such an ear is now passed over. docs/three-d.md now says that a membrane cell that cannot be cut into triangles makes the object draw without its graphics, and commands refuse them.
2026-11-16 00:13:32 -08:00
dotCooCoo 2c4bd7c88e Merge main into feat/3d-graphics-inflate 2026-11-15 22:16:19 -08:00
dotCooCoo 1d082e161e Merge main into feat/3d-graphics-extrude-side 2026-11-15 22:10:50 -08:00
dotCooCoo 66b0aa4995 Merge main into feat/3d-custom-bevels 2026-11-15 22:09:03 -08:00
dotCooCoo 6e80aa6fc2 Merge main into feat/3d-classic-map-art 2026-11-15 22:08:30 -08:00
dotCooCoo ea42075eb8 Merge main into feat/3d-soft-shadows 2026-11-15 20:12:19 -08:00
dotCooCoo 5a230be1bc Merge main into feat/3d-graphics-extrude-side 2026-11-15 20:02:35 -08:00
dotCooCoo 62204d9897 Merge main into feat/3d-custom-bevels 2026-11-15 19:52:16 -08:00
dotCooCoo 46aa337123 Merge main into feat/3d-graphics-inflate 2026-11-15 19:51:55 -08:00
dotCooCoo 5dea503631 Merge main into feat/3d-classic-map-art 2026-11-15 19:42:25 -08:00
dotCooCoo a191b0dae5 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.
2026-11-15 12:20:09 -08:00
dotCooCoo 0633645f24 Revolve: a cut side whose holes cannot be found within the limit is refused
When the search for holes in a partial sweep's cut sides passes its work
limit, Revolve now reports the profile as too complex instead of closing
the cut sides with every hole filled.
2026-11-15 11:13:18 -08:00
dotCooCoo 3f23c67afe 3D: graphics on Inflate cover cells around a hole
A cell of Inflate's front or back that held a whole hole, or a piece
with more than 128 corners, was drawn as one polygon without the art
points graphics need, so a graphic crossing it left a gap there. With
graphics mapped, such a cell is now cut into triangles with its holes
bridged, keeping the corners along its border that neighboring cells
share, and each triangle carries its art points.

All such cells of one surface share one work budget, and the cut stops
as soon as it passes that budget. A cell whose pieces have more than
4,096 corners, or a surface past the budget, is refused as too complex.
2026-11-15 08:03:58 -08:00
dotCooCoo d1613c6f55 Merge main into feat/3d-graphics-extrude-side 2026-11-15 07:59:16 -08:00
dotCooCoo 7d6d9314d0 Merge main into feat/textures-map-art-and-shading 2026-11-15 07:54:36 -08:00
dotCooCoo 817f258d9d Merge main into feat/revolve-cut-caps 2026-11-15 07:29:26 -08:00
dotCooCoo 9e88bfe698 Revolve: a partial sweep with Cap closes its cut sides
With an Angle below 360 and Cap on, Revolve and Revolve (Classic) now
close the two angular cut sides instead of leaving them open. Each side
is flat and evenly shaded and is drawn in depth order with the rest of
the surface: the region between each open subpath and the axis, and the
area of each closed subpath, one face per region. A subpath that walls
a hole under the object's fill rule leaves the hole open, and a
self-intersecting subpath fills what the nonzero rule fills. The cut
sides appear in preview, SVG/PDF export, Expand Appearance, Expand as
Wireframes, shadows and exported 3D meshes. Cap off keeps the surface
hollow.

Painter visibility now looks for covers over every piece of a face, so
a face drawn as several contours is trimmed where any of them is
covered.

Docs: docs/revolve.md, docs/three-d.md, docs/mcp.md, the
effects-parity row, the Cap tooltip and its catalog rows.
2026-11-15 07:09:57 -08:00
dotCooCoo a46dc5df37 3D: a cap far from the page origin takes no bevel treads for its textures
The mesh face measured mesh points from where art point (0, 0) lands, and
scaled its plane tolerance by that distance. For art about 10 million
points from the page origin the tolerance grew to tens of points, so the
cap-parallel treads of a Step bevel took the cap's mapped graphics.

The face now measures mesh points from the art's center, and the
tolerance follows the solid's size only.
2026-11-15 06:35:32 -08:00
dotCooCoo 55fd56acf4 Merge main into feat/3d-classic-map-art 2026-11-15 06:25:08 -08:00