Validates if the given line indices form a closed path in the element
The linear element containing the points and lines
Array of line indices to check
true if the line indices form a valid closed path, false otherwise
Validates if the given line indices form a closed path in the element