Giter Club home page Giter Club logo

Comments (4)

rms80 avatar rms80 commented on August 19, 2024 1

Yes this is what I was going to recommend. Create a DenseGrid3f that has the same X/Y resolution as your image, and is, say, 10 voxels high in Z. Initialize to 1. Then for Z-layers between, say, 2 and 8, set the voxel to -1 if the pixel (x,y) is white. Pass this into DenseGridTrilinearImplicit constructor, which you can then pass into Marching Cubes to get a mesh. More details in these tutorials:

http://www.gradientspace.com/tutorials/2017/11/21/signed-distance-fields-tutorial
http://www.gradientspace.com/tutorials/2018/2/20/implicit-surface-modeling

This will smooth things out a little. Alternately for a blocky mesh you can use Bitmap3 and VoxelSurfaceGenerator:
http://www.gradientspace.com/tutorials/2017/12/14/3d-bitmaps-and-minecraft-meshes

reduce triangle count afterwards with Reducer:
http://www.gradientspace.com/tutorials/2017/8/30/mesh-simplification

from geometry3sharp.

Perissinotto avatar Perissinotto commented on August 19, 2024 1

This is EXACTLY what i was looking for. Thank you very much for your help .(both of you) :)

from geometry3sharp.

Evil-Spirit avatar Evil-Spirit commented on August 19, 2024

You should generate signed distance field firstly then you can use marching cubes to generate mesh.

from geometry3sharp.

Evil-Spirit avatar Evil-Spirit commented on August 19, 2024

Simply I am going to make image-to-mesh online tool. A little bit later.

from geometry3sharp.

Related Issues (20)

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.