When using handles to pan or rotate node, the node disappears

When I use handles to pan or rotate a node , the node disappears. I checked the center point of the node after its disappearance, which is 20000 meters away from the original center point.

For example, the X value of the original center point is 78, and the X value after translating a point is 14484.
74efd195381f774ea9759bd948f3a334

2

What may be the reason?
Thanks.

Hi,

is this behavior reproducible in our standard webviewer?

Hi,guido.
This behavior does not producible in our standard webviewer,It happened in the method I repackaged.
I haven’t found any possible reasons for this behavior.
So I would like to seek your help and see what reasons may cause a significant amount of translation or rotation

Hello,

The issue might be that your implementation is not taking into account the net node matrix of the selected item:
https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/classes/Communicator.Model.html?highlight=getnodenetmatrix#Communicator.Communicator.Model.getNodeNetMatrix

We have a short example of adding a handles operator that might prove useful as a reference guide:
https://docs.techsoft3d.com/communicator/latest/tutorials/additive-manufacturing/handles.html#add-a-handles-operator

One quick note: we are currently updating the link on the handles operator to properly show the video. At this time, it’s not available for playback.

Thanks,
Tino

1 Like

I rechecked my code,It’s my implementation is not taking into account the net node matrix of the selected item.
Now the problem is solved.
Thanks,Tino :grinning:

1 Like