### ===================================================================================================================
### viia_arclength_control_pivots
### ===================================================================================================================
# Copyright ©VIIA 2025
### ===================================================================================================================
### 1. Import modules
### ===================================================================================================================
# General imports
from __future__ import annotations
from typing import TYPE_CHECKING
# References for functions and classes in the viiaPackage
if TYPE_CHECKING:
from viiapackage.viiaStatus import ViiaProject
### ===================================================================================================================
### 2. Function to get the arclength control pivots
### ===================================================================================================================
[docs]def viia_arclength_control_pivots(project: ViiaProject, method: str = 'top ridge'):
"""
This function finds the MeshNode objects of suggested arclength control points through the specified method.
.. warning:: The model must be meshed, the dat-file should have been created and the dat-file should have
been read and converted to DATDict, the dictionary containing the information in the dat-file.
Input:
- method (str): Name of the method for defining the arclength control pivots.
Output:
- Returns list with mesh nodes.
"""
if method.lower() == 'top ridge':
pivot_nodes = project.viia_find_nodes_top_ridge()
else:
project.write_log(
"WARNING: specified method for obtaining arclength control pivots is not supported. No nodes are returned.")
pivot_nodes = None
return pivot_nodes
### ===================================================================================================================
### 3. End of script
### ===================================================================================================================