Skip to content

Conversation

rubenmoor
Copy link
Contributor

@rubenmoor rubenmoor commented Mar 24, 2023

I added AppendCapsuleMesh to add a primitive to any mesh with a capsule shape defined by

  • Radius (of the hemispheres)
  • CylinderLength (the length of the cylindric part)
  • the mesh resolution
    • HemisphereSteps
    • CircleSteps
    • CylinderSteps

and a transform.

I have troubles getting the wrapping of the uv coordinates right, apart from that this works fine.

I use duplicate vertices at the poles and along the seam for the cylinder for the purpose of having a correct uv mapping.

Sorry for messing up all the tabs/spaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant