Пример #1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         DSGeometryExtension.DisposeObject(ref mReferencePoint);
     }
     base.Dispose(disposing);
 }
Пример #2
0
 internal static void DisposeObject <T>(ref T[][] obj) where T : DesignScriptEntity
 {
     obj.ForEach((T[] item) => DSGeometryExtension.DisposeObject(ref item));
     if (obj.IsDisposed())
     {
         obj = null;
     }
 }
Пример #3
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         DSGeometryExtension.DisposeObject(ref mFaces);
     }
     base.Dispose(disposing);
 }
Пример #4
0
 private void Dispose(bool disposing)
 {
     if (disposing)
     {
         DSGeometryExtension.DisposeObject(ref mCoordinateSystem);
         DSGeometryExtension.DisposeObject(ref mPointOnSurface);
         DSGeometryExtension.DisposeObject(ref mContextSurface);
     }
 }
Пример #5
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         DSGeometryExtension.DisposeObject(ref mContainingCell);
         DSGeometryExtension.DisposeObject(ref mContainingFace);
     }
     base.Dispose(disposing);
 }
Пример #6
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         DSGeometryExtension.DisposeObject(ref mProfile);
         DSGeometryExtension.DisposeObject(ref mPath);
     }
     base.Dispose(disposing);
 }
Пример #7
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         DSGeometryExtension.DisposeObject(ref mEdges);
         DSGeometryExtension.DisposeObject(ref mVertices);
         DSGeometryExtension.DisposeObject(ref mPlane);
     }
     base.Dispose(disposing);
 }
Пример #8
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         DSGeometryExtension.DisposeObject(ref mAdjacentFaces);
         DSGeometryExtension.DisposeObject(ref mStartVertex);
         DSGeometryExtension.DisposeObject(ref mEndVertex);
     }
     base.Dispose(disposing);
 }
Пример #9
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         DSGeometryExtension.DisposeObject(ref mVertices);
         DSGeometryExtension.DisposeObject(ref mEdges);
         mSurfaceEntity.DisposeObject(); mSurfaceEntity = null;
     }
     base.Dispose(disposing);
 }
Пример #10
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                DSGeometryExtension.DisposeObject(ref mControlVertices);
                DSGeometryExtension.DisposeObject(ref mPoints);
            }

            base.Dispose(disposing);
        }
Пример #11
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         DSGeometryExtension.DisposeObject(ref mCrossSections);
         DSGeometryExtension.DisposeObject(ref mGuides);
         DSGeometryExtension.DisposeObject(ref mPath);
     }
     base.Dispose(disposing);
 }
Пример #12
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                DSGeometryExtension.DisposeObject(ref mStartPoint);
                DSGeometryExtension.DisposeObject(ref mEndPoint);
                DSGeometryExtension.DisposeObject(ref mCenterLine);
            }

            base.Dispose(disposing);
        }
Пример #13
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         DSGeometryExtension.DisposeObject(ref mFirstPoint);
         DSGeometryExtension.DisposeObject(ref mSecondPoint);
         DSGeometryExtension.DisposeObject(ref mThirdPoint);
         DSGeometryExtension.DisposeObject(ref mCenterPoint);
     }
     base.Dispose(disposing);
 }
Пример #14
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                DSGeometryExtension.DisposeObject(ref mCellFaces);
                DSGeometryExtension.DisposeObject(ref mAdjacentCells);
                DSGeometryExtension.DisposeObject(ref mEdges);
                DSGeometryExtension.DisposeObject(ref mVertices);

                DSGeometryExtension.DisposeObject(ref mShell);
                DSGeometryExtension.DisposeObject(ref mCentroid);
            }
            base.Dispose(disposing);
        }
Пример #15
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="disposing"></param>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (null != mPersistent && !Object.ReferenceEquals(mPersistent, base.HostImpl))
                {
                    mPersistent.Dispose();
                }

                DSGeometryExtension.DisposeObject(ref mContext);
                DSGeometryExtension.DisposeObject(ref mContextCS);
            }

            mPersistent        = null;
            mDisplayAttributes = null;
            base.Dispose(disposing); //allow base class to release it's resources
        }
Пример #16
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         DSGeometryExtension.DisposeObject(ref mVertices);
         DSGeometryExtension.DisposeObject(ref mEdges);
         DSGeometryExtension.DisposeObject(ref mFaces);
         DSGeometryExtension.DisposeObject(ref mShells);
         DSGeometryExtension.DisposeObject(ref mCrossSections);
         DSGeometryExtension.DisposeObject(ref mPath);
         DSGeometryExtension.DisposeObject(ref mGuides);
         DSGeometryExtension.DisposeObject(ref mProfile);
         DSGeometryExtension.DisposeObject(ref mAxisOrigin);
         DSGeometryExtension.DisposeObject(ref mAxis);
     }
     base.Dispose(disposing);
 }
Пример #17
0
 internal static void AssignTo <T>(this T[][] right, ref T[][] left) where T : DesignScriptEntity
 {
     DSGeometryExtension.DisposeObject(ref left);
     left = right.Retain();
 }