* = Details

Definition for how to graft one figure's geometry to another.

Name | Description | Default | Required |
---|---|---|---|

vertex_count | The number of vertices expected to exist in the target geometry. | None | yes |

poly_count | The number of polygons expected to exist in the target geometry. | None | yes |

vertex_pairs | A int2_array of vertex index pairs. The first index being the index into the source vertex list and the second index being the index into the target geometry vertex list. | N/A | yes |

hidden_polys | A int_array of polygon indices on the target geometry that should be hidden. | N/A | yes |

The *vertex_pairs* property is composed of an array of vertex pairs where the first element in each pair is the index into the source geometry vertex array (i.e. the geometry that contains this snap_target definition), and the second element in each pair is the index into the vertex array for the target geometry.

The *hidden_polys* indices indicate which polygons on the target geometry should be hidden when the geometry for the snapping is attached.

{ "vertex_count" : 345, "poly_count" : 321, "vertex_pairs" : { "count" : 3, "values" : [ [ 2, 334 ], [ 3, 723 ], [ 6, 219 ] ] }, "hidden_polys" : { "count" : 6, "values" : [ 67, 23, 87, 89, 12, 90 ] } }

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution 3.0 Unported