Class StripBox
- All Implemented Interfaces:
- Savable,- JmeCloneable,- Cloneable
- 
Nested Class Summary
- 
Field SummaryFields inherited from class com.jme3.scene.shape.AbstractBoxcenter, xExtent, yExtent, zExtent
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()Creates a clone of this box.protected voidConvert the indices into the list of vertices that define the box's geometry.protected voidUpdate the normals of each of the box's planes.protected voidUpdate the points that define the texture of the box.protected voidUpdate the position of the vertices that define the box.Methods inherited from class com.jme3.scene.shape.AbstractBoxcomputeVertices, getCenter, getXExtent, getYExtent, getZExtent, read, updateGeometry, updateGeometry, updateGeometry, writeMethods inherited from class com.jme3.scene.MeshaddMorphTarget, clearBuffer, clearCollisionData, cloneFields, cloneForAnim, collideWith, createCollisionData, deepClone, extractVertexData, generateBindPose, generateBindPose, getBound, getBuffer, getBufferList, getBuffers, getElementLengths, getFloatBuffer, getId, getIndexBuffer, getIndicesAsList, getInstanceCount, getLineWidth, getLodLevel, getMaxNumWeights, getMode, getModeStart, getMorphIndex, getMorphTarget, getMorphTargetNames, getMorphTargets, getNumLodLevels, getPatchVertexCount, getPointSize, getShortBuffer, getTriangle, getTriangle, getTriangle, getTriangleCount, getTriangleCount, getVertexCount, hasMorphTargets, isAnimated, isAnimatedByBone, isAnimatedByJoint, jmeClone, prepareForAnim, removeMorphTarget, removeMorphTarget, scaleTextureCoordinates, setBound, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setDynamic, setElementLengths, setId, setInterleaved, setLineWidth, setLodLevels, setMaxNumWeights, setMode, setModeStart, setPatchVertexCount, setStatic, setStreamed, updateBound, updateCounts
- 
Constructor Details- 
StripBoxpublic StripBox(float x, float y, float z) Creates a new box.The box has a center of 0,0,0 and extends in the out from the center by the given amount in each direction. So, for example, a box with extent of 0.5 would be the unit cube. - Parameters:
- x- the size of the box along the x axis, in both directions.
- y- the size of the box along the y axis, in both directions.
- z- the size of the box along the z axis, in both directions.
 
- 
StripBoxCreates a new box.The box has the given center and extends in the out from the center by the given amount in each direction. So, for example, a box with extent of 0.5 would be the unit cube. - Parameters:
- center- the center of the box.
- x- the size of the box along the x axis, in both directions.
- y- the size of the box along the y axis, in both directions.
- z- the size of the box along the z axis, in both directions.
 
- 
StripBoxConstructor instantiates a newBoxobject.The minimum and maximum point are provided, these two points define the shape and size of the box but not it’s orientation or position. You should use the Spatial.setLocalTranslation(com.jme3.math.Vector3f)andSpatial.setLocalRotation(com.jme3.math.Quaternion)methods to define those properties.- Parameters:
- min- the minimum point that defines the box.
- max- the maximum point that defines the box.
 
- 
StripBoxprotected StripBox()Empty constructor for serialization only. Do not use.
 
- 
- 
Method Details- 
cloneCreates a clone of this box.The cloned box will have ‘_clone’ appended to it’s name, but all other properties will be the same as this box. 
- 
doUpdateGeometryIndicesprotected void doUpdateGeometryIndices()Description copied from class:AbstractBoxConvert the indices into the list of vertices that define the box's geometry.- Specified by:
- doUpdateGeometryIndicesin class- AbstractBox
 
- 
doUpdateGeometryNormalsprotected void doUpdateGeometryNormals()Description copied from class:AbstractBoxUpdate the normals of each of the box's planes.- Specified by:
- doUpdateGeometryNormalsin class- AbstractBox
 
- 
doUpdateGeometryTexturesprotected void doUpdateGeometryTextures()Description copied from class:AbstractBoxUpdate the points that define the texture of the box.It's a one-to-one ratio, where each plane of the box has its own copy of the texture. That is, the texture is repeated one time for each face. - Specified by:
- doUpdateGeometryTexturesin class- AbstractBox
 
- 
doUpdateGeometryVerticesprotected void doUpdateGeometryVertices()Description copied from class:AbstractBoxUpdate the position of the vertices that define the box.These eight points are determined from the minimum and maximum point. - Specified by:
- doUpdateGeometryVerticesin class- AbstractBox
 
 
-