| Home | Trees | Indices | Help | 
        
  | 
  
|---|
| 
       | 
  
Algorithms to reorder triangle list order and vertex order aiming to minimize vertex cache misses.
This is effectively an implementation of 'Linear-Speed Vertex Cache Optimisation' by Tom Forsyth, 28th September 2006 http://home.comcast.net/~tom_forsyth/papers/fast_vert_cache_opt.html
    
  | 
|||
| 
        VertexScore Vertex score calculation.  | 
  |||
| 
        VertexInfo Stores information about a vertex.  | 
  |||
| TriangleInfo | |||
| 
        Mesh Simple mesh implementation which keeps track of which triangles are used by which vertex, and vertex cache positions.  | 
  |||
    
  | 
|||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
    
  | 
|||
        __package__ = 
     | 
  |||
    
  | 
|||
  
 
  | 
  
 Stitch all triangles together into a strip without changing the triangle ordering (for example because their ordering is already optimized). >>> stable_stripify([(0, 1, 2), (2, 1, 4)]) [[0, 1, 2, 4]] >>> stable_stripify([(0, 1, 2), (2, 3, 4)]) [[0, 1, 2], [2, 3, 4]] >>> stable_stripify([(0, 1, 2), (2, 1, 3), (2, 3, 4), (1, 4, 5), (5, 4, 6)]) [[0, 1, 2, 3, 4], [1, 4, 5, 6]] >>> stable_stripify([(0, 1, 2), (0, 3, 1), (0, 4, 3), (3, 5, 1), (6, 3, 4)]) [[2, 0, 1, 3], [0, 4, 3], [3, 5, 1], [6, 3, 4]] 
  | 
  
  | 
| Home | Trees | Indices | Help | 
        
  | 
  
|---|
| Generated by Epydoc 3.0.1 on Mon Oct 10 19:03:24 2011 | http://epydoc.sourceforge.net |