autocore-ai / MapToolbox

Plugins to make Autoware vector maps in Unity
GNU Lesser General Public License v3.0
252 stars 98 forks source link

deprecated interface IJobNativeMultiHashMapMergedSharedKeyIndices #94

Closed Acoustic6 closed 1 year ago

Acoustic6 commented 1 year ago

Hello! Trying to make point cloud as a mesh I checked out branch 'feature/height_from_pcd' and faced the error: IJobNativeMultiHashMapMergedSharedKeyIndices in part of code class HeightMeshBuild: struct GetMinHeightIndex : IJobNativeMultiHashMapMergedSharedKeyIndices So this part of code is not working:

var hashMap = new NativeParallelMultiHashMap<int, int>(pointsMesh.vertices.Length, Allocator.TempJob); new GetMinHeightIndex() { vertices = originVertices, minHeightIndex = minHeightIndex }.Schedule(hashMap, 128).Complete();

In unity Collections [0.8.0] - 2020-04-24 interface IJobNativeMultiHashMapMergedSharedKeyIndices was deprecated and NativeHashMap.GetUnsafeBucketData was supposed to fix the issue in some way.

In unity Collections [0.12.0] - 2020-08-04 the interface was removed.

my dependencies: Unity version: 2022.3.3f1 <DX 11> Jobs: 0.70.0-preview.7 Burst: 1.8.7 Mathematics: 1.2.6 Collections: 1.4.0

If anyone has any suggestions please share!

Thanks in advance!