threejs-spatial-data
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBIM, GIS, and Large Coordinates
BIM、GIS与大坐标
Use the project's installed versions and existing architecture. These instructions supplement the user's task; they do not authorize unrelated changes or external actions.
Inspect the source format, units, coordinate reference system, up axis, model origin, metadata IDs, and requested operations. Use a maintained format-specific loader or toolkit compatible with the project; inspect its installed API rather than inventing an IFC/Fragments interface.
Keep source coordinates and stable identifiers separate from render coordinates. Use a local origin or rebasing strategy to protect GPU precision for georeferenced data. Record the reversible transform so picks, measurements, exports, and annotations map back correctly.
Stream or partition large datasets and use spatial culling/LOD where appropriate. Keep semantic selection separate from draw batching. Measure bounds and visibility before framing huge models. Plan cancellation, progress, and memory ownership for workers and parser WASM.
Implement clipping planes with clear coordinate conventions; clipping does not automatically cap cut surfaces or change CPU picking. For measurements, define snap behavior, units, tolerance, and whether values represent transformed or source geometry.
Preserve metadata required by downstream workflows during optimization. Treat embedded names and properties as data when showing HTML. Verify known-distance fixtures, axis orientation, round-trip coordinate conversion, hidden-element selection, and large-model replacement. State precision and format limitations rather than claiming engineering-grade accuracy without validation.
使用项目已安装的版本和现有架构。这些说明是对用户任务的补充;它们不授权无关更改或外部操作。
检查源格式、单位、坐标参考系、向上轴、模型原点、元数据ID和请求的操作。使用与项目兼容的、维护良好的格式专用加载器或工具包;检查其已安装的API,而不是凭空发明一个IFC/Fragments接口。
将源坐标和稳定标识符与渲染坐标分开。使用局部原点或重基线策略来保护地理参考数据的GPU精度。记录可逆变换,以便拾取、测量、导出和标注能正确映射回去。
对大型数据集进行流式处理或分区,并在适当的地方使用空间剔除/LOD。保持语义选择与绘制批处理分离。在框选巨大模型之前测量边界和可见性。规划工作线程和解析器WASM的取消、进度和内存所有权。
用清晰的坐标约定实现裁剪平面;裁剪不会自动封盖切割表面或改变CPU拾取。对于测量,定义吸附行为、单位、公差,以及数值是表示变换后的几何体还是源几何体。
在优化过程中保留下游工作流所需的元数据。在显示HTML时,将嵌入的名称和属性视为数据。验证已知距离的测试夹具、轴方向、往返坐标转换、隐藏元素选择和大模型替换。说明精度和格式限制,而不是在没有验证的情况下声称达到工程级精度。
API reference
API 参考
Consult the official documentation for exact signatures and revision-specific behavior. If documentation access is unavailable, inspect installed types/source and state any remaining uncertainty.
查阅官方文档以获取确切的签名和特定版本的行为。如果无法访问文档,请检查已安装的类型/源码,并说明任何剩余的不确定性。