Assets/Scripts/MarchingCubesJob.cs
/// <summary>
/// Gets the corners for the voxel at a position
/// </summary>
/// <param name="position">The voxel's position</param>
/// <returns>The voxel's corners</returns>
Gets the corners for the voxel at a position
Gets the corners for the voxel at a position
[MethodImpl(MethodImplOptions.AggressiveInlining)]
        private VoxelCorners<int3> GetCorners(int3 position)
        {
            VoxelCorners<int3> corners = new VoxelCorners<int3>();
            for (int i = 0; i < 8; i++)
            {
                corners[i] = position + LookupTables.CubeCorners[i];
            }
            return corners;
        }
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] private VoxelCorners < int3 > GetCorners ( int3 position ) { VoxelCorners < int3 > corners = new VoxelCorners < int3 > ( ) ; for ( int i = 0 ; i < 8 ; i ++ ) { corners [ i ] = position + LookupTables . CubeCorners [ i ] ; } return corners ; }
Gets the corners for the voxel at a position
Gets the corners for the voxel at a position
The voxel's corners
The voxel ' s corners
position
int3
The voxel's position
The voxel ' s position