ThreeJS:是否可以简化对象/减少顶点数量? [英] ThreeJS: is it possible to simplify an object / reduce the number of vertexes?

查看:901
本文介绍了ThreeJS:是否可以简化对象/减少顶点数量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始学习ThreeJS。我要显示一些非常复杂的模型。

I'm starting to learn ThreeJS. I have some very complex models to display.

这些模型来自客户提供的Autocad文件。

These models come from Autocad files that my customer provides.

但是有时,出于网站的目的,模型中的详细信息太多了。

But sometimes the amount of details in the model is just way too much for the purpose of the website.

我想减少模型中的顶点数量,以简化显示并提高性能。

I would like to reduce the amount of vertexes in the model to simplify the display and enhance performance.

在ThreeJS中可以这样做吗?还是有其他解决方案?

Is this possible from within ThreeJS? Or is there maybe an other solution for this?

推荐答案

有一个叫做SimplifyModifier的修饰符效果很好。您可以在Three.js示例中找到它

There's a modifier called SimplifyModifier that works very well. You'll find it in the Three.js examples

https://threejs.org/examples/#webgl_modifier_simplifier

这篇关于ThreeJS:是否可以简化对象/减少顶点数量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆