// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- IGeometry::Pointer VertexGeom::deepCopy() { VertexGeom::Pointer vertexCopy = VertexGeom::CreateGeometry(getVertices(), getName()); vertexCopy->setSpatialDimensionality(getSpatialDimensionality()); return vertexCopy; }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- IGeometry::Pointer EdgeGeom::deepCopy() { EdgeGeom::Pointer edgeCopy = EdgeGeom::CreateGeometry(getEdges(), getVertices(), getName()); edgeCopy->setElementsContainingVert(getElementsContainingVert()); edgeCopy->setElementNeighbors(getElementNeighbors()); edgeCopy->setElementCentroids(getElementCentroids()); edgeCopy->setSpatialDimensionality(getSpatialDimensionality()); return edgeCopy; }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- IGeometry::Pointer QuadGeom::deepCopy() { QuadGeom::Pointer quadCopy = QuadGeom::CreateGeometry(getQuads(), getVertices(), getName()); quadCopy->setEdges(getEdges()); quadCopy->setUnsharedEdges(getUnsharedEdges()); quadCopy->setElementsContainingVert(getElementsContainingVert()); quadCopy->setElementNeighbors(getElementNeighbors()); quadCopy->setElementCentroids(getElementCentroids()); quadCopy->setSpatialDimensionality(getSpatialDimensionality()); return quadCopy; }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- IGeometry::Pointer TriangleGeom::deepCopy() { TriangleGeom::Pointer triCopy = TriangleGeom::CreateGeometry(getTriangles(), getVertices(), getName()); triCopy->setEdges(getEdges()); triCopy->setUnsharedEdges(getUnsharedEdges()); triCopy->setElementsContainingVert(getElementsContainingVert()); triCopy->setElementNeighbors(getElementNeighbors()); triCopy->setElementCentroids(getElementCentroids()); triCopy->setSpatialDimensionality(getSpatialDimensionality()); return triCopy; }