Three.js通过heightSegments&amp ;;将planeGeometry划分为不相等的部分。 widthSegments

时间:2016-02-25 08:12:48

标签: javascript three.js

有没有办法通过heightSegments&分割planeGeometry到不相等的部分? three.js中的widthSegments?

解释:

new THREE.PlaneGeometry(100, 100, 2, 3);

那将平面划分为宽度上的2个相等部分和高度上3个相等部分。

我想分成不平等的部分。类似的东西:

new THREE.PlaneGeometry(objWidth, objHeight, 2.5, 1.5);

哪个不起作用。有什么建议?

提前致谢。

1 个答案:

答案 0 :(得分:0)

API documentation for THREE.PlaneGeometry中,您可以看到第3和第4个参数表示widthSegmentsheightSegments

PlaneGeometry(width, height, widthSegments, heightSegments);

段的数量是整数。我不确定你想要实现什么,但这些值应该是整数。

所以不,这是不可能的。