Not important, but you could also say

```python
vertices[i].z = cos(radians(angle)) * radius
if isHelix:
    vertices[i].z -= (helixOffset * segments) / 2.0)
```

It's one fewer line of code, but it also emphasizes the meaning that stays the same in the two cases.