- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- File List
- File Members

# Core/Mesh/PolyMeshT_assign.hh

    00001 {
    00002   This::clear();
    00003
    00004   typename OtherMesh::ConstVertexIter  vIt(_rhs.vertices_begin()),
    00005                                        vEnd(_rhs.vertices_end());
    00006
    00007
    00008   for (; vIt != vEnd; ++vIt)
    00009     add_vertex(_rhs.point(vIt));
    00010
    00011
    00012   typename OtherMesh::ConstFaceIter  fIt(_rhs.faces_begin()),
    00013                                      fEnd(_rhs.faces_end());
    00014   std::vector<VertexHandle>          face_vhandles;
    00015
    00016   for (; fIt != fEnd; ++fIt)
    00017   {
    00018     typename OtherMesh::ConstFaceVertexIter
    00019       fvIt=_rhs.cfv_iter(_rhs.handle(*fIt));
    00020
    00021     face_vhandles.clear();
    00022
    00023     for (; fvIt; ++fvIt)
    00024       face_vhandles.push_back(fvIt.handle());
    00025
    00026     add_face(face_vhandles);
    00027   }
    00028
    00029   return *this;
    00030 }