Esempio n. 1
0
    public void InitializeVolume(int voxelPower)
    {
        if (volumeHandle == IntPtr.Zero)
        {
            getVolumBoudingBoxCallback     = new GetVolumBoudingBoxCallback(GetVolumBoudingBox);
            overlapBoxBlockingTestCallback = new OverlapBoxBlockingTestCallback(OverlapBoxBlockingTest);

            volumeHandle = CreateSVONVolume(voxelPower,
                                            getVolumBoudingBoxCallback,
                                            overlapBoxBlockingTestCallback);
        }
    }
Esempio n. 2
0
 private static unsafe extern IntPtr CreateSVONVolume(Int32 voxelPower,
                                                      [MarshalAs(UnmanagedType.FunctionPtr)] GetVolumBoudingBoxCallback cbGetVolumBoudingBox,
                                                      [MarshalAs(UnmanagedType.FunctionPtr)] OverlapBoxBlockingTestCallback cbOverlapBoxCheck);