Contents

vertices(in:center:orientation:)

Returns the indices of the vertices that lie inside the given volume shape.

Declaration

final func vertices(in shape: ClothVolumeShape, center: SIMD3<Float> = SIMD3<Float>(repeating: 0), orientation: simd_quatf = simd_quatf(ix: 0, iy: 0, iz: 0, r: 1)) -> [UInt32]

Parameters

  • shape:

    The volume shape to test vertices against.

  • center:

    The center position of the shape.

  • orientation:

    The orientation of the shape.

Return Value

The indices of the vertices that lie inside the shape.

See Also

Accessing vertex data