Translate field value segment helper
This commit is contained in:
parent
aa1353d75b
commit
97e43eed46
8 changed files with 188 additions and 10 deletions
|
|
@ -124,10 +124,12 @@ Completed pie chart entry:
|
|||
Completed field value helper entry:
|
||||
|
||||
- `docs/research/translations/shriinivas-fieldvalue-digit-at.md`
|
||||
- Source groups: `Create Decimal`, `Digit At`
|
||||
- Source groups: `Create Decimal`, `Create Segment`, `Digit At`
|
||||
- Verification: decimal glyph geometry matches source with sorted max vertex
|
||||
delta `0.0`; digit scalar helper matches source behavior across four
|
||||
number/position cases by driving `Mesh Line.Count` with the result.
|
||||
delta `0.0`; segment geometry matches horizontal and vertical source cases
|
||||
with sorted max vertex delta `0.0`; digit scalar helper matches source
|
||||
behavior across four number/position cases by driving `Mesh Line.Count` with
|
||||
the result.
|
||||
|
||||
## Extraction Workflow
|
||||
|
||||
|
|
|
|||
|
|
@ -137,6 +137,22 @@ part instead of another anonymous mesh primitive.
|
|||
|
||||
Tiny named parts are not overengineering when they carry stable intent.
|
||||
|
||||
## Field Masks Are Chisels
|
||||
|
||||
You can sculpt simple meshes by combining a regular seed mesh with field masks.
|
||||
`Create Segment` starts with a tiny grid, reads each vertex position, and uses
|
||||
comparisons to decide which corners receive a tip offset.
|
||||
|
||||
The useful pattern is:
|
||||
|
||||
```text
|
||||
regular mesh -> position field -> boolean/math masks -> gated offset -> set position
|
||||
```
|
||||
|
||||
This is how a rectangle becomes a seven-segment bar with pointed ends. No custom
|
||||
mesh coordinates need to be hard-coded; the graph says which local conditions
|
||||
cause movement.
|
||||
|
||||
## Stack Abstractions Carefully
|
||||
|
||||
There are two abstraction layers available:
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
- Source file: `fieldvalue.blend`
|
||||
- Source groups:
|
||||
- `Create Decimal`
|
||||
- `Create Segment`
|
||||
- `Digit At`
|
||||
- Geometry Script recreation:
|
||||
`examples/geometry_script/shriinivas_fieldvalue.py`
|
||||
|
|
@ -16,8 +17,8 @@
|
|||
`Field Value` graph has 176 nodes, so the first honest targets are small
|
||||
helpers: `Create Decimal` and `Digit At`.
|
||||
|
||||
Together they show both sides of a display system: tiny glyph geometry and
|
||||
value-only digit extraction.
|
||||
Together they show the first display-system layers: tiny glyph geometry,
|
||||
field-sculpted segment geometry, and value-only digit extraction.
|
||||
|
||||
## Create Decimal Map
|
||||
|
||||
|
|
@ -60,6 +61,33 @@ Metaphor: the group is a little inspection window sliding over a number. It
|
|||
moves to the requested decimal place, crops the surrounding digits away, then
|
||||
decides whether to round or floor the exposed digit.
|
||||
|
||||
## Create Segment Map
|
||||
|
||||
Source group: `Create Segment`
|
||||
|
||||
Geometry Script group: `VG Create Segment`
|
||||
|
||||
Mechanism:
|
||||
|
||||
- Build a `Grid` with either `2x3` or `3x2` vertices depending on `X Major`.
|
||||
- Read each vertex `Position`.
|
||||
- Split the position into major-axis and secondary-axis coordinates.
|
||||
- Build a tip vector along the major axis:
|
||||
|
||||
```text
|
||||
tip = 0.5 * Sharpness * Secondary Axis Segment Thickness
|
||||
```
|
||||
|
||||
- Detect vertices on the secondary axis and at the positive/negative segment
|
||||
ends.
|
||||
- Push only those gated vertices inward/outward to make pointed segment tips.
|
||||
- Add the user `offset`.
|
||||
- Move the grid vertices with `Set Position`.
|
||||
|
||||
Metaphor: the segment starts as a plain rectangular tile. The position field is
|
||||
a stencil laid over its vertices. The end-corner vertices get pinched into tips,
|
||||
while the middle vertices stay put. It is a chisel, not a sculpting spree.
|
||||
|
||||
## Verification
|
||||
|
||||
Run:
|
||||
|
|
@ -77,6 +105,8 @@ Results from Blender 5.1.1:
|
|||
| Case | Source | Translated | Delta | Status |
|
||||
| --- | ---: | ---: | ---: | --- |
|
||||
| Create Decimal vertices | 32 | 32 | 0.0 | accepted |
|
||||
| Create Segment horizontal vertices | 6 | 6 | 0.0 | accepted |
|
||||
| Create Segment vertical vertices | 6 | 6 | 0.0 | accepted |
|
||||
| Digit At `1234.0`, position `0` | 4 | 4 | 0 | accepted |
|
||||
| Digit At `1234.0`, position `1` | 3 | 3 | 0 | accepted |
|
||||
| Digit At `98765.0`, position `2` | 7 | 7 | 0 | accepted |
|
||||
|
|
@ -94,3 +124,6 @@ Results from Blender 5.1.1:
|
|||
- Tiny glyph marks are still worth isolating as named groups. A decimal point is
|
||||
just a dot, but a named dot with scale and placement controls is a reusable
|
||||
punctuation part.
|
||||
- Field masks can act as chisels. In `Create Segment`, comparisons over
|
||||
position decide which vertices are allowed to move, creating pointed tips
|
||||
without hand-authoring mesh coordinates.
|
||||
|
|
|
|||
Loading…
Reference in a new issue