Agent skill
blender-interface-orcaflex-results-to-blender-visualization
Sub-skill of blender-interface: OrcaFlex Results to Blender Visualization (+2).
Install this agent skill to your Project
npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/_archive/engineering/cad/blender/orcaflex-results-to-blender-visualization
SKILL.md
OrcaFlex Results to Blender Visualization (+2)
OrcaFlex Results to Blender Visualization
"""Convert OrcaFlex line coordinates to Blender mesh for visualization."""
import bpy
import bmesh
def orcaflex_line_to_blender(positions, name="Riser", radius=0.1):
"""Create a Blender mesh from OrcaFlex line node positions.
Args:
positions: list of (x, y, z) tuples from OrcaFlex
name: object name
radius: tube radius for bevel
"""
# Create curve from points
curve_data = bpy.data.curves.new(name=f"{name}_curve", type='CURVE')
curve_data.dimensions = '3D'
curve_data.bevel_depth = radius
spline = curve_data.splines.new('POLY')
spline.points.add(len(positions) - 1)
for i, (x, y, z) in enumerate(positions):
spline.points[i].co = (x, y, z, 1)
curve_obj = bpy.data.objects.new(name, curve_data)
bpy.context.collection.objects.link(curve_obj)
return curve_obj
Gmsh Mesh to Blender
def gmsh_stl_to_blender(stl_path, name="FE_Mesh"):
"""Import Gmsh-exported STL into Blender."""
try:
bpy.ops.wm.stl_import(filepath=stl_path)
except AttributeError:
bpy.ops.import_mesh.stl(filepath=stl_path)
obj = bpy.context.selected_objects[0]
obj.name = name
return obj
ParaView VTK to Blender
def vtk_to_blender(vtk_path):
"""Import VTK file via meshio conversion to STL."""
import meshio
import tempfile
import os
mesh = meshio.read(vtk_path)
tmp_stl = os.path.join(tempfile.gettempdir(), "vtk_import.stl")
meshio.write(tmp_stl, mesh)
try:
bpy.ops.wm.stl_import(filepath=tmp_stl)
except AttributeError:
bpy.ops.import_mesh.stl(filepath=tmp_stl)
os.remove(tmp_stl)
return bpy.context.selected_objects[0]
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
openpyxl
Create and manipulate Microsoft Excel workbooks programmatically. Build spreadsheets with formulas, charts, conditional formatting, and pivot tables. Handle large datasets efficiently with streaming mode.
orcaflex-specialist
Automate OrcaFlex marine simulations via Python API for mooring, riser, and installation analysis
orcaflex-vessel-setup
Configure 6-DOF vessels in OrcaFlex with hydrodynamic properties, RAO import from AQWA, and vessel type creation. Covers initial position, orientation, calculation settings, and motion options.
fitness-for-service
Expert FFS engineer applying API 579-1/ASME FFS-1 methodology to corroded and damaged offshore equipment. Use for RSF calculations, MAWP re-rating, remaining life projection, UT grid inspection data, run-repair-replace decisions, and Level 1/2/3 assessment workflows. type: reference
marp-pdf-export-fails
Sub-skill of marp: PDF Export Fails (+3).
structural-analysis
Didn't find tool you were looking for?