computeBoundingBox() on TextGeometry throws exception
See original GitHub issueCalling computeBoundingBox() on a TextGeometry generated by <a-text> throws the following exception
Uncaught (in promise) TypeError: Cannot read property 'array' of undefined
at TextGeometry.computeBoundingBox (index.js:117)
at init ((index):14)
at i.updateProperties (component.js:250)
at i.module.exports.Component (component.js:50)
at new i (component.js:449)
at HTMLElement.value (a-entity.js:391)
at HTMLElement.value (a-entity.js:558)
at HTMLElement.<anonymous> (a-entity.js:525)
at a-entity.js:320
at a-node.js:117
- A-Frame Version: 0.7.0
- Platform / Device: Windows 10, Chrome 63.0.3239.108
- Reproducible Code Snippet or URL: https://glitch.com/edit/#!/text-bounding-box-bug
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (9 by maintainers)
Top Results From Across the Web
How to compute bounding box after using ObjLoader three.js
I think something like this should do the trick: var loader = new THREE.OBJLoader(); loader.load( mURL, function ( object ) { THREE.SceneUtils.
Read more >Addressing a variable with TextPlugin - GSAP - GreenSock
Hello there, Im trying out three.js combined with the gsap TextPlugin. Ive got a variable called message that Im trying to change the...
Read more >TextGeometry align center - CodePen
'undefined' ? module.exports = factory() : 17. typeof define === 'function' && define.amd ? define(factory) : 18. (global.dat = factory());.
Read more >three BufferGeometry TypeScript Examples - ProgramCreek.com
computeBoundingBox() geometry.userData.component = this this.geometry = geometry this.$emit('created', geometry) }, rotateGeometry() { if (!this.geometry) ...
Read more >CloudMEMS Platform for Design and Simulation of MEMS
the bottom of Login dialog, the View invokes login() method in Controller, ... Failed: The Joule Heating simulation failed with the shown error,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@NomisGnos thank you for your reply. The problem is that I havent a raycaster or a cursor. I need to compute the bounding box of an aframe entity that contains an a-text.
@christianvari https://github.com/aframevr/aframe/issues/4618#issuecomment-642444286 seemed to have fixed my issue.
<a-cursor raycaster="objects: .insert-class-name-here-that-is-clickable" ...I haven’t tested it long enough but so far, it was working for me.