internal MeshReconstructionServer(MeshReconstructionConfig config)
        {
            int status = 0;

            this.m_ServerPtr = MeshReconstructionServer.Internal_Create(this, config, out status);
            this.m_Status    = (MeshReconstructionServer.Status)status;
        }
 internal void GenerateSegmentAsync(SegmentGenerationRequest request, MeshReconstructionServer.SegmentReadyDelegate onSegmentReady)
 {
     if (onSegmentReady == null)
     {
         throw new ArgumentNullException("onSegmentRead");
     }
     MeshReconstructionServer.Internal_GenerateSegmentAsync(this.m_ServerPtr, request.gridIndex, request.destinationMeshFilter, request.destinationMeshCollider, onSegmentReady, request.provideNormals, request.provideColors, request.providePhysics);
 }
 internal void GetChangedSegments(MeshReconstructionServer.SegmentChangedDelegate onSegmentChanged)
 {
     if (onSegmentChanged == null)
     {
         throw new ArgumentNullException("onSegmentChanged");
     }
     MeshReconstructionServer.Internal_GetChangedSegments(this.m_ServerPtr, onSegmentChanged);
 }
 internal void Dispose()
 {
     if (this.m_ServerPtr != IntPtr.Zero)
     {
         MeshReconstructionServer.Destroy(this.m_ServerPtr);
         this.m_ServerPtr = IntPtr.Zero;
     }
     GC.SuppressFinalize(this);
 }
 private static void Internal_GenerateSegmentAsync(IntPtr serverPtr, GridIndex gridIndex, MeshFilter destinationMeshFilter, MeshCollider destinationMeshCollider, MeshReconstructionServer.SegmentReadyDelegate onSegmentReady, bool provideNormals, bool provideColors, bool providePhysics)
 {
     MeshReconstructionServer.Internal_GenerateSegmentAsync_Injected(serverPtr, ref gridIndex, destinationMeshFilter, destinationMeshCollider, onSegmentReady, provideNormals, provideColors, providePhysics);
 }
 private static IntPtr Internal_Create(MeshReconstructionServer self, MeshReconstructionConfig config, out int status)
 {
     return(MeshReconstructionServer.Internal_Create_Injected(self, ref config, out status));
 }
 private static extern IntPtr Internal_Create_Injected(MeshReconstructionServer self, ref MeshReconstructionConfig config, out int status);
 internal IntPtr GetNativeReconstructionContext()
 {
     return(MeshReconstructionServer.Internal_GetNativeReconstructionContextPtr(this.m_ServerPtr));
 }
 internal void ClearMeshes()
 {
     MeshReconstructionServer.Internal_ClearMeshes(this.m_ServerPtr);
 }
예제 #10
0
 extern private static IntPtr Internal_Create(MeshReconstructionServer self, MeshReconstructionConfig config, out int status);