Add prepared urban route guidance to Gaussian simulation planning
Introduce a content-bound scene route provider, advisory runtime graph and plan-preview-launch workflow. Preserve live sensing authority and retire blocked intermediate goals without discarding final-arrival evidence. Bound native visual context losslessly and provide verified cache relocation. Full Maroseyka route qualification remains open.
This commit is contained in:
@@ -6,6 +6,7 @@ bundle alone is not evidence of which cached USD the renderer will load.
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import shutil
|
||||
import uuid
|
||||
from pathlib import Path
|
||||
|
||||
@@ -83,6 +84,11 @@ def prepare_gaussian(source, convert, recipe, *, cache_root=None):
|
||||
if valid is not None:
|
||||
return output, valid
|
||||
directory.mkdir(parents=True, exist_ok=True)
|
||||
# USD retains all SH coefficients and is slightly larger than its PLY.
|
||||
# Refuse before conversion rather than filling the Worker volume midway.
|
||||
required = int(identity["source_bytes"] * 1.25) + 4 * 1024**3
|
||||
if shutil.disk_usage(directory).free < required:
|
||||
raise RuntimeError("Недостаточно места для Gaussian USD-кэша: освободите диск или перенесите кэш.")
|
||||
token = uuid.uuid4().hex
|
||||
temporary = directory / (token + ".part.usd")
|
||||
receipt_temporary = directory / (token + ".part.json")
|
||||
|
||||
Reference in New Issue
Block a user