42 template<
class Triangulation>
52 template<
class Triangulation>
64 Info<<
"Reading " << meshName <<
" from " <<
runTime.timeName() <<
endl;
121 List<Vb> pointsToInsert(pts.size());
123 forAll(pointsToInsert, pI)
137 pointsToInsert.begin(),
138 pointsToInsert.end(),
143 vertexCount_ = Triangulation::number_of_vertices();
150 template<
class Triangulation>
163 template<
class Triangulation>
166 Info<<
"Clearing triangulation" <<
endl;
172 Finite_vertices_iterator vit = Triangulation::finite_vertices_begin();
173 vit != Triangulation::finite_vertices_end();
190 vertices.last().fixed() = vit->fixed();
201 Info<<
"Inserted " << vertexCount() <<
" fixed points" <<
endl;
205 template<
class Triangulation>
212 return rangeInsertWithInfo
222 template<
class Triangulation>
230 return typename Gt::Less_x_3()(*(
p.first), *(q.first));
233 template<
class Triangulation>
241 return typename Gt::Less_y_3()(*(
p.first), *(q.first));
244 template<
class Triangulation>
252 return typename Gt::Less_z_3()(*(
p.first), *(q.first));
255 template<
class Triangulation>
263 template<
class Triangulation>
271 template<
class Triangulation>
280 template<
class Triangulation>
281 template<
class Po
intIterator>
297 > vectorPairPointIndex;
299 vectorPairPointIndex
points;
302 for (PointIterator it =
begin; it !=
end; ++it)
306 std::make_pair(&(it->point()),
count++)
316 Traits_for_spatial_sort()
321 Map<label> oldToNewIndex(
points.size());
325 typename vectorPairPointIndex::const_iterator
p =
points.begin();
330 const size_t checkInsertion = Triangulation::number_of_vertices();
332 hint = this->
insert(*(p->first), hint);
334 const Vb& vert = *(
begin +
p->second);
336 if (checkInsertion != Triangulation::number_of_vertices() - 1)
340 Vertex_handle nearV =
341 Triangulation::nearest_vertex(*(
p->first));
343 Pout<<
"Failed insertion : " << vert.
info()
344 <<
" nearest : " << nearV->info();
349 const label oldIndex = vert.
index();
350 hint->index() = getNewVertexIndex();
354 oldToNewIndex.insert(oldIndex, hint->index());
357 hint->type() = vert.
type();
364 return oldToNewIndex;