-
Notifications
You must be signed in to change notification settings - Fork 23
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
Javascript Online Viewer #41
Comments
that's real good, is their a repo that people can contribute to ? id be happy to implement p-cube loading in JavaScript. as for improvements, very minor but a "random cube please" button / mode would be nice. also I don't know if you are loading all the cubes into memory or streaming them but you will want to avoid loading them all if you want to show the bigger cubes. finally it would be great if it could be hooked up to a file server or database so the user doesn't have to provide the cube files, I'm happy to host the cube files on one of my servers if that helps. |
Thank you bertie2. If you want to go to a random cube in the loaded dataset, just put the step slider to whatever big value and press the next button. It won't overflow since I am using a modulo. I can still make a button though. Yes, I am loading the whole file to memory but I only keep the raw list of strings. There is only one geometry representing the current polycube it is recomputed when needed. I'll try to make the datasets load directly from within the app. Let's see what other people think about it. |
Hello, |
Hello, |
Just looking what the cubes output looks like made my day. 👍 |
Hello everyone, |
Hello there,
I have made an application so that you may load and visualize a polycube dataset in your browser.
You can load dataset from your computer in a text file format where each line is xyz111000110001...
I have seen the post about the pcube format but it was too complex for me to implement fast in Javascript.
So I also propose to download polycubes from 3 to 9 in the correct format as an archive (if you trust it):
or individually polycubes 3, polycubes 4, polycubes 5, polycubes 6, polycubes 7, polycubes 8, polycubes 9.
Controls:
You can change the step value using the slider and it is in log10 scale so that you can jump to any index in a large dataset quickly.
I also spend some part of my weekend working on the generation of all polycubes that fits across a 3x3x3 cube:
there are 1 551 811 of them, took 20min on my computer to compute with some Python script that I have optimized a bit since it was 90min at first.
Here are the dataset: zip archive (3.3MB) and txt file (50MB).
I hope you will find it useful.
There are many improvements that can be brought to this viewer, let me know if you think of good ones.
Edit 03/09/2023 : All linked files have been removed.
The text was updated successfully, but these errors were encountered: