示例#1
0
 public bool TryAdd(PrimitiveClass p)
 {
     if (p is PointTriangleStrip)
     {
         return(TryAdd(p as PointTriangleStrip));
     }
     else if (p is PointTriangle)
     {
         return(TryAdd(p as PointTriangle));
     }
     return(false);
 }
示例#2
0
 public static int Compare(PrimitiveClass p1, PrimitiveClass p2)
 {
     return(p1.GetType() == p2.GetType() ? 0 : p1 is PointTriangleStrip ? -1 : 1);
 }