Esempio n. 1
0
 public static TriangleDataModel Create(uint triangleAddress)
 {
     if (!_cache.ContainsKey(triangleAddress))
     {
         TriangleDataModel tri = new TriangleDataModel(triangleAddress);
         _cache[triangleAddress] = tri;
     }
     return(_cache[triangleAddress]);
 }
Esempio n. 2
0
 public TriangleMapData(
     float x1,
     float y1,
     float z1,
     float x2,
     float y2,
     float z2,
     TriangleDataModel tri)
 {
     X1  = x1;
     Y1  = y1;
     Z1  = z1;
     X2  = x2;
     Y2  = y2;
     Z2  = z2;
     Tri = tri;
 }