public class ReactorMesh
extends com.jme3.scene.Mesh
When given a BoundingBox
, the mesh will contain the entire box. The
front of the box will be exposed, the left and right side will be closed, and
the top and bottom sides will be curved.
In practice, the two biggest sides of the box should be exposed so that the
pipes inside can be seen. The next two biggest sides should be solid, while
the two smallest sides should be the curved sides. To do this, you need to
rotate the spatial that will be using this mesh.
setThickness(float)
.Constructor and Description |
---|
ReactorMesh()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
setCurveSamples(int curveSamples)
Sets the number of curve samples for the curved edges of the mesh.
|
void |
setReactorBounds(com.jme3.bounding.BoundingBox box)
Sets the bounds of the central part of the mesh.
|
void |
setThickness(float thickness)
Sets the thickness of the reactor mesh.
|
clearBuffer, clone, cloneForAnim, collideWith, createCollisionData, deepClone, extractVertexData, generateBindPose, getBound, getBuffer, getBufferList, getBuffers, getElementLengths, getFloatBuffer, getId, getIndexBuffer, getIndicesAsList, getLineWidth, getLodLevel, getMaxNumWeights, getMode, getModeStart, getNumLodLevels, getPointSize, getShortBuffer, getTriangle, getTriangle, getTriangle, getTriangleCount, getTriangleCount, getVertexCount, isAnimated, prepareForAnim, read, scaleTextureCoordinates, setBound, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setDynamic, setElementLengths, setId, setInterleaved, setLineWidth, setLodLevels, setMaxNumWeights, setMode, setModeStart, setPointSize, setStatic, setStreamed, updateBound, updateCounts, write
public ReactorMesh()
public void setThickness(float thickness)
thickness
- The new thickness of the mesh. Must be greater than 0.public void setCurveSamples(int curveSamples)
curveSamples
- The new number of curve samples. Must be greater than 0.public void setReactorBounds(com.jme3.bounding.BoundingBox box)
box
- A BoundingBox defining the bounds of the central part of the
reactor core mesh. Must not be null to have an effect.