Code Monkey home page Code Monkey logo

Comments (2)

uvilla avatar uvilla commented on June 7, 2024

@thoth291:

The domain to be meshed consists of only the voxels with label strictly bigger than 0.

That is, let arr be the 3D image with labels: pore space (0), material space (1), fuild(2).

Then if you want to mesh only the material region simply define:

arr_material = arr
arr_material[arr==2] = 0

Now arr_material will have non-zero labels only to the material region, so you'll get a mesh only for that region.

Note:
If you want to mesh all three regions, please make sure to increment each label by 1.

arr_new = arr + 1

Hope this help.

from pygalmesh.

thoth291 avatar thoth291 commented on June 7, 2024

The domain to be meshed consists of only the voxels with label strictly bigger than 0.

This is exactly what I was looking for !
Thank you for this confirmation!

from pygalmesh.

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.