@@ -170994,13 +170994,9 @@ class TAnnotation3DPainter extends TTextPainter {
170994
170994
170995
170995
if (fp?.mode3d && !this.use_2d) {
170996
170996
const mesh = build3dlatex(text, '', this, fp);
170997
-
170998
170997
mesh.traverse(o => o.geometry?.rotateX(Math.PI / 2));
170999
- mesh.position.x = fp.grx(text.fX);
171000
- mesh.position.y = fp.gry(text.fY);
171001
- mesh.position.z = fp.grz(text.fZ);
171002
- mesh.rotation.z = getRotation(fp.camera, mesh);
171003
-
170998
+ mesh.position.set(fp.grx(text.fX), fp.gry(text.fY), fp.grz(text.fZ));
170999
+ mesh.rotation.set(0, 0, getRotation(fp.camera, mesh));
171004
171000
fp.processRender3D = true;
171005
171001
fp.add3DMesh(mesh, this, true);
171006
171002
fp.render3D(100);
@@ -171033,7 +171029,9 @@ class TAnnotation3DPainter extends TTextPainter {
171033
171029
new_y = this.axisToSvg('y', pos.y, true);
171034
171030
makeTranslate(this.getG(), new_x - this.pos_x, new_y - this.pos_y);
171035
171031
} else
171036
- fp.get3DMeshes(this).forEach(mesh => { mesh.rotation.z = getRotation(fp.camera, mesh); });
171032
+ fp.get3DMeshes(this).forEach(mesh => {
171033
+ mesh.rotation.set(0, 0, getRotation(fp.camera, mesh));
171034
+ });
171037
171035
}
171038
171036
171039
171037
/** @summary draw TAnnotation3D object */
0 commit comments