text 来自https://stackoverflow.com/questions/15492857/any-way-to-get-a-bounding-box-from-a-three-js-ob

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 来自https://stackoverflow.com/questions/15492857/any-way-to-get-a-bounding-box-from-a-three-js-ob相关的知识,希望对你有一定的参考价值。

var loader = new THREE.ObjectLoader();
loader.load(imagePath, function(object){

    geometry = object.children[0].children[0].geometry;  // substitute the path to your geometry

    geometry.computeBoundingBox();  // otherwise geometry.boundingBox will be undefined

    var boundingBox = geometry.boundingBox.clone();
    alert('bounding box coordinates: ' + 
        '(' + boundingBox.min.x + ', ' + boundingBox.min.y + ', ' + boundingBox.min.z + '), ' + 
        '(' + boundingBox.max.x + ', ' + boundingBox.max.y + ', ' + boundingBox.max.z + ')' );
}

以上是关于text 来自https://stackoverflow.com/questions/15492857/any-way-to-get-a-bounding-box-from-a-three-js-ob的主要内容,如果未能解决你的问题,请参考以下文章

来自 watchOS 中 if 条件 Text() 的 SwiftUI 运行时错误

text 来自ip的Wget

text 来自apto列表的回复

text 来自Adam的测试片段

text BM1682支持来自Caffe算子

text 来自cli的mysql查询