Skip to content
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

Missing Addition of Template Argument TShiftedBoundary #13089

Merged
merged 1 commit into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion kratos/geometries/brep_surface.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class BrepSurface

typedef NurbsSurfaceGeometry<3, TContainerPointType> NurbsSurfaceType;
typedef BrepCurveOnSurface<TContainerPointType, TShiftedBoundary, TContainerPointEmbeddedType> BrepCurveOnSurfaceType;
typedef BrepTrimmingUtilities<TShiftedBoundary> BrepTrimmingUtilitiesType;

typedef DenseVector<typename BrepCurveOnSurfaceType::Pointer> BrepCurveOnSurfaceArrayType;
typedef DenseVector<typename BrepCurveOnSurfaceType::Pointer> BrepCurveOnSurfaceLoopType;
Expand Down Expand Up @@ -467,7 +468,7 @@ class BrepSurface
mpNurbsSurface->SpansLocalSpace(spans_u, 0);
mpNurbsSurface->SpansLocalSpace(spans_v, 1);

BrepTrimmingUtilities::CreateBrepSurfaceTrimmingIntegrationPoints(
BrepTrimmingUtilitiesType::CreateBrepSurfaceTrimmingIntegrationPoints(
rIntegrationPoints,
mOuterLoopArray, mInnerLoopArray,
spans_u, spans_v,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ namespace Kratos
{
///@name Kratos Classes
///@{

void BrepTrimmingUtilities::CreateBrepSurfaceTrimmingIntegrationPoints(
template<bool TShiftedBoundary>
void BrepTrimmingUtilities<TShiftedBoundary>::CreateBrepSurfaceTrimmingIntegrationPoints(
IntegrationPointsArrayType& rIntegrationPoints,
const DenseVector<DenseVector<BrepCurveOnSurfacePointerType>>& rOuterLoops,
const DenseVector<DenseVector<BrepCurveOnSurfacePointerType>>& rInnerLoops,
Expand Down Expand Up @@ -152,4 +152,6 @@ namespace Kratos
// const std::vector<double>& rSpansV,
// IntegrationInfo& rIntegrationInfo);

template class KRATOS_API(KRATOS_CORE) BrepTrimmingUtilities<true>;
template class KRATOS_API(KRATOS_CORE) BrepTrimmingUtilities<false>;
} // namespace Kratos.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
// License: BSD License
// Kratos default license: kratos/license.txt

#if !defined(KRATOS_BREP_TRIMMING_UTILITIES_H_INCLUDED)
#define KRATOS_BREP_TRIMMING_UTILITIES_H_INCLUDED
#pragma once

// Std includes
#include <list>
Expand All @@ -33,6 +32,7 @@ namespace Kratos

//using namespace ClipperLib;

template<bool TShiftedBoundary>
class KRATOS_API(KRATOS_CORE) BrepTrimmingUtilities
{
public:
Expand All @@ -52,7 +52,7 @@ namespace Kratos

typedef signed long long cInt;

using BrepCurveOnSurfacePointerType = typename BrepCurveOnSurface<PointerVector<Node>, false, PointerVector<Point>>::Pointer;
using BrepCurveOnSurfacePointerType = typename BrepCurveOnSurface<PointerVector<Node>, TShiftedBoundary, PointerVector<Point>>::Pointer;

//template<class TBrepLoopType, class TPointType>
static void CreateBrepSurfaceTrimmingIntegrationPoints(
Expand Down Expand Up @@ -339,5 +339,3 @@ namespace Kratos
};
///@} // Kratos Classes
} // namespace Kratos.

#endif // KRATOS_BREP_TRIMMING_UTILITIES_H_INCLUDED defined
Loading