Documentation > Mesh Ops Plugin BPLibrary > Weighted Tri Map from Selection

Weighted Tri Map from Selection

Generates a Map from Selection used to get a weighted random triangle index. The key of the map represents indexes in the Tris array, and the value of the map at each key represents its weight by relative size.

Inputs

In
Exec

Data
Mesh Data Structure (by ref)

Selection
Mesh Selection Structure (by ref)

Map
Map of Integers to Integers

Force
Boolean

Adjust
Float

Bias
Vector

Outputs

Out
Exec

Return Value
Boolean

Generates a Map from Selection used to get a weighted random triangle index. The key of the map represents indexes in the Tris array, and the value of the map at each key represents its weight by relative size.