I am trying to get the world coordinates( i.e. viewer coordinate) of a markups position. But I am unable to get It.
What I am doing:
In case of Arrow:-
I have drawn an arrow and I am getting its head and tail. Then I am trying to convert it to world client using viewer.clientToWorld as shown below
In Above screen shot m is my markup
Reason I am doing this is that I want to set a cutPlane in viewer which is exactly parallel to my markup.
Also suggest how can I find a plane which is parallel to the line and will be along z axis.
Thanks & Regards
Saurabh A.
viewer.clientToWorld
could only get you the world positions when the client coords intersect a node (a point/part of the model).
To get world positions when the client coords are not intersecting see here