Documentation

Unity Engine

Download Unity

Unity Engine

GetGeometryIslands(Allocator)

Get the geometry islands from a previous polygon geometry composition i.e. a call to PhysicsComposer.CreatePolygonGeometry or PhysicsComposer.CreateConvexHulls. Each generated polygon or convex-hull belongs to a unique island defining a set of polygons that are connected together as they share
Read time 1 minuteLast updated 2 days ago

Definition

public NativeArray<RangeInt> GetGeometryIslands(Allocator allocator)

Parameters

allocator

The memory allocator to use for the results. This can only be Allocator.Temp, Allocator.TempJob or Allocator.Persistent.

Returns

Type

Description

NativeArray<RangeInt>A NativeArray containing a series of ranges where each range is uniquely connected island where the range indicates both the start and end indices of the original polygon indices.