I am interested in drawing a labelled dashed line through points p1
and p2
with Graphics3D
.
The code doing this job is the following:
p1 = {0, 0, 0};
p2 = {0, 1, 0};
Graphics3D[{Text[Style["DUMA", 30], (p1 + p2)/2], {Dashed, Line[{p1, p2}]}}, Boxed -> False]
This code provides the following output:
However, when I rotate the output image (highlighted in orange box in the above figure) by 90 degrees clockwise, I receive the following result:
Could you please help me how to modify my code to rotate the label simultaneously with the output image. The result that I expect is as follows: