예제 #1
0
        public override ISurface Clone()
        {
            NonPeriodicSurface res = new NonPeriodicSurface();

            res.periodicSurface     = periodicSurface;
            res.periodicBounds      = periodicBounds;
            res.hasPole             = hasPole;
            res.fullPeriod          = fullPeriod;
            res.toNonPeriodicBounds = toNonPeriodicBounds;
            res.toPeriodicBounds    = toPeriodicBounds;
            return(res);
        }
예제 #2
0
        public override void CopyData(ISurface CopyFrom)
        {
            NonPeriodicSurface nps = CopyFrom as NonPeriodicSurface;

            if (nps != null)
            {
                periodicSurface     = nps.periodicSurface;
                periodicBounds      = nps.periodicBounds;
                hasPole             = nps.hasPole;
                fullPeriod          = nps.fullPeriod;
                toNonPeriodicBounds = nps.toNonPeriodicBounds;
                toPeriodicBounds    = nps.toPeriodicBounds;
            }
        }