public static void NvMeshGenerate(ref NvFractureRead nvFractureRead, Vector3[] positions, Vector3[] normals, Vector2[] uv, Int32 verticesCount, Int32[] indices, Int32 indicesCount) { nvFractureRead.nvFractureToolPtr = NvBlastExtAuthoringCreateFractureTool(); nvFractureRead.nvMeshPtr = NvBlastExtAuthoringCreateMesh(positions, normals, uv, verticesCount, indices, indicesCount); _FractureTool_setSourceMesh(nvFractureRead.nvFractureToolPtr, nvFractureRead.nvMeshPtr); if (nvFractureRead.fractureType == FractureTypes.Voronoi || nvFractureRead.fractureType == FractureTypes.Clustered) { nvFractureRead.nvVoronoiSitesGeneratorPtr = _VoronoiSitesGenerator_Create(nvFractureRead.nvMeshPtr); } }
public void EnQueue(NvFractureRead nvFractureRead, NvController nVDebug) { nvDebugList.Enqueue(nVDebug); nvFractureReadList.Enqueue(nvFractureRead); }