multiview-constraint-solver

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Multiview Constraint Solver

多视图约束求解器

Use this before another rebuild when references disagree. A renderer cannot make one rigid mesh satisfy mutually incompatible orthographic dimensions unless you allow view-specific cheats.
当参考视图存在冲突时,在再次重建前使用本工具。除非允许针对特定视图做取巧调整,否则渲染器无法让单个刚性网格满足相互矛盾的正交尺寸要求。

Workflow

工作流

  1. Normalize every reference view into a common axis contract:
    • front: width X, height Z;
    • side: depth Y, height Z;
    • top: width X, depth Y;
    • back: width X, height Z.
  2. Measure visible body bboxes, not labels/background/aura unless they are part of the model contract.
  3. Compare shared axes:
    • front width vs top width;
    • front/back height vs side height;
    • side depth vs top depth.
  4. If ratios differ beyond tolerance, write a conflict report and select a policy:
    • front_side_canonical
      : front brand read and side depth/height are authoritative;
    • front_top_canonical
      : front brand read and top footprint are authoritative;
    • corrected_templates_required
      : no rigid rebuild should claim final fit;
    • view_specific_cheats
      : separate camera/view variants allowed, not one rigid asset.
  5. Feed the chosen policy into
    fit-repair-optimizer
    before any geometry, UV, or lighting work.
  1. 将所有参考视图标准化为统一的轴约定:
    • 前视图:宽度X轴,高度Z轴;
    • 侧视图:深度Y轴,高度Z轴;
    • 顶视图:宽度X轴,深度Y轴;
    • 后视图:宽度X轴,高度Z轴。
  2. 测量可见主体的bbox,不包含标签/背景/光环效果,除非这些属于模型约定的一部分。
  3. 比对共享轴的尺寸:
    • 前视图宽度 vs 顶视图宽度;
    • 前/后视图高度 vs 侧视图高度;
    • 侧视图深度 vs 顶视图深度。
  4. 如果比例差异超出容差范围,生成冲突报告并选择一种策略:
    • front_side_canonical
      :前视图品牌标识读数和侧视图的深度/高度为权威标准;
    • front_top_canonical
      :前视图品牌标识读数和顶视图占地面积为权威标准;
    • corrected_templates_required
      :任何刚性重建都不能宣称完全适配,需修正模板;
    • view_specific_cheats
      :允许使用不同的相机/视图变体,而非单一刚性资产。
  5. 在开展任何几何、UV或光照工作之前,将选定的策略输入到
    fit-repair-optimizer
    中。

Hard gates

硬性规定

  • Do not restart modeling until canonical policy exists.
  • Do not treat top-view aura/context as body depth.
  • Do not average contradictory dimensions unless the user explicitly asks for an approximate stylized compromise.
  • Record part-count disagreements separately from bbox disagreements.
  • 未确定规范策略前,不得重启建模工作。
  • 不得将顶视图的光环/背景元素计入主体深度。
  • 除非用户明确要求近似的风格化折中方案,否则不得对相互矛盾的尺寸取平均值。
  • 部件数量不一致的问题需与bbox不一致的问题分开记录。

Script

脚本

  • scripts/view_constraint_report.py
    reads a JSON file of per-view body bboxes and emits shared-axis compatibility and a suggested canonical policy.
  • scripts/view_constraint_report.py
    :读取包含各视图主体bbox的JSON文件,输出共享轴兼容性分析及建议的规范策略。