I wonder if there is a better way to specify which entities we want to render and which we do not. Now that is semi-hardcoded. Perhaps (in another PR) we might add an iterator/check argument to specify which entities should be rendered?
That is indeed something which can be done more dynamically. But not straightforward to implement.
Question: do you know where the id.size() checks come from. Why are they here? That seems like a very hacky solution to some problem...
That is needed to prevent segfaults on getting the substring.
That is indeed something which can be done more dynamically. But not straightforward to implement.
That is needed to prevent segfaults on getting the substring.