Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VolumeRaycaster show index is out of range #273

Open
woxiarong opened this issue Oct 24, 2024 · 3 comments
Open

VolumeRaycaster show index is out of range #273

woxiarong opened this issue Oct 24, 2024 · 3 comments

Comments

@woxiarong
Copy link

when "dataset.GetData(index.x, index.y, index.z) " to get the value, the console show "data[]"'s index is out of range. Is that shuld check the "dataset.data.Length" and "x + y * dimX + z * (dimX * dimY)]"'s value before get the dataset's value ?

@mlavik1
Copy link
Owner

mlavik1 commented Nov 6, 2024

Good point. Maybe I should add a check, and add another GetDataUnsafe for the cases where we don't want to spend time on range checking..
Thanks for the suggestion! I'll keep this task open until that's done.

@woxiarong
Copy link
Author

woxiarong commented Nov 6, 2024 via email

@mlavik1
Copy link
Owner

mlavik1 commented Nov 6, 2024

好的 👌
可是我没有发送邮件 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants