mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
made container constructors explicit
This commit is contained in:
@ -85,7 +85,8 @@ const Foam::label edgesArray[12][2] =
|
||||
|
||||
const Foam::edgeList Foam::treeBoundBox::edges
|
||||
(
|
||||
initListList<edge, label, 12, 2>(edgesArray)
|
||||
//initListList<edge, label, 12, 2>(edgesArray)
|
||||
calcEdges(edgesArray)
|
||||
);
|
||||
|
||||
|
||||
@ -97,6 +98,18 @@ const Foam::FixedList<Foam::vector, 6> Foam::treeBoundBox::faceNormals
|
||||
|
||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||
|
||||
Foam::edgeList Foam::treeBoundBox::calcEdges(const label edgesArray[12][2])
|
||||
{
|
||||
edgeList edges(12);
|
||||
forAll(edges, edgeI)
|
||||
{
|
||||
edges[edgeI][0] = edgesArray[edgeI][0];
|
||||
edges[edgeI][1] = edgesArray[edgeI][1];
|
||||
}
|
||||
return edges;
|
||||
}
|
||||
|
||||
|
||||
Foam::FixedList<Foam::vector, 6> Foam::treeBoundBox::calcFaceNormals()
|
||||
{
|
||||
FixedList<vector, 6> normals;
|
||||
|
||||
@ -80,6 +80,9 @@ class treeBoundBox
|
||||
|
||||
private:
|
||||
|
||||
//- To initialise edges.
|
||||
static edgeList calcEdges(const label[12][2]);
|
||||
|
||||
//- To initialise faceNormals.
|
||||
static FixedList<vector, 6> calcFaceNormals();
|
||||
|
||||
|
||||
@ -464,7 +464,10 @@ void Foam::searchableSurfaceCollection::getRegion
|
||||
labelList surfRegion;
|
||||
subGeom_[surfI].getRegion
|
||||
(
|
||||
UIndirectList<pointIndexHit>(info, indices),
|
||||
List<pointIndexHit>
|
||||
(
|
||||
UIndirectList<pointIndexHit>(info, indices)
|
||||
),
|
||||
surfRegion
|
||||
);
|
||||
forAll(indices, i)
|
||||
@ -528,7 +531,10 @@ void Foam::searchableSurfaceCollection::getNormal
|
||||
vectorField surfNormal;
|
||||
subGeom_[surfI].getNormal
|
||||
(
|
||||
UIndirectList<pointIndexHit>(info, indices),
|
||||
List<pointIndexHit>
|
||||
(
|
||||
UIndirectList<pointIndexHit>(info, indices)
|
||||
),
|
||||
surfNormal
|
||||
);
|
||||
forAll(indices, i)
|
||||
|
||||
Reference in New Issue
Block a user