Agent skill
mesh-utilities-1-quick-mesh-inspection
Sub-skill of mesh-utilities: 1. Quick Mesh Inspection (+5).
Install this agent skill to your Project
npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/_archive/engineering/marine-offshore/mesh-utilities/1-quick-mesh-inspection
SKILL.md
1. Quick Mesh Inspection (+5)
1. Quick Mesh Inspection
from digitalmodel.hydrodynamics.bemrosetta.mesh import GDFHandler
from pathlib import Path
def inspect_mesh(mesh_path: str) -> dict:
"""Quick inspection of panel mesh file."""
path = Path(mesh_path)
if path.suffix.lower() == '.gdf':
handler = GDFHandler()
*See sub-skills for full details.*
## 2. Format Conversion
```python
from digitalmodel.hydrodynamics.diffraction.mesh_pipeline import MeshPipeline
def convert_mesh(
input_path: str,
output_format: str,
output_dir: str = "."
) -> str:
"""Convert mesh between formats (GDF, DAT, STL)."""
pipeline = MeshPipeline()
*See sub-skills for full details.*
## 3. Quality Validation
```python
from digitalmodel.hydrodynamics.diffraction.geometry_quality import (
GeometryQualityChecker,
)
def validate_mesh_quality(mesh_path: str) -> dict:
"""Run full quality validation on mesh."""
checker = GeometryQualityChecker()
report = checker.generate_report(mesh_path)
*See sub-skills for full details.*
## 4. Prepare Mesh for Solver
```python
from digitalmodel.hydrodynamics.diffraction.mesh_pipeline import MeshPipeline
def prepare_for_solver(
mesh_path: str,
solver: str,
output_dir: str = "solver_input"
) -> str:
"""Prepare mesh for specific solver with validation.
*See sub-skills for full details.*
## 5. Mesh Coarsening (Decimation)
```python
import numpy as np
from pathlib import Path
def coarsen_mesh_simple(
mesh_path: str,
target_panels: int,
output_path: str = None
) -> str:
"""Simple mesh coarsening by vertex clustering.
*See sub-skills for full details.*
## 6. GMSH-Based Mesh Generation
```python
from digitalmodel.solvers.gmsh_meshing import GMSHMeshGenerator
def generate_simple_hull_mesh(
length: float,
beam: float,
draft: float,
panel_size: float = 2.0,
output_path: str = "hull.gdf"
) -> str:
*See sub-skills for full details.*
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
gsd-complete-milestone
Archive completed milestone and prepare for next version
gsd-reapply-patches
Reapply local modifications after a GSD update
gsd-verify-work
Validate built features through conversational UAT
gsd-thread
Manage persistent context threads for cross-session work
clinical-trial-protocol
Generate clinical trial protocols for medical devices or drugs through a modular, waypoint-based architecture with research-only and full protocol modes.
single-cell-rna-qc
Performs quality control on single-cell RNA-seq data (.h5ad or .h5 files) using scverse best practices with MAD-based filtering and comprehensive visualizations.
Didn't find tool you were looking for?