# 为什么在调用报错呢meshData.addFaces is not a function

**URL:** <https://forum.techsoft3d.com/t/meshdata-addfaces-is-not-a-function/4740>\
**Category:** HOOPS Visualize Web\
**Tags:** knowledge-base\
**Created:** [June 24, 2025, 10:12am UTC](https://forum.techsoft3d.com/t/meshdata-addfaces-is-not-a-function/4740 "2025-06-24T10:12:18Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![tino](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@tino](https://forum.techsoft3d.com/u/tino)\
**Post date:** [June 24, 2025, 11:28am UTC](https://forum.techsoft3d.com/t/meshdata-addfaces-is-not-a-function/4740/2 "2025-06-24T11:28:23Z")

</div>

\*\*免责声明：\*\*我使用的是英语到中文的翻译工具来撰写这篇帖子。

为了回答你的问题，我们需要更多关于你是如何调用 `addFaces()` 函数的信息。听起来你正在使用最初在这里发布的 CustomNavCube.js 概念验证代码：

> [@Source Code for NavCube Operator](https://forum.techsoft3d.com/t/source-code-for-navcube-operator/709):
>
> While the NavCube class provided by HOOPS Communicator is a very useful tool to intuitively orient the camera, it is not very customizable via the official API. It is also not part of the UI components we have made available in source code form in the package. There are plans to address this in a future version of the product but for now here is a “standalone” version of the operator with additional customization options. Usage: The CustomNavCube has the same API as the build-in [nav…](https://docs.techsoft3d.com/communicator/latest/build/api_ref/typedoc/classes/communicator.navcube.html)

作为一个快速检查，我可以在只对 `Overlay` 类中已弃用的代码进行最小更改的情况下成功运行该示例。对于添加 mesh（网格），我并没有进行任何更改。

---

_[View the full topic](https://forum.techsoft3d.com/t/meshdata-addfaces-is-not-a-function/4740)._
