Separate Parts To Indexes¶
![https://user-images.githubusercontent.com/14288520/199354331-3bb1f195-f53e-40a8-8e7f-ba5ab71eb454.png](https://user-images.githubusercontent.com/14288520/199354331-3bb1f195-f53e-40a8-8e7f-ba5ab71eb454.png)
Functionality¶
Marks mesh elements by indexes. All disjoint parts of mesh have different indexes. Elements of one part have a same index.
![https://user-images.githubusercontent.com/14288520/199355029-bad0b7bc-f5be-4b5f-b0fb-9961abae9178.png](https://user-images.githubusercontent.com/14288520/199355029-bad0b7bc-f5be-4b5f-b0fb-9961abae9178.png)
Category¶
Modifiers -> modifier change -> Separate perts to indexes
Inputs¶
Vertices - vertices
Edges - edges (optionally if faces are connected)
Faces - faces (optionally if edges are connected)
Outputs¶
Vert index - index mask of verts
Edge index - index mask of edges
Face index - index mask of faces
![https://user-images.githubusercontent.com/14288520/199355010-98eef441-4a08-40ff-89e1-8ca56f2cb90c.png](https://user-images.githubusercontent.com/14288520/199355010-98eef441-4a08-40ff-89e1-8ca56f2cb90c.png)
Examples¶
![https://user-images.githubusercontent.com/14288520/199355473-75e689d0-fa9d-45ae-8056-529805ac29a9.png](https://user-images.githubusercontent.com/14288520/199355473-75e689d0-fa9d-45ae-8056-529805ac29a9.png)
Generator-> Cricket
DIV: Number-> Scalar Math
List->List Main-> Selected Statistics
List->List Struct-> List First & Last
Matrix-> Matrix In
Color-> Color Ramp
Viz-> Viewer Draw
Using index mask for assigning material to separate parts of mesh:
![https://user-images.githubusercontent.com/28003269/72244444-b6564700-3607-11ea-8662-51727aaddfb4.png](https://user-images.githubusercontent.com/28003269/72244444-b6564700-3607-11ea-8662-51727aaddfb4.png)
Generator-> Suzanne
Viz-> Mesh Viewer
BPY Data-> Assign Materials List
BPY Data-> Set Material Index
Moving disjoint parts =):
![https://user-images.githubusercontent.com/28003269/73347608-53201200-42a1-11ea-96bb-358ada087da4.png](https://user-images.githubusercontent.com/28003269/73347608-53201200-42a1-11ea-96bb-358ada087da4.png)
Generator-> Cricket
Transform-> Transform Mesh
MUL: Number-> Scalar Math
Vector-> Vector In
Set: List-> List Modifier
Scene-> Frame Info
![https://user-images.githubusercontent.com/28003269/73347577-469bb980-42a1-11ea-889b-b4d87c754f2d.gif](https://user-images.githubusercontent.com/28003269/73347577-469bb980-42a1-11ea-889b-b4d87c754f2d.gif)