mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
constructor from data with reuse
This commit is contained in:
@ -68,6 +68,42 @@ PrimitivePatch<Face, FaceList, PointField, PointType>::PrimitivePatch
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
// Construct from components
|
||||||
|
template
|
||||||
|
<
|
||||||
|
class Face,
|
||||||
|
template<class> class FaceList,
|
||||||
|
class PointField,
|
||||||
|
class PointType
|
||||||
|
>
|
||||||
|
PrimitivePatch<Face, FaceList, PointField, PointType>::PrimitivePatch
|
||||||
|
(
|
||||||
|
FaceList<Face>& faces,
|
||||||
|
Field<PointType>& points,
|
||||||
|
const bool reUse
|
||||||
|
)
|
||||||
|
:
|
||||||
|
FaceList<Face>(faces, reUse),
|
||||||
|
points_(points, reUse),
|
||||||
|
edgesPtr_(NULL),
|
||||||
|
nInternalEdges_(-1),
|
||||||
|
boundaryPointsPtr_(NULL),
|
||||||
|
faceFacesPtr_(NULL),
|
||||||
|
edgeFacesPtr_(NULL),
|
||||||
|
faceEdgesPtr_(NULL),
|
||||||
|
pointEdgesPtr_(NULL),
|
||||||
|
pointFacesPtr_(NULL),
|
||||||
|
localFacesPtr_(NULL),
|
||||||
|
meshPointsPtr_(NULL),
|
||||||
|
meshPointMapPtr_(NULL),
|
||||||
|
edgeLoopsPtr_(NULL),
|
||||||
|
localPointsPtr_(NULL),
|
||||||
|
localPointOrderPtr_(NULL),
|
||||||
|
faceNormalsPtr_(NULL),
|
||||||
|
pointNormalsPtr_(NULL)
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
// Construct as copy
|
// Construct as copy
|
||||||
template
|
template
|
||||||
<
|
<
|
||||||
|
|||||||
@ -235,6 +235,14 @@ public:
|
|||||||
const Field<PointType>& points
|
const Field<PointType>& points
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//- Construct from components, reuse storage
|
||||||
|
PrimitivePatch
|
||||||
|
(
|
||||||
|
FaceList<Face>& faces,
|
||||||
|
Field<PointType>& points,
|
||||||
|
const bool reUse
|
||||||
|
);
|
||||||
|
|
||||||
//- Construct as copy
|
//- Construct as copy
|
||||||
PrimitivePatch
|
PrimitivePatch
|
||||||
(
|
(
|
||||||
|
|||||||
Reference in New Issue
Block a user