why addAxisTranslationHandle( new Point3(0,0,0), new Point3(1, 0, 0), Color.red()); is not working , handles are visible on canvas but after clicking it, does not translate the model, and it behaves same for the other methods except addHandles() only it is working.
There is an example on setting transformation handles as part of the quickstart module of the Communicator package. To view this example, please do the following:
- Launch the server by double-clicking start_server.bat found in the directory HOOPS_Communicator_2025.3.0\quick_start
- Load the handle example in the Web Viewer by clicking this URL:
http://localhost:11180/handles.html?viewer=csr
it’s not working, is there any issue with this method??
Let’s try this:
let handleOperator = hwv.operatorManager.getOperator(Communicator.OperatorId.Handle);
handleOperator.setNodeIds([64]); //pick a node to move
let position = new Communicator.Point3(0, 0, 0);
let axis = new Communicator.Point3(1, 0, 0);
let color = new Communicator.Color(255, 0, 0);
await handleOperator.addAxisTranslationHandle(position, axis, color);
handleOperator.showHandles();
thanks,its working now