com.jme3.scene.shape
クラス Curve

java.lang.Object
  上位を拡張 com.jme3.scene.Mesh
      上位を拡張 com.jme3.scene.shape.Curve
すべての実装されたインタフェース:
Savable, java.lang.Cloneable

public class Curve
extends Mesh

A Curve is a visual, line-based representation of a Spline. The underlying Spline will be sampled N times where N is the number of segments as specified in the constructor. Each segment will represent one line in the generated mesh.


入れ子のクラスの概要
 
クラス com.jme3.scene.Mesh から継承された入れ子のクラス/インタフェース
Mesh.Mode
 
コンストラクタの概要
Curve()
          Serialization only.
Curve(Spline spline, int nbSubSegments)
          Create a curve mesh from a Spline
Curve(Vector3f[] controlPoints, int nbSubSegments)
          Create a curve mesh.
 
メソッドの概要
 float getLength()
          This method returns the length of the curve.
 
クラス com.jme3.scene.Mesh から継承されたメソッド
clearBuffer, clone, cloneForAnim, collideWith, createCollisionData, deepClone, generateBindPose, getBound, getBuffer, getBufferList, getBuffers, getElementLengths, getFloatBuffer, getId, getIndexBuffer, getIndicesAsList, getLineWidth, getLodLevel, getMaxNumWeights, getMode, getModeStart, getNumLodLevels, getPointSize, getShortBuffer, getTriangle, getTriangle, getTriangle, getTriangleCount, getTriangleCount, getVertexCount, prepareForAnim, read, scaleTextureCoordinates, setBound, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setDynamic, setElementLengths, setId, setInterleaved, setLineWidth, setLodLevels, setMaxNumWeights, setMode, setModeStart, setPointSize, setStatic, setStreamed, updateBound, updateCounts, write
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Curve

public Curve()
Serialization only. Do not use.


Curve

public Curve(Vector3f[] controlPoints,
             int nbSubSegments)
Create a curve mesh. Use a CatmullRom spline model that does not cycle.

パラメータ:
controlPoints - the control points to use to create this curve
nbSubSegments - the number of subsegments between the control points

Curve

public Curve(Spline spline,
             int nbSubSegments)
Create a curve mesh from a Spline

パラメータ:
spline - the spline to use
nbSubSegments - the number of subsegments between the control points
メソッドの詳細

getLength

public float getLength()
This method returns the length of the curve.

戻り値:
the length of the curve