KSP-RO / ProceduralParts

A continuation of StretchySRBs, which is a continuation of StretchyTanks
71 stars 79 forks source link

Create Torus Variations #287

Closed DRVeyl closed 3 years ago

DRVeyl commented 3 years ago

Based on http://wiki.unity3d.com/index.php/ProceduralPrimitives#C.23_-_Torus Perhaps a slightly different structure than the current solid-of-revolution implementation.

Variations: Fillet-like adjustment to the torus. Extension of one side of the torus. Interesting thing that falls out of the Unity reference implementation: hollow n-gons.

StonesmileGit commented 3 years ago

Early prototype of a hollow cylinder with a fillet option. image

Swamp-Ig commented 3 years ago

That's really cool! By the looks of the code it's a surface of revolution of a circle. That's basically how the cones worked, only with bezier sides.

It would be really cool if you could select the shape being revolved.

StonesmileGit commented 3 years ago

The example above is quite different from the code in that unity doc, but it is still a profile that is revolved around a central axis

StonesmileGit commented 3 years ago

I have now pushed my initial test of a hollow filleted cylinder to my fork, it's highly experimental and mostly for proof of concept, so ideas and feedback are welcome.

StonesmileGit commented 3 years ago

Released with v2.3