I am using Python 2.7 in combination with Simulia Abaqus (6.14). I have defined a list of 3-D coordinates in the following format:
selection_points = [(( 1, 2, 3), ), (( 4, 5, 6), ), ((7, 8, 9), )]
I need to use ALL coordinates in selection_points as input for my model. I need each coordinate point individually, so not all of them as a list. For example for an Abaqus function (Abaqus_function) taking three coordinates as input, I could do the following:
Abaqus_function(selection_points[0], selection_points[1], selection_points[2])
Effectively that would look like:
Abaqus_function(((1, 2, 3), ), ((4, 5, 6), ), ((7, 8, 9), ))
Now what if selection_points contains 20 or 100 coordinate points. How could I call every one of them without writing:
Abaqus_function(selection_points[0], selection_points[1], selection_points[2],
selection_points[3], ... selection_points[99])
Selection_points[1 : -1]
is not the way to go, I do not want another list. Therefore also str(selection_points)[1: -1]
is not an option.