<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br><br>
<style>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Verdana;}
</style>
Hi everybody..<br>i'm writing code to convert vtk file in msh file.. this is my snippet of code:<br><br>#include <itkVTKPolyDataReader.h><br><br><font style="font-size: 10pt;" size="2" face="Courier New">...</font><font style="font-size: 10pt;" size="2" face="Courier New"><br></font><font style="font-size: 10pt;" size="2" face="Courier New"><br></font><font style="font-size: 10pt;" size="2" face="Courier New">typedef igstk::MeshObject MeshObjectType;</font><font style="font-size: 10pt;" size="2" face="Courier New"><br></font><font style="font-size: 10pt;" size="2" face="Courier New">typedef MeshObjectType::MeshType MeshType; </font><font style="font-size: 10pt;" size="2" face="Courier New"><br></font><font style="font-size: 10pt;" size="2" face="Courier New">typedef ::itk::VTKPolyDataReader< MeshType > VtkPolyDataReaderType;</font><font style="font-size: 10pt;" size="2" face="Courier New"><br></font><font style="font-size: 10pt;" size="2" face="Courier New"><br></font><font style="font-size: 10pt;" size="2" face="Courier New">...</font><font style="font-size: 10pt;" size="2" face="Courier New"><br></font><font style="font-size: 10pt;" size="2" face="Courier New"><br></font><font style="font-size: 10pt;" size="2" face="Courier New">VtkPolyDataReaderType::Pointer m_VtkPolyDataReader;</font><font style="font-size: 10pt;" size="2" face="Courier New"><br></font><font style="font-size: 10pt;" size="2" face="Courier New">m_VtkPolyDataReader = VtkPolyDataReaderType::New();</font><font style="font-size: 10pt;" size="2" face="Courier New"><br></font><font style="font-size: 10pt;" size="2" face="Courier New">m_VtkPolyDataReader->SetFileName( fileName);</font><font style="font-size: 10pt;" size="2" face="Courier New"><br></font><font style="font-size: 10pt;" size="2" face="Courier New">m_VtkPolyDataReader->Update();</font><font style="font-size: 10pt;" size="2" face="Courier New"><br></font><font style="font-size: 10pt;" size="2" face="Courier New"><br></font><font style="font-size: 10pt;" size="2" face="Courier New">MeshType::Pointer m_Mesh;</font><font style="font-size: 10pt;" size="2" face="Courier New"><br></font><font style="font-size: 10pt;" size="2" face="Courier New">m_Mesh= m_VtkPolyDataReader->GetOutput();</font><font style="font-size: 10pt;" size="2" face="Courier New"><br></font><font style="font-size: 10pt;" size="2" face="Courier New">MeshObjectObserver::Pointer observer = MeshObjectObserver::New();</font><font style="font-size: 10pt;" size="2" face="Courier New"><br></font><font style="font-size: 10pt;" size="2" face="Courier New">m_Mesh->AddObserver( igstk::MeshReader::MeshModifiedEvent(), observer);</font><br><br>but id doesn't work.. i receive an error on this row:<br><br><font style="font-size: 10pt;" size="2" face="Courier New">m_Mesh= m_VtkPolyDataReader->GetOutput();</font><font style="font-size: 10pt;" size="2" face="Courier New"><br><font style="" face="Times New Roman"><br></font></font><font style="" face="Times New Roman">error C2679: binary '=' : no operator found which takes a right-hand operand of type 'itk::Mesh</font><font style="" face="Times New Roman"> *' (or there is no acceptable conversion)
<br>with
<br>[
<br> TPixelType=float,<br> VDimension=3,
<br>TMeshTraits=igstk::MeshObject::MeshTrait
<br>]
<br><br>c:\users\luca\documents\progettotesi\src\insighttoolkit\code\common\itkSmartPointer.h(112): could be 'itk::SmartPointer &itk::SmartPointer::operator =(const itk::SmartPointer &)'
with
<br> [
<br>TObjectType=igstk::MeshObject::Self
<br>]
<br><br>c:\users\luca\documents\progettotesi\src\insighttoolkit\code\common\itkSmartPointer.h(116): or 'itk::SmartPointer &itk::SmartPointer::operator =(igstk::MeshObject *)'
<br>with<br> [
<br>TObjectType=igstk::MeshObject::Self
<br> ]
<br>while trying to match the argument list '(igstk::MeshObject::Pointer, itk::Mesh *)'
<br> with<br> [
<br> TPixelType=float,
<br>VDimension=3,
<br>TMeshTraits=igstk::MeshObject::MeshTrait
<br>]
</font><br><br><font style="" face="Arial">Who can help me, please? </font><br><br><hr>La tua immagine personale dinamica per Messenger? <a href="http://clk.atdmt.com/GBL/go/136430519/direct/01/">Creala gratis con Avatar Studio!</a><br /><hr />E' arrivato Messenger 2009. <a href='http://clk.atdmt.com/GBL/go/136430510/direct/01/' target='_new'>Provalo insieme ai nuovi servizi Windows Live.</a></body>
</html>