Error on changing plane position of slice
- Dominant language
- JavaScript
- Stars
- 745
- Forks
- 212
- PR merge metrics
- No merged PRs in 30d
Description
I am working on a feature that allows users to rotate the localizer helpers of quadview like this [video](https://www.youtube.com/watch?v=VQznRYJzD4E). It is working fine, but after rotation of any 2D renderers, the translation of other renderers is not working fine. The slice of these other renderers is moving, but it should remain the same slice. Watch the video to understand what I am trying to explain. In the video, first I am rotating localizer helper on r2 renderer, and it worked fine. After I am translating the localizer helpers on r2, and observe the slice is not moving, it remains still, like I expected, but when I translate the localizer helper on r1, renderer r1's slice is moving, but it should not be.
How I am rotating (angle is in radian)
```javascript
axis = renderer.stackHelper.slice.planeDirection
planeDirection = renderer.stackHelper.slice.planeDirection.clone()
planeDirection.applyAxisAngle(axis,angle)
renderer.stackHelper.slice.planeDirection = planeDirection
renderer.stackHelper.border.helpersSlice = renderer.stackHelper.slice
```
How I am translating
```
renderer.stackHelper.slice.planePosition = point
renderer.stackHelper.border.helpersSlice = renderer.stackHelper.slice
```
I guess there is some error on rounding (Math.ceil or Math.floor) the point that I am setting the planePosition, because it is not coplanar with planePosition and I don't have a clue how to solve this.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.