sphere(radius:targetEdgeLength:)
Creates a sphere mesh with a topology suitable for cloth simulation.
Declaration
@MainActor static func sphere(radius: Float, targetEdgeLength: Float = defaultTargetEdgeLength) throws -> SelfReturn Value
The generated sphere mesh resource.
Discussion
radius: The radius of the generated sphere, in meters.
targetEdgeLength: The targeted average edge length for the generated mesh, in meters. The generated mesh will contain edges with a length as close as possible to this.