ofDoc
>
3d
>
ofBoxPrimitive
Topics
Public Types
Protected Attributes
Public Functions
ofBoxPrimitive
Public Types
BoxSides
Enumerator
SIDE_FRONT
SIDE_RIGHT
SIDE_LEFT
SIDE_BACK
SIDE_TOP
SIDE_BOTTOM
SIDES_TOTAL
Protected Attributes
ofVec3f
size
ofVec3f
resolution
int
strides
[6][2]
int
vertices
[6][2]
Public Functions
ofBoxPrimitive
()
ofBoxPrimitive
(float width, float height, float depth, int resWidth=2, int resHeight=2, int resDepth=2)
~ofBoxPrimitive
()
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
ofVec3f
getResolution
() const
float
getWidth
() const
float
getHeight
() const
float
getDepth
() const
ofVec3f
getSize
() const