示例#1
0
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
IGeometry::Pointer VertexGeom::deepCopy()
{
  VertexGeom::Pointer vertexCopy = VertexGeom::CreateGeometry(getVertices(), getName());

  vertexCopy->setSpatialDimensionality(getSpatialDimensionality());

  return vertexCopy;
}
示例#2
0
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
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;
}
示例#3
0
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
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;
}
示例#4
0
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
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;
}