Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add primitive capsule #245

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

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.

None yet

1 participant