-
Notifications
You must be signed in to change notification settings - Fork 250
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
Pr small brep surface new constructor #13094
Conversation
@rubenzorrilla This is the part you asked to modify in order to avoid passing ModelParts in the constructor of the geometry. We really need to merge this to go on with the other PRs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we strictly need to pass these by constructor? Can't we set them by using a Setter and Getter functions and just use the already existing untrimmed constructor?
@rubenzorrilla |
kratos/geometries/brep_surface.h
Outdated
*/ | ||
GeometrySurrogateArrayType& GetSurrogateInnerLoopGeometries() | ||
{ | ||
return mpSurrogateInnerLoopGeometries; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return mpSurrogateInnerLoopGeometries; | |
return mrSurrogateInnerLoopGeometries; |
kratos/geometries/brep_surface.h
Outdated
*/ | ||
GeometrySurrogateArrayType& GetSurrogateOuterLoopGeometries() | ||
{ | ||
return mpSurrogateOuterLoopGeometries; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return mpSurrogateOuterLoopGeometries; | |
return mrSurrogateOuterLoopGeometries; |
Co-authored-by: Nicolò Antonelli <[email protected]>
kratos/geometries/brep_surface.h
Outdated
mpSurrogateInnerLoopGeometries = rOther.GetSurrogateInnerLoopGeometries(); | ||
mpSurrogateOuterLoopGeometries = rOther.GetSurrogateOuterLoopGeometries(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mpSurrogateInnerLoopGeometries = rOther.GetSurrogateInnerLoopGeometries(); | |
mpSurrogateOuterLoopGeometries = rOther.GetSurrogateOuterLoopGeometries(); | |
mpSurrogateInnerLoopGeometries = rOther.mpSurrogateInnerLoopGeometries; | |
mpSurrogateOuterLoopGeometries = rOther.mpSurrogateOuterLoopGeometries; |
kratos/geometries/brep_surface.h
Outdated
mpSurrogateInnerLoopGeometries = rOther.GetSurrogateInnerLoopGeometries(); | ||
mpSurrogateOuterLoopGeometries = rOther.GetSurrogateOuterLoopGeometries(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mpSurrogateInnerLoopGeometries = rOther.GetSurrogateInnerLoopGeometries(); | |
mpSurrogateOuterLoopGeometries = rOther.GetSurrogateOuterLoopGeometries(); | |
mpSurrogateInnerLoopGeometries = rOther.mpSurrogateInnerLoopGeometries; | |
mpSurrogateOuterLoopGeometries = rOther.mpSurrogateOuterLoopGeometries; |
auto p_surface = GenerateReferenceNodeSurfaceHalfCirclePointer(); | ||
|
||
using BrepSurfaceType = BrepSurface<PointerVector<Node>, true, PointerVector<Point>>; | ||
using BrepCurveOnSurfaceType = BrepCurveOnSurface<PointerVector<Node>, true, PointerVector<Point>>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using BrepCurveOnSurfaceType = BrepCurveOnSurface<PointerVector<Node>, true, PointerVector<Point>>; | |
using BrepCurveOnSurfaceType = typename BrepSurfaceType::BrepCurveOnSurfaceType; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we eventually change the type in BrepSurfaceType
this will automatically handle it.
|
||
using BrepSurfaceType = BrepSurface<PointerVector<Node>, true, PointerVector<Point>>; | ||
using BrepCurveOnSurfaceType = BrepCurveOnSurface<PointerVector<Node>, true, PointerVector<Point>>; | ||
using BrepCurveOnSurfaceLoopArrayType = DenseVector<DenseVector<typename BrepCurveOnSurfaceType::Pointer>>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using BrepCurveOnSurfaceLoopArrayType = DenseVector<DenseVector<typename BrepCurveOnSurfaceType::Pointer>>; | |
using BrepCurveOnSurfaceLoopArrayType = typename BrepSurfaceType::BrepCurveOnSurfaceLoopArrayType; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(same reasoning)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that copy constructor is still wrong. The rest are minors.
auto p_surface = GenerateReferenceNodeSurfaceHalfCirclePointer(); | ||
|
||
using BrepSurfaceType = BrepSurface<PointerVector<Node>, true, PointerVector<Point>>; | ||
using BrepCurveOnSurfaceType = BrepCurveOnSurface<PointerVector<Node>, true, PointerVector<Point>>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we eventually change the type in BrepSurfaceType
this will automatically handle it.
|
||
using BrepSurfaceType = BrepSurface<PointerVector<Node>, true, PointerVector<Point>>; | ||
using BrepCurveOnSurfaceType = BrepCurveOnSurface<PointerVector<Node>, true, PointerVector<Point>>; | ||
using BrepCurveOnSurfaceLoopArrayType = DenseVector<DenseVector<typename BrepCurveOnSurfaceType::Pointer>>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(same reasoning)
📝 Description
Adding a constructor to the BrepSurface class (brep_surface.h) for use in SBM applications.
Please mark the PR with appropriate tags:
🆕 Changelog