Git Product home page Git Product logo

cnr-isti-vclab / hexalab Goto Github PK

View Code? Open in Web Editor NEW

This project forked from c4stan/hexalab

116.0 116.0 30.0 1.16 GB

http://www.hexalab.net: an online viewer for hexahedral meshes

License: MIT License

C++ 81.86% CSS 0.29% HTML 0.21% JavaScript 1.36% Makefile 0.01% CMake 2.34% C 2.67% Shell 0.17% Cuda 1.02% Fortran 8.74% Python 0.02% XSLT 0.04% Modula-3 1.25%
hexahedral-mesh mesh-generation

hexalab's People

Contributors

c4stan avatar cignoni avatar corentindumery avatar dbukenberger avatar gaoxifeng avatar gcherchi avatar mlivesu avatar mtarini avatar ohehe avatar pizza1994 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hexalab's Issues

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.

Error when loading large meshes

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

Full console output

screenshot 2019-01-31 at 14 23 15

python script for printing mesh sizes

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])

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.