ofDoc > 3d > ofCylinderPrimitive

ofCylinderPrimitive

Protected Attributes

float radius
float height
bool bCapped
int strides [3][2]
int vertices [3][2]

Public Functions

ofCylinderPrimitive (float radius, float height, int radiusSegments, int heightSegments, int capSegments=2, bool bCapped=true, ofPrimitiveMode mode=OF_PRIMITIVE_TRIANGLE_STRIP)
void set (float radius, float height, int radiusSegments, int heightSegments, int capSegments=2, bool bCapped=true, ofPrimitiveMode mode=OF_PRIMITIVE_TRIANGLE_STRIP)
void set (float radius, float height, bool bCapped=true)
void setRadius (float radius)
void setHeight (float height)
void setCapped (bool bCapped)
void setResolutionRadius (int radiusRes)
void setResolutionHeight (int heightRes)
void setResolutionCap (int capRes)
void setResolution (int radiusSegments, int heightSegments, int capSegments=2)
void setMode (ofPrimitiveMode mode)
void setTopCapColor (ofColor color)
void setCylinderColor (ofColor color)
void setBottomCapColor (ofColor color)
int getResolutionRadius () const
int getResolutionHeight () const
int getResolutionCap () const
float getHeight () const
float getRadius () const
bool getCapped () const