Package jme3utilities.mesh
Class DividedLine
java.lang.Object
com.jme3.scene.Mesh
jme3utilities.mesh.DividedLine
- All Implemented Interfaces:
com.jme3.export.Savable,com.jme3.util.clone.JmeCloneable,Cloneable
public class DividedLine
extends com.jme3.scene.Mesh
A static, Lines-mode mesh (with indices) that renders a subdivided line
segment.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jme3.scene.Mesh
com.jme3.scene.Mesh.Mode -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNo-argument constructor needed by SavableClassUtil.DividedLine(com.jme3.math.Vector3f endPoint1, com.jme3.math.Vector3f endPoint2, int numSegments) Instantiate a uniformly subdivided line segment between the specified endpoints. -
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
-
Field Details
-
logger
message logger for this class
-
-
Constructor Details
-
DividedLine
protected DividedLine()No-argument constructor needed by SavableClassUtil. -
DividedLine
public DividedLine(com.jme3.math.Vector3f endPoint1, com.jme3.math.Vector3f endPoint2, int numSegments) Instantiate a uniformly subdivided line segment between the specified endpoints.- Parameters:
endPoint1- the desired location of the first endpoint (in mesh coordinates, not null, unaffected)endPoint2- the desired location of the 2nd endpoint (in mesh coordinates, not null, unaffected)numSegments- the desired number of sub-segments (≥1)
-