Home | History | Annotate | Download | only in model

Lines Matching refs:mesh

40 import com.jme3.scene.Mesh;
45 import com.jme3.scene.mesh.IndexBuffer;
60 Mesh mesh = geom.getMesh();
62 VertexBuffer positions = mesh.getBuffer(Type.Position);
63 VertexBuffer normals = mesh.getBuffer(Type.Normal);
64 VertexBuffer texcoords = mesh.getBuffer(Type.TexCoord);
65 VertexBuffer indices = mesh.getBuffer(Type.Index);
71 mesh.getVertexCount());
81 mesh.clearBuffer(Type.Position);
82 mesh.setBuffer(newPosVb);
94 mesh.clearBuffer(Type.Normal);
95 mesh.setBuffer(normals);
102 mesh.getVertexCount());
110 mesh.clearBuffer(Type.TexCoord);
111 mesh.setBuffer(newTcVb);
115 public static void compressIndexBuffer(Mesh mesh){
116 int vertCount = mesh.getVertexCount();
117 VertexBuffer vb = mesh.getBuffer(Type.Index);
130 IndexBuffer src = mesh.getIndexBuffer();
135 mesh.clearBuffer(Type.Index);
136 mesh.setBuffer(newVb);
138 IndexBuffer dst = mesh.getIndexBuffer();