Changes to the Cone+Cylinder Geometry; cutting off the

tip of the cone is now supported
This commit is contained in:
2026-06-09 09:13:20 +02:00
parent a6a9ac388c
commit 9e9c9ac174
3 changed files with 14 additions and 8 deletions
+3 -2
View File
@@ -42,12 +42,12 @@ class Cylinder : public Geometry {
*/
/*
Geometry of a cylinder with a cone as the end at z=0.
Geometry of a cylinder with a cone as the end with its tip at z=0.
*/
class HalfCylinderWithCone : public Geometry {
public:
HalfCylinderWithCone(double radiusCylinder, double heightCylinder,
double heightCone);
double heightCone, double zfrustum);
bool isInside(const Coordinate& position) const;
GeometryPositioning isWhere(const Coordinate& position) const;
@@ -55,6 +55,7 @@ class HalfCylinderWithCone : public Geometry {
const double cylinder_radius_;
const double cylinder_height_;
const double cone_height_;
const double z_frustum_;
double localRadius(double z) const;
};