1. 首页
  2. three.js

three.js计算半径为NaN

我希望能够深入了解可能导致以下错误的问题类型,以便解决问题。我正在使用R107。nthree.js:11903 THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The \”position\” attribute is likely to have NaN values. BufferGeometry {uuid: \”1F4641CE-9004-452A-838E-1DC69F07A323\”, name: \”CrodGeometry\”, type: \”BufferGeometry\”, index: null, attributes: {…}, …}attributes: {position: Float32BufferAttribute, color: Float32BufferAttribute}boundingBox: nullboundingSphere: Spherecenter: Vector3 {x: 722.9655294418335, y: 0, z: 278.7619934082031}radius: NaN__proto__: ObjectdrawRange: {start: 0, count: Infinity}groups: []index: nullmorphAttributes: {}name: \”CrodGeometry\”type: \”BufferGeometry\”userData: {}uuid: \”1F4641CE-9004-452A-838E-1DC69F07A323\”drawcalls: (…)id: 11offsets: (…)__proto__: EventDispatchercomputeBoundingSphere @ three.js:11903drawCRods @ app.js:873init @ app.js:1197(anonymous) @ app.js:317processModel @ model-loader.js:47(anonymous) @ model-loader.js:35(anonymous) @ three.js:34525load (async)load @ three.js:34505(anonymous) @ model-loader.js:33Promise.then (async)load @ model-loader.js:28mounted @ app.js:312callHook @ vuejs-2.0.js:2878mountComponent @ vuejs-2.0.js:2762Vue$3.$mount @ vuejs-2.0.js:8349Vue$3.$mount @ vuejs-2.0.js:10689Vue._init @ vuejs-2.0.js:4524Vue$3 @ vuejs-2.0.js:4609renderDrawing @ app.js:306BDF @ (index):410onchange @ (index):446请为您的帖子添加更多细节。您的帖子已被标记,因为它缺少细节,已经被询问过,或者很容易通过搜索引擎得到回复。n请添加更多细节,例如:n- 一个使用Codepen 1或JSFIDLE 1的最简单的工作示例5n Computed radius is NaNn

three.js计算半径为NaN 为WP2原创文章,链接:https://www.wp2.cn/three-js/three-js%e8%ae%a1%e7%ae%97%e5%8d%8a%e5%be%84%e4%b8%banan/