init(positions:triangleIndices:)
Creates a cloth mesh resource from the given vertex positions and triangle indices.
Declaration
@MainActor convenience init(positions: [SIMD3<Float>], triangleIndices: [UInt32]) throwsParameters
- positions:
Positions for the vertices of the mesh.
- triangleIndices:
Indices of the vertices forming the triangle primitives of the mesh.