I recently generated a new Mesh
using TextGeometry
and added it to an array of meshes:
var text3d = new THREE.TextGeometry( "Hello!", {
font: "Helvetica"
});
text3d.computeBoundingBox();
var textMaterial = new THREE.MeshBasicMaterial({ color: 0xb0bca7, overdraw: true });
meshArray.push(new THREE.Mesh( text3d, textMaterial ));
This leads me to the following inquiries:
- How can I retrieve the original text from the
text3d
object? - How can I extract the same text from the Mesh object stored in meshArray?
Unfortunately, the documentation did not provide me with any useful information.