Package jme3utilities.mesh
Class RectangleOutlineMesh
java.lang.Object
com.jme3.scene.Mesh
jme3utilities.mesh.RectangleOutlineMesh
- All Implemented Interfaces:
com.jme3.export.Savable,com.jme3.util.clone.JmeCloneable,Cloneable
public class RectangleOutlineMesh
extends com.jme3.scene.Mesh
A 2-D, static, LineLoop-mode mesh that renders the outline of a rectangle in
the X-Y plane.
In local space, the rectangle extends from (x1,y1,0) to (x2,y2,0).
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jme3.scene.Mesh
com.jme3.scene.Mesh.Mode -
Constructor Summary
ConstructorsConstructorDescriptionInstantiate an axis-aligned unit square with its first vertex at the mesh origin.RectangleOutlineMesh(float x1, float x2, float y1, float y2) Instantiate an axis-aligned rectangle. -
Method Summary
Methods inherited from class com.jme3.scene.Mesh
addMorphTarget, clearBuffer, clearCollisionData, clone, 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, read, 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, write
-
Constructor Details
-
RectangleOutlineMesh
public RectangleOutlineMesh()Instantiate an axis-aligned unit square with its first vertex at the mesh origin. -
RectangleOutlineMesh
public RectangleOutlineMesh(float x1, float x2, float y1, float y2) Instantiate an axis-aligned rectangle.- Parameters:
x1- local X coordinate of the first and 2nd verticesx2- local X coordinate of the 3rd and 4th verticesy1- local Y coordinate of the first and 4th verticesy2- local Y coordinate of the 2nd and 3rd vertices
-