question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

computeBoundingBox() on TextGeometry throws exception

See original GitHub issue

Calling 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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
christianvaricommented, Jun 24, 2020

@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.

1reaction
NomisGnoscommented, Jun 24, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found