I had my answer to this question deleted by a moderator and converted to a comment. Prior to the deletion, it had earned a couple of negative comments and a downvote.
The original text of my answer:
The hard part (the mesh partitioning) is already done. Frankly, you're asking for help on the easy part, although this type of bookkeeping coding can be tedious. I wouldn't consider it "reinventing the wheel" as much as just another part of the day-to-day unglamorous work that many of us do.
What you're trying to do looks rather mundane, but custom enough that it seems unlikely to me that you would find that exact functionality in an existing library. Even if you did find what you needed, it might take longer to port your data structures to the library's data structures than to just implement it yourself.
I strongly disagree with the downvoter and the negative comments I received, but my question here is about the decision to delete my answer altogether, which very much surprised me. I had intended to edit my post to address some of the comments by (1) fixing some language that came off sharper than I originally intended and then (2) to reinforce my argument that OP shouldn't waste time seeking a third-party library. Since my answer was so quickly deleted, I'm posting here instead.
The criteria for deleting answers is here. I presume my answer was deleted under the clause
not even a partial answer to the actual question. My answer, of course, does not directly answer the question, instead, it challenges the nature of the question itself. In this case, OP is primarily seeking a third-party solution, and my answer is essentially saying that they won't find a third-party solution and this problem is easy enough that they should spend the effort to implement it themselves.
My experience on this site has been that we have the latitude as answerers to challenge the premise of the questions themselves. A really old example is this one in which OP asked for help using LAPACK and two answers said to not use LAPACK directly. I'm sure I could find more examples if I spent more time.
I am requesting that my answer be restored as an actual answer since I feel it's at the very least a partial answer to the question. More importantly, I think my viewpoint, while likely unpopular, is an important part of a larger discussion about when it makes sense to seek out third-party solutions. If people disagree with me then by all means downvote me to oblivion, but I stand by my original answer and think it has a place here. I'm also interested in constructive opinions from a wider audience on both the quality of my answer and the moderator's decision to delete it.
As an aside: There's been a lot of talk about being nice to those who ask questions since we want to foster a sense of community, which I completely agree with. Frankly, we need more activity altogether. If my words were offensive, I apologize directly to OP. I think it's completely acceptable that OP sought out a third-party solution to this problem. In the same vein, however, I put a fair amount of thought into how I worded my answer, and the feedback that I got was "This answer is unhelpful" and "This isn't even an answer" (probably paraphrased since these comments didn't get moved). Later comments informed me that my language was "unusual". Ironically, none of these comments are themselves constructive or helpful to me who is someone who genuinely wants to help others.
I still don't understand specifically what they think was wrong about what I wrote. I think we should extend some civility to all question-askers and answer posters. I know that I am personally oversensitive to criticism, but the negative feedback that I received over this hurt me quite a bit more than I expected it to.