Package com.jme3.environment.util
Class Circle
java.lang.Object
com.jme3.scene.Mesh
com.jme3.environment.util.Circle
- All Implemented Interfaces:
Savable,JmeCloneable,Cloneable
A `Circle` is a 2D mesh representing a circular outline (wireframe). It's defined by a specified number of radial samples, which determine its smoothness.
The circle is centered at (0,0,0) in its local coordinate space and has a radius of 1.0.
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GeometrycreateShape(AssetManager assetManager, String name) Creates aGeometryobject representing a dashed wireframe circle.voidread(JmeImporter im) voidwrite(JmeExporter ex) 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, 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
-
Field Details
-
radialSamples
protected int radialSamples
-
-
Constructor Details
-
Circle
public Circle()Creates a new `Circle` mesh.
-
-
Method Details
-
createShape
Creates aGeometryobject representing a dashed wireframe circle.- Parameters:
assetManager- The application's AssetManager to load materials.name- The desired name for the Geometry.- Returns:
- A new Geometry instance with a `Circle` mesh.
-
write
- Specified by:
writein interfaceSavable- Overrides:
writein classMesh- Throws:
IOException
-
read
- Specified by:
readin interfaceSavable- Overrides:
readin classMesh- Throws:
IOException
-