Ejemplo n.º 1
0
        public void Alloc()
        {
            MinExtents.Alloc();
            internalStruct.minExtents = MinExtents.internalStruct;

            MaxExtents.Alloc();
            internalStruct.maxExtents = MaxExtents.internalStruct;

            internalStructPtr = StructMarshal.StructToIntPtr(internalStruct);
        }
Ejemplo n.º 2
0
        public void Free()
        {
            MinExtents?.Free();
            MinExtents = new Point3F(internalStruct.minExtents);

            MaxExtents?.Free();
            MaxExtents = new Point3F(internalStruct.maxExtents);

            if (internalStructPtr != IntPtr.Zero)
            {
                StructMarshal.FreeStructPtr <InternalStruct>(internalStructPtr);
            }
            internalStructPtr = IntPtr.Zero;
        }