Skip to content
Snippets Groups Projects
Commit 63cbcfb3 authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

ENH : copy the fields in the output vectordata

parent 14a27b97
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,6 @@ typename VectorDataTransformFilter<TInputVectorData, TOutputVectorData>::PointTy ...@@ -51,7 +51,6 @@ typename VectorDataTransformFilter<TInputVectorData, TOutputVectorData>::PointTy
VectorDataTransformFilter<TInputVectorData, TOutputVectorData> VectorDataTransformFilter<TInputVectorData, TOutputVectorData>
::ReprojectPoint(PointType pointCoord) const ::ReprojectPoint(PointType pointCoord) const
{ {
itk::Point<double, 2> point; itk::Point<double, 2> point;
point = m_Transform->TransformPoint(pointCoord); point = m_Transform->TransformPoint(pointCoord);
return point; return point;
...@@ -188,6 +187,7 @@ VectorDataTransformFilter<TInputVectorData, TOutputVectorData> ...@@ -188,6 +187,7 @@ VectorDataTransformFilter<TInputVectorData, TOutputVectorData>
OutputDataNodePointerType newDataNode = OutputDataNodeType::New(); OutputDataNodePointerType newDataNode = OutputDataNodeType::New();
newDataNode->SetNodeType(dataNode->GetNodeType()); newDataNode->SetNodeType(dataNode->GetNodeType());
newDataNode->SetNodeId(dataNode->GetNodeId()); newDataNode->SetNodeId(dataNode->GetNodeId());
newDataNode->CopyFieldList(dataNode);
switch(dataNode->GetNodeType()) switch(dataNode->GetNodeType())
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment