Skip to content

[GPU] Add a cylinder geometry

In contrast to the existing geometry VerticalCylinder this cylinder can have its main axis in parallel to any of the main directions.

In addition, I fixed a bug in VerticalCylinder::changeSizeByDelta()

This merge also contains some refactoring for the geometries. Many member functions constant now. Rename scaling() to changeSizeByDelta(). The old name was misleading, as it did not scale by a factor as described in https://en.wikipedia.org/wiki/Scaling_(geometry). In reality the size of the geometry is increased by the number which was passed. Example: void Sphere::changeSizeByDelta(double delta) { this->radius += delta; }

Merge request reports

Loading