'How to console.log points' size in three.js
How to access and console.log the points size of the imported PCD file? Here is the list of the scene's attributes and within it is the PCD object: enter image description here
Here is the part of the code for loading my PCD model and how I accessed the children's length array but I can't access the size points:
const loader = new PCDLoader();
loader.load( 'pointcloud.pcd', function ( points ) {
scene.add( points );
render() } );
const obj = scene.getObjectByProperty('pointcloud.pcd').children.length
console.log(obj)
console.log(scene)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
