Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to generate tetrahedron from a mesh? #568

Open
zhang-qiang-github opened this issue Jan 16, 2023 · 0 comments
Open

How to generate tetrahedron from a mesh? #568

zhang-qiang-github opened this issue Jan 16, 2023 · 0 comments

Comments

@zhang-qiang-github
Copy link

Is it possible to generate tetrahedron from a mesh?

The mesh means points and the connection. For a 3D cubic, it look likes:

points = [
    [0, 0, 0],
    [1, 0, 0], 
    [1, 1, 0], 
    [0, 1, 0], 
    [0, 0, 1],
    [1, 0, 1], 
    [1, 1, 1], 
    [0, 1, 1], 
]
connection = [
    [0, 1, 2, 3],
    [4, 5, 6, 7],
    [0, 1, 5, 4],
    [1, 2, 6, 5],
    [2, 3, 7, 6],
    [0, 3, 7, 4],
]

Can I generate the tetrahedron from this cubic?

In addition, for the generated tetrahedron, does it would generate new point in the cubic surface? For example, generate a point 0.5, 0.5, 0. If it generate new point in the surface, how can I obtain the mesh of new surface?

Any suggestion is appreciated~~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant