ofDoc > 3d > ofBoxPrimitive

ofBoxPrimitive

Public Types

Protected Attributes

int strides [6][2]
int vertices [6][2]

Public Functions

ofBoxPrimitive (float width, float height, float depth, int resWidth=2, int resHeight=2, int resDepth=2)
void set (float width, float height, float depth, int resWidth, int resHeight, int resDepth)
void set (float width, float height, float depth)
void set (float size)
void setWidth (float a_width)
void setHeight (float a_height)
void setDepth (float a_depth)
void resizeToTexture (ofTexture &inTexture)
ofIndexType getSideIndices (int sideIndex) const
ofMesh getSideMesh (int sideIndex) const
void setResolution (int res)
void setResolutionWidth (int widthRes)
void setResolutionHeight (int heightRes)
void setResolutionDepth (int depthRes)
void setResolution (int resWidth, int resHeight, int resDepth)
void setMode (ofPrimitiveMode mode)
void setSideColor (int sideIndex, ofColor color)
int getResolutionWidth () const
int getResolutionHeight () const
int getResolutionDepth () const
float getWidth () const
float getHeight () const
float getDepth () const
ofVec3f getSize () const