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); }
public static int Compare(PrimitiveClass p1, PrimitiveClass p2) { return(p1.GetType() == p2.GetType() ? 0 : p1 is PointTriangleStrip ? -1 : 1); }