Ejemplo n.º 1
0
        public MyPolygonSyncedRotation(MyVector[] uniquePoints, Triangle[] triangles, MyQuaternion rotation)
            : base(uniquePoints, triangles)
        {
            MyVector[] clonedPoints = Utility3D.GetClonedArray(uniquePoints);
            _rotatedPoly = new MyPolygon(clonedPoints, Utility3D.GetClonedArray(clonedPoints, triangles));

            SyncRotation(rotation);
        }
Ejemplo n.º 2
0
        public virtual MyPolygon Clone()
        {
            //TODO:  Support children.  This will require a separate overload (probably private) that takes the subset of
            //unique points

            MyVector[] clonedPoints = Utility3D.GetClonedArray(_uniquePoints);

            return(new MyPolygon(clonedPoints, Utility3D.GetClonedArray(clonedPoints, _triangles)));
        }
Ejemplo n.º 3
0
 public override MyPolygon Clone()
 {
     MyVector[] clonedPoints = Utility3D.GetClonedArray(base.UniquePoints);
     return(new MyPolygonSyncedRotation(clonedPoints, Utility3D.GetClonedArray(clonedPoints, base.Triangles), _rotationForClone.Clone()));
 }