소스 검색

Added getter for patchVertexCount

michael 10 년 전
부모
커밋
58bcb39a2d
1개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. 9 1
      jme3-core/src/main/java/com/jme3/scene/Mesh.java

+ 9 - 1
jme3-core/src/main/java/com/jme3/scene/Mesh.java

@@ -1370,13 +1370,21 @@ public class Mesh implements Savable, Cloneable {
     }
 
     /**
-     * Sets the count of vertics used for each tessellation patch
+     * Sets the count of vertices used for each tessellation patch
      * @param patchVertexCount
      */
     public void setPatchVertexCount(int patchVertexCount) {
         this.patchVertexCount = patchVertexCount;
     }
 
+    /**
+     * Gets the amout of vertices used for each patch;
+     * @return
+     */
+    public int getPatchVertexCount() {
+        return patchVertexCount;
+    }
+
     public void write(JmeExporter ex) throws IOException {
         OutputCapsule out = ex.getCapsule(this);