有没有办法通过heightSegments&分割planeGeometry到不相等的部分? three.js
中的widthSegments?
解释:
new THREE.PlaneGeometry(100, 100, 2, 3);
那将平面划分为宽度上的2个相等部分和高度上3个相等部分。
我想分成不平等的部分。类似的东西:
new THREE.PlaneGeometry(objWidth, objHeight, 2.5, 1.5);
哪个不起作用。有什么建议?
提前致谢。
答案 0 :(得分:0)
在API documentation for THREE.PlaneGeometry
中,您可以看到第3和第4个参数表示widthSegments
和heightSegments
:
PlaneGeometry(width, height, widthSegments, heightSegments);
段的数量是整数。我不确定你想要实现什么,但这些值应该是整数。
所以不,这是不可能的。