mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-19 12:38:18 +00:00
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.
This commit is contained in:
+5
-3
@@ -5073,14 +5073,16 @@ Rotate (Classic) and the other 3D effects take no map.
|
||||
- `surface` is a whole number from 1 to the object's surface count. Extrude & Bevel (Classic) numbers the surfaces
|
||||
through the object's solids in the order they are built: each solid's front cap and back cap, then each side wall
|
||||
from corner to corner of the outline, then the bevel above each wall. A hollow solid (`cap` false) has no caps, so
|
||||
its numbering starts at its first side wall. A side wall is laid out at its own length, and a bevel at the length of
|
||||
its numbering starts at its first side wall, and a solid whose bevel is as deep as the solid has no walls, so its
|
||||
bevels follow its caps. A side wall is laid out at its own length, and a bevel at the length of
|
||||
the wall below it. Revolve (Classic) has one surface, its swept
|
||||
side; on a group it is the side of the member with the longest profile, and the other members take no map. The
|
||||
numbering is VectorCraft's own.
|
||||
- `symbol` names the symbol mapped onto the surface, and `null` removes the surface's map, also a map kept past the
|
||||
object's surface count; `null` with `x`, `y`,
|
||||
`scaleX`, `scaleY`, `rotation` or `fit: true` is refused. Omitted, the surface keeps its map's symbol; a surface with
|
||||
no map then is refused.
|
||||
`scaleX`, `scaleY`, `rotation` or `fit: true` is refused. Omitted, the surface keeps its map's symbol, even one the
|
||||
document no longer has; a surface with no map then is refused. A symbol the document does not have is refused when
|
||||
`symbol` names it.
|
||||
- `x` and `y` (points, -1000000..1000000) place the center of the art from the center of the surface laid out flat,
|
||||
`scaleX` and `scaleY` (1..10000%) scale it from the symbol's own size, and `rotation` (-360..360 degrees) turns it
|
||||
counterclockwise. A new map starts at 0, 0, 100%, 100% and 0°.
|
||||
|
||||
+5
-2
@@ -581,7 +581,8 @@ Rotate (Classic) and the other 3D effects take no map. The command is `threeD.ma
|
||||
|
||||
Extrude & Bevel (Classic) numbers its surfaces through the object's solids in the order they are built (the top fill's
|
||||
solid, then each stroke's): each solid's front cap and back cap, then each side wall from corner to corner of the
|
||||
outline, then the bevel above each wall. An extruded square has six surfaces. A hollow solid has no caps to number.
|
||||
outline, then the bevel above each wall. An extruded square has six surfaces. A hollow solid has no caps to number,
|
||||
and a solid whose bevel is as deep as the solid has no walls.
|
||||
A side wall is laid out at its own length, which a bevel added around the shape makes longer than the outline. A bevel
|
||||
is laid out at the length of the wall below it, so mapped art on a bevel is stretched or squeezed along its edge
|
||||
nearer the cap. Revolve (Classic) has one surface, its swept side, unrolled around the axis as Revolve's graphics are; on a group it is
|
||||
@@ -597,7 +598,9 @@ is VectorCraft's own.
|
||||
Unused counts a symbol a map uses as used.
|
||||
- A map's art follows the rules and limits of a graphic's art ([Graphics](#graphics)). An object takes up to 64 maps,
|
||||
and its maps share the 400,000 path elements of one 3D effect's graphics; past that limit the object draws without
|
||||
its mapped art. The limits and the shading of the mapped art are VectorCraft's own.
|
||||
its mapped art. The art of the maps on walls, bevels and Revolve's side, at each map's scale and with its curves cut
|
||||
into straight pieces, may also take at most 400,000 points together, and commands refuse art past it. The limits and the shading of the mapped art are
|
||||
VectorCraft's own.
|
||||
|
||||
## Parameters (`effect.apply`, `effect.setParams`)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user