ofDoc > 3d > ofConePrimitive

ofConePrimitive

Protected Attributes

float radius
float height
int strides [2][2]
int vertices [2][2]

Public Functions

ofConePrimitive (float radius, float height, int radiusSegments, int heightSegments, int capSegments=2, ofPrimitiveMode mode=OF_PRIMITIVE_TRIANGLE_STRIP)
void set (float radius, float height, int radiusSegments, int heightSegments, int capSegments=2, ofPrimitiveMode mode=OF_PRIMITIVE_TRIANGLE_STRIP)
void set (float radius, float height)
void setResolutionRadius (int radiusRes)
void setResolutionHeight (int heightRes)
void setResolutionCap (int capRes)
void setResolution (int radiusRes, int heightRes, int capRes)
void setMode (ofPrimitiveMode mode)
void setRadius (float radius)
void setHeight (float height)
void setTopColor (ofColor color)
void setCapColor (ofColor color)
ofMesh getConeMesh () const
ofMesh getCapMesh () const
int getResolutionRadius () const
int getResolutionHeight () const
int getResolutionCap () const
float getRadius () const
float getHeight () const