Class CapsuleMaker
Inspired by a post from Jeremy Behreandt from https://behreajj.medium.com/making-a-capsule-mesh-via-script-in-five-3d-environments-c2214abf02db
Namespace: nickmaltbie.OpenKCC.Utils
Assembly: cs.temp.dll.dll
Syntax
public static class CapsuleMaker
Methods
CapsuleData(Int32, Int32, Int32, Single, Single, CapsuleMaker.UvProfile)
Create a capsule mesh based on some configuration.
Declaration
public static Mesh CapsuleData(int longitudes = 32, int latitudes = 16, int rings = 0, float depth = 1F, float radius = 0.5F, CapsuleMaker.UvProfile profile = CapsuleMaker.UvProfile.Aspect)
Parameters
Type | Name | Description |
---|---|---|
Int32 | longitudes | |
Int32 | latitudes | |
Int32 | rings | |
Single | depth | |
Single | radius | |
CapsuleMaker.UvProfile | profile |
Returns
Type | Description |
---|---|
Mesh |