Hull Module =========== The Hull module provides functionality for loading, transforming, and exporting hull geometries from STL and VTK files. Hull Class ---------- .. autoclass:: pynavaltoolbox.hull.Hull :members: :undoc-members: :show-inheritance: :special-members: __init__ Example Usage ------------- .. code-block:: python from pynavaltoolbox import Hull # Load a hull from an STL file hull = Hull("model.stl") # Get bounds bounds = hull.get_bounds() print(f"Length: {bounds[1] - bounds[0]:.2f} m") # Apply transformations hull.transform( translation=(0, 0, 5), rotation=(0, 0, 0) ) # Scale the hull hull.scale(factor=1.5) # Simplify for faster calculations hull.simplify(target_reduction=0.3) # Export to VTK format hull.export("output.vtk")