48 const labelList& facePatch = mPart_.boundaryFacePatches();
56 meshSurfacePointLabelInTriMesh_.setSize(bPoints.
size());
57 meshSurfacePointLabelInTriMesh_ = -1;
65 const face& bf = bFaces[bfI];
69 nodeLabelForFace[bfI] = nTriPoints++;
74 const label bpI = bp[bf[pI]];
76 if( meshSurfacePointLabelInTriMesh_[bpI] == -1 )
77 meshSurfacePointLabelInTriMesh_[bpI] = nTriPoints++;
88 meshSurfacePointLabelInTriMesh_[bp[bf[eI]]],
89 meshSurfacePointLabelInTriMesh_[bp[bf.
nextLabel(eI)]],
90 nodeLabelForFace[bfI],
94 surf_.appendTriangle(tri);
99 meshSurfacePointLabelInTriMesh_[bp[bf[eI]]],
100 meshSurfacePointLabelInTriMesh_[bp[bf.
nextLabel(eI)]],
101 meshSurfacePointLabelInTriMesh_[bp[bf.
prevLabel(eI)]],
105 surf_.appendTriangle(secondTri);
113 meshSurfacePointLabelInTriMesh_[bp[bf[0]]],
114 meshSurfacePointLabelInTriMesh_[bp[bf[1]]],
115 meshSurfacePointLabelInTriMesh_[bp[bf[2]]],
119 surf_.appendTriangle(tri);
126 meshSurfacePointLabelInTriMesh_[bp[bf[eI]]],
127 meshSurfacePointLabelInTriMesh_[bp[bf.nextLabel(eI)]],
128 meshSurfacePointLabelInTriMesh_[bp[bf.prevLabel(eI)]],
132 surf_.appendTriangle(secondTri);
141 pts.setSize(nTriPoints);
143 pointType_.setSize(nTriPoints);
146 pointLabelInMeshSurface_.setSize(pts.size());
147 pointLabelInMeshSurface_ = -1;
149 forAll(meshSurfacePointLabelInTriMesh_, bpI)
150 if( meshSurfacePointLabelInTriMesh_[bpI] != -1 )
152 const label npI = meshSurfacePointLabelInTriMesh_[bpI];
153 pointLabelInMeshSurface_[npI] = bpI;
154 pts[npI] =
points[bPoints[bpI]];
155 pointType_[npI] |= SMOOTH;
158 forAll(nodeLabelForFace, bfI)
159 if( nodeLabelForFace[bfI] != -1 )
161 const label npI = nodeLabelForFace[bfI];
162 pts[npI] = faceCentres[bfI];
163 pointType_[npI] = FACECENTRE;
168 if( meshSurfacePointLabelInTriMesh_[it.key()] != -1 )
169 pointType_[meshSurfacePointLabelInTriMesh_[it.key()]] |= CORNER;
173 const label pI = meshSurfacePointLabelInTriMesh_[it.key()];
175 pointType_[pI] |= FEATUREEDGE;
181 createParallelAddressing
183 meshSurfacePointLabelInTriMesh_,
187 createBufferLayers();