Skip to content

Conversation

@tkoyama010
Copy link
Member

Add 3D Sphere Mesh Example

This PR adds a new example demonstrating how to generate and visualize a 3D sphere mesh using Gmsh and PyVista.

Features

  • Generation of a unit sphere mesh (radius = 1.0)
  • 3D mesh using tetrahedral elements
  • Mesh file output (.msh format)
  • Visualization using PyVista:
    • Multiple viewpoints (top, front, side views)
    • Edge display
    • Coordinate axes display
    • Semi-transparent surface rendering

Technical Details

  • Mesh quality optimization
  • Surface mesh extraction
  • Support for off-screen rendering
  • Type-annotated code with docstrings
  • Follows project's code style guidelines

Example Output

The example generates:

  • A Gmsh mesh file (sphere.msh)
  • Three visualization images:
    • sphere_xy.png (top view)
    • sphere_xz.png (front view)
    • sphere_yz.png (side view)

Dependencies

Uses standard project dependencies:

  • Gmsh
  • PyVista
  • NumPy

Please attach the generated mesh images when they are available.

@tkoyama010 tkoyama010 marked this pull request as draft March 24, 2025 02:13
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant