Since your allready dynamically allocating memmory (and who cares about that kn the context of cfd) would it not be cleaner to e.g. Set up prismIslands as an array of pointers of the type prismIsland currently had and dynamically creating your individual Islands? Would be cleaner code and can still do
The setSize etc just with prismIsland[1]