-
Notifications
You must be signed in to change notification settings - Fork 511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal: replace struct "Revolved" #465
Comments
Well, if it needs the slightly-weird semantics of List<> (that is, calling clear on everything before removing it), then use List<> otherwise use std::vector directly. It sounds like you probably want std::vector. |
Yeah, fixed-size containers are rather undesirable in my view, and I've tried to eliminate them before as they tend to create problems at some point. We don't really have a policy on using But this is fairly minor and just my opinion. |
std::vector worked out nicely because we know what length is needed when they're created. |
In surface .cpp there is a struct defined as:
`
`
This was originally used in Lathe groups to temporarily collect 4 90 degree sections of a surface. I expanded it to 100 to support more sections in Helix groups, but having a fixed number in there is not so great.
Also, in one of my branches (draft) I wanted to pass a list of these to a function and so had to move the definition into surface.h which to me is also a bit undesirable.
A better container for these would be nice. Is the right answer just a list? I'm not fan of doing things like list of lists in C++ but even that is better than making this a fixed size. @rpavlik ?
The text was updated successfully, but these errors were encountered: