feat(simulation): add Worker AI polygon runtime and terrain navigation

This commit is contained in:
DCCONSTRUCTIONS
2026-09-25 16:40:45 +03:00
parent a7c64e009d
commit f01bd39037
88 changed files with 9918 additions and 108 deletions
+16
View File
@@ -0,0 +1,16 @@
param([Parameter(Mandatory=$true)][string]$InputManifest,
[Parameter(Mandatory=$true)][string]$OutputPly,
[int]$Lod = -1)
$ErrorActionPreference = 'Stop'
$ProgressPreference = 'SilentlyContinue'
$tool = 'D:\NDC_MISSIONCORE\runtime\simulation\tools\splat-transform-3.4.0\node_modules\@playcanvas\splat-transform\bin\cli.mjs'
if (!(Test-Path $InputManifest)) { throw 'Source archive missing' }
if (Test-Path $OutputPly) { throw 'Do not overwrite a prepared scene' }
$tmp = $OutputPly -replace '\.ply$', '.part.ply'
if ($tmp -eq $OutputPly -or (Test-Path $tmp)) { throw 'Invalid or unfinished output' }
$options = @('--memory', '--no-tty')
if ($Lod -ge 0) { $options += @('--select-lod', [string]$Lod) }
& node.exe $tool @options $InputManifest $tmp
if ($LASTEXITCODE -ne 0) { throw 'Scene conversion failed' }
Move-Item $tmp $OutputPly
@{file=$OutputPly;bytes=(Get-Item $OutputPly).Length;sha256=(Get-FileHash $OutputPly -Algorithm SHA256).Hash.ToLower()} | ConvertTo-Json