use new assignment for polymesh trimesh conversion fixes #35

This commit is contained in:
Martin Schultz
2017-01-08 23:05:16 +00:00
parent b3b992d2d2
commit 874cef141a
2 changed files with 5 additions and 8 deletions

View File

@@ -104,10 +104,9 @@ public:
template<class OtherTraits> template<class OtherTraits>
PolyMesh_ArrayKernelT( const TriMesh_ArrayKernelT<OtherTraits> & t) PolyMesh_ArrayKernelT( const TriMesh_ArrayKernelT<OtherTraits> & t)
{ {
//assign the connectivity (add vertices) //assign the connectivity and standard properties
this->assign(t); this->assign(t, true);
//copy properties from triMesh
this->copy_all_kernel_properties(t);
} }
}; };

View File

@@ -104,10 +104,8 @@ public:
template<class OtherTraits> template<class OtherTraits>
TriMesh_ArrayKernelT( const PolyMesh_ArrayKernelT<OtherTraits> & t) TriMesh_ArrayKernelT( const PolyMesh_ArrayKernelT<OtherTraits> & t)
{ {
//assign the connectivity (add vertices) //assign the connectivity and standard properties
this->assign(t); this->assign(t,true);
//copy properties from polyMesh
this->copy_all_kernel_properties(t);
} }
}; };