jupyter-widgets-contrib / ipygany

3-D Scientific Visualization in the Jupyter Notebook
BSD 3-Clause "New" or "Revised" License
487 stars 53 forks source link

Scale meshes per scenes #3

Closed martinRenou closed 4 years ago

martinRenou commented 4 years ago

We should scale up or down geometries on a per-scene basis

// Scale up or down the geometry
this.geometry.computeBoundingSphere();
const { radius } = this.geometry.boundingSphere;
this.scale = new THREE.Vector3(1 / radius, 1 / radius, 1 / radius)
martinRenou commented 4 years ago

Fixed by 99173ee1f982b5508f34a759929e1dcaf970c112