Skip to content

armgit / 67.js

Public Imported from GitHub
0

3D engine that AI agents drive

Add weld, triangulate, edge_split, smooth, simple_deform and cast modifiers

Nguyen Xuan An5ebdaf5104c2
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 216fdc15..851b99ea 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,8 @@
## Unreleased
+- Add six whole-mesh modifiers as edits and stack nodes (part of issue #42): `weld`, `triangulate`, `edge_split`, `smooth`, `simple_deform` (twist, bend, taper, stretch) and `cast` (sphere). Each has Blender cases in `tests/fixtures/blender/` that match with no listed difference, `triangulate` and `edge_split` check their output size before building it, and their fields are described in `scene_capabilities` `meshModifiers` so the tool schemas grow by one compact entry. Left for later slices: screw, skin, wireframe, lattice, curve, hook, wave, shrinkwrap, weighted normal, smooth by angle and the other cast shapes. `npm run parity` now prints the modifier coverage.
+
- Add render passes, depth of field and camera motion blur (issue #54, first slice). Render jobs of kind `image` or `stills` take `settings.passes` (`albedo`, `normal`, `emission`, `depth`, `objectId`) and write each as a raw, unantialiased PNG beside the lit image (`render-depth.png`, `frame-3-objectId.png`); depth is 16 bits over 100 m in red and green, object IDs are 24 bits with the part names in the job metrics. In code, `renderer.render({ pass })` draws a pass into its own non-multisampled target. `effects.depthOfField` (`blur`, `focusDistance`) and `effects.motionBlur` (`shutter`) are new recipe effects: fixed sample patterns and a per-pixel rotation from the pixel position, so a seek to a frame repeats the same pixels. They live in the new `67js/addons/camera-effects` entry; the preview installs it, and the core renderer only gains a stage hook and the pass branch (a compiled-out shader feature). Motion blur follows camera tracks only, sampled from time at `motion.start + elapsed - shutter`. Measured on SwiftShader through MCP (`npm run smoke:render-passes`): 8 stills with 5 passes each, then four seeks, all byte-identical to the same frame in the sequence. Temporal anti-aliasing, accumulation and the compositing graph of #54 are not part of this slice.
- Expose clip layers, bone masks and name retargeting through MCP, and morph clips in `createAssetPose` (issue #59, in part). An asset recipe's `motion.layers` (up to 8) plays the file's own clips at motion time with a bone `mask`, `weight`, `speed`, `offset`, `loop`, `additive` with `reference`, `bones` (clip track to another asset node) and `morph`, before tracks and IK, so a character walks and waves at once; everything is checked against the asset and bounded, and a seek equals playing. `morphClipFromGltfAnimation` and a layer's `morphs` put morph weights through `createAssetPose` (masks pick parts by their owning bone), `createAssetLayerEvaluator` serves hosts that stage the pose themselves, and `asset.stagePose` takes `morphWeights`. Add the `robot-walk-wave` task to the agent modeling suite and extend `npm run smoke:character`. Not done: foot tilt on slopes, full-body IK, and rest-pose retargeting from another asset through MCP. Raise `entry:skeleton-pose` to 19,000 and `entry:agent-asset` to 85,200 bytes gzip, and the tool schema budgets by 800 bytes (`scene_apply` to 47,800, `scene_create_asset` to 20,150, total to 190,700).
diff --git a/bench/size/budgets.json b/bench/size/budgets.json
index 212db5cc..9bfc6b1c 100644
--- a/bench/size/budgets.json
+++ b/bench/size/budgets.json
@@ -15,7 +15,7 @@
"entry:sculpt": 2500,
"entry:surface": 10100,
"entry:mesh-query": 15900,
- "entry:mesh": 73200,
+ "entry:mesh": 73800,
"entry:shrinkwrap": 18300,
"entry:surface-attachment": 11800,
"entry:physics": 18000,
diff --git a/bench/tool-cost-budgets.json b/bench/tool-cost-budgets.json
index adde1006..a827cb63 100644
--- a/bench/tool-cost-budgets.json
+++ b/bench/tool-cost-budgets.json
@@ -1,16 +1,16 @@
{
- "measured": "2026-10-31, from scripts/measure-tool-cost.mjs; raised by 800 total and 150 for scene_apply for branch and labels fields (no new tool); raised by 650 total and 80 for scene_apply for clip layers, bone masks and retargeting through MCP; raised by 20 for scene_create and 20 for the scene_capabilities result after merging the expression language with the material graph; was 373388 schema bytes before shared IDs and recipe references; trimmed after the render-passes merge: material graph, depth of field, motion blur and passes details moved to scene_capabilities, budgets set to the measured value plus 0.5% (total 188267, scene_capabilities result 5167)",
- "schemaTotalBytes": 189210,
+ "measured": "2026-10-31, from scripts/measure-tool-cost.mjs; raised by 800 total and 150 for scene_apply for branch and labels fields (no new tool); raised by 650 total and 80 for scene_apply for clip layers, bone masks and retargeting through MCP; raised by 20 for scene_create and 20 for the scene_capabilities result after merging the expression language with the material graph; was 373388 schema bytes before shared IDs and recipe references; trimmed after the render-passes merge: material graph, depth of field, motion blur and passes details moved to scene_capabilities, budgets set to the measured value plus 0.5% (total 188267, scene_capabilities result 5167); then six modifier ops (weld, triangulate, edge_split, smooth, simple_deform, cast) added as one compact schema entry with details in scene_capabilities meshModifiers: total 189731 (budget kept under 190000), mesh_edit 34408, mesh_stack 12040, scene_capabilities result 6145",
+ "schemaTotalBytes": 189800,
"schemaToolBytes": {
"scene_create": 60495,
"scene_apply": 46225,
- "mesh_edit": 33875,
+ "mesh_edit": 34480,
"scene_create_asset": 19450,
- "mesh_stack": 11335
+ "mesh_stack": 12100
},
"schemaOtherToolBytes": 4000,
"resultBytes": {
- "scene_capabilities": 5195,
+ "scene_capabilities": 6200,
"scene_create": 1400,
"scene_inspect": 1400,
"mesh_inspect": 1200,
diff --git a/docs/mesh.md b/docs/mesh.md
index ffb23978..ad23bd70 100644
--- a/docs/mesh.md
+++ b/docs/mesh.md
@@ -197,7 +197,7 @@ These three (and `bevel`, below) work as edits and as stack nodes:
### Modifier stack
-A recipe mesh may carry `stack`, a list of `mirror`, `array`, `solidify`, `bevel`, `subdivide`, `uv_unwrap`, `set_position`, `displace`, `decimate` and `remesh` nodes (up to 16) evaluated after the
+A recipe mesh may carry `stack`, a list of `mirror`, `array`, `solidify`, `bevel`, `subdivide`, `uv_unwrap`, `set_position`, `displace`, `decimate`, `remesh`, `weld`, `triangulate`, `edge_split`, `smooth`, `simple_deform` and `cast` nodes (up to 16) evaluated after the
edits without changing them, as Blender's modifier stack. Every prefix (the edit result, then each node) is cached
by its recipe text in a least-recently-used cache bounded at 64 entries and 64 MiB, so changing a late node reuses
the earlier work. Results list one entry per node with `cached: true` when reused. `meshCacheStats()` reports hits
@@ -206,6 +206,21 @@ and misses. `evaluateMeshStack(mesh, stack, { cache, cacheKey })` runs a stack o
The `mesh_stack` tool sets the whole stack in one revision. `apply: n` moves the first `n` nodes into the edit log,
as Blender's Apply modifier, which leaves the result unchanged.
+### Whole-mesh modifiers
+
+`weld`, `triangulate`, `edge_split`, `smooth`, `simple_deform` and `cast` take no selection and no name, and work as edits or stack nodes. Their fields and defaults are plain data in `MESH_MODIFIER_NOTES` (`src/agent-scene-capabilities.js`), which `scene_capabilities` returns as `meshModifiers`; the code is in `src/mesh-modifiers.js` and `src/mesh-restructure.js`.
+
+| op | fields | does |
+| --- | --- | --- |
+| `weld` | `distance` (0.001) | Merges vertices closer than the distance, as Merge by Distance; faces that collapse go. |
+| `triangulate` | `minVertices` (4) | Cuts faces with that many corners or more into triangles; tags, uv and winding carry over. |
+| `edge_split` | `angle` (30) | Gives each smooth fan of faces its own vertex, so edges bending more than `angle` degrees, and edges shared by three faces, come apart. |
+| `smooth` | `factor` (0.5), `iterations` (1, up to 64) | Moves each vertex `factor / 2` toward the mean of its edge neighbours. |
+| `simple_deform` | `mode`, `axis` (z), `angle` (45) or `factor` (0.5) | Twist and bend take `angle` degrees, taper and stretch take `factor`, both measured over the mesh extent along the axis. A mesh with no extent along it stays as it is. |
+| `cast` | `factor` (0.5), `size` (0) | Blends vertices toward a sphere about the local origin; size 0 uses the mean vertex distance. |
+
+`triangulate` and `edge_split` check their output size before building it, against the same vertex and face limits as the other edits. Each op has cases in `tests/fixtures/blender/cases.json` and matches Blender 5.2 with no listed difference. Not yet: `screw`, `skin`, `wireframe`, `lattice`, `curve`, `hook`, `wave`, `shrinkwrap`, `weighted_normal`, `smooth_by_angle` and `scatter_on_surface` as stack nodes (`instances` already scatters), and cast shapes other than the sphere.
+
### Field expressions
A field expression is plain JSON that computes one number, or one vector, for each point or face of a mesh. It is
diff --git a/docs/parity.md b/docs/parity.md
index 394ee19c..6421e9b7 100644
--- a/docs/parity.md
+++ b/docs/parity.md
@@ -3,6 +3,8 @@
This ledger compares 67.js with each feature in the [Blender 5.2 manual](https://docs.blender.org/manual/en/latest/).
It is the record for the goal in issue #23. Use `npm run parity` to print the coverage of each section.
+Modifier coverage (rows under `Modeling > Modifiers`, from `npm run parity`): 11 done, 16 partial, 33 missing and 1 out of scope, 8 of the done rows compared with Blender, 18% of the in-scope rows done.
+
## How to read it
| Status | Meaning |
@@ -73,41 +75,41 @@ To move to a new Blender release, run `node scripts/parity-manual-snapshot.mjs`.
| Modeling > Modifiers > Generate > Build Modifier | missing | No equivalent. | | |
| Modeling > Modifiers > Generate > Curve to Tube Modifier | partial | `tube` is a geometry type. It is not a stack node. | [modeling](../tests/modeling.test.js) | #45 |
| Modeling > Modifiers > Generate > Decimate Modifier | partial | Collapse mode as `decimate` with a ratio, keeping open boundaries and tag borders; `generateMeshLods`, `generateGeometryLods` and `generateAssetLods` make levels with a measured error. Unsubdivide and planar modes, vertex-group weighting and symmetry are missing. Compared with Blender on 4 shared fixtures by volume, area and Hausdorff distance. | [blender golden](../tests/blender-golden.test.js), [decimate](../tests/mesh-decimate.test.js) | #40 |
-| Modeling > Modifiers > Generate > Edge Split Modifier | missing | No equivalent. `smoothAngle` splits normals by angle. | | #42 |
+| Modeling > Modifiers > Generate > Edge Split Modifier | done | `edge_split` edit and stack node: vertices split along edges bending more than `angle`. Edges marked sharp by hand do not exist in recipes. | [mesh-modifiers](../tests/mesh-modifiers.test.js), [Blender results](../tests/fixtures/blender/golden.json) | |
| Modeling > Modifiers > Generate > Mask Modifier | missing | No equivalent. | | |
| Modeling > Modifiers > Generate > Mesh to Volume Modifier | missing | No volume objects. | | |
| Modeling > Modifiers > Generate > Mirror Modifier | done | Stack node with axis and merge. | [mesh-stack](../tests/mesh-stack.test.js), [Blender results](../tests/fixtures/blender/golden.json) | |
| Modeling > Modifiers > Generate > Multiresolution Modifier | missing | No multiresolution. | | |
| Modeling > Modifiers > Generate > Remesh Modifier | partial | Voxel mode as `remesh` (voxel size or resolution), as an edit or a stack node, compared with Blender on 2 shared fixtures. Blocks, smooth and sharp modes are missing. | [blender golden](../tests/blender-golden.test.js), [decimate](../tests/mesh-decimate.test.js) | #40 |
| Modeling > Modifiers > Generate > Scatter on Surface Modifier | partial | `instances` with a `surface` source scatters a node at seeded, area-weighted points with yaw, scale and normal alignment, and `where` filters them. No minimum distance or density map, and `addons/clutter` and `addons/grass` still scatter in code. | [src/mesh-instances.js](../src/mesh-instances.js), [tests/mesh-fields.test.js](../tests/mesh-fields.test.js) | #42 |
-| Modeling > Modifiers > Generate > Screw Modifier | partial | `lathe` covers a full turn. There is no stack node or screw offset. | | #42 |
-| Modeling > Modifiers > Generate > Skin Modifier | missing | No equivalent. | | #42 |
+| Modeling > Modifiers > Generate > Screw Modifier | partial | `lathe` covers a full turn. There is no stack node or screw offset. Not in the first slice of #42, which took the modifiers agents use most. | | #42 |
+| Modeling > Modifiers > Generate > Skin Modifier | missing | No equivalent. Not in the first slice of #42, which took the modifiers agents use most. | | #42 |
| Modeling > Modifiers > Generate > Solidify Modifier | done | Stack node with thickness, offset and even thickness. | [mesh-stack](../tests/mesh-stack.test.js), [Blender results](../tests/fixtures/blender/golden.json) | |
| Modeling > Modifiers > Generate > Subdivision Surface Modifier | done | `subdivide` edit and stack node: Catmull-Clark to 4 levels, semi-sharp creases, sharp boundaries, tags, UVs. Counts, area and positions match Blender; volume differs under 1% on four cases. | [src/mesh-subdivide.js](../src/mesh-subdivide.js), [tests/blender-golden.test.js](../tests/blender-golden.test.js), [tests/mesh-subdivide.test.js](../tests/mesh-subdivide.test.js), [pebble task](../bench/agent-modeling/tasks.mjs) | #39 |
-| Modeling > Modifiers > Generate > Triangulate Modifier | missing | Render data is triangulated. There is no node that changes the mesh. | | #42 |
+| Modeling > Modifiers > Generate > Triangulate Modifier | done | `triangulate` edit and stack node with `minVertices`. Quads split on the shorter diagonal, larger faces by ear clipping; Blender's method options are not exposed. | [mesh-modifiers](../tests/mesh-modifiers.test.js), [Blender results](../tests/fixtures/blender/golden.json) | |
| Modeling > Modifiers > Generate > Volume to Mesh Modifier | missing | No volume objects. | | |
-| Modeling > Modifiers > Generate > Weld Modifier | partial | `merge_by_distance` is an edit. It is not a stack node. | | #42 |
-| Modeling > Modifiers > Generate > Wireframe Modifier | missing | No equivalent. | | #42 |
+| Modeling > Modifiers > Generate > Weld Modifier | done | `weld` edit and stack node (distance, all vertices). Connected mode and vertex groups are not supported. | [mesh-modifiers](../tests/mesh-modifiers.test.js), [Blender results](../tests/fixtures/blender/golden.json) | |
+| Modeling > Modifiers > Generate > Wireframe Modifier | missing | No equivalent. Not in the first slice of #42, which took the modifiers agents use most. | | #42 |
| Modeling > Modifiers > Deform > Armature Modifier | partial | A node `skin` binds a recipe mesh to an armature with automatic weights, and imported rigs keep GPU skinning. No envelope mode and no hand-edited weights. | [rigging](../tests/rigging.test.js), [skinning](../tests/skinning.test.js) | #46 |
-| Modeling > Modifiers > Deform > Cast Modifier | missing | No equivalent. | | #42 |
-| Modeling > Modifiers > Deform > Curve Modifier | missing | No equivalent. | | #42 |
+| Modeling > Modifiers > Deform > Cast Modifier | partial | `cast` edit and stack node, sphere shape about the origin with `factor` and `size`. No cylinder or cuboid shape, no radius limit, no control object. | [mesh-modifiers](../tests/mesh-modifiers.test.js), [Blender results](../tests/fixtures/blender/golden.json) | #42 |
+| Modeling > Modifiers > Deform > Curve Modifier | missing | No equivalent. Not in the first slice of #42, which took the modifiers agents use most. | | #42 |
| Modeling > Modifiers > Deform > Displace Modifier | done | `displace` edit and stack node with a field as the texture, along the normal or an axis, with strength, midlevel and a face selection. Positions match Blender with a constant and with a Blend texture. | [src/mesh-field-edits.js](../src/mesh-field-edits.js), [tests/blender-golden.test.js](../tests/blender-golden.test.js), [src/mesh-fields.js](../src/mesh-fields.js), [tests/mesh-fields.test.js](../tests/mesh-fields.test.js) | #43 |
-| Modeling > Modifiers > Deform > Hook Modifier | missing | No equivalent. | | #42 |
+| Modeling > Modifiers > Deform > Hook Modifier | missing | No equivalent. Not in the first slice of #42, which took the modifiers agents use most. | | #42 |
| Modeling > Modifiers > Deform > Laplacian Deform Modifier | missing | No equivalent. | | |
-| Modeling > Modifiers > Deform > Lattice Modifier | missing | No lattice. | | #42 |
+| Modeling > Modifiers > Deform > Lattice Modifier | missing | No lattice. Not in the first slice of #42, which took the modifiers agents use most. | | #42 |
| Modeling > Modifiers > Deform > Mesh Deform Modifier | missing | No equivalent. | | |
| Modeling > Modifiers > Deform > Shrinkwrap Modifier | partial | `addons/shrinkwrap` works in code. Recipes can not reach it. | [shrinkwrap](../tests/shrinkwrap.test.js) | #42, #47 |
-| Modeling > Modifiers > Deform > Simple Deform Modifier | missing | No equivalent. | | #42 |
-| Modeling > Modifiers > Deform > Smooth Modifier | missing | No stack node. `addons/sculpt` smooths in code. | | #42 |
+| Modeling > Modifiers > Deform > Simple Deform Modifier | partial | `simple_deform` edit and stack node: twist, bend, taper and stretch about x, y or z over the whole mesh extent. No limits, lock axes, origin object or vertex groups. | [mesh-modifiers](../tests/mesh-modifiers.test.js), [Blender results](../tests/fixtures/blender/golden.json) | #42 |
+| Modeling > Modifiers > Deform > Smooth Modifier | done | `smooth` edit and stack node (factor and iterations over every vertex). Per-axis switches and vertex groups are not supported. | [mesh-modifiers](../tests/mesh-modifiers.test.js), [Blender results](../tests/fixtures/blender/golden.json) | |
| Modeling > Modifiers > Deform > Smooth Corrective Modifier | missing | No equivalent. | | |
| Modeling > Modifiers > Deform > Smooth Laplacian Modifier | missing | No equivalent. | | |
| Modeling > Modifiers > Deform > Surface Deform Modifier | missing | `addons/surface-attachment` binds points, not whole meshes. | | |
| Modeling > Modifiers > Deform > Volume Displace Modifier | missing | No volume objects. | | |
| Modeling > Modifiers > Deform > Warp Modifier | missing | No equivalent. | | |
-| Modeling > Modifiers > Deform > Wave Modifier | missing | No equivalent. | | #42 |
+| Modeling > Modifiers > Deform > Wave Modifier | missing | No equivalent. Not in the first slice of #42, which took the modifiers agents use most. | | #42 |
| Modeling > Modifiers > Normals > Normal Edit Modifier | missing | No equivalent. | | |
-| Modeling > Modifiers > Normals > Weighted Normal Modifier | missing | No equivalent. | | #42 |
-| Modeling > Modifiers > Normals > Smooth By Angle Modifier | partial | `smoothAngle` is a geometry setting. It is not a stack node. | | #42 |
+| Modeling > Modifiers > Normals > Weighted Normal Modifier | missing | No equivalent. Not in the first slice of #42, which took the modifiers agents use most. | | #42 |
+| Modeling > Modifiers > Normals > Smooth By Angle Modifier | partial | `smoothAngle` is a geometry setting. It is not a stack node. Not in the first slice of #42, which took the modifiers agents use most. | | #42 |
| Modeling > Modifiers > Physics > Cloth Modifier | missing | No cloth. | | #62 |
| Modeling > Modifiers > Physics > Collision Modifier | partial | Rapier colliders fitted to recipe geometry as box, ball, capsule, convex hull or trimesh, so a body rests on an authored mesh. | [agent-physics](../tests/agent-physics.test.js) | #61 |
| Modeling > Modifiers > Physics > Dynamic Paint Modifier | missing | No equivalent. | | |
diff --git a/scripts/blender-golden.py b/scripts/blender-golden.py
index e0fccc77..2777bbd8 100644
--- a/scripts/blender-golden.py
+++ b/scripts/blender-golden.py
@@ -417,7 +417,59 @@ def add_remesh(mesh_object, edit, _inputs):
modifier.use_smooth_shade = False
+def add_weld(mesh_object, edit, _inputs):
+ modifier = mesh_object.modifiers.new("Weld", "WELD")
+ modifier.mode = "ALL"
+ modifier.merge_threshold = edit.get("distance", 0.001)
+
+
+def add_triangulate(mesh_object, edit, _inputs):
+ modifier = mesh_object.modifiers.new("Triangulate", "TRIANGULATE")
+ modifier.min_vertices = edit.get("minVertices", 4)
+ modifier.quad_method = "BEAUTY"
+ modifier.ngon_method = "BEAUTY"
+
+
+def add_edge_split(mesh_object, edit, _inputs):
+ modifier = mesh_object.modifiers.new("EdgeSplit", "EDGE_SPLIT")
+ modifier.use_edge_angle = True
+ modifier.use_edge_sharp = False
+ modifier.split_angle = radians(edit.get("angle", 30))
+
+
+def add_smooth(mesh_object, edit, _inputs):
+ modifier = mesh_object.modifiers.new("Smooth", "SMOOTH")
+ modifier.factor = edit.get("factor", 0.5)
+ modifier.iterations = edit.get("iterations", 1)
+
+
+def add_simple_deform(mesh_object, edit, _inputs):
+ modifier = mesh_object.modifiers.new("SimpleDeform", "SIMPLE_DEFORM")
+ modifier.deform_method = edit["mode"].upper()
+ modifier.deform_axis = edit.get("axis", "z").upper()
+ # Blender stores angle and factor in one field, so set only the one this mode uses.
+ if edit["mode"] in ("twist", "bend"):
+ modifier.angle = radians(edit.get("angle", 45))
+ else:
+ modifier.factor = edit.get("factor", 0.5)
+
+
+def add_cast(mesh_object, edit, _inputs):
+ modifier = mesh_object.modifiers.new("Cast", "CAST")
+ modifier.cast_type = "SPHERE"
+ modifier.factor = edit.get("factor", 0.5)
+ modifier.radius = 0
+ modifier.size = edit.get("size", 0)
+ modifier.use_radius_as_size = False
+
+
MODIFIERS = {
+ "weld": add_weld,
+ "triangulate": add_triangulate,
+ "edge_split": add_edge_split,
+ "smooth": add_smooth,
+ "simple_deform": add_simple_deform,
+ "cast": add_cast,
"decimate": add_decimate,
"remesh": add_remesh,
"set_position": add_set_position,
diff --git a/scripts/mcp-server.mjs b/scripts/mcp-server.mjs
index 0f88cba3..6597f079 100644
--- a/scripts/mcp-server.mjs
+++ b/scripts/mcp-server.mjs
@@ -6,6 +6,7 @@ import { setPriority, constants } from 'node:os';
import { resolve } from 'node:path';
import { pathToFileURL } from 'node:url';
import packageMetadata from '../package.json' with { type: 'json' };
+import { MODIFIER_OPERATIONS } from '../src/mesh-operations.js';
import { MATERIAL_PATTERN_TYPES, MATERIAL_MAPPINGS, LIGHTING_SETUP_NAMES, RENDER_PASS_NAMES } from '../src/agent-scene-capabilities.js';
import { MATERIAL_LAYER_SCALAR_RANGES, MATERIAL_LAYER_COLOR_RANGES } from '../src/material-layers.js';
@@ -306,6 +307,12 @@ const stackNodes = [
voxelSize: z.number().positive().optional().describe('Edge of one grid cell. Give this or resolution.'),
resolution: z.number().int().min(4).max(192).optional().describe('Cells along the longest side. Give this or voxelSize.'),
}).describe('Voxel remesh like the Remesh modifier of Blender: a closed quad surface of even cells. The mesh must be closed (fill_holes first); tags and attributes are dropped. Over 192 cells per side or 4 million cells is refused before it runs.'),
+ z.strictObject({
+ op: z.enum(Object.keys(MODIFIER_OPERATIONS)),
+ distance: bounded(0.000001, 1000).optional(), minVertices: z.number().int().min(4).max(4096).optional(), angle: bounded(-3600, 3600).optional(),
+ factor: bounded(-10, 10).optional(), iterations: z.number().int().min(1).max(64).optional(), size: bounded(0, 1e6).optional(),
+ mode: z.enum(['twist', 'bend', 'taper', 'stretch']).optional(), axis: z.enum(['x', 'y', 'z']).optional(),
+ }).describe('Fields per op: scene_capabilities meshModifiers.'),
];
const meshStack = z.array(z.discriminatedUnion('op', stackNodes)).max(16);
const meshEdits = z.array(z.discriminatedUnion('op', [...meshEdit.options, ...stackNodes])).max(64);
@@ -576,7 +583,7 @@ export function createAgentMcpServer(runtime, { version = packageMetadata.versio
register('scene_inspect', 'Read revision, counts and selected nodes. For a recipe with physics, the result lists body final positions, resting times, contacts and sensor enter/leave events. Bounds describe authored geometry rather than shader displacement.', z.strictObject({ ...sessionFields, ids: z.array(identifier).max(4096).optional().describe('Selected node IDs. Omit to inspect scene order.'), kind: z.enum(['meshes', 'hierarchy']).optional().describe('Imported assets only: hierarchy exposes stable source-node IDs and joints.'), offset: z.number().int().min(0).max(4096).optional().describe('Imported assets only: pagination offset.'), limit: z.number().int().min(1).max(4096).optional().describe('Maximum returned node records. Defaults to 64.'), includeBounds: z.boolean().optional().describe('Include world geometry bounds. Defaults to false.') }), readOnly, async argumentsValue => jsonResult(await runtime.inspect(argumentsValue)));
register('mesh_inspect', 'Check recipe geometries as polygon meshes: vertex, edge and face counts, triangles/quads/n-gons, connected and closed parts, face tags (top, bottom, side, left, right, front, back), bounds, and lint problems (non-manifold, inconsistent winding, inverted, degenerate, open, loose) with a suggested fix each. Procedural scenes only. Read-only and cached per geometry.', z.strictObject({ ...sessionFields, geometry: identifier.optional().describe('One geometry ID to check, as in mesh_edit.'), geometries: z.array(identifier).min(1).max(16).optional().describe('Geometry IDs to check. Omit both to check the first 16 geometries.') }), readOnly, async ({ geometry: geometryId, geometries, ...rest }) => jsonResult(await runtime.inspectMeshes({ ...rest, ...(geometries || geometryId ? { geometries: [...(geometries ?? []), ...(geometryId ? [geometryId] : [])] } : {}) })));
register('mesh_edit', 'Append edits to a recipe mesh geometry (or replace its edit log), atomically like scene_apply: extrude, inset, delete, flip, translate with proportional falloff, merge by distance, tag, loop cut, bevel, mirror, array, solidify, UV unwrap, set_position and displace driven by field expressions (math, noise, attributes; also a {"field":expr} selection rule), and booleans (union, difference, intersect) with a primitive cutter. Edits that select no faces or break limits fail without changing the scene. Returns the new revision, render status and the mesh report with per-edit results (faces selected, tags created, size after).', z.strictObject({ ...sessionFields, expectedRevision, geometry: identifier.describe('ID of a geometry with type mesh.'), edits: meshEdits.min(1), replace: z.boolean().optional().describe('Replace the whole edit log instead of appending.') }), edit, async argumentsValue => jsonResult(await runtime.editMesh(argumentsValue)));
- register('mesh_stack', 'Set the non-destructive modifier stack of a recipe mesh geometry (mirror, array, solidify, bevel, uv_unwrap, subdivide, set_position, displace, decimate, remesh), evaluated after its edits with each prefix cached, so changing a late node is cheap. apply: n moves the first n nodes into the edit log, as Blender\'s Apply modifier. Atomic like scene_apply. Returns the revision, render status and mesh report with per-node results.', z.strictObject({ ...sessionFields, expectedRevision, geometry: identifier.describe('ID of a geometry with type mesh.'), stack: meshStack.optional().describe('The whole new stack. Omit to keep the current stack (for example with apply).'), apply: z.number().int().min(0).max(16).optional() }), edit, async argumentsValue => jsonResult(await runtime.setMeshStack(argumentsValue)));
+ register('mesh_stack', 'Set the non-destructive modifier stack of a recipe mesh geometry (mirror, array, solidify, bevel, uv_unwrap, subdivide, set_position, displace, decimate, remesh, weld, triangulate, edge_split, smooth, simple_deform, cast), evaluated after its edits with each prefix cached, so changing a late node is cheap. apply: n moves the first n nodes into the edit log, as Blender\'s Apply modifier. Atomic like scene_apply. Returns the revision, render status and mesh report with per-node results.', z.strictObject({ ...sessionFields, expectedRevision, geometry: identifier.describe('ID of a geometry with type mesh.'), stack: meshStack.optional().describe('The whole new stack. Omit to keep the current stack (for example with apply).'), apply: z.number().int().min(0).max(16).optional() }), edit, async argumentsValue => jsonResult(await runtime.setMeshStack(argumentsValue)));
register('scene_apply', 'Atomically edit transforms, look, camera or materials. Procedural scenes support membership and set-motion authoring. Imported assets support set-root, set-asset-node, set-motion and absolute set-animation sampling. Successful batches increment revision once.', z.strictObject({ ...sessionFields, expectedRevision, operations: z.array(operation).min(1).max(256).describe('Node/material/camera/root/animation commands use flat fields. Motion, look patches and add commands contain nested records. Backend validates each scene mode before publication.'), branch: branchName.optional().describe('Fork: store the result as this branch (up to 8), leaving the scene unchanged.') }), edit, async argumentsValue => jsonResult(await runtime.apply(argumentsValue)));
register('scene_look', 'Render the active scene as a bounded PNG, optionally with part labels. Optional authored motionTime seeks without changing revision; null restores the authored base pose. Omit to retain the last preview pose.', z.strictObject({ ...sessionFields, motionTime: z.number().min(0).max(3600).nullable().optional(), width: z.number().int().min(64).max(1024).default(768).describe('PNG width in pixels.'), height: z.number().int().min(64).max(1024).default(512).describe('PNG height in pixels.'), labels: labelsFlag }), readOnly, async argumentsValue => {
const { data, mimeType, metadata } = await runtime.look(argumentsValue);
diff --git a/scripts/parity-report.mjs b/scripts/parity-report.mjs
index cf237dec..6494f396 100644
--- a/scripts/parity-report.mjs
+++ b/scripts/parity-report.mjs
@@ -20,6 +20,8 @@ function printLine(name, counts) {
console.log(`${''.padEnd(32)}${['done', 'partial', 'missing', 'out', 'compared', 'done%'].map(title => title.padStart(8)).join('')}`);
for (const [section, counts] of sections) printLine(section, counts);
+const modifierRows = manualRows.filter(row => row.path.startsWith('Modeling > Modifiers'));
+printLine(' of which Modifiers', ledgerCoverage(modifierRows).overall);
printLine('All rows', overall);
const unowned = manualRows.filter(row => ['partial', 'missing'].includes(row.status) && row.issues.length === 0);
diff --git a/skills/build-67js-scene/references/mesh-modeling.md b/skills/build-67js-scene/references/mesh-modeling.md
index 4037ae6b..b42770e1 100644
--- a/skills/build-67js-scene/references/mesh-modeling.md
+++ b/skills/build-67js-scene/references/mesh-modeling.md
@@ -209,6 +209,15 @@ an open mesh needs `fill_holes` first. Levels of detail for a part are made in c
] }
```
+Whole-mesh modifiers (no selection, no name) go in the stack or the edit log. `simple_deform` twists or bends (`angle` in degrees) or tapers or stretches (`factor`) about `axis` x, y or z over the mesh's extent along it, so give the mesh enough rings first (`subdivisions` on a box). `smooth` relaxes vertices toward their neighbours (`factor`, `iterations`), `cast` pulls them toward a sphere, `weld` merges vertices closer than `distance`, `edge_split` separates faces along edges sharper than `angle`, and `triangulate` cuts faces into triangles (last, for export). Defaults for each are in `scene_capabilities` `meshModifiers`.
+
+```json
+{ "id": "twisted-column", "type": "mesh", "base": { "type": "box", "bevel": 0, "subdivisions": 8 }, "stack": [
+ { "op": "simple_deform", "mode": "twist", "axis": "y", "angle": 120 },
+ { "op": "smooth", "factor": 0.3, "iterations": 2 }
+] }
+```
+
## Fields: noise, gradients and repeats
A field expression is a small JSON formula over each vertex or face. `displace` and `set_position` take one, and
diff --git a/src/agent-scene-capabilities.js b/src/agent-scene-capabilities.js
index 3c316689..bf23913e 100644
--- a/src/agent-scene-capabilities.js
+++ b/src/agent-scene-capabilities.js
@@ -54,11 +54,22 @@ export const RENDER_PASS_NAMES = Object.freeze(['albedo', 'normal', 'emission',
// Metres that depth pass values 0 to 65535 span, measured from the camera.
export const RENDER_PASS_DEPTH_RANGE = 100;
+// Fields and defaults of the whole-mesh modifiers, which the tool schemas leave out to stay small.
+export const MESH_MODIFIER_NOTES = Object.freeze({
+ weld: 'distance 0.001: merge closer vertices.',
+ triangulate: 'minVertices 4: split faces with that many corners or more.',
+ edge_split: 'angle 30: split edges bending more than this many degrees.',
+ smooth: 'factor 0.5 (-2 to 2) steps toward the neighbour mean; iterations 1 to 64.',
+ simple_deform: 'mode twist or bend use angle (45 degrees), taper or stretch use factor (0.5); axis x, y or z (z).',
+ cast: 'sphere about the origin: factor 0 to 1 (0.5), size radius (0 = mean vertex distance).',
+});
+
export const AGENT_SCENE_CAPABILITIES = Object.freeze({
format: '67js.scene', schemaVersion: 1,
geometryTypes: Object.freeze(['box', 'cylinder', 'sphere', 'torus', 'lathe', 'extrude', 'tube', 'mesh']),
meshEdits: Object.freeze({ operations: Object.freeze(Object.keys(MESH_EDIT_OPERATIONS)), maxEdits: MAX_MESH_EDITS }),
meshStack: Object.freeze({ operations: STACK_OPERATIONS, maxNodes: MAX_STACK_NODES }),
+ meshModifiers: MESH_MODIFIER_NOTES,
fieldExpressions: Object.freeze({
operators: FIELD_OPERATOR_NAMES, attributes: FIELD_ATTRIBUTES,
maxNodes: MAX_FIELD_NODES, maxDepth: MAX_FIELD_DEPTH, maxElements: MAX_FIELD_ELEMENTS,
diff --git a/src/mesh-field-edits.js b/src/mesh-field-edits.js
index a4942802..eca0f8eb 100644
--- a/src/mesh-field-edits.js
+++ b/src/mesh-field-edits.js
@@ -9,7 +9,7 @@ import { selectFaces } from './mesh-select.js';
export const DISPLACE_DIRECTIONS = Object.freeze(['normal', 'x', 'y', 'z']);
const AXIS_DIRECTIONS = new Map([['x', [1, 0, 0]], ['y', [0, 1, 0]], ['z', [0, 0, 1]]]);
-function withPositions(mesh, positions) {
+export function withPositions(mesh, positions) {
return createMeshData({
positions, faceOffsets: mesh.faceOffsets, cornerVertices: mesh.cornerVertices,
edgeVertices: mesh.edgeVertices, cornerEdges: mesh.cornerEdges, attributes: mesh.attributes,
diff --git a/src/mesh-modifiers.js b/src/mesh-modifiers.js
new file mode 100644
index 00000000..2945e648
--- /dev/null
+++ b/src/mesh-modifiers.js
@@ -0,0 +1,194 @@
+import { withPositions } from './mesh-field-edits.js';
+import { mergeByDistance } from './mesh-ops.js';
+import { triangulateFaces, splitSharpEdges } from './mesh-restructure.js';
+import { MODIFIER_OPERATIONS } from './mesh-operations.js';
+
+// The whole-mesh modifiers as recipe operations: validation of their fields and running them on MeshData. Smooth, cast and
+// simple_deform only move vertices; weld, triangulate and edge_split change the faces (see mesh-restructure.js).
+
+export const SIMPLE_DEFORM_MODES = Object.freeze(['twist', 'bend', 'taper', 'stretch']);
+const AXIS_NAMES = Object.freeze({ x: 0, y: 1, z: 2 });
+export const MAX_SMOOTH_ITERATIONS = 64;
+const MINIMUM_FACTOR = 1e-7;
+
+export function isModifierOperation(operation) {
+ return Object.hasOwn(MODIFIER_OPERATIONS, operation);
+}
+
+function integerInRange(value, index, label, minimum, maximum) {
+ if (!Number.isInteger(value) || value < minimum || value > maximum) {
+ throw new TypeError(`Mesh edit ${index} (${label} must be an integer from ${minimum} to ${maximum})`);
+ }
+ return value;
+}
+
+function rejectField(edit, index, field, reason) {
+ if (edit[field] !== undefined) throw new TypeError(`Mesh edit ${index} (${edit.op} ${edit.mode ?? ''} does not take ${field}: ${reason})`);
+}
+
+function normalizeSimpleDeform(edit, normalized, index, finiteNumber) {
+ if (!SIMPLE_DEFORM_MODES.includes(edit.mode)) {
+ throw new TypeError(`Mesh edit ${index} (mode must be one of ${SIMPLE_DEFORM_MODES.join(', ')})`);
+ }
+ normalized.mode = edit.mode;
+ normalized.axis = edit.axis ?? 'z';
+ if (!Object.hasOwn(AXIS_NAMES, normalized.axis)) throw new TypeError(`Mesh edit ${index} (axis must be x, y or z)`);
+ if (edit.mode === 'twist' || edit.mode === 'bend') {
+ rejectField(edit, index, 'factor', 'it uses angle in degrees');
+ normalized.angle = edit.angle === undefined ? 45 : finiteNumber(edit.angle, index, 'angle', { minimum: -3600, maximum: 3600 });
+ return;
+ }
+ rejectField(edit, index, 'angle', 'it uses factor');
+ normalized.factor = edit.factor === undefined ? 0.5 : finiteNumber(edit.factor, index, 'factor', { minimum: -10, maximum: 10 });
+}
+
+/** Fill in `normalized` for a modifier edit, throwing a TypeError that names the edit when a field is wrong. */
+export function normalizeModifierEdit(edit, normalized, index, { finiteNumber }) {
+ switch (edit.op) {
+ case 'weld':
+ normalized.distance = edit.distance === undefined ? 0.001 : finiteNumber(edit.distance, index, 'distance', { minimum: 0, maximum: 1e3, exclusiveMinimum: true });
+ break;
+ case 'triangulate':
+ normalized.minVertices = edit.minVertices === undefined ? 4 : integerInRange(edit.minVertices, index, 'minVertices', 4, 4096);
+ break;
+ case 'edge_split':
+ normalized.angle = edit.angle === undefined ? 30 : finiteNumber(edit.angle, index, 'angle', { minimum: 0, maximum: 180 });
+ break;
+ case 'smooth':
+ normalized.factor = edit.factor === undefined ? 0.5 : finiteNumber(edit.factor, index, 'factor', { minimum: -2, maximum: 2 });
+ normalized.iterations = edit.iterations === undefined ? 1 : integerInRange(edit.iterations, index, 'iterations', 1, MAX_SMOOTH_ITERATIONS);
+ break;
+ case 'simple_deform':
+ normalizeSimpleDeform(edit, normalized, index, finiteNumber);
+ break;
+ case 'cast':
+ normalized.factor = edit.factor === undefined ? 0.5 : finiteNumber(edit.factor, index, 'factor', { minimum: 0, maximum: 1 });
+ normalized.size = edit.size === undefined ? 0 : finiteNumber(edit.size, index, 'size', { minimum: 0, maximum: 1e6 });
+ break;
+ }
+}
+
+/** Laplacian smoothing over the mesh edges, as Blender's Smooth modifier: a step of factor / 2 toward the neighbour mean. */
+function smoothPositions(mesh, { factor, iterations }) {
+ const positions = Float64Array.from(mesh.positions);
+ const sums = new Float64Array(positions.length);
+ const counts = new Uint32Array(mesh.vertexCount);
+ for (let iteration = 0; iteration < iterations; iteration++) {
+ sums.fill(0);
+ counts.fill(0);
+ for (let edge = 0; edge < mesh.edgeCount; edge++) {
+ const first = mesh.edgeVertices[edge * 2];
+ const second = mesh.edgeVertices[edge * 2 + 1];
+ for (let axis = 0; axis < 3; axis++) {
+ sums[first * 3 + axis] += positions[second * 3 + axis];
+ sums[second * 3 + axis] += positions[first * 3 + axis];
+ }
+ counts[first]++;
+ counts[second]++;
+ }
+ for (let vertex = 0; vertex < mesh.vertexCount; vertex++) {
+ if (counts[vertex] === 0) continue;
+ for (let axis = 0; axis < 3; axis++) {
+ const index = vertex * 3 + axis;
+ positions[index] += (factor / 2) * (sums[index] / counts[vertex] - positions[index]);
+ }
+ }
+ }
+ return Float32Array.from(positions);
+}
+
+/** Blend vertices toward a sphere about the local origin. Radius 0 means the mean distance of all vertices. */
+function castPositions(mesh, { factor, size }) {
+ const distances = new Float64Array(mesh.vertexCount);
+ let total = 0;
+ for (let vertex = 0; vertex < mesh.vertexCount; vertex++) {
+ distances[vertex] = Math.hypot(mesh.positions[vertex * 3], mesh.positions[vertex * 3 + 1], mesh.positions[vertex * 3 + 2]);
+ total += distances[vertex];
+ }
+ const radius = size > 0 ? size : total / mesh.vertexCount;
+ const positions = new Float32Array(mesh.positions);
+ for (let vertex = 0; vertex < mesh.vertexCount; vertex++) {
+ if (distances[vertex] === 0) continue;
+ const toward = radius / distances[vertex];
+ for (let axis = 0; axis < 3; axis++) {
+ const index = vertex * 3 + axis;
+ positions[index] = mesh.positions[index] * (1 - factor) + mesh.positions[index] * toward * factor;
+ }
+ }
+ return positions;
+}
+
+/**
+ * The three coordinates a deformation works in, as axis indices. Twist, taper and stretch run along the chosen axis
+ * (the third entry) and use the next two as the cross-section. Bend puts the chosen axis first and measures along z
+ * (or x when the axis is z), matching Blender's Simple Deform.
+ */
+function deformRoles(mode, axis) {
+ if (mode !== 'bend') return [(axis + 1) % 3, (axis + 2) % 3, axis];
+ return [[0, 1, 2], [1, 0, 2], [2, 1, 0]][axis];
+}
+
+function deformPoint(mode, [crossX, crossY, along], rate) {
+ if (mode === 'twist') {
+ const theta = along * rate;
+ return [crossX * Math.cos(theta) - crossY * Math.sin(theta), crossX * Math.sin(theta) + crossY * Math.cos(theta), along];
+ }
+ if (mode === 'taper') {
+ const scale = 1 + along * rate;
+ return [crossX * scale, crossY * scale, along];
+ }
+ if (mode === 'stretch') {
+ const scale = along * along * rate - rate + 1;
+ return [crossX * scale, crossY * scale, along * (1 + rate)];
+ }
+ const theta = along * rate;
+ return [crossX, crossY * Math.cos(theta) + (1 - Math.cos(theta)) / rate, -(crossY - 1 / rate) * Math.sin(theta)];
+}
+
+/** Twist, bend, taper or stretch over the mesh extent along the axis. A mesh with no extent along it stays as it is. */
+function simpleDeformPositions(mesh, { mode, axis, angle, factor }) {
+ const roles = deformRoles(mode, AXIS_NAMES[axis]);
+ let low = Infinity;
+ let high = -Infinity;
+ for (let vertex = 0; vertex < mesh.vertexCount; vertex++) {
+ low = Math.min(low, mesh.positions[vertex * 3 + roles[2]]);
+ high = Math.max(high, mesh.positions[vertex * 3 + roles[2]]);
+ }
+ const span = high - low;
+ const rate = (mode === 'twist' || mode === 'bend' ? angle * Math.PI / 180 : factor) / span;
+ const positions = new Float32Array(mesh.positions);
+ if (!(span > 1e-9) || (mode === 'bend' && Math.abs(rate) < MINIMUM_FACTOR)) return positions;
+ for (let vertex = 0; vertex < mesh.vertexCount; vertex++) {
+ const point = roles.map(role => mesh.positions[vertex * 3 + role]);
+ const moved = deformPoint(mode, point, rate);
+ roles.forEach((role, position) => {
+ positions[vertex * 3 + role] = moved[position];
+ });
+ }
+ return positions;
+}
+
+/** Run a modifier edit. Returns { mesh, result } where result holds the counts to report. */
+export function runModifierEdit(mesh, edit, { maxVertices, maxFaces }) {
+ switch (edit.op) {
+ case 'weld': {
+ const merged = mergeByDistance(mesh, edit.distance);
+ return { mesh: merged.mesh, result: { removedVertices: merged.removedVertices, removedFaces: merged.removedFaces } };
+ }
+ case 'triangulate': {
+ const outcome = triangulateFaces(mesh, { minVertices: edit.minVertices, maxFaces });
+ return { mesh: outcome.mesh, result: { triangulated: outcome.triangulated } };
+ }
+ case 'edge_split': {
+ const outcome = splitSharpEdges(mesh, { angle: edit.angle, maxVertices });
+ return { mesh: outcome.mesh, result: { addedVertices: outcome.addedVertices } };
+ }
+ case 'smooth':
+ return { mesh: withPositions(mesh, smoothPositions(mesh, edit)), result: {} };
+ case 'cast':
+ return { mesh: withPositions(mesh, castPositions(mesh, edit)), result: {} };
+ case 'simple_deform':
+ return { mesh: withPositions(mesh, simpleDeformPositions(mesh, edit)), result: {} };
+ }
+ throw new TypeError(`Not a modifier: ${edit.op}`);
+}
diff --git a/src/mesh-operations.js b/src/mesh-operations.js
index 3ed8bc60..1aeca657 100644
--- a/src/mesh-operations.js
+++ b/src/mesh-operations.js
@@ -3,6 +3,17 @@
export const MAX_MESH_EDITS = 64;
+// Modifiers that work on the whole mesh and take no selection or name. Their fields are checked in mesh-modifiers.js and
+// each one is described for agents by MESH_MODIFIER_NOTES in agent-scene-capabilities.js.
+export const MODIFIER_OPERATIONS = Object.freeze({
+ weld: { fields: ['distance'], tags: [] },
+ triangulate: { fields: ['minVertices'], tags: [] },
+ edge_split: { fields: ['angle'], tags: [] },
+ smooth: { fields: ['factor', 'iterations'], tags: [] },
+ simple_deform: { fields: ['mode', 'axis', 'angle', 'factor'], tags: [] },
+ cast: { fields: ['factor', 'size'], tags: [] },
+});
+
export const MESH_EDIT_OPERATIONS = Object.freeze({
extrude_face_region: { fields: ['select', 'name', 'offset', 'direction', 'alongNormals'], tags: ['cap', 'side'] },
extrude_individual: { fields: ['select', 'name', 'offset', 'direction'], tags: ['cap', 'side'] },
@@ -35,9 +46,11 @@ export const MESH_EDIT_OPERATIONS = Object.freeze({
displace: { fields: ['select', 'field', 'strength', 'midlevel', 'direction'], tags: [] },
decimate: { fields: ['ratio'], tags: [] },
remesh: { fields: ['voxelSize', 'resolution'], tags: [] },
+ ...MODIFIER_OPERATIONS,
});
-export const STACK_OPERATIONS = Object.freeze(['mirror', 'array', 'solidify', 'bevel', 'uv_unwrap', 'subdivide', 'set_position', 'displace', 'decimate', 'remesh']);export const MAX_STACK_NODES = 16;
+export const STACK_OPERATIONS = Object.freeze(['mirror', 'array', 'solidify', 'bevel', 'uv_unwrap', 'subdivide', 'set_position', 'displace', 'decimate', 'remesh', ...Object.keys(MODIFIER_OPERATIONS)]);
+export const MAX_STACK_NODES = 16;
// Field expressions (mesh-fields.js) and instancing (mesh-instances.js): limits and names as plain data. A test
// keeps FIELD_OPERATOR_NAMES equal to the operators the language really has.
diff --git a/src/mesh-recipe.js b/src/mesh-recipe.js
index a6a9f0a6..bdf75c2e 100644
--- a/src/mesh-recipe.js
+++ b/src/mesh-recipe.js
@@ -15,6 +15,7 @@ import { validateField } from './mesh-fields.js';
import { setPosition, displaceMesh, DISPLACE_DIRECTIONS } from './mesh-field-edits.js';
import { subdivideMesh, subdivisionSize, MAX_SUBDIVISION_LEVELS, MAX_CREASE_SHARPNESS } from './mesh-subdivide.js';
import { decimateMesh } from './mesh-decimate.js';
+import { isModifierOperation, normalizeModifierEdit, runModifierEdit } from './mesh-modifiers.js';
import { remeshMesh, remeshGridSize, MAX_REMESH_RESOLUTION } from './mesh-remesh.js';
import { MESH_EDIT_OPERATIONS, MAX_MESH_EDITS, STACK_OPERATIONS, MAX_STACK_NODES } from './mesh-operations.js';
export { MESH_EDIT_OPERATIONS, MAX_MESH_EDITS, STACK_OPERATIONS, MAX_STACK_NODES };
@@ -221,6 +222,7 @@ export function normalizeMeshEdits(edits) {
break;
}
if (CUT_OPERATIONS.includes(edit.op)) normalizeCutEdit(edit, normalized, index, { finiteNumber, vector });
+ if (isModifierOperation(edit.op)) normalizeModifierEdit(edit, normalized, index, { finiteNumber });
return normalized;
});
}
@@ -284,9 +286,19 @@ export function transformMesh(mesh, { translation, rotation, scale }) {
}
/** Run one normalized edit on MeshData and describe what it did. */
-function runEdit(current, edit, index, { resolveCutter }) {
+function runEdit(current, edit, index, { resolveCutter, limits }) {
const result = { op: edit.op };
if (edit.name) result.name = edit.name;
+ if (isModifierOperation(edit.op)) {
+ let outcome;
+ try {
+ outcome = runModifierEdit(current, edit, limits);
+ } catch (error) {
+ throw new error.constructor(`Mesh edit ${index} (${edit.op}): ${error.message}`);
+ }
+ Object.assign(result, outcome.result);
+ return { mesh: outcome.mesh, result };
+ }
if (edit.op === 'boolean') {
if (!resolveCutter) throw new TypeError(`Mesh edit ${index} (boolean) needs a cutter resolver; recipe meshes provide one.`);
let cutter;
@@ -489,7 +501,7 @@ export function applyMeshEdits(mesh, edits, { maxVertices = 250_000, maxFaces =
let current = mesh;
normalized.forEach((edit, index) => {
checkArrayBudget(current, edit, limits, index);
- const outcome = runEdit(current, edit, index, { resolveCutter });
+ const outcome = runEdit(current, edit, index, { resolveCutter, limits });
current = outcome.mesh;
checkBudget(current, limits, index, edit.op);
outcome.result.after = { vertices: current.vertexCount, faces: current.faceCount };
@@ -533,7 +545,7 @@ export function evaluateMeshStack(mesh, stack, { maxVertices = 250_000, maxFaces
result = { ...hit.result, cached: true };
} else {
checkArrayBudget(current, node, limits, index);
- const outcome = runEdit(current, node, index, {});
+ const outcome = runEdit(current, node, index, { limits });
current = outcome.mesh;
checkBudget(current, limits, index, node.op);
outcome.result.after = { vertices: current.vertexCount, faces: current.faceCount };
diff --git a/src/mesh-restructure.js b/src/mesh-restructure.js
new file mode 100644
index 00000000..5a5753b5
--- /dev/null
+++ b/src/mesh-restructure.js
@@ -0,0 +1,149 @@
+import { MeshBuilder } from './mesh-stack.js';
+import { triangulateMesh } from './mesh-render.js';
+import { faceNormals } from './mesh-normals.js';
+import { edgeCornerTable, cornerFaces, UnionFind } from './mesh-topology.js';
+
+// Modifiers that change how a mesh is cut into faces and vertices without moving its surface: triangulate and edge_split.
+// Both are exact (Blender's Triangulate and Edge Split modifiers give the same counts) and both check their output
+// size before allocating it.
+
+const SHARP_TOLERANCE = 1e-6;
+
+function nextCornerInFace(mesh, corner, face) {
+ return corner + 1 === mesh.faceOffsets[face + 1] ? mesh.faceOffsets[face] : corner + 1;
+}
+
+function copyPositions(mesh, builder) {
+ for (let vertex = 0; vertex < mesh.vertexCount; vertex++) {
+ builder.addVertex(mesh.positions[vertex * 3], mesh.positions[vertex * 3 + 1], mesh.positions[vertex * 3 + 2]);
+ }
+}
+
+function sourceCornersOfFace(mesh, face) {
+ const corners = [];
+ for (let corner = mesh.faceOffsets[face]; corner < mesh.faceOffsets[face + 1]; corner++) corners.push(corner);
+ return corners;
+}
+
+function addUnchangedFace(builder, mesh, face) {
+ const corners = sourceCornersOfFace(mesh, face);
+ builder.addFace(corners.map(corner => mesh.cornerVertices[corner]), {
+ sourceFace: face, sourceCorners: corners, sourceEdges: corners.map(corner => mesh.cornerEdges[corner]),
+ });
+}
+
+function addTriangle(builder, mesh, face, triangleCorners) {
+ // An edge of the triangle is a real edge of the face only when its end is the next corner of the face.
+ const sourceEdges = triangleCorners.map((corner, position) => {
+ const following = triangleCorners[(position + 1) % 3];
+ return nextCornerInFace(mesh, corner, face) === following ? mesh.cornerEdges[corner] : -1;
+ });
+ builder.addFace(triangleCorners.map(corner => mesh.cornerVertices[corner]), {
+ sourceFace: face, sourceCorners: triangleCorners, sourceEdges,
+ });
+}
+
+/**
+ * Cut every face with at least `minVertices` corners into triangles (quads along the shorter diagonal, larger faces by
+ * ear clipping), keeping winding, tags and corner attributes. Throws before allocating when the result would pass `maxFaces`.
+ */
+export function triangulateFaces(mesh, { minVertices = 4, maxFaces = Infinity } = {}) {
+ let triangleTotal = 0;
+ for (let face = 0; face < mesh.faceCount; face++) {
+ const size = mesh.faceOffsets[face + 1] - mesh.faceOffsets[face];
+ triangleTotal += size >= minVertices ? size - 2 : 1;
+ }
+ if (triangleTotal > maxFaces) {
+ throw new RangeError(`triangulate would make ${triangleTotal} faces, over the limit of ${maxFaces}.`);
+ }
+ const { triangleCorners, triangleFaces } = triangulateMesh(mesh, faceNormals(mesh).normals);
+ const builder = new MeshBuilder(mesh);
+ copyPositions(mesh, builder);
+ let triangle = 0;
+ let triangulated = 0;
+ for (let face = 0; face < mesh.faceCount; face++) {
+ const size = mesh.faceOffsets[face + 1] - mesh.faceOffsets[face];
+ if (size < minVertices) {
+ addUnchangedFace(builder, mesh, face);
+ triangle += size - 2;
+ continue;
+ }
+ if (size > 3) triangulated++;
+ for (let count = size - 2; count > 0; count--, triangle++) {
+ addTriangle(builder, mesh, face, Array.from(triangleCorners.subarray(triangle * 3, triangle * 3 + 3)));
+ }
+ }
+ return { mesh: builder.build(), triangulated, triangles: triangleTotal };
+}
+
+function sharedCorner(mesh, faces, corner, vertex) {
+ return mesh.cornerVertices[corner] === vertex ? corner : nextCornerInFace(mesh, corner, faces[corner]);
+}
+
+/** Groups the corners around each vertex that stay joined: neighbours across an edge that is not sharp. */
+function smoothCornerGroups(mesh, angleDegrees) {
+ const normals = faceNormals(mesh).normals;
+ const table = edgeCornerTable(mesh);
+ const faces = cornerFaces(mesh);
+ const limit = Math.cos(angleDegrees * Math.PI / 180) - SHARP_TOLERANCE;
+ const groups = new UnionFind(mesh.cornerCount);
+ for (let edge = 0; edge < mesh.edgeCount; edge++) {
+ const start = table.edgeOffsets[edge];
+ if (table.edgeOffsets[edge + 1] - start !== 2) continue;
+ const first = table.edgeCorners[start];
+ const second = table.edgeCorners[start + 1];
+ const firstNormal = faces[first] * 3;
+ const secondNormal = faces[second] * 3;
+ const alignment = normals[firstNormal] * normals[secondNormal]
+ + normals[firstNormal + 1] * normals[secondNormal + 1]
+ + normals[firstNormal + 2] * normals[secondNormal + 2];
+ if (alignment < limit) continue;
+ for (const vertex of [mesh.edgeVertices[edge * 2], mesh.edgeVertices[edge * 2 + 1]]) {
+ groups.union(sharedCorner(mesh, faces, first, vertex), sharedCorner(mesh, faces, second, vertex));
+ }
+ }
+ return groups;
+}
+
+/**
+ * Give each smooth fan of faces around a vertex its own copy of the vertex, so edges bending more than `angle` degrees
+ * (and edges shared by three or more faces) come apart. Open boundary edges join nothing and stay as they are.
+ * Throws before allocating when the vertex count would pass `maxVertices`.
+ */
+export function splitSharpEdges(mesh, { angle = 30, maxVertices = Infinity } = {}) {
+ const groups = smoothCornerGroups(mesh, angle);
+ const vertexOfGroup = new Map();
+ const firstGroupOfVertex = new Uint8Array(mesh.vertexCount);
+ let vertexTotal = mesh.vertexCount;
+ const groupsPerCorner = new Uint32Array(mesh.cornerCount);
+ for (let corner = 0; corner < mesh.cornerCount; corner++) {
+ const root = groups.find(corner);
+ groupsPerCorner[corner] = root;
+ if (vertexOfGroup.has(root)) continue;
+ const vertex = mesh.cornerVertices[corner];
+ vertexOfGroup.set(root, firstGroupOfVertex[vertex] ? -1 : vertex);
+ if (firstGroupOfVertex[vertex]) vertexTotal++;
+ firstGroupOfVertex[vertex] = 1;
+ }
+ if (vertexTotal > maxVertices) {
+ throw new RangeError(`edge_split would make ${vertexTotal} vertices, over the limit of ${maxVertices}.`);
+ }
+ const builder = new MeshBuilder(mesh);
+ copyPositions(mesh, builder);
+ const splitVertices = [];
+ for (let face = 0; face < mesh.faceCount; face++) {
+ const corners = sourceCornersOfFace(mesh, face);
+ const vertices = corners.map(corner => {
+ const root = groupsPerCorner[corner];
+ if (vertexOfGroup.get(root) === -1) {
+ const source = mesh.cornerVertices[corner] * 3;
+ const copy = builder.addVertex(mesh.positions[source], mesh.positions[source + 1], mesh.positions[source + 2]);
+ vertexOfGroup.set(root, copy);
+ splitVertices.push(copy);
+ }
+ return vertexOfGroup.get(root);
+ });
+ builder.addFace(vertices, { sourceFace: face, sourceCorners: corners, sourceEdges: corners.map(corner => mesh.cornerEdges[corner]) });
+ }
+ return { mesh: builder.build(), addedVertices: splitVertices.length };
+}
diff --git a/src/mesh.js b/src/mesh.js
index 4453b964..67fe248f 100644
--- a/src/mesh.js
+++ b/src/mesh.js
@@ -27,3 +27,5 @@ export {
mergeByDistance, tagFaces, connectedRegions, FALLOFF_CURVES,
} from './mesh-ops.js';
export { cornerFaces, cornerCycles, edgeCornerTable, faceParts } from './mesh-topology.js';
+export { triangulateFaces, splitSharpEdges } from './mesh-restructure.js';
+export { runModifierEdit, normalizeModifierEdit, SIMPLE_DEFORM_MODES, MAX_SMOOTH_ITERATIONS } from './mesh-modifiers.js';
diff --git a/tests/fixtures/blender/cases.json b/tests/fixtures/blender/cases.json
index e7a3a22e..fe22247d 100644
--- a/tests/fixtures/blender/cases.json
+++ b/tests/fixtures/blender/cases.json
@@ -4,6 +4,7 @@
"vertices": [[-0.5,-0.5,-0.5],[0.5,-0.5,-0.5],[0.5,0.5,-0.5],[-0.5,0.5,-0.5],[-0.5,-0.5,0.5],[0.5,-0.5,0.5],[0.5,0.5,0.5],[-0.5,0.5,0.5]],
"faces": [[0,3,2,1],[4,5,6,7],[0,1,5,4],[1,2,6,5],[2,3,7,6],[3,0,4,7]]
},
+ "cube-split": {"vertices":[[-0.5,-0.5,-0.5],[-0.5,0.5,-0.5],[0.5,0.5,-0.5],[0.5,-0.5,-0.5],[-0.5,-0.5,0.5],[0.5,-0.5,0.5],[0.5,0.5,0.5],[-0.5,0.5,0.5],[-0.5,-0.5,-0.5],[0.5,-0.5,-0.5],[0.5,-0.5,0.5],[-0.5,-0.5,0.5],[0.5,-0.5,-0.5],[0.5,0.5,-0.5],[0.5,0.5,0.5],[0.5,-0.5,0.5],[0.5,0.5,-0.5],[-0.5,0.5,-0.5],[-0.5,0.5,0.5],[0.5,0.5,0.5],[-0.5,0.5,-0.5],[-0.5,-0.5,-0.5],[-0.5,-0.5,0.5],[-0.5,0.5,0.5]],"faces":[[0,1,2,3],[4,5,6,7],[8,9,10,11],[12,13,14,15],[16,17,18,19],[20,21,22,23]]},
"cube-open": {
"vertices": [[-0.5,-0.5,-0.5],[0.5,-0.5,-0.5],[0.5,0.5,-0.5],[-0.5,0.5,-0.5],[-0.5,-0.5,0.5],[0.5,-0.5,0.5],[0.5,0.5,0.5],[-0.5,0.5,0.5]],
"faces": [[0,3,2,1],[0,1,5,4],[1,2,6,5],[2,3,7,6],[3,0,4,7]]
@@ -119,6 +120,26 @@
{ "id": "decimate-sphere-half", "input": "sphere-bumpy", "compare": "surface", "edit": {"op":"decimate","ratio":0.5} },
{ "id": "decimate-sphere-tenth", "input": "sphere-bumpy", "compare": "surface", "edit": {"op":"decimate","ratio":0.1} },
{ "id": "decimate-torus-quarter", "input": "torus-fine", "compare": "surface", "edit": {"op":"decimate","ratio":0.25} },
+ { "id": "weld-cube-split", "input": "cube-split", "edit": {"op":"weld","distance":0.001} },
+ { "id": "triangulate-cube", "input": "cube", "edit": {"op":"triangulate"} },
+ { "id": "triangulate-cylinder", "input": "cylinder", "edit": {"op":"triangulate"} },
+ { "id": "triangulate-cylinder-caps-only", "input": "cylinder", "edit": {"op":"triangulate","minVertices":5} },
+ { "id": "triangulate-pentagon", "input": "square-midpoint", "edit": {"op":"triangulate"} },
+ { "id": "edge-split-cube", "input": "cube", "edit": {"op":"edge_split"} },
+ { "id": "edge-split-cylinder", "input": "cylinder", "edit": {"op":"edge_split"} },
+ { "id": "edge-split-cylinder-wide", "input": "cylinder", "edit": {"op":"edge_split","angle":60} },
+ { "id": "edge-split-grid", "input": "grid", "edit": {"op":"edge_split"} },
+ { "id": "smooth-grid", "input": "grid", "edit": {"op":"smooth","factor":0.5,"iterations":2} },
+ { "id": "smooth-cube-full", "input": "cube", "edit": {"op":"smooth","factor":1,"iterations":1} },
+ { "id": "smooth-sphere-bumpy", "input": "sphere-bumpy", "edit": {"op":"smooth","factor":0.8,"iterations":3} },
+ { "id": "simple-deform-twist-cylinder", "input": "cylinder", "edit": {"op":"simple_deform","mode":"twist","axis":"z","angle":90} },
+ { "id": "simple-deform-bend-grid", "input": "grid", "edit": {"op":"simple_deform","mode":"bend","axis":"z","angle":90} },
+ { "id": "simple-deform-bend-cylinder", "input": "cylinder", "edit": {"op":"simple_deform","mode":"bend","axis":"x","angle":60} },
+ { "id": "simple-deform-taper-cylinder", "input": "cylinder", "edit": {"op":"simple_deform","mode":"taper","axis":"z","factor":0.5} },
+ { "id": "simple-deform-stretch-cylinder-x", "input": "cylinder", "edit": {"op":"simple_deform","mode":"stretch","axis":"x","factor":-0.4} },
+ { "id": "cast-cube-mean", "input": "cube", "edit": {"op":"cast","factor":1} },
+ { "id": "cast-cylinder-size", "input": "cylinder", "edit": {"op":"cast","factor":0.6,"size":1.5} },
+ { "id": "cast-sphere-bumpy", "input": "sphere-bumpy", "edit": {"op":"cast","factor":0.5} },
{ "id": "decimate-bowl-half", "input": "bowl-open", "compare": "surface", "edit": {"op":"decimate","ratio":0.5} },
{ "id": "remesh-sphere", "input": "sphere-bumpy", "compare": "surface", "edit": {"op":"remesh","voxelSize":0.1} },
{ "id": "remesh-torus", "input": "torus-fine", "compare": "surface", "edit": {"op":"remesh","voxelSize":0.08} }
diff --git a/tests/fixtures/blender/golden.json b/tests/fixtures/blender/golden.json
index b887e059..5d708976 100644
--- a/tests/fixtures/blender/golden.json
+++ b/tests/fixtures/blender/golden.json
@@ -23243,6 +23243,7861 @@
"area": 13.776178,
"hausdorff": 0.030366
},
+ "weld-cube-split": {
+ "vertexCount": 8,
+ "edgeCount": 12,
+ "faceCount": 6,
+ "faceSizes": {
+ "4": 6
+ },
+ "volume": 1.0,
+ "area": 6.0,
+ "positions": [
+ [
+ -0.5,
+ -0.5,
+ -0.5
+ ],
+ [
+ -0.5,
+ -0.5,
+ 0.5
+ ],
+ [
+ -0.5,
+ 0.5,
+ -0.5
+ ],
+ [
+ -0.5,
+ 0.5,
+ 0.5
+ ],
+ [
+ 0.5,
+ -0.5,
+ -0.5
+ ],
+ [
+ 0.5,
+ -0.5,
+ 0.5
+ ],
+ [
+ 0.5,
+ 0.5,
+ -0.5
+ ],
+ [
+ 0.5,
+ 0.5,
+ 0.5
+ ]
+ ]
+ },
+ "triangulate-cube": {
+ "vertexCount": 8,
+ "edgeCount": 18,
+ "faceCount": 12,
+ "faceSizes": {
+ "3": 12
+ },
+ "volume": 1.0,
+ "area": 6.0,
+ "positions": [
+ [
+ -0.5,
+ -0.5,
+ -0.5
+ ],
+ [
+ -0.5,
+ -0.5,
+ 0.5
+ ],
+ [
+ -0.5,
+ 0.5,
+ -0.5
+ ],
+ [
+ -0.5,
+ 0.5,
+ 0.5
+ ],
+ [
+ 0.5,
+ -0.5,
+ -0.5
+ ],
+ [
+ 0.5,
+ -0.5,
+ 0.5
+ ],
+ [
+ 0.5,
+ 0.5,
+ -0.5
+ ],
+ [
+ 0.5,
+ 0.5,
+ 0.5
+ ]
+ ]
+ },
+ "triangulate-cylinder": {
+ "vertexCount": 16,
+ "edgeCount": 42,
+ "faceCount": 28,
+ "faceSizes": {
+ "3": 28
+ },
+ "volume": 5.656854,
+ "area": 17.902724,
+ "positions": [
+ [
+ -1.0,
+ 0.0,
+ -1.0
+ ],
+ [
+ -1.0,
+ 0.0,
+ 1.0
+ ],
+ [
+ -0.70711,
+ -0.70711,
+ -1.0
+ ],
+ [
+ -0.70711,
+ -0.70711,
+ 1.0
+ ],
+ [
+ -0.70711,
+ 0.70711,
+ -1.0
+ ],
+ [
+ -0.70711,
+ 0.70711,
+ 1.0
+ ],
+ [
+ 0.0,
+ -1.0,
+ -1.0
+ ],
+ [
+ 0.0,
+ -1.0,
+ 1.0
+ ],
+ [
+ 0.0,
+ 1.0,
+ -1.0
+ ],
+ [
+ 0.0,
+ 1.0,
+ 1.0
+ ],
+ [
+ 0.70711,
+ -0.70711,
+ -1.0
+ ],
+ [
+ 0.70711,
+ -0.70711,
+ 1.0
+ ],
+ [
+ 0.70711,
+ 0.70711,
+ -1.0
+ ],
+ [
+ 0.70711,
+ 0.70711,
+ 1.0
+ ],
+ [
+ 1.0,
+ 0.0,
+ -1.0
+ ],
+ [
+ 1.0,
+ 0.0,
+ 1.0
+ ]
+ ]
+ },
+ "triangulate-cylinder-caps-only": {
+ "vertexCount": 16,
+ "edgeCount": 34,
+ "faceCount": 20,
+ "faceSizes": {
+ "3": 12,
+ "4": 8
+ },
+ "volume": 5.656854,
+ "area": 17.902724,
+ "positions": [
+ [
+ -1.0,
+ 0.0,
+ -1.0
+ ],
+ [
+ -1.0,
+ 0.0,
+ 1.0
+ ],
+ [
+ -0.70711,
+ -0.70711,
+ -1.0
+ ],
+ [
+ -0.70711,
+ -0.70711,
+ 1.0
+ ],
+ [
+ -0.70711,
+ 0.70711,
+ -1.0
+ ],
+ [
+ -0.70711,
+ 0.70711,
+ 1.0
+ ],
+ [
+ 0.0,
+ -1.0,
+ -1.0
+ ],
+ [
+ 0.0,
+ -1.0,
+ 1.0
+ ],
+ [
+ 0.0,
+ 1.0,
+ -1.0
+ ],
+ [
+ 0.0,
+ 1.0,
+ 1.0
+ ],
+ [
+ 0.70711,
+ -0.70711,
+ -1.0
+ ],
+ [
+ 0.70711,
+ -0.70711,
+ 1.0
+ ],
+ [
+ 0.70711,
+ 0.70711,
+ -1.0
+ ],
+ [
+ 0.70711,
+ 0.70711,
+ 1.0
+ ],
+ [
+ 1.0,
+ 0.0,
+ -1.0
+ ],
+ [
+ 1.0,
+ 0.0,
+ 1.0
+ ]
+ ]
+ },
+ "triangulate-pentagon": {
+ "vertexCount": 5,
+ "edgeCount": 7,
+ "faceCount": 3,
+ "faceSizes": {
+ "3": 3
+ },
+ "volume": 0.0,
+ "area": 4.0,
+ "positions": [
+ [
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ [
+ 0.0,
+ 2.0,
+ 0.0
+ ],
+ [
+ 1.0,
+ 0.0,
+ 0.0
+ ],
+ [
+ 2.0,
+ 0.0,
+ 0.0
+ ],
+ [
+ 2.0,
+ 2.0,
+ 0.0
+ ]
+ ]
+ },
+ "edge-split-cube": {
+ "vertexCount": 24,
+ "edgeCount": 24,
+ "faceCount": 6,
+ "faceSizes": {
+ "4": 6
+ },
+ "volume": 1.0,
+ "area": 6.0,
+ "positions": [
+ [
+ -0.5,
+ -0.5,
+ -0.5
+ ],
+ [
+ -0.5,
+ -0.5,
+ -0.5
+ ],
+ [
+ -0.5,
+ -0.5,
+ -0.5
+ ],
+ [
+ -0.5,
+ -0.5,
+ 0.5
+ ],
+ [
+ -0.5,
+ -0.5,
+ 0.5
+ ],
+ [
+ -0.5,
+ -0.5,
+ 0.5
+ ],
+ [
+ -0.5,
+ 0.5,
+ -0.5
+ ],
+ [
+ -0.5,
+ 0.5,
+ -0.5
+ ],
+ [
+ -0.5,
+ 0.5,
+ -0.5
+ ],
+ [
+ -0.5,
+ 0.5,
+ 0.5
+ ],
+ [
+ -0.5,
+ 0.5,
+ 0.5
+ ],
+ [
+ -0.5,
+ 0.5,
+ 0.5
+ ],
+ [
+ 0.5,
+ -0.5,
+ -0.5
+ ],
+ [
+ 0.5,
+ -0.5,
+ -0.5
+ ],
+ [
+ 0.5,
+ -0.5,
+ -0.5
+ ],
+ [
+ 0.5,
+ -0.5,
+ 0.5
+ ],
+ [
+ 0.5,
+ -0.5,
+ 0.5
+ ],
+ [
+ 0.5,
+ -0.5,
+ 0.5
+ ],
+ [
+ 0.5,
+ 0.5,
+ -0.5
+ ],
+ [
+ 0.5,
+ 0.5,
+ -0.5
+ ],
+ [
+ 0.5,
+ 0.5,
+ -0.5
+ ],
+ [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ [
+ 0.5,
+ 0.5,
+ 0.5
+ ]
+ ]
+ },
+ "edge-split-cylinder": {
+ "vertexCount": 48,
+ "edgeCount": 48,
+ "faceCount": 10,
+ "faceSizes": {
+ "4": 8,
+ "8": 2
+ },
+ "volume": 5.656854,
+ "area": 17.902724,
+ "positions": [
+ [
+ -1.0,
+ 0.0,
+ -1.0
+ ],
+ [
+ -1.0,
+ 0.0,
+ -1.0
+ ],
+ [
+ -1.0,
+ 0.0,
+ -1.0
+ ],
+ [
+ -1.0,
+ 0.0,
+ 1.0
+ ],
+ [
+ -1.0,
+ 0.0,
+ 1.0
+ ],
+ [
+ -1.0,
+ 0.0,
+ 1.0
+ ],
+ [
+ -0.70711,
+ -0.70711,
+ -1.0
+ ],
+ [
+ -0.70711,
+ -0.70711,
+ -1.0
+ ],
+ [
+ -0.70711,
+ -0.70711,
+ -1.0
+ ],
+ [
+ -0.70711,
+ -0.70711,
+ 1.0
+ ],
+ [
+ -0.70711,
+ -0.70711,
+ 1.0
+ ],
+ [
+ -0.70711,
+ -0.70711,
+ 1.0
+ ],
+ [
+ -0.70711,
+ 0.70711,
+ -1.0
+ ],
+ [
+ -0.70711,
+ 0.70711,
+ -1.0
+ ],
+ [
+ -0.70711,
+ 0.70711,
+ -1.0
+ ],
+ [
+ -0.70711,
+ 0.70711,
+ 1.0
+ ],
+ [
+ -0.70711,
+ 0.70711,
+ 1.0
+ ],
+ [
+ -0.70711,
+ 0.70711,
+ 1.0
+ ],
+ [
+ 0.0,
+ -1.0,
+ -1.0
+ ],
+ [
+ 0.0,
+ -1.0,
+ -1.0
+ ],
+ [
+ 0.0,
+ -1.0,
+ -1.0
+ ],
+ [
+ 0.0,
+ -1.0,
+ 1.0
+ ],
+ [
+ 0.0,
+ -1.0,
+ 1.0
+ ],
+ [
+ 0.0,
+ -1.0,
+ 1.0
+ ],
+ [
+ 0.0,
+ 1.0,
+ -1.0
+ ],
+ [
+ 0.0,
+ 1.0,
+ -1.0
+ ],
+ [
+ 0.0,
+ 1.0,
+ -1.0
+ ],
+ [
+ 0.0,
+ 1.0,
+ 1.0
+ ],
+ [
+ 0.0,
+ 1.0,
+ 1.0
+ ],
+ [
+ 0.0,
+ 1.0,
+ 1.0
+ ],
+ [
+ 0.70711,
+ -0.70711,
+ -1.0
+ ],
+ [
+ 0.70711,
+ -0.70711,
+ -1.0
+ ],
+ [
+ 0.70711,
+ -0.70711,
+ -1.0
+ ],
+ [
+ 0.70711,
+ -0.70711,
+ 1.0
+ ],
+ [
+ 0.70711,
+ -0.70711,
+ 1.0
+ ],
+ [
+ 0.70711,
+ -0.70711,
+ 1.0
+ ],
+ [
+ 0.70711,
+ 0.70711,
+ -1.0
+ ],
+ [
+ 0.70711,
+ 0.70711,
+ -1.0
+ ],
+ [
+ 0.70711,
+ 0.70711,
+ -1.0
+ ],
+ [
+ 0.70711,
+ 0.70711,
+ 1.0
+ ],
+ [
+ 0.70711,
+ 0.70711,
+ 1.0
+ ],
+ [
+ 0.70711,
+ 0.70711,
+ 1.0
+ ],
+ [
+ 1.0,
+ 0.0,
+ -1.0
+ ],
+ [
+ 1.0,
+ 0.0,
+ -1.0
+ ],
+ [
+ 1.0,
+ 0.0,
+ -1.0
+ ],
+ [
+ 1.0,
+ 0.0,
+ 1.0
+ ],
+ [
+ 1.0,
+ 0.0,
+ 1.0
+ ],
+ [
+ 1.0,
+ 0.0,
+ 1.0
+ ]
+ ]
+ },
+ "edge-split-cylinder-wide": {
+ "vertexCount": 32,
+ "edgeCount": 40,
+ "faceCount": 10,
+ "faceSizes": {
+ "4": 8,
+ "8": 2
+ },
+ "volume": 5.656854,
+ "area": 17.902724,
+ "positions": [
+ [
+ -1.0,
+ 0.0,
+ -1.0
+ ],
+ [
+ -1.0,
+ 0.0,
+ -1.0
+ ],
+ [
+ -1.0,
+ 0.0,
+ 1.0
+ ],
+ [
+ -1.0,
+ 0.0,
+ 1.0
+ ],
+ [
+ -0.70711,
+ -0.70711,
+ -1.0
+ ],
+ [
+ -0.70711,
+ -0.70711,
+ -1.0
+ ],
+ [
+ -0.70711,
+ -0.70711,
+ 1.0
+ ],
+ [
+ -0.70711,
+ -0.70711,
+ 1.0
+ ],
+ [
+ -0.70711,
+ 0.70711,
+ -1.0
+ ],
+ [
+ -0.70711,
+ 0.70711,
+ -1.0
+ ],
+ [
+ -0.70711,
+ 0.70711,
+ 1.0
+ ],
+ [
+ -0.70711,
+ 0.70711,
+ 1.0
+ ],
+ [
+ 0.0,
+ -1.0,
+ -1.0
+ ],
+ [
+ 0.0,
+ -1.0,
+ -1.0
+ ],
+ [
+ 0.0,
+ -1.0,
+ 1.0
+ ],
+ [
+ 0.0,
+ -1.0,
+ 1.0
+ ],
+ [
+ 0.0,
+ 1.0,
+ -1.0
+ ],
+ [
+ 0.0,
+ 1.0,
+ -1.0
+ ],
+ [
+ 0.0,
+ 1.0,
+ 1.0
+ ],
+ [
+ 0.0,
+ 1.0,
+ 1.0
+ ],
+ [
+ 0.70711,
+ -0.70711,
+ -1.0
+ ],
+ [
+ 0.70711,
+ -0.70711,
+ -1.0
+ ],
+ [
+ 0.70711,
+ -0.70711,
+ 1.0
+ ],
+ [
+ 0.70711,
+ -0.70711,
+ 1.0
+ ],
+ [
+ 0.70711,
+ 0.70711,
+ -1.0
+ ],
+ [
+ 0.70711,
+ 0.70711,
+ -1.0
+ ],
+ [
+ 0.70711,
+ 0.70711,
+ 1.0
+ ],
+ [
+ 0.70711,
+ 0.70711,
+ 1.0
+ ],
+ [
+ 1.0,
+ 0.0,
+ -1.0
+ ],
+ [
+ 1.0,
+ 0.0,
+ -1.0
+ ],
+ [
+ 1.0,
+ 0.0,
+ 1.0
+ ],
+ [
+ 1.0,
+ 0.0,
+ 1.0
+ ]
+ ]
+ },
+ "edge-split-grid": {
+ "vertexCount": 16,
+ "edgeCount": 24,
+ "faceCount": 9,
+ "faceSizes": {
+ "4": 9
+ },
+ "volume": 0.0,
+ "area": 9.0,
+ "positions": [
+ [
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ [
+ 0.0,
+ 1.0,
+ 0.0
+ ],
+ [
+ 0.0,
+ 2.0,
+ 0.0
+ ],
+ [
+ 0.0,
+ 3.0,
+ 0.0
+ ],
+ [
+ 1.0,
+ 0.0,
+ 0.0
+ ],
+ [
+ 1.0,
+ 1.0,
+ 0.0
+ ],
+ [
+ 1.0,
+ 2.0,
+ 0.0
+ ],
+ [
+ 1.0,
+ 3.0,
+ 0.0
+ ],
+ [
+ 2.0,
+ 0.0,
+ 0.0
+ ],
+ [
+ 2.0,
+ 1.0,
+ 0.0
+ ],
+ [
+ 2.0,
+ 2.0,
+ 0.0
+ ],
+ [
+ 2.0,
+ 3.0,
+ 0.0
+ ],
+ [
+ 3.0,
+ 0.0,
+ 0.0
+ ],
+ [
+ 3.0,
+ 1.0,
+ 0.0
+ ],
+ [
+ 3.0,
+ 2.0,
+ 0.0
+ ],
+ [
+ 3.0,
+ 3.0,
+ 0.0
+ ]
+ ]
+ },
+ "smooth-grid": {
+ "vertexCount": 16,
+ "edgeCount": 24,
+ "faceCount": 9,
+ "faceSizes": {
+ "4": 9
+ },
+ "volume": 0.0,
+ "area": 6.924625,
+ "positions": [
+ [
+ 0.16319,
+ 1.01042,
+ 0.0
+ ],
+ [
+ 0.16319,
+ 1.98958,
+ 0.0
+ ],
+ [
+ 0.22917,
+ 0.22917,
+ 0.0
+ ],
+ [
+ 0.22917,
+ 2.77083,
+ 0.0
+ ],
+ [
+ 1.00521,
+ 1.00521,
+ 0.0
+ ],
+ [
+ 1.00521,
+ 1.99479,
+ 0.0
+ ],
+ [
+ 1.01042,
+ 0.16319,
+ 0.0
+ ],
+ [
+ 1.01042,
+ 2.83681,
+ 0.0
+ ],
+ [
+ 1.98958,
+ 0.16319,
+ 0.0
+ ],
+ [
+ 1.98958,
+ 2.83681,
+ 0.0
+ ],
+ [
+ 1.99479,
+ 1.00521,
+ 0.0
+ ],
+ [
+ 1.99479,
+ 1.99479,
+ 0.0
+ ],
+ [
+ 2.77083,
+ 0.22917,
+ 0.0
+ ],
+ [
+ 2.77083,
+ 2.77083,
+ 0.0
+ ],
+ [
+ 2.83681,
+ 1.01042,
+ 0.0
+ ],
+ [
+ 2.83681,
+ 1.98958,
+ 0.0
+ ]
+ ]
+ },
+ "smooth-cube-full": {
+ "vertexCount": 8,
+ "edgeCount": 12,
+ "faceCount": 6,
+ "faceSizes": {
+ "4": 6
+ },
+ "volume": 0.296296,
+ "area": 2.666667,
+ "positions": [
+ [
+ -0.33333,
+ -0.33333,
+ -0.33333
+ ],
+ [
+ -0.33333,
+ -0.33333,
+ 0.33333
+ ],
+ [
+ -0.33333,
+ 0.33333,
+ -0.33333
+ ],
+ [
+ -0.33333,
+ 0.33333,
+ 0.33333
+ ],
+ [
+ 0.33333,
+ -0.33333,
+ -0.33333
+ ],
+ [
+ 0.33333,
+ -0.33333,
+ 0.33333
+ ],
+ [
+ 0.33333,
+ 0.33333,
+ -0.33333
+ ],
+ [
+ 0.33333,
+ 0.33333,
+ 0.33333
+ ]
+ ]
+ },
+ "smooth-sphere-bumpy": {
+ "vertexCount": 610,
+ "edgeCount": 1248,
+ "faceCount": 640,
+ "faceSizes": {
+ "3": 64,
+ "4": 576
+ },
+ "volume": 3.95219,
+ "area": 12.623935,
+ "positions": [
+ [
+ -0.9812,
+ 0.0,
+ 0.0
+ ],
+ [
+ -0.98083,
+ -0.1975,
+ 0.16312
+ ],
+ [
+ -0.98083,
+ 0.1975,
+ -0.16312
+ ],
+ [
+ -0.96912,
+ -0.00423,
+ 0.15528
+ ],
+ [
+ -0.96912,
+ 0.00423,
+ -0.15528
+ ],
+ [
+ -0.96284,
+ -0.19527,
+ 0.32393
+ ],
+ [
+ -0.96284,
+ 0.19527,
+ -0.32393
+ ],
+ [
+ -0.96235,
+ -0.19142,
+ 0.00348
+ ],
+ [
+ -0.96235,
+ 0.19142,
+ -0.00348
+ ],
+ [
+ -0.93318,
+ -0.00662,
+ 0.30674
+ ],
+ [
+ -0.93318,
+ 0.00662,
+ -0.30674
+ ],
+ [
+ -0.9282,
+ -0.38272,
+ 0.16399
+ ],
+ [
+ -0.9282,
+ 0.38272,
+ -0.16399
+ ],
+ [
+ -0.92017,
+ -0.18064,
+ -0.14744
+ ],
+ [
+ -0.92017,
+ 0.18064,
+ 0.14744
+ ],
+ [
+ -0.91368,
+ -0.37572,
+ 0.32584
+ ],
+ [
+ -0.91368,
+ 0.37572,
+ -0.32584
+ ],
+ [
+ -0.90651,
+ -0.37549,
+ 0.00387
+ ],
+ [
+ -0.90651,
+ 0.37549,
+ -0.00387
+ ],
+ [
+ -0.90282,
+ -0.18314,
+ 0.47343
+ ],
+ [
+ -0.90282,
+ 0.18314,
+ -0.47343
+ ],
+ [
+ -0.87426,
+ -0.00627,
+ 0.45065
+ ],
+ [
+ -0.87426,
+ 0.00627,
+ -0.45065
+ ],
+ [
+ -0.86765,
+ -0.16884,
+ -0.28955
+ ],
+ [
+ -0.86765,
+ 0.16884,
+ 0.28955
+ ],
+ [
+ -0.86251,
+ -0.35902,
+ -0.14657
+ ],
+ [
+ -0.86251,
+ 0.35902,
+ 0.14657
+ ],
+ [
+ -0.85682,
+ -0.35231,
+ 0.47597
+ ],
+ [
+ -0.85682,
+ 0.35231,
+ -0.47597
+ ],
+ [
+ -0.81584,
+ -0.54513,
+ 0.00082
+ ],
+ [
+ -0.81584,
+ 0.54513,
+ -0.00082
+ ],
+ [
+ -0.81423,
+ -0.53906,
+ 0.15712
+ ],
+ [
+ -0.81423,
+ 0.53906,
+ -0.15712
+ ],
+ [
+ -0.8121,
+ -0.15798,
+ -0.42786
+ ],
+ [
+ -0.8121,
+ 0.15798,
+ 0.42786
+ ],
+ [
+ -0.81061,
+ -0.33851,
+ -0.28764
+ ],
+ [
+ -0.81061,
+ 0.33851,
+ 0.28764
+ ],
+ [
+ -0.80535,
+ -0.16226,
+ 0.60018
+ ],
+ [
+ -0.80535,
+ 0.16226,
+ -0.60018
+ ],
+ [
+ -0.79737,
+ -0.53777,
+ -0.15344
+ ],
+ [
+ -0.79737,
+ 0.53777,
+ 0.15344
+ ],
+ [
+ -0.79381,
+ -0.00364,
+ 0.58346
+ ],
+ [
+ -0.79381,
+ 0.00364,
+ -0.58346
+ ],
+ [
+ -0.78913,
+ -0.51947,
+ 0.31077
+ ],
+ [
+ -0.78913,
+ 0.51947,
+ -0.31077
+ ],
+ [
+ -0.76269,
+ -0.51743,
+ -0.30271
+ ],
+ [
+ -0.76269,
+ 0.51743,
+ 0.30271
+ ],
+ [
+ -0.76237,
+ -0.31428,
+ 0.60204
+ ],
+ [
+ -0.76237,
+ 0.31428,
+ -0.60204
+ ],
+ [
+ -0.7586,
+ -0.31682,
+ -0.42532
+ ],
+ [
+ -0.7586,
+ 0.31682,
+ 0.42532
+ ],
+ [
+ -0.75176,
+ -0.14747,
+ -0.56673
+ ],
+ [
+ -0.75176,
+ 0.14747,
+ 0.56673
+ ],
+ [
+ -0.7395,
+ -0.48671,
+ 0.45599
+ ],
+ [
+ -0.7395,
+ 0.48671,
+ -0.45599
+ ],
+ [
+ -0.71434,
+ -0.48471,
+ -0.4453
+ ],
+ [
+ -0.71434,
+ 0.48471,
+ 0.4453
+ ],
+ [
+ -0.7044,
+ -0.29328,
+ -0.56487
+ ],
+ [
+ -0.7044,
+ 0.29328,
+ 0.56487
+ ],
+ [
+ -0.70204,
+ -0.70627,
+ -0.16195
+ ],
+ [
+ -0.70204,
+ 0.70627,
+ 0.16195
+ ],
+ [
+ -0.69382,
+ -0.69382,
+ -0.00296
+ ],
+ [
+ -0.69382,
+ -0.00022,
+ 0.7019
+ ],
+ [
+ -0.69382,
+ 0.00022,
+ -0.7019
+ ],
+ [
+ -0.69382,
+ 0.69382,
+ 0.00296
+ ],
+ [
+ -0.68617,
+ -0.69279,
+ -0.32136
+ ],
+ [
+ -0.68617,
+ 0.69279,
+ 0.32136
+ ],
+ [
+ -0.68287,
+ -0.13596,
+ 0.69944
+ ],
+ [
+ -0.68287,
+ 0.13596,
+ -0.69944
+ ],
+ [
+ -0.6781,
+ -0.13476,
+ -0.70436
+ ],
+ [
+ -0.6781,
+ 0.13476,
+ 0.70436
+ ],
+ [
+ -0.66851,
+ -0.66428,
+ 0.14862
+ ],
+ [
+ -0.66851,
+ 0.66428,
+ -0.14862
+ ],
+ [
+ -0.66742,
+ -0.44166,
+ 0.58738
+ ],
+ [
+ -0.66742,
+ 0.44166,
+ -0.58738
+ ],
+ [
+ -0.65264,
+ -0.44038,
+ -0.57953
+ ],
+ [
+ -0.65264,
+ 0.44038,
+ 0.57953
+ ],
+ [
+ -0.64355,
+ -0.26648,
+ 0.69916
+ ],
+ [
+ -0.64355,
+ 0.26648,
+ -0.69916
+ ],
+ [
+ -0.64329,
+ -0.64956,
+ -0.47003
+ ],
+ [
+ -0.64329,
+ 0.64956,
+ 0.47003
+ ],
+ [
+ -0.63845,
+ -0.26455,
+ -0.70463
+ ],
+ [
+ -0.63845,
+ 0.26455,
+ 0.70463
+ ],
+ [
+ -0.63355,
+ -0.62692,
+ 0.29212
+ ],
+ [
+ -0.63355,
+ 0.62692,
+ -0.29212
+ ],
+ [
+ -0.5931,
+ -0.58683,
+ 0.43126
+ ],
+ [
+ -0.5931,
+ 0.58683,
+ -0.43126
+ ],
+ [
+ -0.58176,
+ -0.11704,
+ -0.83087
+ ],
+ [
+ -0.58176,
+ 0.11704,
+ 0.83087
+ ],
+ [
+ -0.57749,
+ -0.3856,
+ 0.70132
+ ],
+ [
+ -0.57748,
+ 0.3856,
+ -0.70132
+ ],
+ [
+ -0.57674,
+ -0.00234,
+ -0.80306
+ ],
+ [
+ -0.57674,
+ 0.00234,
+ 0.80306
+ ],
+ [
+ -0.57629,
+ -0.38532,
+ -0.70248
+ ],
+ [
+ -0.57629,
+ 0.38532,
+ 0.70248
+ ],
+ [
+ -0.57616,
+ -0.5798,
+ -0.59768
+ ],
+ [
+ -0.57616,
+ 0.5798,
+ 0.59768
+ ],
+ [
+ -0.55967,
+ -0.83613,
+ -0.16453
+ ],
+ [
+ -0.55967,
+ 0.83613,
+ 0.16453
+ ],
+ [
+ -0.5518,
+ -0.82351,
+ -0.32701
+ ],
+ [
+ -0.5518,
+ 0.82351,
+ 0.32701
+ ],
+ [
+ -0.55029,
+ -0.22697,
+ -0.83396
+ ],
+ [
+ -0.55029,
+ 0.22697,
+ 0.83396
+ ],
+ [
+ -0.54956,
+ -0.10799,
+ 0.77525
+ ],
+ [
+ -0.54956,
+ 0.10799,
+ -0.77525
+ ],
+ [
+ -0.54646,
+ -0.54282,
+ 0.56923
+ ],
+ [
+ -0.54646,
+ 0.54282,
+ -0.56923
+ ],
+ [
+ -0.54513,
+ -0.81584,
+ -0.0041
+ ],
+ [
+ -0.54513,
+ 0.81584,
+ 0.0041
+ ],
+ [
+ -0.51749,
+ -0.77228,
+ -0.47753
+ ],
+ [
+ -0.51749,
+ 0.77228,
+ 0.47753
+ ],
+ [
+ -0.51716,
+ -0.77547,
+ 0.14604
+ ],
+ [
+ -0.51716,
+ 0.77547,
+ -0.14604
+ ],
+ [
+ -0.51538,
+ -0.21445,
+ 0.77216
+ ],
+ [
+ -0.51538,
+ 0.21445,
+ -0.77216
+ ],
+ [
+ -0.49197,
+ -0.49219,
+ -0.69981
+ ],
+ [
+ -0.49197,
+ 0.49219,
+ 0.69981
+ ],
+ [
+ -0.48924,
+ -0.48902,
+ 0.70399
+ ],
+ [
+ -0.48924,
+ 0.48902,
+ -0.70399
+ ],
+ [
+ -0.48509,
+ -0.72831,
+ 0.28647
+ ],
+ [
+ -0.48509,
+ 0.72831,
+ -0.28647
+ ],
+ [
+ -0.48406,
+ -0.32068,
+ -0.80958
+ ],
+ [
+ -0.48406,
+ 0.32068,
+ 0.80958
+ ],
+ [
+ -0.47501,
+ -0.32015,
+ 0.79653
+ ],
+ [
+ -0.47501,
+ 0.32015,
+ -0.79653
+ ],
+ [
+ -0.45978,
+ -0.68682,
+ -0.60318
+ ],
+ [
+ -0.45978,
+ 0.68682,
+ 0.60318
+ ],
+ [
+ -0.45885,
+ -0.09302,
+ -0.93154
+ ],
+ [
+ -0.45885,
+ 0.09302,
+ 0.93154
+ ],
+ [
+ -0.45393,
+ -0.68155,
+ 0.42376
+ ],
+ [
+ -0.45393,
+ 0.68155,
+ -0.42376
+ ],
+ [
+ -0.44546,
+ -0.00309,
+ -0.88444
+ ],
+ [
+ -0.44546,
+ 0.00309,
+ 0.88444
+ ],
+ [
+ -0.43532,
+ -0.17904,
+ -0.93677
+ ],
+ [
+ -0.43532,
+ 0.17904,
+ 0.93677
+ ],
+ [
+ -0.42226,
+ -0.63323,
+ 0.56373
+ ],
+ [
+ -0.42226,
+ 0.63323,
+ -0.56373
+ ],
+ [
+ -0.41667,
+ -0.41901,
+ 0.82671
+ ],
+ [
+ -0.41667,
+ 0.41901,
+ -0.82671
+ ],
+ [
+ -0.41495,
+ -0.08079,
+ 0.83735
+ ],
+ [
+ -0.41495,
+ 0.08079,
+ -0.83735
+ ],
+ [
+ -0.39896,
+ -0.39662,
+ -0.77941
+ ],
+ [
+ -0.39896,
+ 0.39662,
+ 0.77941
+ ],
+ [
+ -0.38778,
+ -0.1619,
+ 0.83211
+ ],
+ [
+ -0.38778,
+ 0.1619,
+ -0.83211
+ ],
+ [
+ -0.38711,
+ -0.57927,
+ -0.699
+ ],
+ [
+ -0.38711,
+ 0.57927,
+ 0.699
+ ],
+ [
+ -0.38382,
+ -0.57451,
+ 0.7048
+ ],
+ [
+ -0.38382,
+ 0.57451,
+ -0.7048
+ ],
+ [
+ -0.38,
+ -0.90721,
+ -0.15889
+ ],
+ [
+ -0.38,
+ 0.90721,
+ 0.15889
+ ],
+ [
+ -0.3765,
+ -0.24792,
+ -0.89549
+ ],
+ [
+ -0.3765,
+ 0.24792,
+ 0.89549
+ ],
+ [
+ -0.37549,
+ -0.90651,
+ -0.0016
+ ],
+ [
+ -0.37549,
+ 0.90651,
+ 0.0016
+ ],
+ [
+ -0.37144,
+ -0.88075,
+ -0.31465
+ ],
+ [
+ -0.37144,
+ 0.88075,
+ 0.31465
+ ],
+ [
+ -0.36427,
+ -0.24704,
+ 0.87339
+ ],
+ [
+ -0.36427,
+ 0.24704,
+ -0.87339
+ ],
+ [
+ -0.36173,
+ -0.8835,
+ 0.15168
+ ],
+ [
+ -0.36173,
+ 0.8835,
+ -0.15168
+ ],
+ [
+ -0.34819,
+ -0.82545,
+ -0.46113
+ ],
+ [
+ -0.34819,
+ 0.82545,
+ 0.46113
+ ],
+ [
+ -0.34279,
+ -0.84354,
+ 0.29883
+ ],
+ [
+ -0.34279,
+ 0.84354,
+ -0.29883
+ ],
+ [
+ -0.33172,
+ -0.49564,
+ 0.83586
+ ],
+ [
+ -0.33172,
+ 0.49564,
+ -0.83586
+ ],
+ [
+ -0.3271,
+ -0.33019,
+ 0.92449
+ ],
+ [
+ -0.3271,
+ 0.33019,
+ -0.92449
+ ],
+ [
+ -0.32094,
+ -0.78996,
+ 0.44016
+ ],
+ [
+ -0.32094,
+ 0.78996,
+ -0.44016
+ ],
+ [
+ -0.31393,
+ -0.06372,
+ -0.99344
+ ],
+ [
+ -0.31393,
+ 0.06372,
+ 0.99344
+ ],
+ [
+ -0.31177,
+ -0.74388,
+ -0.59115
+ ],
+ [
+ -0.31177,
+ 0.74388,
+ 0.59115
+ ],
+ [
+ -0.30911,
+ -0.46344,
+ -0.77025
+ ],
+ [
+ -0.30911,
+ 0.46344,
+ 0.77025
+ ],
+ [
+ -0.30321,
+ -0.00225,
+ -0.94403
+ ],
+ [
+ -0.30321,
+ 0.00225,
+ 0.94403
+ ],
+ [
+ -0.30287,
+ -0.29978,
+ -0.84439
+ ],
+ [
+ -0.30287,
+ 0.29978,
+ 0.84439
+ ],
+ [
+ -0.29803,
+ -0.12252,
+ -0.99893
+ ],
+ [
+ -0.29803,
+ 0.12252,
+ 0.99893
+ ],
+ [
+ -0.29578,
+ -0.72288,
+ 0.57576
+ ],
+ [
+ -0.29578,
+ 0.72288,
+ -0.57576
+ ],
+ [
+ -0.28084,
+ -0.05459,
+ 0.89461
+ ],
+ [
+ -0.28084,
+ 0.05459,
+ -0.89461
+ ],
+ [
+ -0.26613,
+ -0.64197,
+ -0.70077
+ ],
+ [
+ -0.26613,
+ 0.64197,
+ 0.70077
+ ],
+ [
+ -0.26489,
+ -0.64004,
+ 0.70303
+ ],
+ [
+ -0.26489,
+ 0.64004,
+ -0.70303
+ ],
+ [
+ -0.26287,
+ -0.39233,
+ 0.94
+ ],
+ [
+ -0.26287,
+ 0.39233,
+ -0.94
+ ],
+ [
+ -0.26223,
+ -0.10955,
+ 0.88911
+ ],
+ [
+ -0.26223,
+ 0.10955,
+ -0.88911
+ ],
+ [
+ -0.25668,
+ -0.16885,
+ -0.95562
+ ],
+ [
+ -0.25668,
+ 0.16885,
+ 0.95562
+ ],
+ [
+ -0.24754,
+ -0.16806,
+ 0.93243
+ ],
+ [
+ -0.24754,
+ 0.16806,
+ -0.93243
+ ],
+ [
+ -0.23209,
+ -0.34844,
+ -0.82889
+ ],
+ [
+ -0.23209,
+ 0.34844,
+ 0.82889
+ ],
+ [
+ -0.22564,
+ -0.5391,
+ 0.81586
+ ],
+ [
+ -0.22564,
+ 0.5391,
+ -0.81586
+ ],
+ [
+ -0.22357,
+ -0.22582,
+ 0.98605
+ ],
+ [
+ -0.22357,
+ 0.22582,
+ -0.98605
+ ],
+ [
+ -0.21578,
+ -0.52657,
+ -0.79026
+ ],
+ [
+ -0.21578,
+ 0.52657,
+ 0.79026
+ ],
+ [
+ -0.20523,
+ -0.20298,
+ -0.902
+ ],
+ [
+ -0.20523,
+ 0.20298,
+ 0.902
+ ],
+ [
+ -0.19142,
+ -0.96235,
+ 0.00232
+ ],
+ [
+ -0.19142,
+ 0.96235,
+ -0.00232
+ ],
+ [
+ -0.18971,
+ -0.97176,
+ 0.16052
+ ],
+ [
+ -0.18971,
+ 0.97176,
+ -0.16052
+ ],
+ [
+ -0.18842,
+ -0.92925,
+ -0.15005
+ ],
+ [
+ -0.18842,
+ 0.92925,
+ 0.15005
+ ],
+ [
+ -0.18308,
+ -0.9486,
+ 0.31822
+ ],
+ [
+ -0.18308,
+ 0.9486,
+ -0.31822
+ ],
+ [
+ -0.18103,
+ -0.8819,
+ -0.29526
+ ],
+ [
+ -0.18103,
+ 0.8819,
+ 0.29526
+ ],
+ [
+ -0.18003,
+ -0.26865,
+ 1.00231
+ ],
+ [
+ -0.18003,
+ 0.26865,
+ -1.00231
+ ],
+ [
+ -0.17711,
+ -0.42012,
+ 0.90612
+ ],
+ [
+ -0.17711,
+ 0.42012,
+ -0.90612
+ ],
+ [
+ -0.17156,
+ -0.88924,
+ 0.46587
+ ],
+ [
+ -0.17156,
+ 0.88924,
+ -0.46587
+ ],
+ [
+ -0.16956,
+ -0.82568,
+ -0.43542
+ ],
+ [
+ -0.16956,
+ 0.82568,
+ 0.43542
+ ],
+ [
+ -0.16383,
+ -0.40298,
+ -0.86277
+ ],
+ [
+ -0.16383,
+ 0.40298,
+ 0.86277
+ ],
+ [
+ -0.15774,
+ -0.03189,
+ -1.01131
+ ],
+ [
+ -0.15774,
+ 0.03189,
+ 1.01131
+ ],
+ [
+ -0.15687,
+ -0.23556,
+ -0.88573
+ ],
+ [
+ -0.15687,
+ 0.23556,
+ 0.88573
+ ],
+ [
+ -0.15551,
+ -0.79731,
+ 0.59463
+ ],
+ [
+ -0.15551,
+ 0.79731,
+ -0.59463
+ ],
+ [
+ -0.15422,
+ -0.7598,
+ -0.57228
+ ],
+ [
+ -0.15422,
+ 0.7598,
+ 0.57228
+ ],
+ [
+ -0.15349,
+ -0.00091,
+ -0.97982
+ ],
+ [
+ -0.15349,
+ 0.00091,
+ 0.97982
+ ],
+ [
+ -0.14958,
+ -0.06158,
+ -1.01481
+ ],
+ [
+ -0.14958,
+ 0.06158,
+ 1.01481
+ ],
+ [
+ -0.14335,
+ -0.028,
+ 0.94833
+ ],
+ [
+ -0.14335,
+ 0.028,
+ -0.94833
+ ],
+ [
+ -0.1355,
+ -0.68213,
+ 0.70025
+ ],
+ [
+ -0.1355,
+ 0.68213,
+ -0.70025
+ ],
+ [
+ -0.13522,
+ -0.67884,
+ -0.70354
+ ],
+ [
+ -0.13522,
+ 0.67884,
+ 0.70354
+ ],
+ [
+ -0.13404,
+ -0.0559,
+ 0.94483
+ ],
+ [
+ -0.13404,
+ 0.0559,
+ -0.94483
+ ],
+ [
+ -0.12957,
+ -0.08551,
+ -0.98721
+ ],
+ [
+ -0.12957,
+ 0.08551,
+ 0.98721
+ ],
+ [
+ -0.12568,
+ -0.08505,
+ 0.97243
+ ],
+ [
+ -0.12568,
+ 0.08505,
+ -0.97243
+ ],
+ [
+ -0.12097,
+ -0.28661,
+ 0.96677
+ ],
+ [
+ -0.12097,
+ 0.28661,
+ -0.96677
+ ],
+ [
+ -0.11279,
+ -0.57696,
+ -0.82164
+ ],
+ [
+ -0.11279,
+ 0.57696,
+ 0.82164
+ ],
+ [
+ -0.11255,
+ -0.11346,
+ 1.0066
+ ],
+ [
+ -0.11255,
+ 0.11346,
+ -1.0066
+ ],
+ [
+ -0.11225,
+ -0.55435,
+ 0.78447
+ ],
+ [
+ -0.11225,
+ 0.55435,
+ -0.78447
+ ],
+ [
+ -0.1111,
+ -0.27365,
+ -0.92128
+ ],
+ [
+ -0.1111,
+ 0.27365,
+ 0.92128
+ ],
+ [
+ -0.10452,
+ -0.10361,
+ -0.95304
+ ],
+ [
+ -0.10452,
+ 0.10361,
+ 0.95304
+ ],
+ [
+ -0.0903,
+ -0.13482,
+ 1.01697
+ ],
+ [
+ -0.0903,
+ 0.13482,
+ -1.01697
+ ],
+ [
+ -0.08735,
+ -0.45229,
+ -0.91591
+ ],
+ [
+ -0.08735,
+ 0.45229,
+ 0.91591
+ ],
+ [
+ -0.08646,
+ -0.42151,
+ 0.85297
+ ],
+ [
+ -0.08646,
+ 0.42151,
+ -0.85297
+ ],
+ [
+ -0.08026,
+ -0.12043,
+ -0.94267
+ ],
+ [
+ -0.08026,
+ 0.12043,
+ 0.94267
+ ],
+ [
+ -0.06082,
+ -0.14465,
+ 0.99431
+ ],
+ [
+ -0.06082,
+ 0.14465,
+ -0.99431
+ ],
+ [
+ -0.05955,
+ -0.30896,
+ -0.97704
+ ],
+ [
+ -0.05955,
+ 0.30896,
+ 0.97704
+ ],
+ [
+ -0.05876,
+ -0.2858,
+ 0.911
+ ],
+ [
+ -0.05876,
+ 0.2858,
+ -0.911
+ ],
+ [
+ -0.05666,
+ -0.13897,
+ -0.96533
+ ],
+ [
+ -0.05666,
+ 0.13897,
+ 0.96533
+ ],
+ [
+ -0.03018,
+ -0.15557,
+ -1.00086
+ ],
+ [
+ -0.03018,
+ 0.15557,
+ 1.00086
+ ],
+ [
+ -0.02971,
+ -0.14552,
+ 0.95878
+ ],
+ [
+ -0.02971,
+ 0.14552,
+ -0.95878
+ ],
+ [
+ 0.0,
+ -1.00687,
+ 0.16471
+ ],
+ [
+ 0.0,
+ -0.99242,
+ 0.32741
+ ],
+ [
+ 0.0,
+ -0.9812,
+ 0.00418
+ ],
+ [
+ 0.0,
+ -0.93137,
+ -0.14586
+ ],
+ [
+ 0.0,
+ -0.93072,
+ 0.47805
+ ],
+ [
+ 0.0,
+ -0.87394,
+ -0.28607
+ ],
+ [
+ 0.0,
+ -0.82715,
+ 0.60357
+ ],
+ [
+ 0.0,
+ -0.8178,
+ -0.42324
+ ],
+ [
+ -0.0,
+ -0.76047,
+ -0.56334
+ ],
+ [
+ 0.0,
+ -0.69677,
+ 0.69894
+ ],
+ [
+ -0.0,
+ -0.69087,
+ -0.70486
+ ],
+ [
+ -0.0,
+ -0.59679,
+ -0.8365
+ ],
+ [
+ 0.0,
+ -0.55669,
+ 0.76961
+ ],
+ [
+ 0.0,
+ -0.47278,
+ -0.94109
+ ],
+ [
+ 0.0,
+ -0.41814,
+ 0.8278
+ ],
+ [
+ 0.0,
+ -0.32379,
+ -1.00346
+ ],
+ [
+ 0.0,
+ -0.28262,
+ 0.88459
+ ],
+ [
+ 0.0,
+ -0.16244,
+ -1.01769
+ ],
+ [
+ 0.0,
+ -0.14455,
+ 0.94194
+ ],
+ [
+ 0.0,
+ -0.0,
+ -0.98772
+ ],
+ [
+ -0.0,
+ 0.0,
+ 0.98772
+ ],
+ [
+ 0.0,
+ 0.14455,
+ -0.94194
+ ],
+ [
+ 0.0,
+ 0.16244,
+ 1.01769
+ ],
+ [
+ -0.0,
+ 0.28262,
+ -0.88459
+ ],
+ [
+ -0.0,
+ 0.32379,
+ 1.00346
+ ],
+ [
+ 0.0,
+ 0.41814,
+ -0.8278
+ ],
+ [
+ -0.0,
+ 0.47278,
+ 0.94109
+ ],
+ [
+ 0.0,
+ 0.55669,
+ -0.76961
+ ],
+ [
+ -0.0,
+ 0.59679,
+ 0.8365
+ ],
+ [
+ -0.0,
+ 0.69087,
+ 0.70486
+ ],
+ [
+ 0.0,
+ 0.69677,
+ -0.69894
+ ],
+ [
+ -0.0,
+ 0.76047,
+ 0.56334
+ ],
+ [
+ 0.0,
+ 0.8178,
+ 0.42324
+ ],
+ [
+ -0.0,
+ 0.82715,
+ -0.60357
+ ],
+ [
+ -0.0,
+ 0.87394,
+ 0.28607
+ ],
+ [
+ -0.0,
+ 0.93072,
+ -0.47805
+ ],
+ [
+ 0.0,
+ 0.93137,
+ 0.14586
+ ],
+ [
+ 0.0,
+ 0.9812,
+ -0.00418
+ ],
+ [
+ 0.0,
+ 0.99242,
+ -0.32741
+ ],
+ [
+ 0.0,
+ 1.00687,
+ -0.16471
+ ],
+ [
+ 0.02971,
+ -0.14552,
+ 0.95878
+ ],
+ [
+ 0.02971,
+ 0.14552,
+ -0.95878
+ ],
+ [
+ 0.03018,
+ -0.15557,
+ -1.00086
+ ],
+ [
+ 0.03018,
+ 0.15557,
+ 1.00086
+ ],
+ [
+ 0.05666,
+ -0.13897,
+ -0.96533
+ ],
+ [
+ 0.05666,
+ 0.13897,
+ 0.96533
+ ],
+ [
+ 0.05876,
+ -0.2858,
+ 0.911
+ ],
+ [
+ 0.05876,
+ 0.2858,
+ -0.911
+ ],
+ [
+ 0.05955,
+ -0.30896,
+ -0.97704
+ ],
+ [
+ 0.05955,
+ 0.30896,
+ 0.97704
+ ],
+ [
+ 0.06082,
+ -0.14465,
+ 0.99431
+ ],
+ [
+ 0.06082,
+ 0.14465,
+ -0.99431
+ ],
+ [
+ 0.08026,
+ -0.12043,
+ -0.94267
+ ],
+ [
+ 0.08026,
+ 0.12043,
+ 0.94267
+ ],
+ [
+ 0.08646,
+ -0.42151,
+ 0.85297
+ ],
+ [
+ 0.08646,
+ 0.42151,
+ -0.85297
+ ],
+ [
+ 0.08735,
+ -0.45229,
+ -0.91591
+ ],
+ [
+ 0.08735,
+ 0.45229,
+ 0.91591
+ ],
+ [
+ 0.0903,
+ -0.13482,
+ 1.01697
+ ],
+ [
+ 0.0903,
+ 0.13482,
+ -1.01697
+ ],
+ [
+ 0.10452,
+ -0.10361,
+ -0.95304
+ ],
+ [
+ 0.10452,
+ 0.10361,
+ 0.95304
+ ],
+ [
+ 0.1111,
+ -0.27365,
+ -0.92128
+ ],
+ [
+ 0.1111,
+ 0.27365,
+ 0.92128
+ ],
+ [
+ 0.11225,
+ -0.55435,
+ 0.78447
+ ],
+ [
+ 0.11225,
+ 0.55435,
+ -0.78447
+ ],
+ [
+ 0.11255,
+ -0.11346,
+ 1.0066
+ ],
+ [
+ 0.11255,
+ 0.11346,
+ -1.0066
+ ],
+ [
+ 0.11279,
+ -0.57696,
+ -0.82164
+ ],
+ [
+ 0.11279,
+ 0.57696,
+ 0.82164
+ ],
+ [
+ 0.12097,
+ -0.28661,
+ 0.96677
+ ],
+ [
+ 0.12097,
+ 0.28661,
+ -0.96677
+ ],
+ [
+ 0.12568,
+ -0.08505,
+ 0.97243
+ ],
+ [
+ 0.12568,
+ 0.08505,
+ -0.97243
+ ],
+ [
+ 0.12957,
+ -0.08551,
+ -0.98721
+ ],
+ [
+ 0.12957,
+ 0.08551,
+ 0.98721
+ ],
+ [
+ 0.13404,
+ -0.0559,
+ 0.94483
+ ],
+ [
+ 0.13404,
+ 0.0559,
+ -0.94483
+ ],
+ [
+ 0.13522,
+ -0.67884,
+ -0.70354
+ ],
+ [
+ 0.13522,
+ 0.67884,
+ 0.70354
+ ],
+ [
+ 0.1355,
+ -0.68213,
+ 0.70025
+ ],
+ [
+ 0.1355,
+ 0.68213,
+ -0.70025
+ ],
+ [
+ 0.14335,
+ -0.028,
+ 0.94833
+ ],
+ [
+ 0.14335,
+ 0.028,
+ -0.94833
+ ],
+ [
+ 0.14958,
+ -0.06158,
+ -1.01481
+ ],
+ [
+ 0.14958,
+ 0.06158,
+ 1.01481
+ ],
+ [
+ 0.15349,
+ -0.00091,
+ -0.97982
+ ],
+ [
+ 0.15349,
+ 0.00091,
+ 0.97982
+ ],
+ [
+ 0.15422,
+ -0.7598,
+ -0.57228
+ ],
+ [
+ 0.15422,
+ 0.7598,
+ 0.57228
+ ],
+ [
+ 0.15551,
+ -0.79731,
+ 0.59463
+ ],
+ [
+ 0.15551,
+ 0.79731,
+ -0.59463
+ ],
+ [
+ 0.15687,
+ -0.23556,
+ -0.88573
+ ],
+ [
+ 0.15687,
+ 0.23556,
+ 0.88573
+ ],
+ [
+ 0.15774,
+ -0.03189,
+ -1.01131
+ ],
+ [
+ 0.15774,
+ 0.03189,
+ 1.01131
+ ],
+ [
+ 0.16383,
+ -0.40298,
+ -0.86277
+ ],
+ [
+ 0.16383,
+ 0.40298,
+ 0.86277
+ ],
+ [
+ 0.16956,
+ -0.82568,
+ -0.43542
+ ],
+ [
+ 0.16956,
+ 0.82568,
+ 0.43542
+ ],
+ [
+ 0.17156,
+ -0.88924,
+ 0.46587
+ ],
+ [
+ 0.17156,
+ 0.88924,
+ -0.46587
+ ],
+ [
+ 0.17711,
+ -0.42012,
+ 0.90612
+ ],
+ [
+ 0.17711,
+ 0.42012,
+ -0.90612
+ ],
+ [
+ 0.18003,
+ -0.26865,
+ 1.00231
+ ],
+ [
+ 0.18003,
+ 0.26865,
+ -1.00231
+ ],
+ [
+ 0.18103,
+ -0.8819,
+ -0.29526
+ ],
+ [
+ 0.18103,
+ 0.8819,
+ 0.29526
+ ],
+ [
+ 0.18308,
+ -0.9486,
+ 0.31822
+ ],
+ [
+ 0.18308,
+ 0.9486,
+ -0.31822
+ ],
+ [
+ 0.18842,
+ -0.92925,
+ -0.15005
+ ],
+ [
+ 0.18842,
+ 0.92925,
+ 0.15005
+ ],
+ [
+ 0.18971,
+ -0.97176,
+ 0.16052
+ ],
+ [
+ 0.18971,
+ 0.97176,
+ -0.16052
+ ],
+ [
+ 0.19142,
+ -0.96235,
+ 0.00232
+ ],
+ [
+ 0.19142,
+ 0.96235,
+ -0.00232
+ ],
+ [
+ 0.20523,
+ -0.20298,
+ -0.902
+ ],
+ [
+ 0.20523,
+ 0.20298,
+ 0.902
+ ],
+ [
+ 0.21578,
+ -0.52657,
+ -0.79026
+ ],
+ [
+ 0.21578,
+ 0.52657,
+ 0.79026
+ ],
+ [
+ 0.22357,
+ -0.22582,
+ 0.98605
+ ],
+ [
+ 0.22357,
+ 0.22582,
+ -0.98605
+ ],
+ [
+ 0.22564,
+ -0.5391,
+ 0.81586
+ ],
+ [
+ 0.22564,
+ 0.5391,
+ -0.81586
+ ],
+ [
+ 0.23209,
+ -0.34844,
+ -0.82889
+ ],
+ [
+ 0.23209,
+ 0.34844,
+ 0.82889
+ ],
+ [
+ 0.24754,
+ -0.16806,
+ 0.93243
+ ],
+ [
+ 0.24754,
+ 0.16806,
+ -0.93243
+ ],
+ [
+ 0.25668,
+ -0.16885,
+ -0.95562
+ ],
+ [
+ 0.25668,
+ 0.16885,
+ 0.95562
+ ],
+ [
+ 0.26223,
+ -0.10955,
+ 0.88911
+ ],
+ [
+ 0.26223,
+ 0.10955,
+ -0.88911
+ ],
+ [
+ 0.26287,
+ -0.39233,
+ 0.94
+ ],
+ [
+ 0.26287,
+ 0.39233,
+ -0.94
+ ],
+ [
+ 0.26489,
+ -0.64004,
+ 0.70303
+ ],
+ [
+ 0.26489,
+ 0.64004,
+ -0.70303
+ ],
+ [
+ 0.26613,
+ -0.64197,
+ -0.70077
+ ],
+ [
+ 0.26613,
+ 0.64197,
+ 0.70077
+ ],
+ [
+ 0.28084,
+ -0.05459,
+ 0.89461
+ ],
+ [
+ 0.28084,
+ 0.05459,
+ -0.89461
+ ],
+ [
+ 0.29578,
+ -0.72288,
+ 0.57576
+ ],
+ [
+ 0.29578,
+ 0.72288,
+ -0.57576
+ ],
+ [
+ 0.29803,
+ -0.12252,
+ -0.99893
+ ],
+ [
+ 0.29803,
+ 0.12252,
+ 0.99893
+ ],
+ [
+ 0.30287,
+ -0.29978,
+ -0.84439
+ ],
+ [
+ 0.30287,
+ 0.29978,
+ 0.84439
+ ],
+ [
+ 0.30321,
+ -0.00225,
+ -0.94403
+ ],
+ [
+ 0.30321,
+ 0.00225,
+ 0.94403
+ ],
+ [
+ 0.30911,
+ -0.46344,
+ -0.77025
+ ],
+ [
+ 0.30911,
+ 0.46344,
+ 0.77025
+ ],
+ [
+ 0.31177,
+ -0.74388,
+ -0.59115
+ ],
+ [
+ 0.31177,
+ 0.74388,
+ 0.59115
+ ],
+ [
+ 0.31393,
+ -0.06372,
+ -0.99344
+ ],
+ [
+ 0.31393,
+ 0.06372,
+ 0.99344
+ ],
+ [
+ 0.32094,
+ -0.78996,
+ 0.44016
+ ],
+ [
+ 0.32094,
+ 0.78996,
+ -0.44016
+ ],
+ [
+ 0.3271,
+ -0.33019,
+ 0.92449
+ ],
+ [
+ 0.3271,
+ 0.33019,
+ -0.92449
+ ],
+ [
+ 0.33172,
+ -0.49564,
+ 0.83586
+ ],
+ [
+ 0.33172,
+ 0.49564,
+ -0.83586
+ ],
+ [
+ 0.34279,
+ -0.84354,
+ 0.29883
+ ],
+ [
+ 0.34279,
+ 0.84354,
+ -0.29883
+ ],
+ [
+ 0.34819,
+ -0.82545,
+ -0.46113
+ ],
+ [
+ 0.34819,
+ 0.82545,
+ 0.46113
+ ],
+ [
+ 0.36173,
+ -0.8835,
+ 0.15168
+ ],
+ [
+ 0.36173,
+ 0.8835,
+ -0.15168
+ ],
+ [
+ 0.36427,
+ -0.24704,
+ 0.87339
+ ],
+ [
+ 0.36427,
+ 0.24704,
+ -0.87339
+ ],
+ [
+ 0.37144,
+ -0.88075,
+ -0.31465
+ ],
+ [
+ 0.37144,
+ 0.88075,
+ 0.31465
+ ],
+ [
+ 0.37549,
+ -0.90651,
+ -0.0016
+ ],
+ [
+ 0.37549,
+ 0.90651,
+ 0.0016
+ ],
+ [
+ 0.3765,
+ -0.24792,
+ -0.89549
+ ],
+ [
+ 0.3765,
+ 0.24792,
+ 0.89549
+ ],
+ [
+ 0.38,
+ -0.90721,
+ -0.15889
+ ],
+ [
+ 0.38,
+ 0.90721,
+ 0.15889
+ ],
+ [
+ 0.38382,
+ -0.57451,
+ 0.7048
+ ],
+ [
+ 0.38382,
+ 0.57451,
+ -0.7048
+ ],
+ [
+ 0.38711,
+ -0.57927,
+ -0.699
+ ],
+ [
+ 0.38711,
+ 0.57927,
+ 0.699
+ ],
+ [
+ 0.38778,
+ -0.1619,
+ 0.83211
+ ],
+ [
+ 0.38778,
+ 0.1619,
+ -0.83211
+ ],
+ [
+ 0.39896,
+ -0.39662,
+ -0.77941
+ ],
+ [
+ 0.39896,
+ 0.39662,
+ 0.77941
+ ],
+ [
+ 0.41495,
+ -0.08079,
+ 0.83735
+ ],
+ [
+ 0.41495,
+ 0.08079,
+ -0.83735
+ ],
+ [
+ 0.41667,
+ -0.41901,
+ 0.82671
+ ],
+ [
+ 0.41667,
+ 0.41901,
+ -0.82671
+ ],
+ [
+ 0.42226,
+ -0.63323,
+ 0.56373
+ ],
+ [
+ 0.42226,
+ 0.63323,
+ -0.56373
+ ],
+ [
+ 0.43532,
+ -0.17904,
+ -0.93677
+ ],
+ [
+ 0.43532,
+ 0.17904,
+ 0.93677
+ ],
+ [
+ 0.44546,
+ -0.00309,
+ -0.88444
+ ],
+ [
+ 0.44546,
+ 0.00309,
+ 0.88444
+ ],
+ [
+ 0.45393,
+ -0.68155,
+ 0.42376
+ ],
+ [
+ 0.45393,
+ 0.68155,
+ -0.42376
+ ],
+ [
+ 0.45885,
+ -0.09302,
+ -0.93154
+ ],
+ [
+ 0.45885,
+ 0.09302,
+ 0.93154
+ ],
+ [
+ 0.45978,
+ -0.68682,
+ -0.60318
+ ],
+ [
+ 0.45978,
+ 0.68682,
+ 0.60318
+ ],
+ [
+ 0.47501,
+ -0.32015,
+ 0.79653
+ ],
+ [
+ 0.47501,
+ 0.32015,
+ -0.79653
+ ],
+ [
+ 0.48406,
+ -0.32068,
+ -0.80958
+ ],
+ [
+ 0.48406,
+ 0.32068,
+ 0.80958
+ ],
+ [
+ 0.48509,
+ -0.72831,
+ 0.28647
+ ],
+ [
+ 0.48509,
+ 0.72831,
+ -0.28647
+ ],
+ [
+ 0.48924,
+ -0.48902,
+ 0.70399
+ ],
+ [
+ 0.48924,
+ 0.48902,
+ -0.70399
+ ],
+ [
+ 0.49197,
+ -0.49219,
+ -0.69981
+ ],
+ [
+ 0.49197,
+ 0.49219,
+ 0.69981
+ ],
+ [
+ 0.51538,
+ -0.21445,
+ 0.77216
+ ],
+ [
+ 0.51538,
+ 0.21445,
+ -0.77216
+ ],
+ [
+ 0.51716,
+ -0.77547,
+ 0.14604
+ ],
+ [
+ 0.51716,
+ 0.77547,
+ -0.14604
+ ],
+ [
+ 0.51749,
+ -0.77228,
+ -0.47753
+ ],
+ [
+ 0.51749,
+ 0.77228,
+ 0.47753
+ ],
+ [
+ 0.54513,
+ -0.81584,
+ -0.0041
+ ],
+ [
+ 0.54513,
+ 0.81584,
+ 0.0041
+ ],
+ [
+ 0.54646,
+ -0.54282,
+ 0.56923
+ ],
+ [
+ 0.54646,
+ 0.54282,
+ -0.56923
+ ],
+ [
+ 0.54956,
+ -0.10799,
+ 0.77525
+ ],
+ [
+ 0.54956,
+ 0.10799,
+ -0.77525
+ ],
+ [
+ 0.55029,
+ -0.22697,
+ -0.83396
+ ],
+ [
+ 0.55029,
+ 0.22697,
+ 0.83396
+ ],
+ [
+ 0.5518,
+ -0.82351,
+ -0.32701
+ ],
+ [
+ 0.5518,
+ 0.82351,
+ 0.32701
+ ],
+ [
+ 0.55967,
+ -0.83613,
+ -0.16453
+ ],
+ [
+ 0.55967,
+ 0.83613,
+ 0.16453
+ ],
+ [
+ 0.57616,
+ -0.5798,
+ -0.59768
+ ],
+ [
+ 0.57616,
+ 0.5798,
+ 0.59768
+ ],
+ [
+ 0.57629,
+ -0.38532,
+ -0.70248
+ ],
+ [
+ 0.57629,
+ 0.38532,
+ 0.70248
+ ],
+ [
+ 0.57674,
+ -0.00234,
+ -0.80306
+ ],
+ [
+ 0.57674,
+ 0.00234,
+ 0.80306
+ ],
+ [
+ 0.57749,
+ -0.3856,
+ 0.70132
+ ],
+ [
+ 0.57749,
+ 0.3856,
+ -0.70132
+ ],
+ [
+ 0.58176,
+ -0.11704,
+ -0.83087
+ ],
+ [
+ 0.58176,
+ 0.11704,
+ 0.83087
+ ],
+ [
+ 0.5931,
+ -0.58683,
+ 0.43126
+ ],
+ [
+ 0.5931,
+ 0.58683,
+ -0.43126
+ ],
+ [
+ 0.63355,
+ -0.62692,
+ 0.29212
+ ],
+ [
+ 0.63355,
+ 0.62692,
+ -0.29212
+ ],
+ [
+ 0.63845,
+ -0.26455,
+ -0.70463
+ ],
+ [
+ 0.63845,
+ 0.26455,
+ 0.70463
+ ],
+ [
+ 0.64329,
+ -0.64956,
+ -0.47003
+ ],
+ [
+ 0.64329,
+ 0.64956,
+ 0.47003
+ ],
+ [
+ 0.64355,
+ -0.26648,
+ 0.69916
+ ],
+ [
+ 0.64355,
+ 0.26648,
+ -0.69916
+ ],
+ [
+ 0.65264,
+ -0.44038,
+ -0.57953
+ ],
+ [
+ 0.65264,
+ 0.44038,
+ 0.57953
+ ],
+ [
+ 0.66742,
+ -0.44166,
+ 0.58738
+ ],
+ [
+ 0.66742,
+ 0.44166,
+ -0.58738
+ ],
+ [
+ 0.66851,
+ -0.66428,
+ 0.14862
+ ],
+ [
+ 0.66851,
+ 0.66428,
+ -0.14862
+ ],
+ [
+ 0.6781,
+ -0.13476,
+ -0.70436
+ ],
+ [
+ 0.6781,
+ 0.13476,
+ 0.70436
+ ],
+ [
+ 0.68287,
+ -0.13596,
+ 0.69944
+ ],
+ [
+ 0.68287,
+ 0.13596,
+ -0.69944
+ ],
+ [
+ 0.68617,
+ -0.69279,
+ -0.32136
+ ],
+ [
+ 0.68617,
+ 0.69279,
+ 0.32136
+ ],
+ [
+ 0.69382,
+ -0.69382,
+ -0.00296
+ ],
+ [
+ 0.69382,
+ -0.00022,
+ 0.7019
+ ],
+ [
+ 0.69382,
+ 0.00022,
+ -0.7019
+ ],
+ [
+ 0.69382,
+ 0.69382,
+ 0.00296
+ ],
+ [
+ 0.70204,
+ -0.70627,
+ -0.16195
+ ],
+ [
+ 0.70204,
+ 0.70627,
+ 0.16195
+ ],
+ [
+ 0.7044,
+ -0.29328,
+ -0.56487
+ ],
+ [
+ 0.7044,
+ 0.29328,
+ 0.56487
+ ],
+ [
+ 0.71434,
+ -0.48471,
+ -0.4453
+ ],
+ [
+ 0.71434,
+ 0.48471,
+ 0.4453
+ ],
+ [
+ 0.7395,
+ -0.48671,
+ 0.45599
+ ],
+ [
+ 0.7395,
+ 0.48671,
+ -0.45599
+ ],
+ [
+ 0.75176,
+ -0.14747,
+ -0.56673
+ ],
+ [
+ 0.75176,
+ 0.14747,
+ 0.56673
+ ],
+ [
+ 0.7586,
+ -0.31682,
+ -0.42532
+ ],
+ [
+ 0.7586,
+ 0.31682,
+ 0.42532
+ ],
+ [
+ 0.76237,
+ -0.31428,
+ 0.60204
+ ],
+ [
+ 0.76237,
+ 0.31428,
+ -0.60204
+ ],
+ [
+ 0.76269,
+ -0.51743,
+ -0.30271
+ ],
+ [
+ 0.76269,
+ 0.51743,
+ 0.30271
+ ],
+ [
+ 0.78913,
+ -0.51947,
+ 0.31077
+ ],
+ [
+ 0.78913,
+ 0.51947,
+ -0.31077
+ ],
+ [
+ 0.79381,
+ -0.00364,
+ 0.58346
+ ],
+ [
+ 0.79381,
+ 0.00364,
+ -0.58346
+ ],
+ [
+ 0.79737,
+ -0.53777,
+ -0.15344
+ ],
+ [
+ 0.79737,
+ 0.53777,
+ 0.15344
+ ],
+ [
+ 0.80535,
+ -0.16226,
+ 0.60018
+ ],
+ [
+ 0.80535,
+ 0.16226,
+ -0.60018
+ ],
+ [
+ 0.81061,
+ -0.33851,
+ -0.28764
+ ],
+ [
+ 0.81061,
+ 0.33851,
+ 0.28764
+ ],
+ [
+ 0.8121,
+ -0.15798,
+ -0.42786
+ ],
+ [
+ 0.8121,
+ 0.15798,
+ 0.42786
+ ],
+ [
+ 0.81423,
+ -0.53906,
+ 0.15712
+ ],
+ [
+ 0.81423,
+ 0.53906,
+ -0.15712
+ ],
+ [
+ 0.81584,
+ -0.54513,
+ 0.00082
+ ],
+ [
+ 0.81584,
+ 0.54513,
+ -0.00082
+ ],
+ [
+ 0.85682,
+ -0.35231,
+ 0.47597
+ ],
+ [
+ 0.85682,
+ 0.35231,
+ -0.47597
+ ],
+ [
+ 0.86251,
+ -0.35902,
+ -0.14657
+ ],
+ [
+ 0.86251,
+ 0.35902,
+ 0.14657
+ ],
+ [
+ 0.86765,
+ -0.16884,
+ -0.28955
+ ],
+ [
+ 0.86765,
+ 0.16884,
+ 0.28955
+ ],
+ [
+ 0.87426,
+ -0.00627,
+ 0.45065
+ ],
+ [
+ 0.87426,
+ 0.00627,
+ -0.45065
+ ],
+ [
+ 0.90282,
+ -0.18314,
+ 0.47343
+ ],
+ [
+ 0.90282,
+ 0.18314,
+ -0.47343
+ ],
+ [
+ 0.90651,
+ -0.37549,
+ 0.00387
+ ],
+ [
+ 0.90651,
+ 0.37549,
+ -0.00387
+ ],
+ [
+ 0.91368,
+ -0.37572,
+ 0.32584
+ ],
+ [
+ 0.91368,
+ 0.37572,
+ -0.32584
+ ],
+ [
+ 0.92017,
+ -0.18064,
+ -0.14744
+ ],
+ [
+ 0.92017,
+ 0.18064,
+ 0.14744
+ ],
+ [
+ 0.9282,
+ -0.38272,
+ 0.16399
+ ],
+ [
+ 0.9282,
+ 0.38272,
+ -0.16399
+ ],
+ [
+ 0.93318,
+ -0.00662,
+ 0.30674
+ ],
+ [
+ 0.93318,
+ 0.00662,
+ -0.30674
+ ],
+ [
+ 0.96235,
+ -0.19142,
+ 0.00348
+ ],
+ [
+ 0.96235,
+ 0.19142,
+ -0.00348
+ ],
+ [
+ 0.96284,
+ -0.19527,
+ 0.32393
+ ],
+ [
+ 0.96284,
+ 0.19527,
+ -0.32393
+ ],
+ [
+ 0.96912,
+ -0.00423,
+ 0.15528
+ ],
+ [
+ 0.96912,
+ 0.00423,
+ -0.15528
+ ],
+ [
+ 0.98083,
+ -0.1975,
+ 0.16312
+ ],
+ [
+ 0.98083,
+ 0.1975,
+ -0.16312
+ ],
+ [
+ 0.9812,
+ 0.0,
+ 0.0
+ ]
+ ]
+ },
+ "simple-deform-twist-cylinder": {
+ "vertexCount": 16,
+ "edgeCount": 24,
+ "faceCount": 10,
+ "faceSizes": {
+ "4": 8,
+ "8": 2
+ },
+ "volume": 2.990187,
+ "area": 14.315991,
+ "positions": [
+ [
+ -1.0,
+ 0.0,
+ -1.0
+ ],
+ [
+ -1.0,
+ 0.0,
+ 1.0
+ ],
+ [
+ -0.70711,
+ -0.70711,
+ -1.0
+ ],
+ [
+ -0.70711,
+ -0.70711,
+ 1.0
+ ],
+ [
+ -0.70711,
+ 0.70711,
+ -1.0
+ ],
+ [
+ -0.70711,
+ 0.70711,
+ 1.0
+ ],
+ [
+ 0.0,
+ -1.0,
+ -1.0
+ ],
+ [
+ 0.0,
+ -1.0,
+ 1.0
+ ],
+ [
+ 0.0,
+ 1.0,
+ -1.0
+ ],
+ [
+ 0.0,
+ 1.0,
+ 1.0
+ ],
+ [
+ 0.70711,
+ -0.70711,
+ -1.0
+ ],
+ [
+ 0.70711,
+ -0.70711,
+ 1.0
+ ],
+ [
+ 0.70711,
+ 0.70711,
+ -1.0
+ ],
+ [
+ 0.70711,
+ 0.70711,
+ 1.0
+ ],
+ [
+ 1.0,
+ 0.0,
+ -1.0
+ ],
+ [
+ 1.0,
+ 0.0,
+ 1.0
+ ]
+ ]
+ },
+ "simple-deform-bend-grid": {
+ "vertexCount": 16,
+ "edgeCount": 24,
+ "faceCount": 9,
+ "faceSizes": {
+ "4": 9
+ },
+ "volume": 0.0,
+ "area": 3.614789,
+ "positions": [
+ [
+ -1.09014,
+ 1.90986,
+ 0.0
+ ],
+ [
+ -0.94409,
+ 2.45493,
+ 0.0
+ ],
+ [
+ -0.54507,
+ 2.85395,
+ 0.0
+ ],
+ [
+ -0.09014,
+ 1.90986,
+ 0.0
+ ],
+ [
+ -0.07806,
+ 1.95493,
+ 0.0
+ ],
+ [
+ -0.04507,
+ 1.98792,
+ 0.0
+ ],
+ [
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ [
+ 0.0,
+ 1.0,
+ 0.0
+ ],
+ [
+ 0.0,
+ 2.0,
+ 0.0
+ ],
+ [
+ 0.0,
+ 3.0,
+ 0.0
+ ],
+ [
+ 0.45493,
+ 1.1219,
+ 0.0
+ ],
+ [
+ 0.78796,
+ 1.45493,
+ 0.0
+ ],
+ [
+ 0.90986,
+ 1.90986,
+ 0.0
+ ],
+ [
+ 0.95493,
+ 0.25587,
+ 0.0
+ ],
+ [
+ 1.65399,
+ 0.95493,
+ 0.0
+ ],
+ [
+ 1.90986,
+ 1.90986,
+ 0.0
+ ]
+ ]
+ },
+ "simple-deform-bend-cylinder": {
+ "vertexCount": 16,
+ "edgeCount": 24,
+ "faceCount": 10,
+ "faceSizes": {
+ "4": 8,
+ "8": 2
+ },
+ "volume": 4.67818,
+ "area": 16.581539,
+ "positions": [
+ [
+ -1.0,
+ 0.25587,
+ -0.95493
+ ],
+ [
+ -1.0,
+ 0.25587,
+ 0.95493
+ ],
+ [
+ -0.70711,
+ -0.3565,
+ -1.30848
+ ],
+ [
+ -0.70711,
+ -0.3565,
+ 1.30848
+ ],
+ [
+ -0.70711,
+ 0.86825,
+ -0.60138
+ ],
+ [
+ -0.70711,
+ 0.86825,
+ 0.60138
+ ],
+ [
+ 0.0,
+ -0.61015,
+ -1.45493
+ ],
+ [
+ 0.0,
+ -0.61015,
+ 1.45493
+ ],
+ [
+ 0.0,
+ 1.1219,
+ -0.45493
+ ],
+ [
+ 0.0,
+ 1.1219,
+ 0.45493
+ ],
+ [
+ 0.70711,
+ -0.3565,
+ -1.30848
+ ],
+ [
+ 0.70711,
+ -0.3565,
+ 1.30848
+ ],
+ [
+ 0.70711,
+ 0.86825,
+ -0.60138
+ ],
+ [
+ 0.70711,
+ 0.86825,
+ 0.60138
+ ],
+ [
+ 1.0,
+ 0.25587,
+ -0.95493
+ ],
+ [
+ 1.0,
+ 0.25587,
+ 0.95493
+ ]
+ ]
+ },
+ "simple-deform-taper-cylinder": {
+ "vertexCount": 16,
+ "edgeCount": 24,
+ "faceCount": 10,
+ "faceSizes": {
+ "4": 8,
+ "8": 2
+ },
+ "volume": 5.774705,
+ "area": 18.578674,
+ "positions": [
+ [
+ -1.25,
+ 0.0,
+ 1.0
+ ],
+ [
+ -0.88388,
+ -0.88388,
+ 1.0
+ ],
+ [
+ -0.88388,
+ 0.88388,
+ 1.0
+ ],
+ [
+ -0.75,
+ 0.0,
+ -1.0
+ ],
+ [
+ -0.53033,
+ -0.53033,
+ -1.0
+ ],
+ [
+ -0.53033,
+ 0.53033,
+ -1.0
+ ],
+ [
+ 0.0,
+ -1.25,
+ 1.0
+ ],
+ [
+ 0.0,
+ -0.75,
+ -1.0
+ ],
+ [
+ 0.0,
+ 0.75,
+ -1.0
+ ],
+ [
+ 0.0,
+ 1.25,
+ 1.0
+ ],
+ [
+ 0.53033,
+ -0.53033,
+ -1.0
+ ],
+ [
+ 0.53033,
+ 0.53033,
+ -1.0
+ ],
+ [
+ 0.75,
+ 0.0,
+ -1.0
+ ],
+ [
+ 0.88388,
+ -0.88388,
+ 1.0
+ ],
+ [
+ 0.88388,
+ 0.88388,
+ 1.0
+ ],
+ [
+ 1.25,
+ 0.0,
+ 1.0
+ ]
+ ]
+ },
+ "simple-deform-stretch-cylinder-x": {
+ "vertexCount": 16,
+ "edgeCount": 24,
+ "faceCount": 10,
+ "faceSizes": {
+ "4": 8,
+ "8": 2
+ },
+ "volume": 5.645541,
+ "area": 18.52191,
+ "positions": [
+ [
+ -0.8,
+ 0.0,
+ -1.0
+ ],
+ [
+ -0.8,
+ 0.0,
+ 1.0
+ ],
+ [
+ -0.56569,
+ -0.77782,
+ -1.1
+ ],
+ [
+ -0.56569,
+ -0.77782,
+ 1.1
+ ],
+ [
+ -0.56569,
+ 0.77782,
+ -1.1
+ ],
+ [
+ -0.56569,
+ 0.77782,
+ 1.1
+ ],
+ [
+ 0.0,
+ -1.2,
+ -1.2
+ ],
+ [
+ 0.0,
+ -1.2,
+ 1.2
+ ],
+ [
+ 0.0,
+ 1.2,
+ -1.2
+ ],
+ [
+ 0.0,
+ 1.2,
+ 1.2
+ ],
+ [
+ 0.56569,
+ -0.77782,
+ -1.1
+ ],
+ [
+ 0.56569,
+ -0.77782,
+ 1.1
+ ],
+ [
+ 0.56569,
+ 0.77782,
+ -1.1
+ ],
+ [
+ 0.56569,
+ 0.77782,
+ 1.1
+ ],
+ [
+ 0.8,
+ 0.0,
+ -1.0
+ ],
+ [
+ 0.8,
+ 0.0,
+ 1.0
+ ]
+ ]
+ },
+ "cast-cube-mean": {
+ "vertexCount": 8,
+ "edgeCount": 12,
+ "faceCount": 6,
+ "faceSizes": {
+ "4": 6
+ },
+ "volume": 1.0,
+ "area": 5.999999,
+ "positions": [
+ [
+ -0.5,
+ -0.5,
+ -0.5
+ ],
+ [
+ -0.5,
+ -0.5,
+ 0.5
+ ],
+ [
+ -0.5,
+ 0.5,
+ -0.5
+ ],
+ [
+ -0.5,
+ 0.5,
+ 0.5
+ ],
+ [
+ 0.5,
+ -0.5,
+ -0.5
+ ],
+ [
+ 0.5,
+ -0.5,
+ 0.5
+ ],
+ [
+ 0.5,
+ 0.5,
+ -0.5
+ ],
+ [
+ 0.5,
+ 0.5,
+ 0.5
+ ]
+ ]
+ },
+ "cast-cylinder-size": {
+ "vertexCount": 16,
+ "edgeCount": 24,
+ "faceCount": 10,
+ "faceSizes": {
+ "4": 8,
+ "8": 2
+ },
+ "volume": 6.297268,
+ "area": 19.229616,
+ "positions": [
+ [
+ -1.0364,
+ 0.0,
+ -1.0364
+ ],
+ [
+ -1.0364,
+ 0.0,
+ 1.0364
+ ],
+ [
+ -0.73284,
+ -0.73284,
+ -1.0364
+ ],
+ [
+ -0.73284,
+ -0.73284,
+ 1.0364
+ ],
+ [
+ -0.73284,
+ 0.73284,
+ -1.0364
+ ],
+ [
+ -0.73284,
+ 0.73284,
+ 1.0364
+ ],
+ [
+ 0.0,
+ -1.0364,
+ -1.0364
+ ],
+ [
+ 0.0,
+ -1.0364,
+ 1.0364
+ ],
+ [
+ 0.0,
+ 1.0364,
+ -1.0364
+ ],
+ [
+ 0.0,
+ 1.0364,
+ 1.0364
+ ],
+ [
+ 0.73284,
+ -0.73284,
+ -1.0364
+ ],
+ [
+ 0.73284,
+ -0.73284,
+ 1.0364
+ ],
+ [
+ 0.73284,
+ 0.73284,
+ -1.0364
+ ],
+ [
+ 0.73284,
+ 0.73284,
+ 1.0364
+ ],
+ [
+ 1.0364,
+ 0.0,
+ -1.0364
+ ],
+ [
+ 1.0364,
+ 0.0,
+ 1.0364
+ ]
+ ]
+ },
+ "cast-sphere-bumpy": {
+ "vertexCount": 610,
+ "edgeCount": 1248,
+ "faceCount": 640,
+ "faceSizes": {
+ "3": 64,
+ "4": 576
+ },
+ "volume": 4.141086,
+ "area": 12.797628,
+ "positions": [
+ [
+ -1.0,
+ 0.0,
+ 0.0
+ ],
+ [
+ -0.99238,
+ -0.1974,
+ 0.16026
+ ],
+ [
+ -0.99238,
+ 0.1974,
+ -0.16026
+ ],
+ [
+ -0.98769,
+ 0.0,
+ -0.15643
+ ],
+ [
+ -0.98769,
+ 0.0,
+ 0.15643
+ ],
+ [
+ -0.98079,
+ -0.19509,
+ 0.0
+ ],
+ [
+ -0.98079,
+ 0.19509,
+ 0.0
+ ],
+ [
+ -0.96966,
+ -0.19287,
+ 0.32123
+ ],
+ [
+ -0.96966,
+ 0.19287,
+ -0.32123
+ ],
+ [
+ -0.95106,
+ 0.0,
+ -0.30902
+ ],
+ [
+ -0.95106,
+ 0.0,
+ 0.30902
+ ],
+ [
+ -0.94504,
+ -0.18798,
+ -0.15261
+ ],
+ [
+ -0.94504,
+ 0.18798,
+ 0.15261
+ ],
+ [
+ -0.93728,
+ -0.38824,
+ 0.16068
+ ],
+ [
+ -0.93728,
+ 0.38824,
+ -0.16068
+ ],
+ [
+ -0.92388,
+ -0.38268,
+ 0.0
+ ],
+ [
+ -0.92388,
+ 0.38268,
+ 0.0
+ ],
+ [
+ -0.91727,
+ -0.37994,
+ 0.32259
+ ],
+ [
+ -0.91727,
+ 0.37994,
+ -0.32259
+ ],
+ [
+ -0.90844,
+ -0.1807,
+ 0.47194
+ ],
+ [
+ -0.90844,
+ 0.1807,
+ -0.47194
+ ],
+ [
+ -0.8959,
+ -0.17821,
+ -0.2968
+ ],
+ [
+ -0.8959,
+ 0.17821,
+ 0.2968
+ ],
+ [
+ -0.89101,
+ 0.0,
+ -0.45399
+ ],
+ [
+ -0.89101,
+ 0.0,
+ 0.45399
+ ],
+ [
+ -0.88773,
+ -0.36771,
+ -0.15219
+ ],
+ [
+ -0.88773,
+ 0.36771,
+ 0.15219
+ ],
+ [
+ -0.85935,
+ -0.35595,
+ 0.47394
+ ],
+ [
+ -0.85935,
+ 0.35595,
+ -0.47394
+ ],
+ [
+ -0.84006,
+ -0.34796,
+ -0.29544
+ ],
+ [
+ -0.84006,
+ 0.34796,
+ 0.29544
+ ],
+ [
+ -0.83933,
+ -0.16695,
+ -0.43604
+ ],
+ [
+ -0.83933,
+ 0.16695,
+ 0.43604
+ ],
+ [
+ -0.83147,
+ -0.55557,
+ 0.0
+ ],
+ [
+ -0.83147,
+ 0.55557,
+ 0.0
+ ],
+ [
+ -0.82594,
+ -0.55187,
+ 0.15733
+ ],
+ [
+ -0.82594,
+ 0.55187,
+ -0.15733
+ ],
+ [
+ -0.81653,
+ -0.54558,
+ -0.15554
+ ],
+ [
+ -0.81653,
+ 0.54558,
+ 0.15554
+ ],
+ [
+ -0.81286,
+ -0.16169,
+ 0.60215
+ ],
+ [
+ -0.81286,
+ 0.16169,
+ -0.60215
+ ],
+ [
+ -0.80902,
+ 0.0,
+ -0.58779
+ ],
+ [
+ -0.80902,
+ 0.0,
+ 0.58779
+ ],
+ [
+ -0.79811,
+ -0.53328,
+ 0.31188
+ ],
+ [
+ -0.79811,
+ 0.53328,
+ -0.31188
+ ],
+ [
+ -0.78702,
+ -0.32599,
+ -0.43405
+ ],
+ [
+ -0.78702,
+ 0.32599,
+ 0.43405
+ ],
+ [
+ -0.78344,
+ -0.52348,
+ -0.30615
+ ],
+ [
+ -0.78344,
+ 0.52348,
+ 0.30615
+ ],
+ [
+ -0.77408,
+ -0.15398,
+ -0.57342
+ ],
+ [
+ -0.77408,
+ 0.15398,
+ 0.57342
+ ],
+ [
+ -0.76773,
+ -0.318,
+ 0.60374
+ ],
+ [
+ -0.76773,
+ 0.318,
+ -0.60374
+ ],
+ [
+ -0.74772,
+ -0.49961,
+ 0.4582
+ ],
+ [
+ -0.74772,
+ 0.49961,
+ -0.4582
+ ],
+ [
+ -0.73397,
+ -0.49042,
+ -0.44978
+ ],
+ [
+ -0.73397,
+ 0.49042,
+ 0.44978
+ ],
+ [
+ -0.72714,
+ -0.30119,
+ -0.57183
+ ],
+ [
+ -0.72714,
+ 0.30119,
+ 0.57183
+ ],
+ [
+ -0.71292,
+ -0.71292,
+ -0.15969
+ ],
+ [
+ -0.71292,
+ 0.71292,
+ 0.15969
+ ],
+ [
+ -0.70711,
+ -0.70711,
+ 0.0
+ ],
+ [
+ -0.70711,
+ 0.0,
+ -0.70711
+ ],
+ [
+ -0.70711,
+ 0.0,
+ 0.70711
+ ],
+ [
+ -0.70711,
+ 0.70711,
+ 0.0
+ ],
+ [
+ -0.69511,
+ -0.69511,
+ -0.31941
+ ],
+ [
+ -0.69511,
+ 0.69511,
+ 0.31941
+ ],
+ [
+ -0.69352,
+ -0.13795,
+ -0.70711
+ ],
+ [
+ -0.69352,
+ -0.13795,
+ 0.70711
+ ],
+ [
+ -0.69352,
+ 0.13795,
+ -0.70711
+ ],
+ [
+ -0.69352,
+ 0.13795,
+ 0.70711
+ ],
+ [
+ -0.68389,
+ -0.68389,
+ 0.15318
+ ],
+ [
+ -0.68389,
+ 0.68389,
+ -0.15318
+ ],
+ [
+ -0.67653,
+ -0.45204,
+ 0.59116
+ ],
+ [
+ -0.67653,
+ 0.45204,
+ -0.59116
+ ],
+ [
+ -0.66882,
+ -0.44689,
+ -0.58442
+ ],
+ [
+ -0.66882,
+ 0.44689,
+ 0.58442
+ ],
+ [
+ -0.65328,
+ -0.2706,
+ -0.70711
+ ],
+ [
+ -0.65328,
+ -0.2706,
+ 0.70711
+ ],
+ [
+ -0.65328,
+ 0.2706,
+ -0.70711
+ ],
+ [
+ -0.65328,
+ 0.2706,
+ 0.70711
+ ],
+ [
+ -0.65122,
+ -0.65122,
+ -0.46925
+ ],
+ [
+ -0.65122,
+ 0.65122,
+ 0.46925
+ ],
+ [
+ -0.64988,
+ -0.64988,
+ 0.29863
+ ],
+ [
+ -0.64988,
+ 0.64988,
+ -0.29863
+ ],
+ [
+ -0.60885,
+ -0.60885,
+ 0.43872
+ ],
+ [
+ -0.60885,
+ 0.60885,
+ -0.43872
+ ],
+ [
+ -0.59058,
+ -0.11748,
+ -0.82879
+ ],
+ [
+ -0.59058,
+ 0.11748,
+ 0.82879
+ ],
+ [
+ -0.58794,
+ -0.39285,
+ -0.70711
+ ],
+ [
+ -0.58794,
+ -0.39285,
+ 0.70711
+ ],
+ [
+ -0.58794,
+ 0.39285,
+ -0.70711
+ ],
+ [
+ -0.58794,
+ 0.39285,
+ 0.70711
+ ],
+ [
+ -0.58779,
+ 0.0,
+ -0.80902
+ ],
+ [
+ -0.58779,
+ 0.0,
+ 0.80902
+ ],
+ [
+ -0.58395,
+ -0.58395,
+ -0.6
+ ],
+ [
+ -0.58395,
+ 0.58395,
+ 0.6
+ ],
+ [
+ -0.56454,
+ -0.84491,
+ -0.16094
+ ],
+ [
+ -0.56454,
+ 0.84491,
+ 0.16094
+ ],
+ [
+ -0.56241,
+ -0.11187,
+ 0.78925
+ ],
+ [
+ -0.56241,
+ 0.11187,
+ -0.78925
+ ],
+ [
+ -0.56017,
+ -0.56017,
+ 0.57558
+ ],
+ [
+ -0.56017,
+ 0.56017,
+ -0.57558
+ ],
+ [
+ -0.55779,
+ -0.23104,
+ -0.83098
+ ],
+ [
+ -0.55779,
+ 0.23104,
+ 0.83098
+ ],
+ [
+ -0.55557,
+ -0.83147,
+ 0.0
+ ],
+ [
+ -0.55557,
+ 0.83147,
+ 0.0
+ ],
+ [
+ -0.55302,
+ -0.82766,
+ -0.32343
+ ],
+ [
+ -0.55302,
+ 0.82766,
+ 0.32343
+ ],
+ [
+ -0.53292,
+ -0.79756,
+ 0.15193
+ ],
+ [
+ -0.53292,
+ 0.79756,
+ -0.15193
+ ],
+ [
+ -0.5283,
+ -0.21883,
+ 0.78705
+ ],
+ [
+ -0.5283,
+ 0.21883,
+ -0.78705
+ ],
+ [
+ -0.5181,
+ -0.7754,
+ -0.47517
+ ],
+ [
+ -0.5181,
+ 0.7754,
+ 0.47517
+ ],
+ [
+ -0.50373,
+ -0.75389,
+ 0.2946
+ ],
+ [
+ -0.50373,
+ 0.75389,
+ -0.2946
+ ],
+ [
+ -0.5,
+ -0.5,
+ -0.70711
+ ],
+ [
+ -0.5,
+ -0.5,
+ 0.70711
+ ],
+ [
+ -0.5,
+ 0.5,
+ -0.70711
+ ],
+ [
+ -0.5,
+ 0.5,
+ 0.70711
+ ],
+ [
+ -0.49153,
+ -0.32843,
+ -0.81365
+ ],
+ [
+ -0.49153,
+ 0.32843,
+ 0.81365
+ ],
+ [
+ -0.48592,
+ -0.32468,
+ 0.80438
+ ],
+ [
+ -0.48592,
+ 0.32468,
+ -0.80438
+ ],
+ [
+ -0.47193,
+ -0.70629,
+ 0.43281
+ ],
+ [
+ -0.47193,
+ 0.70629,
+ -0.43281
+ ],
+ [
+ -0.46287,
+ -0.09207,
+ -0.92624
+ ],
+ [
+ -0.46287,
+ 0.09207,
+ 0.92624
+ ],
+ [
+ -0.46242,
+ -0.69206,
+ -0.60473
+ ],
+ [
+ -0.46242,
+ 0.69206,
+ 0.60473
+ ],
+ [
+ -0.45399,
+ 0.0,
+ -0.89101
+ ],
+ [
+ -0.45399,
+ 0.0,
+ 0.89101
+ ],
+ [
+ -0.43786,
+ -0.18137,
+ -0.93015
+ ],
+ [
+ -0.43786,
+ 0.18137,
+ 0.93015
+ ],
+ [
+ -0.43651,
+ -0.65328,
+ 0.57084
+ ],
+ [
+ -0.43651,
+ 0.65328,
+ -0.57084
+ ],
+ [
+ -0.42766,
+ -0.08507,
+ 0.85578
+ ],
+ [
+ -0.42766,
+ 0.08507,
+ -0.85578
+ ],
+ [
+ -0.42426,
+ -0.42426,
+ 0.82583
+ ],
+ [
+ -0.42426,
+ 0.42426,
+ -0.82583
+ ],
+ [
+ -0.40699,
+ -0.40699,
+ -0.7922
+ ],
+ [
+ -0.40699,
+ 0.40699,
+ 0.7922
+ ],
+ [
+ -0.40101,
+ -0.1661,
+ 0.85186
+ ],
+ [
+ -0.40101,
+ 0.1661,
+ -0.85186
+ ],
+ [
+ -0.39285,
+ -0.58794,
+ -0.70711
+ ],
+ [
+ -0.39285,
+ -0.58794,
+ 0.70711
+ ],
+ [
+ -0.39285,
+ 0.58794,
+ -0.70711
+ ],
+ [
+ -0.39285,
+ 0.58794,
+ 0.70711
+ ],
+ [
+ -0.38268,
+ -0.92388,
+ 0.0
+ ],
+ [
+ -0.38268,
+ 0.92388,
+ 0.0
+ ],
+ [
+ -0.38222,
+ -0.92277,
+ -0.15819
+ ],
+ [
+ -0.38222,
+ 0.92277,
+ 0.15819
+ ],
+ [
+ -0.38098,
+ -0.25456,
+ -0.89927
+ ],
+ [
+ -0.38098,
+ 0.25456,
+ 0.89927
+ ],
+ [
+ -0.37398,
+ -0.24988,
+ 0.88274
+ ],
+ [
+ -0.37398,
+ 0.24988,
+ -0.88274
+ ],
+ [
+ -0.37372,
+ -0.90224,
+ 0.15468
+ ],
+ [
+ -0.37372,
+ 0.90224,
+ -0.15468
+ ],
+ [
+ -0.37058,
+ -0.89465,
+ -0.31464
+ ],
+ [
+ -0.37058,
+ 0.89465,
+ 0.31464
+ ],
+ [
+ -0.35733,
+ -0.86267,
+ 0.30339
+ ],
+ [
+ -0.35733,
+ 0.86267,
+ -0.30339
+ ],
+ [
+ -0.34718,
+ -0.83816,
+ -0.46225
+ ],
+ [
+ -0.34718,
+ 0.83816,
+ 0.46225
+ ],
+ [
+ -0.33597,
+ -0.50281,
+ 0.83234
+ ],
+ [
+ -0.33597,
+ 0.50281,
+ -0.83234
+ ],
+ [
+ -0.33477,
+ -0.8082,
+ 0.44573
+ ],
+ [
+ -0.33477,
+ 0.8082,
+ -0.44573
+ ],
+ [
+ -0.33182,
+ -0.33182,
+ 0.92097
+ ],
+ [
+ -0.33182,
+ 0.33182,
+ -0.92097
+ ],
+ [
+ -0.31714,
+ -0.47464,
+ -0.7857
+ ],
+ [
+ -0.31714,
+ 0.47464,
+ 0.7857
+ ],
+ [
+ -0.31507,
+ -0.06267,
+ -0.98866
+ ],
+ [
+ -0.31507,
+ 0.06267,
+ 0.98866
+ ],
+ [
+ -0.31308,
+ -0.75584,
+ -0.5944
+ ],
+ [
+ -0.31308,
+ 0.75584,
+ 0.5944
+ ],
+ [
+ -0.31022,
+ -0.31022,
+ -0.86105
+ ],
+ [
+ -0.31022,
+ 0.31022,
+ 0.86105
+ ],
+ [
+ -0.30902,
+ 0.0,
+ -0.95106
+ ],
+ [
+ -0.30902,
+ 0.0,
+ 0.95106
+ ],
+ [
+ -0.30611,
+ -0.73903,
+ 0.58117
+ ],
+ [
+ -0.30611,
+ 0.73903,
+ -0.58117
+ ],
+ [
+ -0.29804,
+ -0.12345,
+ -0.99284
+ ],
+ [
+ -0.29804,
+ 0.12345,
+ 0.99284
+ ],
+ [
+ -0.29109,
+ -0.0579,
+ 0.91345
+ ],
+ [
+ -0.29109,
+ 0.0579,
+ -0.91345
+ ],
+ [
+ -0.27295,
+ -0.11307,
+ 0.90927
+ ],
+ [
+ -0.27295,
+ 0.11307,
+ -0.90927
+ ],
+ [
+ -0.2706,
+ -0.65328,
+ -0.70711
+ ],
+ [
+ -0.2706,
+ -0.65328,
+ 0.70711
+ ],
+ [
+ -0.2706,
+ 0.65328,
+ -0.70711
+ ],
+ [
+ -0.2706,
+ 0.65328,
+ 0.70711
+ ],
+ [
+ -0.26399,
+ -0.39508,
+ 0.93256
+ ],
+ [
+ -0.26399,
+ 0.39508,
+ -0.93256
+ ],
+ [
+ -0.25933,
+ -0.17328,
+ -0.95988
+ ],
+ [
+ -0.25933,
+ 0.17328,
+ 0.95988
+ ],
+ [
+ -0.25455,
+ -0.17009,
+ 0.94223
+ ],
+ [
+ -0.25455,
+ 0.17009,
+ -0.94223
+ ],
+ [
+ -0.24046,
+ -0.35987,
+ -0.84945
+ ],
+ [
+ -0.24046,
+ 0.35987,
+ 0.84945
+ ],
+ [
+ -0.22747,
+ -0.54915,
+ 0.81811
+ ],
+ [
+ -0.22747,
+ 0.54915,
+ -0.81811
+ ],
+ [
+ -0.22585,
+ -0.22585,
+ 0.98303
+ ],
+ [
+ -0.22585,
+ 0.22585,
+ -0.98303
+ ],
+ [
+ -0.22241,
+ -0.53694,
+ -0.79992
+ ],
+ [
+ -0.22241,
+ 0.53694,
+ 0.79992
+ ],
+ [
+ -0.21116,
+ -0.21116,
+ -0.91908
+ ],
+ [
+ -0.21116,
+ 0.21116,
+ 0.91908
+ ],
+ [
+ -0.19583,
+ -0.98453,
+ 0.15899
+ ],
+ [
+ -0.19583,
+ 0.98453,
+ -0.15899
+ ],
+ [
+ -0.19509,
+ -0.98079,
+ 0.0
+ ],
+ [
+ -0.19509,
+ 0.98079,
+ 0.0
+ ],
+ [
+ -0.19045,
+ -0.95743,
+ 0.31718
+ ],
+ [
+ -0.19045,
+ 0.95743,
+ -0.31718
+ ],
+ [
+ -0.18955,
+ -0.95289,
+ -0.15388
+ ],
+ [
+ -0.18955,
+ 0.95289,
+ 0.15388
+ ],
+ [
+ -0.18064,
+ -0.90814,
+ -0.30085
+ ],
+ [
+ -0.18064,
+ 0.90814,
+ 0.30085
+ ],
+ [
+ -0.17968,
+ -0.26892,
+ 0.99541
+ ],
+ [
+ -0.17968,
+ 0.26892,
+ -0.99541
+ ],
+ [
+ -0.17842,
+ -0.89697,
+ 0.46599
+ ],
+ [
+ -0.17842,
+ 0.89697,
+ -0.46599
+ ],
+ [
+ -0.1769,
+ -0.42707,
+ 0.90722
+ ],
+ [
+ -0.1769,
+ 0.42707,
+ -0.90722
+ ],
+ [
+ -0.17057,
+ -0.4118,
+ -0.87479
+ ],
+ [
+ -0.17057,
+ 0.4118,
+ 0.87479
+ ],
+ [
+ -0.16923,
+ -0.8508,
+ -0.44199
+ ],
+ [
+ -0.16923,
+ 0.8508,
+ 0.44199
+ ],
+ [
+ -0.16368,
+ -0.24495,
+ -0.9067
+ ],
+ [
+ -0.16368,
+ 0.24495,
+ 0.9067
+ ],
+ [
+ -0.16041,
+ -0.80643,
+ 0.59738
+ ],
+ [
+ -0.16041,
+ 0.80643,
+ -0.59738
+ ],
+ [
+ -0.15718,
+ -0.03126,
+ -1.01182
+ ],
+ [
+ -0.15718,
+ 0.03126,
+ 1.01182
+ ],
+ [
+ -0.15643,
+ 0.0,
+ -0.98769
+ ],
+ [
+ -0.15643,
+ 0.0,
+ 0.98769
+ ],
+ [
+ -0.15526,
+ -0.78052,
+ -0.57819
+ ],
+ [
+ -0.15526,
+ 0.78052,
+ 0.57819
+ ],
+ [
+ -0.14968,
+ -0.02978,
+ 0.96355
+ ],
+ [
+ -0.14968,
+ 0.02978,
+ -0.96355
+ ],
+ [
+ -0.14846,
+ -0.06149,
+ -1.0145
+ ],
+ [
+ -0.14846,
+ 0.06149,
+ 1.0145
+ ],
+ [
+ -0.1406,
+ -0.05824,
+ 0.96087
+ ],
+ [
+ -0.1406,
+ 0.05824,
+ -0.96087
+ ],
+ [
+ -0.13795,
+ -0.69352,
+ -0.70711
+ ],
+ [
+ -0.13795,
+ -0.69352,
+ 0.70711
+ ],
+ [
+ -0.13795,
+ 0.69352,
+ -0.70711
+ ],
+ [
+ -0.13795,
+ 0.69352,
+ 0.70711
+ ],
+ [
+ -0.13081,
+ -0.08741,
+ -0.99335
+ ],
+ [
+ -0.13081,
+ 0.08741,
+ 0.99335
+ ],
+ [
+ -0.12933,
+ -0.08641,
+ 0.98202
+ ],
+ [
+ -0.12933,
+ 0.08641,
+ -0.98202
+ ],
+ [
+ -0.12041,
+ -0.29069,
+ 0.96836
+ ],
+ [
+ -0.12041,
+ 0.29069,
+ -0.96836
+ ],
+ [
+ -0.11655,
+ -0.58591,
+ -0.82223
+ ],
+ [
+ -0.11655,
+ 0.58591,
+ 0.82223
+ ],
+ [
+ -0.1161,
+ -0.2803,
+ -0.93375
+ ],
+ [
+ -0.1161,
+ 0.2803,
+ 0.93375
+ ],
+ [
+ -0.11291,
+ -0.11291,
+ 1.00821
+ ],
+ [
+ -0.11291,
+ 0.11291,
+ -1.00821
+ ],
+ [
+ -0.1128,
+ -0.56708,
+ 0.79581
+ ],
+ [
+ -0.1128,
+ 0.56708,
+ -0.79581
+ ],
+ [
+ -0.10832,
+ -0.10832,
+ -0.96716
+ ],
+ [
+ -0.10832,
+ 0.10832,
+ 0.96716
+ ],
+ [
+ -0.09091,
+ -0.45703,
+ -0.91455
+ ],
+ [
+ -0.09091,
+ 0.45703,
+ 0.91455
+ ],
+ [
+ -0.08941,
+ -0.13382,
+ 1.01616
+ ],
+ [
+ -0.08941,
+ 0.13382,
+ -1.01616
+ ],
+ [
+ -0.08623,
+ -0.4335,
+ 0.86747
+ ],
+ [
+ -0.08623,
+ 0.4335,
+ -0.86747
+ ],
+ [
+ -0.08441,
+ -0.12632,
+ -0.95922
+ ],
+ [
+ -0.08441,
+ 0.12632,
+ 0.95922
+ ],
+ [
+ -0.06188,
+ -0.31108,
+ -0.97618
+ ],
+ [
+ -0.06188,
+ 0.31108,
+ 0.97618
+ ],
+ [
+ -0.06054,
+ -0.14615,
+ 0.99879
+ ],
+ [
+ -0.06054,
+ 0.14615,
+ -0.99879
+ ],
+ [
+ -0.05919,
+ -0.14291,
+ -0.97658
+ ],
+ [
+ -0.05919,
+ 0.14291,
+ 0.97658
+ ],
+ [
+ -0.05869,
+ -0.29508,
+ 0.92593
+ ],
+ [
+ -0.05869,
+ 0.29508,
+ -0.92593
+ ],
+ [
+ -0.03102,
+ -0.15593,
+ -1.00381
+ ],
+ [
+ -0.03102,
+ 0.15593,
+ 1.00381
+ ],
+ [
+ -0.03002,
+ -0.15093,
+ 0.97156
+ ],
+ [
+ -0.03002,
+ 0.15093,
+ -0.97156
+ ],
+ [
+ 0.0,
+ -1.01671,
+ 0.16103
+ ],
+ [
+ 0.0,
+ -1.0,
+ 0.0
+ ],
+ [
+ 0.0,
+ -0.99628,
+ 0.32371
+ ],
+ [
+ 0.0,
+ -0.95866,
+ -0.15184
+ ],
+ [
+ 0.0,
+ -0.93338,
+ 0.47558
+ ],
+ [
+ 0.0,
+ -0.90583,
+ -0.29432
+ ],
+ [
+ 0.0,
+ -0.84864,
+ -0.4324
+ ],
+ [
+ 0.0,
+ -0.83279,
+ 0.60506
+ ],
+ [
+ 0.0,
+ -0.78524,
+ -0.57052
+ ],
+ [
+ 0.0,
+ -0.70711,
+ -0.70711
+ ],
+ [
+ 0.0,
+ -0.70711,
+ 0.70711
+ ],
+ [
+ 0.0,
+ -0.60506,
+ -0.83279
+ ],
+ [
+ 0.0,
+ -0.57052,
+ 0.78524
+ ],
+ [
+ 0.0,
+ -0.47558,
+ -0.93338
+ ],
+ [
+ 0.0,
+ -0.4324,
+ 0.84864
+ ],
+ [
+ 0.0,
+ -0.32371,
+ -0.99628
+ ],
+ [
+ 0.0,
+ -0.29432,
+ 0.90583
+ ],
+ [
+ 0.0,
+ -0.16103,
+ -1.01671
+ ],
+ [
+ 0.0,
+ -0.15184,
+ 0.95866
+ ],
+ [
+ 0.0,
+ 0.0,
+ -1.0
+ ],
+ [
+ 0.0,
+ 0.0,
+ 1.0
+ ],
+ [
+ 0.0,
+ 0.15184,
+ -0.95866
+ ],
+ [
+ 0.0,
+ 0.16103,
+ 1.01671
+ ],
+ [
+ 0.0,
+ 0.29432,
+ -0.90583
+ ],
+ [
+ 0.0,
+ 0.32371,
+ 0.99628
+ ],
+ [
+ 0.0,
+ 0.4324,
+ -0.84864
+ ],
+ [
+ 0.0,
+ 0.47558,
+ 0.93338
+ ],
+ [
+ 0.0,
+ 0.57052,
+ -0.78524
+ ],
+ [
+ 0.0,
+ 0.60506,
+ 0.83279
+ ],
+ [
+ 0.0,
+ 0.70711,
+ -0.70711
+ ],
+ [
+ 0.0,
+ 0.70711,
+ 0.70711
+ ],
+ [
+ 0.0,
+ 0.78524,
+ 0.57052
+ ],
+ [
+ 0.0,
+ 0.83279,
+ -0.60506
+ ],
+ [
+ 0.0,
+ 0.84864,
+ 0.4324
+ ],
+ [
+ 0.0,
+ 0.90583,
+ 0.29432
+ ],
+ [
+ 0.0,
+ 0.93338,
+ -0.47558
+ ],
+ [
+ 0.0,
+ 0.95866,
+ 0.15184
+ ],
+ [
+ 0.0,
+ 0.99628,
+ -0.32371
+ ],
+ [
+ 0.0,
+ 1.0,
+ 0.0
+ ],
+ [
+ 0.0,
+ 1.01671,
+ -0.16103
+ ],
+ [
+ 0.03002,
+ -0.15093,
+ 0.97156
+ ],
+ [
+ 0.03002,
+ 0.15093,
+ -0.97156
+ ],
+ [
+ 0.03102,
+ -0.15593,
+ -1.00381
+ ],
+ [
+ 0.03102,
+ 0.15593,
+ 1.00381
+ ],
+ [
+ 0.05869,
+ -0.29508,
+ 0.92593
+ ],
+ [
+ 0.05869,
+ 0.29508,
+ -0.92593
+ ],
+ [
+ 0.05919,
+ -0.14291,
+ -0.97658
+ ],
+ [
+ 0.05919,
+ 0.14291,
+ 0.97658
+ ],
+ [
+ 0.06054,
+ -0.14615,
+ 0.99879
+ ],
+ [
+ 0.06054,
+ 0.14615,
+ -0.99879
+ ],
+ [
+ 0.06188,
+ -0.31108,
+ -0.97618
+ ],
+ [
+ 0.06188,
+ 0.31108,
+ 0.97618
+ ],
+ [
+ 0.08441,
+ -0.12632,
+ -0.95922
+ ],
+ [
+ 0.08441,
+ 0.12632,
+ 0.95922
+ ],
+ [
+ 0.08623,
+ -0.4335,
+ 0.86747
+ ],
+ [
+ 0.08623,
+ 0.4335,
+ -0.86747
+ ],
+ [
+ 0.08941,
+ -0.13382,
+ 1.01616
+ ],
+ [
+ 0.08941,
+ 0.13382,
+ -1.01616
+ ],
+ [
+ 0.09091,
+ -0.45703,
+ -0.91455
+ ],
+ [
+ 0.09091,
+ 0.45703,
+ 0.91455
+ ],
+ [
+ 0.10832,
+ -0.10832,
+ -0.96716
+ ],
+ [
+ 0.10832,
+ 0.10832,
+ 0.96716
+ ],
+ [
+ 0.1128,
+ -0.56708,
+ 0.79581
+ ],
+ [
+ 0.1128,
+ 0.56708,
+ -0.79581
+ ],
+ [
+ 0.11291,
+ -0.11291,
+ 1.00821
+ ],
+ [
+ 0.11291,
+ 0.11291,
+ -1.00821
+ ],
+ [
+ 0.1161,
+ -0.2803,
+ -0.93375
+ ],
+ [
+ 0.1161,
+ 0.2803,
+ 0.93375
+ ],
+ [
+ 0.11655,
+ -0.58591,
+ -0.82223
+ ],
+ [
+ 0.11655,
+ 0.58591,
+ 0.82223
+ ],
+ [
+ 0.12041,
+ -0.29069,
+ 0.96836
+ ],
+ [
+ 0.12041,
+ 0.29069,
+ -0.96836
+ ],
+ [
+ 0.12933,
+ -0.08641,
+ 0.98202
+ ],
+ [
+ 0.12933,
+ 0.08641,
+ -0.98202
+ ],
+ [
+ 0.13081,
+ -0.08741,
+ -0.99335
+ ],
+ [
+ 0.13081,
+ 0.08741,
+ 0.99335
+ ],
+ [
+ 0.13795,
+ -0.69352,
+ -0.70711
+ ],
+ [
+ 0.13795,
+ -0.69352,
+ 0.70711
+ ],
+ [
+ 0.13795,
+ 0.69352,
+ -0.70711
+ ],
+ [
+ 0.13795,
+ 0.69352,
+ 0.70711
+ ],
+ [
+ 0.1406,
+ -0.05824,
+ 0.96087
+ ],
+ [
+ 0.1406,
+ 0.05824,
+ -0.96087
+ ],
+ [
+ 0.14846,
+ -0.06149,
+ -1.0145
+ ],
+ [
+ 0.14846,
+ 0.06149,
+ 1.0145
+ ],
+ [
+ 0.14968,
+ -0.02978,
+ 0.96355
+ ],
+ [
+ 0.14968,
+ 0.02978,
+ -0.96355
+ ],
+ [
+ 0.15526,
+ -0.78052,
+ -0.57819
+ ],
+ [
+ 0.15526,
+ 0.78052,
+ 0.57819
+ ],
+ [
+ 0.15643,
+ 0.0,
+ -0.98769
+ ],
+ [
+ 0.15643,
+ 0.0,
+ 0.98769
+ ],
+ [
+ 0.15718,
+ -0.03126,
+ -1.01182
+ ],
+ [
+ 0.15718,
+ 0.03126,
+ 1.01182
+ ],
+ [
+ 0.16041,
+ -0.80643,
+ 0.59738
+ ],
+ [
+ 0.16041,
+ 0.80643,
+ -0.59738
+ ],
+ [
+ 0.16368,
+ -0.24495,
+ -0.9067
+ ],
+ [
+ 0.16368,
+ 0.24495,
+ 0.9067
+ ],
+ [
+ 0.16923,
+ -0.8508,
+ -0.44199
+ ],
+ [
+ 0.16923,
+ 0.8508,
+ 0.44199
+ ],
+ [
+ 0.17057,
+ -0.4118,
+ -0.87479
+ ],
+ [
+ 0.17057,
+ 0.4118,
+ 0.87479
+ ],
+ [
+ 0.1769,
+ -0.42707,
+ 0.90722
+ ],
+ [
+ 0.1769,
+ 0.42707,
+ -0.90722
+ ],
+ [
+ 0.17842,
+ -0.89697,
+ 0.46599
+ ],
+ [
+ 0.17842,
+ 0.89697,
+ -0.46599
+ ],
+ [
+ 0.17968,
+ -0.26892,
+ 0.99541
+ ],
+ [
+ 0.17968,
+ 0.26892,
+ -0.99541
+ ],
+ [
+ 0.18064,
+ -0.90814,
+ -0.30085
+ ],
+ [
+ 0.18064,
+ 0.90814,
+ 0.30085
+ ],
+ [
+ 0.18955,
+ -0.95289,
+ -0.15388
+ ],
+ [
+ 0.18955,
+ 0.95289,
+ 0.15388
+ ],
+ [
+ 0.19045,
+ -0.95743,
+ 0.31718
+ ],
+ [
+ 0.19045,
+ 0.95743,
+ -0.31718
+ ],
+ [
+ 0.19509,
+ -0.98079,
+ 0.0
+ ],
+ [
+ 0.19509,
+ 0.98079,
+ 0.0
+ ],
+ [
+ 0.19583,
+ -0.98453,
+ 0.15899
+ ],
+ [
+ 0.19583,
+ 0.98453,
+ -0.15899
+ ],
+ [
+ 0.21116,
+ -0.21116,
+ -0.91908
+ ],
+ [
+ 0.21116,
+ 0.21116,
+ 0.91908
+ ],
+ [
+ 0.22241,
+ -0.53694,
+ -0.79992
+ ],
+ [
+ 0.22241,
+ 0.53694,
+ 0.79992
+ ],
+ [
+ 0.22585,
+ -0.22585,
+ 0.98303
+ ],
+ [
+ 0.22585,
+ 0.22585,
+ -0.98303
+ ],
+ [
+ 0.22747,
+ -0.54915,
+ 0.81811
+ ],
+ [
+ 0.22747,
+ 0.54915,
+ -0.81811
+ ],
+ [
+ 0.24046,
+ -0.35987,
+ -0.84945
+ ],
+ [
+ 0.24046,
+ 0.35987,
+ 0.84945
+ ],
+ [
+ 0.25455,
+ -0.17009,
+ 0.94223
+ ],
+ [
+ 0.25455,
+ 0.17009,
+ -0.94223
+ ],
+ [
+ 0.25933,
+ -0.17328,
+ -0.95988
+ ],
+ [
+ 0.25933,
+ 0.17328,
+ 0.95988
+ ],
+ [
+ 0.26399,
+ -0.39508,
+ 0.93256
+ ],
+ [
+ 0.26399,
+ 0.39508,
+ -0.93256
+ ],
+ [
+ 0.2706,
+ -0.65328,
+ -0.70711
+ ],
+ [
+ 0.2706,
+ -0.65328,
+ 0.70711
+ ],
+ [
+ 0.2706,
+ 0.65328,
+ -0.70711
+ ],
+ [
+ 0.2706,
+ 0.65328,
+ 0.70711
+ ],
+ [
+ 0.27295,
+ -0.11307,
+ 0.90927
+ ],
+ [
+ 0.27295,
+ 0.11307,
+ -0.90927
+ ],
+ [
+ 0.29109,
+ -0.0579,
+ 0.91345
+ ],
+ [
+ 0.29109,
+ 0.0579,
+ -0.91345
+ ],
+ [
+ 0.29804,
+ -0.12345,
+ -0.99284
+ ],
+ [
+ 0.29804,
+ 0.12345,
+ 0.99284
+ ],
+ [
+ 0.30611,
+ -0.73903,
+ 0.58117
+ ],
+ [
+ 0.30611,
+ 0.73903,
+ -0.58117
+ ],
+ [
+ 0.30902,
+ 0.0,
+ -0.95106
+ ],
+ [
+ 0.30902,
+ 0.0,
+ 0.95106
+ ],
+ [
+ 0.31022,
+ -0.31022,
+ -0.86105
+ ],
+ [
+ 0.31022,
+ 0.31022,
+ 0.86105
+ ],
+ [
+ 0.31308,
+ -0.75584,
+ -0.5944
+ ],
+ [
+ 0.31308,
+ 0.75584,
+ 0.5944
+ ],
+ [
+ 0.31507,
+ -0.06267,
+ -0.98866
+ ],
+ [
+ 0.31507,
+ 0.06267,
+ 0.98866
+ ],
+ [
+ 0.31714,
+ -0.47464,
+ -0.7857
+ ],
+ [
+ 0.31714,
+ 0.47464,
+ 0.7857
+ ],
+ [
+ 0.33182,
+ -0.33182,
+ 0.92097
+ ],
+ [
+ 0.33182,
+ 0.33182,
+ -0.92097
+ ],
+ [
+ 0.33477,
+ -0.8082,
+ 0.44573
+ ],
+ [
+ 0.33477,
+ 0.8082,
+ -0.44573
+ ],
+ [
+ 0.33597,
+ -0.50281,
+ 0.83234
+ ],
+ [
+ 0.33597,
+ 0.50281,
+ -0.83234
+ ],
+ [
+ 0.34718,
+ -0.83816,
+ -0.46225
+ ],
+ [
+ 0.34718,
+ 0.83816,
+ 0.46225
+ ],
+ [
+ 0.35733,
+ -0.86267,
+ 0.30339
+ ],
+ [
+ 0.35733,
+ 0.86267,
+ -0.30339
+ ],
+ [
+ 0.37058,
+ -0.89465,
+ -0.31464
+ ],
+ [
+ 0.37058,
+ 0.89465,
+ 0.31464
+ ],
+ [
+ 0.37372,
+ -0.90224,
+ 0.15468
+ ],
+ [
+ 0.37372,
+ 0.90224,
+ -0.15468
+ ],
+ [
+ 0.37398,
+ -0.24988,
+ 0.88274
+ ],
+ [
+ 0.37398,
+ 0.24988,
+ -0.88274
+ ],
+ [
+ 0.38098,
+ -0.25456,
+ -0.89927
+ ],
+ [
+ 0.38098,
+ 0.25456,
+ 0.89927
+ ],
+ [
+ 0.38222,
+ -0.92277,
+ -0.15819
+ ],
+ [
+ 0.38222,
+ 0.92277,
+ 0.15819
+ ],
+ [
+ 0.38268,
+ -0.92388,
+ 0.0
+ ],
+ [
+ 0.38268,
+ 0.92388,
+ 0.0
+ ],
+ [
+ 0.39285,
+ -0.58794,
+ -0.70711
+ ],
+ [
+ 0.39285,
+ -0.58794,
+ 0.70711
+ ],
+ [
+ 0.39285,
+ 0.58794,
+ -0.70711
+ ],
+ [
+ 0.39285,
+ 0.58794,
+ 0.70711
+ ],
+ [
+ 0.40101,
+ -0.1661,
+ 0.85186
+ ],
+ [
+ 0.40101,
+ 0.1661,
+ -0.85186
+ ],
+ [
+ 0.40699,
+ -0.40699,
+ -0.7922
+ ],
+ [
+ 0.40699,
+ 0.40699,
+ 0.7922
+ ],
+ [
+ 0.42426,
+ -0.42426,
+ 0.82583
+ ],
+ [
+ 0.42426,
+ 0.42426,
+ -0.82583
+ ],
+ [
+ 0.42766,
+ -0.08507,
+ 0.85578
+ ],
+ [
+ 0.42766,
+ 0.08507,
+ -0.85578
+ ],
+ [
+ 0.43651,
+ -0.65328,
+ 0.57084
+ ],
+ [
+ 0.43651,
+ 0.65328,
+ -0.57084
+ ],
+ [
+ 0.43786,
+ -0.18137,
+ -0.93015
+ ],
+ [
+ 0.43786,
+ 0.18137,
+ 0.93015
+ ],
+ [
+ 0.45399,
+ 0.0,
+ -0.89101
+ ],
+ [
+ 0.45399,
+ 0.0,
+ 0.89101
+ ],
+ [
+ 0.46242,
+ -0.69206,
+ -0.60473
+ ],
+ [
+ 0.46242,
+ 0.69206,
+ 0.60473
+ ],
+ [
+ 0.46287,
+ -0.09207,
+ -0.92624
+ ],
+ [
+ 0.46287,
+ 0.09207,
+ 0.92624
+ ],
+ [
+ 0.47193,
+ -0.70629,
+ 0.43281
+ ],
+ [
+ 0.47193,
+ 0.70629,
+ -0.43281
+ ],
+ [
+ 0.48592,
+ -0.32468,
+ 0.80438
+ ],
+ [
+ 0.48592,
+ 0.32468,
+ -0.80438
+ ],
+ [
+ 0.49153,
+ -0.32843,
+ -0.81365
+ ],
+ [
+ 0.49153,
+ 0.32843,
+ 0.81365
+ ],
+ [
+ 0.5,
+ -0.5,
+ -0.70711
+ ],
+ [
+ 0.5,
+ -0.5,
+ 0.70711
+ ],
+ [
+ 0.5,
+ 0.5,
+ -0.70711
+ ],
+ [
+ 0.5,
+ 0.5,
+ 0.70711
+ ],
+ [
+ 0.50373,
+ -0.75389,
+ 0.2946
+ ],
+ [
+ 0.50373,
+ 0.75389,
+ -0.2946
+ ],
+ [
+ 0.5181,
+ -0.7754,
+ -0.47517
+ ],
+ [
+ 0.5181,
+ 0.7754,
+ 0.47517
+ ],
+ [
+ 0.5283,
+ -0.21883,
+ 0.78705
+ ],
+ [
+ 0.5283,
+ 0.21883,
+ -0.78705
+ ],
+ [
+ 0.53292,
+ -0.79756,
+ 0.15193
+ ],
+ [
+ 0.53292,
+ 0.79756,
+ -0.15193
+ ],
+ [
+ 0.55302,
+ -0.82766,
+ -0.32343
+ ],
+ [
+ 0.55302,
+ 0.82766,
+ 0.32343
+ ],
+ [
+ 0.55557,
+ -0.83147,
+ 0.0
+ ],
+ [
+ 0.55557,
+ 0.83147,
+ 0.0
+ ],
+ [
+ 0.55779,
+ -0.23104,
+ -0.83098
+ ],
+ [
+ 0.55779,
+ 0.23104,
+ 0.83098
+ ],
+ [
+ 0.56017,
+ -0.56017,
+ 0.57558
+ ],
+ [
+ 0.56017,
+ 0.56017,
+ -0.57558
+ ],
+ [
+ 0.56241,
+ -0.11187,
+ 0.78925
+ ],
+ [
+ 0.56241,
+ 0.11187,
+ -0.78925
+ ],
+ [
+ 0.56454,
+ -0.84491,
+ -0.16094
+ ],
+ [
+ 0.56454,
+ 0.84491,
+ 0.16094
+ ],
+ [
+ 0.58395,
+ -0.58395,
+ -0.6
+ ],
+ [
+ 0.58395,
+ 0.58395,
+ 0.6
+ ],
+ [
+ 0.58779,
+ 0.0,
+ -0.80902
+ ],
+ [
+ 0.58779,
+ 0.0,
+ 0.80902
+ ],
+ [
+ 0.58794,
+ -0.39285,
+ -0.70711
+ ],
+ [
+ 0.58794,
+ -0.39285,
+ 0.70711
+ ],
+ [
+ 0.58794,
+ 0.39285,
+ -0.70711
+ ],
+ [
+ 0.58794,
+ 0.39285,
+ 0.70711
+ ],
+ [
+ 0.59058,
+ -0.11748,
+ -0.82879
+ ],
+ [
+ 0.59058,
+ 0.11748,
+ 0.82879
+ ],
+ [
+ 0.60885,
+ -0.60885,
+ 0.43872
+ ],
+ [
+ 0.60885,
+ 0.60885,
+ -0.43872
+ ],
+ [
+ 0.64988,
+ -0.64988,
+ 0.29863
+ ],
+ [
+ 0.64988,
+ 0.64988,
+ -0.29863
+ ],
+ [
+ 0.65122,
+ -0.65122,
+ -0.46925
+ ],
+ [
+ 0.65122,
+ 0.65122,
+ 0.46925
+ ],
+ [
+ 0.65328,
+ -0.2706,
+ -0.70711
+ ],
+ [
+ 0.65328,
+ -0.2706,
+ 0.70711
+ ],
+ [
+ 0.65328,
+ 0.2706,
+ -0.70711
+ ],
+ [
+ 0.65328,
+ 0.2706,
+ 0.70711
+ ],
+ [
+ 0.66882,
+ -0.44689,
+ -0.58442
+ ],
+ [
+ 0.66882,
+ 0.44689,
+ 0.58442
+ ],
+ [
+ 0.67653,
+ -0.45204,
+ 0.59116
+ ],
+ [
+ 0.67653,
+ 0.45204,
+ -0.59116
+ ],
+ [
+ 0.68389,
+ -0.68389,
+ 0.15318
+ ],
+ [
+ 0.68389,
+ 0.68389,
+ -0.15318
+ ],
+ [
+ 0.69352,
+ -0.13795,
+ -0.70711
+ ],
+ [
+ 0.69352,
+ -0.13795,
+ 0.70711
+ ],
+ [
+ 0.69352,
+ 0.13795,
+ -0.70711
+ ],
+ [
+ 0.69352,
+ 0.13795,
+ 0.70711
+ ],
+ [
+ 0.69511,
+ -0.69511,
+ -0.31941
+ ],
+ [
+ 0.69511,
+ 0.69511,
+ 0.31941
+ ],
+ [
+ 0.70711,
+ -0.70711,
+ 0.0
+ ],
+ [
+ 0.70711,
+ 0.0,
+ -0.70711
+ ],
+ [
+ 0.70711,
+ 0.0,
+ 0.70711
+ ],
+ [
+ 0.70711,
+ 0.70711,
+ 0.0
+ ],
+ [
+ 0.71292,
+ -0.71292,
+ -0.15969
+ ],
+ [
+ 0.71292,
+ 0.71292,
+ 0.15969
+ ],
+ [
+ 0.72714,
+ -0.30119,
+ -0.57183
+ ],
+ [
+ 0.72714,
+ 0.30119,
+ 0.57183
+ ],
+ [
+ 0.73397,
+ -0.49042,
+ -0.44978
+ ],
+ [
+ 0.73397,
+ 0.49042,
+ 0.44978
+ ],
+ [
+ 0.74772,
+ -0.49961,
+ 0.4582
+ ],
+ [
+ 0.74772,
+ 0.49961,
+ -0.4582
+ ],
+ [
+ 0.76773,
+ -0.318,
+ 0.60374
+ ],
+ [
+ 0.76773,
+ 0.318,
+ -0.60374
+ ],
+ [
+ 0.77408,
+ -0.15398,
+ -0.57342
+ ],
+ [
+ 0.77408,
+ 0.15398,
+ 0.57342
+ ],
+ [
+ 0.78344,
+ -0.52348,
+ -0.30615
+ ],
+ [
+ 0.78344,
+ 0.52348,
+ 0.30615
+ ],
+ [
+ 0.78702,
+ -0.32599,
+ -0.43405
+ ],
+ [
+ 0.78702,
+ 0.32599,
+ 0.43405
+ ],
+ [
+ 0.79811,
+ -0.53328,
+ 0.31188
+ ],
+ [
+ 0.79811,
+ 0.53328,
+ -0.31188
+ ],
+ [
+ 0.80902,
+ 0.0,
+ -0.58779
+ ],
+ [
+ 0.80902,
+ 0.0,
+ 0.58779
+ ],
+ [
+ 0.81286,
+ -0.16169,
+ 0.60215
+ ],
+ [
+ 0.81286,
+ 0.16169,
+ -0.60215
+ ],
+ [
+ 0.81653,
+ -0.54558,
+ -0.15554
+ ],
+ [
+ 0.81653,
+ 0.54558,
+ 0.15554
+ ],
+ [
+ 0.82594,
+ -0.55187,
+ 0.15733
+ ],
+ [
+ 0.82594,
+ 0.55187,
+ -0.15733
+ ],
+ [
+ 0.83147,
+ -0.55557,
+ 0.0
+ ],
+ [
+ 0.83147,
+ 0.55557,
+ 0.0
+ ],
+ [
+ 0.83933,
+ -0.16695,
+ -0.43604
+ ],
+ [
+ 0.83933,
+ 0.16695,
+ 0.43604
+ ],
+ [
+ 0.84006,
+ -0.34796,
+ -0.29544
+ ],
+ [
+ 0.84006,
+ 0.34796,
+ 0.29544
+ ],
+ [
+ 0.85935,
+ -0.35595,
+ 0.47394
+ ],
+ [
+ 0.85935,
+ 0.35595,
+ -0.47394
+ ],
+ [
+ 0.88773,
+ -0.36771,
+ -0.15219
+ ],
+ [
+ 0.88773,
+ 0.36771,
+ 0.15219
+ ],
+ [
+ 0.89101,
+ 0.0,
+ -0.45399
+ ],
+ [
+ 0.89101,
+ 0.0,
+ 0.45399
+ ],
+ [
+ 0.8959,
+ -0.17821,
+ -0.2968
+ ],
+ [
+ 0.8959,
+ 0.17821,
+ 0.2968
+ ],
+ [
+ 0.90844,
+ -0.1807,
+ 0.47194
+ ],
+ [
+ 0.90844,
+ 0.1807,
+ -0.47194
+ ],
+ [
+ 0.91727,
+ -0.37994,
+ 0.32259
+ ],
+ [
+ 0.91727,
+ 0.37994,
+ -0.32259
+ ],
+ [
+ 0.92388,
+ -0.38268,
+ 0.0
+ ],
+ [
+ 0.92388,
+ 0.38268,
+ 0.0
+ ],
+ [
+ 0.93728,
+ -0.38824,
+ 0.16068
+ ],
+ [
+ 0.93728,
+ 0.38824,
+ -0.16068
+ ],
+ [
+ 0.94504,
+ -0.18798,
+ -0.15261
+ ],
+ [
+ 0.94504,
+ 0.18798,
+ 0.15261
+ ],
+ [
+ 0.95106,
+ 0.0,
+ -0.30902
+ ],
+ [
+ 0.95106,
+ 0.0,
+ 0.30902
+ ],
+ [
+ 0.96966,
+ -0.19287,
+ 0.32123
+ ],
+ [
+ 0.96966,
+ 0.19287,
+ -0.32123
+ ],
+ [
+ 0.98079,
+ -0.19509,
+ 0.0
+ ],
+ [
+ 0.98079,
+ 0.19509,
+ 0.0
+ ],
+ [
+ 0.98769,
+ 0.0,
+ -0.15643
+ ],
+ [
+ 0.98769,
+ 0.0,
+ 0.15643
+ ],
+ [
+ 0.99238,
+ -0.1974,
+ 0.16026
+ ],
+ [
+ 0.99238,
+ 0.1974,
+ -0.16026
+ ],
+ [
+ 1.0,
+ 0.0,
+ 0.0
+ ]
+ ]
+ },
"decimate-bowl-half": {
"faceCount": 592,
"volume": 4.097792,
diff --git a/tests/mesh-modifiers.test.js b/tests/mesh-modifiers.test.js
new file mode 100644
index 00000000..ba78a858
--- /dev/null
+++ b/tests/mesh-modifiers.test.js
@@ -0,0 +1,196 @@
+import assert from 'node:assert/strict';
+import test from 'node:test';
+import { box, cylinder } from '../src/geometry.js';
+import {
+ editMesh, validateTopology, meshFromGeometry, meshBounds, tagCounts, applyMeshEdits, evaluateMeshStack,
+ normalizeMeshStack, STACK_OPERATIONS, MESH_EDIT_OPERATIONS,
+} from '../src/mesh.js';
+import { createMeshData } from '../src/mesh-data.js';
+import { MODIFIER_OPERATIONS } from '../src/mesh-operations.js';
+import { AGENT_SCENE_CAPABILITIES, MESH_MODIFIER_NOTES } from '../src/agent-scene-capabilities.js';
+
+const cube = () => meshFromGeometry(box(0, 1));
+const drum = () => meshFromGeometry(cylinder(8, 0));
+
+// A closed prism whose caps are single n-gons, which the cylinder generator does not make.
+function prism(sides) {
+ const positions = [];
+ for (const height of [-1, 1]) {
+ for (let side = 0; side < sides; side++) {
+ const angle = side / sides * Math.PI * 2;
+ positions.push(Math.cos(angle), Math.sin(angle), height);
+ }
+ }
+ const faces = [Array.from({ length: sides }, (_, side) => sides - 1 - side), Array.from({ length: sides }, (_, side) => sides + side)];
+ for (let side = 0; side < sides; side++) {
+ const next = (side + 1) % sides;
+ faces.push([side, next, sides + next, sides + side]);
+ }
+ const faceOffsets = new Uint32Array(faces.length + 1);
+ faces.forEach((face, index) => {
+ faceOffsets[index + 1] = faceOffsets[index] + face.length;
+ });
+ return createMeshData({ positions: Float32Array.from(positions), faceOffsets, cornerVertices: Uint32Array.from(faces.flat()) });
+}
+const run = (mesh, edit, limits) => applyMeshEdits(mesh, [edit], limits);
+
+function checked(mesh) {
+ validateTopology(editMesh(mesh));
+ return mesh;
+}
+
+function maximumAbsoluteDifference(first, second) {
+ let largest = 0;
+ for (let index = 0; index < first.length; index++) largest = Math.max(largest, Math.abs(first[index] - second[index]));
+ return largest;
+}
+
+test('every modifier is in the edit list, the stack list and the capability notes', () => {
+ for (const name of Object.keys(MODIFIER_OPERATIONS)) {
+ assert.ok(Object.hasOwn(MESH_EDIT_OPERATIONS, name), `${name} is an edit`);
+ assert.ok(STACK_OPERATIONS.includes(name), `${name} is a stack node`);
+ assert.ok(MESH_MODIFIER_NOTES[name], `${name} has a note`);
+ }
+ assert.equal(AGENT_SCENE_CAPABILITIES.meshModifiers, MESH_MODIFIER_NOTES);
+ assert.deepEqual(Object.keys(MESH_MODIFIER_NOTES), Object.keys(MODIFIER_OPERATIONS));
+});
+
+test('weld merges the vertices an edge split pulled apart and keeps the surface closed', () => {
+ const apart = run(cube(), { op: 'edge_split' }).mesh;
+ assert.equal(apart.vertexCount, 24);
+ const welded = run(apart, { op: 'weld', distance: 0.01 });
+ assert.equal(welded.mesh.vertexCount, 8);
+ assert.equal(welded.mesh.faceCount, 6);
+ assert.equal(welded.results[0].removedVertices, 16);
+ checked(welded.mesh);
+});
+
+test('triangulate turns every quad and cap into triangles and keeps tags', () => {
+ const mesh = prism(8);
+ const tagged = run(mesh, { op: 'tag', select: { all: true }, name: 'whole' }).mesh;
+ const triangles = run(tagged, { op: 'triangulate' }).mesh;
+ checked(triangles);
+ for (let face = 0; face < triangles.faceCount; face++) assert.equal(triangles.faceOffsets[face + 1] - triangles.faceOffsets[face], 3);
+ assert.equal(triangles.vertexCount, mesh.vertexCount);
+ assert.equal(triangles.faceCount, 8 * 2 + 2 * 6, 'eight quads make 16 triangles and two octagons make 12');
+ assert.equal(tagCounts(triangles).whole, triangles.faceCount);
+});
+
+test('triangulate with a larger minVertices leaves the smaller faces alone', () => {
+ const mesh = prism(8);
+ const caps = run(mesh, { op: 'triangulate', minVertices: 5 }).mesh;
+ checked(caps);
+ const sizes = {};
+ for (let face = 0; face < caps.faceCount; face++) {
+ const size = caps.faceOffsets[face + 1] - caps.faceOffsets[face];
+ sizes[size] = (sizes[size] ?? 0) + 1;
+ }
+ assert.ok(sizes[4] > 0 && sizes[3] > 0 && !sizes[8]);
+});
+
+test('edge_split separates faces along edges sharper than the angle and leaves flat joins alone', () => {
+ const split = run(cube(), { op: 'edge_split' });
+ checked(split.mesh);
+ assert.equal(split.mesh.vertexCount, 24);
+ assert.equal(split.results[0].addedVertices, 16);
+ assert.equal(run(cube(), { op: 'edge_split', angle: 120 }).mesh.vertexCount, 8);
+ const smoothSides = run(drum(), { op: 'edge_split', angle: 60 }).mesh;
+ checked(smoothSides);
+ const sideJoined = run(drum(), { op: 'edge_split', angle: 30 }).mesh;
+ assert.ok(sideJoined.vertexCount > smoothSides.vertexCount);
+});
+
+test('smooth pulls vertices toward their neighbours and factor 0 changes nothing', () => {
+ const mesh = cube();
+ const smoothed = run(mesh, { op: 'smooth', factor: 1, iterations: 4 }).mesh;
+ checked(smoothed);
+ const before = meshBounds(mesh);
+ const after = meshBounds(smoothed);
+ assert.ok(after.max[0] < before.max[0]);
+ assert.equal(run(mesh, { op: 'smooth', factor: 0 }).mesh.positions.every((value, index) => value === mesh.positions[index]), true);
+});
+
+test('simple_deform twist keeps the axis coordinate and rotates the cross-section in proportion to it', () => {
+ const mesh = drum();
+ const twisted = run(mesh, { op: 'simple_deform', mode: 'twist', axis: 'z', angle: 90 }).mesh;
+ checked(twisted);
+ const bounds = meshBounds(mesh);
+ for (let vertex = 0; vertex < mesh.vertexCount; vertex++) {
+ assert.ok(Math.abs(twisted.positions[vertex * 3 + 2] - mesh.positions[vertex * 3 + 2]) < 1e-6);
+ const before = Math.hypot(mesh.positions[vertex * 3], mesh.positions[vertex * 3 + 1]);
+ const after = Math.hypot(twisted.positions[vertex * 3], twisted.positions[vertex * 3 + 1]);
+ assert.ok(Math.abs(before - after) < 1e-5, 'a twist keeps the distance from the axis');
+ }
+ assert.ok(bounds.max[2] > bounds.min[2]);
+});
+
+test('simple_deform taper, stretch and bend run and a flat mesh along the axis is left as it is', () => {
+ for (const mode of ['taper', 'stretch', 'bend']) {
+ checked(run(drum(), { op: 'simple_deform', mode, axis: 'y', angle: 30, ...(mode === 'bend' ? {} : { angle: undefined, factor: 0.4 }) }).mesh);
+ }
+ const flat = createMeshData({
+ positions: new Float32Array([0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0]),
+ faceOffsets: Uint32Array.from([0, 4]), cornerVertices: Uint32Array.from([0, 1, 2, 3]),
+ });
+ const result = run(flat, { op: 'simple_deform', mode: 'twist', axis: 'z', angle: 90 }).mesh;
+ assert.equal(maximumAbsoluteDifference(result.positions, flat.positions), 0);
+});
+
+test('cast moves vertices toward a sphere', () => {
+ const mesh = cube();
+ const spherical = run(mesh, { op: 'cast', factor: 1, size: 2 }).mesh;
+ checked(spherical);
+ for (let vertex = 0; vertex < spherical.vertexCount; vertex++) {
+ assert.ok(Math.abs(Math.hypot(...spherical.positions.subarray(vertex * 3, vertex * 3 + 3)) - 2) < 1e-5);
+ }
+});
+
+test('modifier fields are validated and unknown fields are refused', () => {
+ const bad = [
+ { op: 'weld', distance: 0 },
+ { op: 'weld', distance: Number.NaN },
+ { op: 'triangulate', minVertices: 3 },
+ { op: 'triangulate', minVertices: 4.5 },
+ { op: 'edge_split', angle: 181 },
+ { op: 'smooth', iterations: 65 },
+ { op: 'smooth', factor: 3 },
+ { op: 'simple_deform' },
+ { op: 'simple_deform', mode: 'wobble' },
+ { op: 'simple_deform', mode: 'twist', axis: 'w' },
+ { op: 'simple_deform', mode: 'twist', factor: 1 },
+ { op: 'simple_deform', mode: 'taper', angle: 10 },
+ { op: 'cast', factor: 2 },
+ { op: 'cast', size: -1 },
+ { op: 'cast', radius: 1 },
+ { op: 'weld', name: 'x' },
+ ];
+ for (const edit of bad) assert.throws(() => applyMeshEdits(cube(), [edit]), TypeError, JSON.stringify(edit));
+});
+
+test('hostile input: output past the vertex or face limit is refused before it is built', () => {
+ assert.throws(() => run(cube(), { op: 'edge_split' }, { maxVertices: 20 }), /edge_split would make 24 vertices, over the limit of 20/);
+ assert.throws(() => run(drum(), { op: 'triangulate' }, { maxFaces: 10 }), /triangulate would make \d+ faces, over the limit of 10/);
+ assert.throws(() => evaluateMeshStack(cube(), [{ op: 'edge_split' }], { maxVertices: 10, maxFaces: 10 }), /edge_split/);
+ const long = Array.from({ length: 17 }, () => ({ op: 'smooth' }));
+ assert.throws(() => normalizeMeshStack(long), /at most 16 nodes/);
+});
+
+test('hostile input: a huge n-gon is refused when its triangles would pass the face limit', () => {
+ const corners = 20000;
+ const positions = new Float32Array(corners * 3);
+ for (let corner = 0; corner < corners; corner++) {
+ positions[corner * 3] = Math.cos(corner / corners * Math.PI * 2);
+ positions[corner * 3 + 1] = Math.sin(corner / corners * Math.PI * 2);
+ }
+ const ngon = createMeshData({ positions, faceOffsets: Uint32Array.from([0, corners]), cornerVertices: Uint32Array.from({ length: corners }, (_, index) => index) });
+ assert.throws(() => run(ngon, { op: 'triangulate' }, { maxFaces: 1000 }), /over the limit/);
+});
+
+test('modifiers run as stack nodes, reuse the cache and report their counts', () => {
+ const stack = [{ op: 'triangulate' }, { op: 'smooth', factor: 0.5, iterations: 2 }, { op: 'simple_deform', mode: 'bend', axis: 'z', angle: 20 }];
+ const outcome = evaluateMeshStack(drum(), stack);
+ checked(outcome.mesh);
+ assert.equal(outcome.results.length, 3);
+ assert.ok(outcome.results[0].triangulated > 0);
+ assert.ok(outcome.results[0].after.faces > drum().faceCount);
+});