Skip to content
New issue

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

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

Already on GitHub? # to your account

Bug in createOcTreeFromImage? #1

Open
lruthotto opened this issue Oct 14, 2016 · 3 comments
Open

Bug in createOcTreeFromImage? #1

lruthotto opened this issue Oct 14, 2016 · 3 comments

Comments

@lruthotto
Copy link
Contributor

try if this works for you!

using JOcTree
n     = [16;16;16];
Img   = zeros(UInt8,tuple(n...));
Img[9:11,8:10,6:12] = 1;
tol   = .001;
S     = createOcTreeFromImage(Img,tol)

for me it does not. there are two issues. first Mesh.sparse3 does not exist. second, getindex does not seem to work with UInt's. For a fix see my forked version. Feel free to pull that over if you like it.

@dwfmarchant
Copy link
Member

This doesn't work for me either - I don't think it's a hard fix, it just doesn't look like the code has been updated since jOcTree was split from jInv.Mesh or since 0.5.

Is this a piece of code that is useful to anyone? It's not one I have ever used before aside from maybe demonstrating how an OcTree works. Maybe it should be modified to be more flexible in it's inputs?

@eldadHaber
Copy link

eldadHaber commented Mar 14, 2017 via email

@dwfmarchant
Copy link
Member

No worries - I fixed it this morning. I'll submit a PR with the changes later today.

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

No branches or pull requests

3 participants