Example #1
0
        protected override void SetMasterObj(Object3 obj)
        {
            SimpleDot3 dot = new SimpleDot3(5);

            //dot.SetScale("1/50");
            masterObj = dot;
        }
Example #2
0
        /// <summary>
        /// Need to perform recursive clone of vertecies PointMatrix
        /// </summary>
        /// <returns>a shallow copy of this object</returns>
        public virtual Object3 Clone()
        {
            PointMatrix newVerts = new PointMatrix(vertecies.ToArray());

            for (int i = 0; i < newVerts.ColumnCount; i++)
            {
                newVerts.Set(i, vertecies.Get(i).Clone());
            }

            Object3 result = (Object3)MemberwiseClone();

            result.SetVertecies(newVerts);
            return(result);
        }
Example #3
0
 protected virtual void SetMasterObj(Object3 obj)
 {
     masterObj = obj;
 }
Example #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="geometry"></param>
 /// <param name="masterObj"></param>
 public System3(double[,] geometry, Object3 masterObj)
 {
     SetMasterObj(masterObj);
     ConvertGeometry(geometry);
     originalGeo = MatrixD.OfArray(geometry);
 }