cnr-isti-vclab / hexalab Goto Github PK
View Code? Open in Web Editor NEWThis project forked from c4stan/hexalab
http://www.hexalab.net: an online viewer for hexahedral meshes
License: MIT License
This project forked from c4stan/hexalab
http://www.hexalab.net: an online viewer for hexahedral meshes
License: MIT License
For integration into scientific tools such as Jupyter, there needs to be a clearly stated license. The MIT license would be great for this.
HexaLab gets stuck at Loading... when I try to load some of the larger datasets (>10 MB), for instance kiss_hex.mesh (17.5 MB). Tested in Chrome and Firefox on two different machines, same thing happens every time.
Error:
Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 1073741824, (2) compile with -s ALLOW_MEMORY_GROWTH=1 which allows increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0
The following python3.5 script wil print the number of vertices in each mesh (.mesh
and .vtk
). Run it from the top level or datasets
dir in the repo. It prints the list of meshes in ascending order by vertex count.
import glob
def findstring(filename,key,idx):
with open(filename) as f:
datafile = f.readlines()
for i in range(len(datafile)):
line = datafile[i]
if key in line.lower():
tokens = line.split()
# get the vertex count from the next line
if tokens[idx].lower() == key:
return int(datafile[i+1].strip())
return int(tokens[idx])
return False
numMeshFiles = 0
meshes = dict()
for filename in glob.iglob('./' + '**/*.mesh', recursive=True):
verts = findstring(filename, "vertices",-1)
meshes[filename] = verts
numMeshFiles = numMeshFiles + 1
numVtkFiles = 0
for filename in glob.iglob('./' + '**/*.vtk', recursive=True):
verts = findstring(filename, "points",-2)
meshes[filename] = verts
numVtkFiles = numVtkFiles + 1
sortedMeshes = sorted(meshes, key=meshes.__getitem__)
for m in sortedMeshes:
print(m,meshes[m])
404
There isn't a GitHub Pages site here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.