Cylinder(double radius, double height, unsigned int faces=100, bool center=true)
This constructor generates a cylinder with same base and top radius.
Cylinder(double radius1, double radius2, double height, unsigned int faces=100, bool center=true)
This constructor generates a cylinder with different base and top radius (build a cone or a truncated cone).
#include <components/Cylinder.h> #include <core/IndentWriter.h> Component myCylinder = Cylinder(20,50,100,true); writer << myCylinder; //generates a 20x50 mm cylinder with 100 faces.
cylinder(h=height,r1=radius1,r2=radius2,$fn=faces,center=true)