Git Product home page Git Product logo

Comments (2)

Yixin-Hu avatar Yixin-Hu commented on August 23, 2024

Hi,

The simplest solution to try first is to combine the cylinder and the cube into a single mesh file and input it to fTetWild (using --input only would work). The interface of the cylinder and the cube would be preserved by the algorithm. To separate the output tets for the two objects, you can check if the centers of the tets inside certain object.

from ftetwild.

gbettega avatar gbettega commented on August 23, 2024

Thank you very much Yixin
this is exactly the solution I adopted some days ago: indeed I was writing for sharing it: Some details:

  1. the two - initially separated, distinct - solids (step file) are loaded into a viewer using an OpenCascade step reader
  2. a non-manifold solid is created using the BOPAlgo_Builder class. In the resulting non-maniforld the base of the cylinder is a shared face
  3. the triangulation of the composite solid is created using an OpenCascade class (BRepMesh_IncrementalMesh)
  4. fTwtWild creates the tetrahedralization of the triangle soup (in the example I posted the soup is a watertight triangulation)
  5. the barycenter of each tetrahedron is computed,: a tetrahedron "belongs" to a solid if the winding number of its center of mass, with respect to the triangulation of that solid, is greater than, say 0.5 (for problematic, non watertight, triangulations)
    I attach a picture of a results, with a mesh refinement also applied to one face and a segment.
    Grazie mille
    Giovanni

pic04

pic05

from ftetwild.

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.