Class Overview
This class is a container for geometric data displayed with
 Renderscript. Internally, a mesh is a collection of allocations that
 represent vertex data (positions, normals, texture
 coordinates) and index data such as triangles and lines. 
 
 Vertex data could either be interleaved within one
 allocation that is provided separately, as multiple allocation
 objects, or done as a combination of both. When a
 vertex channel name matches an input in the vertex program,
 Renderscript automatically connects the two together.
 
 
  Parts of the mesh can be rendered with either explicit
  index sets or primitive types.
 
 
Summary
| Nested Classes | 
|---|
  
    
      | class | Mesh.AllocationBuilder | Mesh builder object. | 
    
    
    
      | class | Mesh.Builder | Mesh builder object. | 
    
    
    
      | enum | Mesh.Primitive | Describes the way mesh vertex data is interpreted when rendering | 
    
    
    
      | class | Mesh.TriangleMeshBuilder | Builder that allows creation of a mesh object point by point
 and triangle by triangle | 
    
    
| [Expand] Inherited Methods | 
|---|
|  From class
  android.renderscript.BaseObj 
  
   
    
    
	 
    
        | synchronized
            
            
            
            void | destroy() destroy disconnects the object from the native object effectively
 rendering this java object dead. |  
        | boolean | equals(Object obj) Compare the current BaseObj with another BaseObj for equality. |  
        | void | finalize() Invoked when the garbage collector has detected that this instance is no longer reachable. |  
        | String | getName() |  
        | int | hashCode() Calculates the hash code value for a BaseObj. |  
        | void | setName(String name) setName assigns a name to an object. |  | 
|  From class
  java.lang.Object 
  
   
    
    
	 
    
        | Object | clone() Creates and returns a copy of this Object. |  
        | boolean | equals(Object o) Compares this instance with the specified object and indicates if they
 are equal. |  
        | void | finalize() Invoked when the garbage collector has detected that this instance is no longer reachable. |  
        | final
            
            
            Class<?> | getClass() Returns the unique instance of  Class that represents this
 object's class. |  
        | int | hashCode() Returns an integer hash code for this object. |  
        | final
            
            
            void | notify() Causes a thread which is waiting on this object's monitor (by means of
 calling one of the wait()methods) to be woken up. |  
        | final
            
            
            void | notifyAll() Causes all threads which are waiting on this object's monitor (by means
 of calling one of the wait()methods) to be woken up. |  
        | String | toString() Returns a string containing a concise, human-readable description of this
 object. |  
        | final
            
            
            void | wait() Causes the calling thread to wait until another thread calls the notify()ornotifyAll()method of this object. |  
        | final
            
            
            void | wait(long millis, int nanos) Causes the calling thread to wait until another thread calls the notify()ornotifyAll()method of this object or until the
 specified timeout expires. |  
        | final
            
            
            void | wait(long millis) Causes the calling thread to wait until another thread calls the notify()ornotifyAll()method of this object or until the
 specified timeout expires. |  | 
Public Methods
 
    
      
        public 
         
         
         
         
        Allocation
      
      getIndexSetAllocation
      (int slot)
    
      
    
      
  
  
      Parameters
      
        
          | slot | locaton within the list of index set allocation | 
      
   
  
      Returns
      - allocation containing primtive index data or null if
         the index data is not specified explicitly
 
     
 
 
    
      
        public 
         
         
         
         
        Mesh.Primitive
      
      getPrimitive
      (int slot)
    
      
    
      
  
  
      Parameters
      
        
          | slot | locaiton within the list of index set primitives | 
      
   
  
     
 
 
    
      
        public 
         
         
         
         
        int
      
      getPrimitiveCount
      ()
    
      
    
      
  
  
      Returns
      - number of primitives or index sets in the mesh
 
     
 
 
    
      
        public 
         
         
         
         
        Allocation
      
      getVertexAllocation
      (int slot)
    
      
    
      
  
  
      Parameters
      
        
          | slot | index in the list of allocations to return | 
      
   
  
      Returns
      - vertex data allocation at the given index
 
     
 
 
    
      
        public 
         
         
         
         
        int
      
      getVertexAllocationCount
      ()
    
      
    
      
  
  
      Returns
      - number of allocations containing vertex data