-
Notifications
You must be signed in to change notification settings - Fork 14
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
Spatial_Engine: Create NewElement1D etc. should be Query methods #1572
Comments
Thinking of these as Query methods should also eschew the prefix "New". public static IElement2D InternalElement2D(this Panel Panel);
public static IElement1D Element1D(this Opening opening, ICurve curve);
public static IElement0D Element0D(this Bar bar, Point point); |
I would keep the "New" for this case actually, or some other way to distinguish this. (think this is the reason it ended up in the create in the first palce). Important to highlight that this is not grabbing anything out from the elements themself, but it is a completely new element being returned, matching the type appropriate for the bar/panels etc. Just calling it |
Ah I see! I wonder if a word like "Extract" might be better than "New"? |
There is a clear difference here I would say. This is not the case for the methods in question. The only purpose of the bar is to be able to identify what type of A method just called Saying all of this, I would be more than happy to change the name to something that makes this a bit clearer, but I would personally not just skip the leading "New". |
Currently, most |
As discussed here: #1543 (comment)
The
NewElement0D
NewElement1D
,NewInternalElement2D
need to be migrated to Query namespace as above.This will need to be coordinated with Physical_Engine, Structure_Engine, Environment_Engine and any other IElementXD implementations of those interfaces.
As part of this I would suggest we flatten the folder structures completely. Compliance for for Query should not be concerned with this in any case I do not believe.
FYI @adecler @IsakNaslundBh @FraserGreenroyd @pawelbaran
The text was updated successfully, but these errors were encountered: