<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Courier;
        panose-1:2 7 4 9 2 2 5 2 4 4;}
@font-face
        {font-family:Courier;
        panose-1:2 7 4 9 2 2 5 2 4 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US>I try to implement a </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>vtkPolyDataAlgorithm </span><span lang=EN-US>filter as plugin in PV. The filter has 2 inputs: (1) vtkPolyData and (2) vtkImageData. Within the xml-file the different data types are declared:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US> <InputProperty<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> name="3DModel"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> port_index="0"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> command="SetInputConnection"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <ProxyGroupDomain name="groups"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <Group name="sources"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <Group name="filters"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> </ProxyGroupDomain><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <DataTypeDomain name="input_type"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <DataType value="vtkPolyData"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> </DataTypeDomain><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> </InputProperty><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <InputProperty<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> name="3DVolume"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> port_index="1"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> command="SetInputConnection"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <ProxyGroupDomain name="groups"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <Group name="sources"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <Group name="filters"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> </ProxyGroupDomain><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <DataTypeDomain name="input_type"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <DataType value="vtkImageData"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> </DataTypeDomain><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> </InputProperty><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>The code compiles without error and the plugin can be loaded into PV. But when I select the plugin in PV the following error occurs:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:8.5pt;font-family:Courier;color:maroon;mso-fareast-language:DE'>ERROR: In ..\..\..\VTK\Filtering\vtkDemandDrivenPipeline.cxx, line 827</span><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:DE'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:8.5pt;font-family:Courier;color:maroon;mso-fareast-language:DE'>vtkPVCompositeDataPipeline (1FBD9388): Input for connection index 0 on input port index 1 for algorithm vtkCTOAM(1F9E8D80) is of type vtkImageData, but a vtkPolyData is required.</span><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:DE'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:8.5pt;font-family:Courier;color:maroon;mso-fareast-language:DE'>ERROR: In ..\..\..\VTK\Filtering\vtkDemandDrivenPipeline.cxx, line 827</span><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:DE'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:8.5pt;font-family:Courier;color:maroon;mso-fareast-language:DE'>vtkPVCompositeDataPipeline (1FBD9388): Input for connection index 0 on input port index 1 for algorithm vtkCTOAM(1F9E8D80) is of type vtkImageData, but a vtkPolyData is required.</span><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:DE'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:8.5pt;font-family:Courier;color:maroon;mso-fareast-language:DE'>ERROR: In ..\..\..\VTK\Filtering\vtkDemandDrivenPipeline.cxx, line 827</span><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:DE'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:8.5pt;font-family:Courier;color:maroon;mso-fareast-language:DE'>vtkPVCompositeDataPipeline (1FBD9388): Input for connection index 0 on input port index 1 for algorithm vtkCTOAM(1F9E8D80) is of type vtkImageData, but a vtkPolyData is required.</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Obviously, the plugin does only accept polydata as input, because it is based on a </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>vtkPolyDataAlgorithm </span><span lang=EN-US>filter. Is there a way I could mix both data types as input to a </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>vtkPolyDataAlgorithm?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>Regards, Peter.</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt'>---------------------------------------------------------<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt'>Prof. Dr. Peter Böttcher, DipECVS<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt'>European Veterinary Specialist in Surgery <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt'>Fachtierarzt für Kleintierchirurgie <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt'>Klinik für Kleintiere <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt'>Universität Leipzig <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt'>An den Tierkliniken 23<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt'>D-04103 Leipzig (Germany)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt'>Tel: +49-341-9738700<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt'>Fax: +49-341-9738799<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt'>Email: </span><span style='font-size:9.0pt'><a href="mailto:boettcher@kleintierklinik.uni-leipzig.de"><span lang=EN-US style='color:blue'>boettcher@kleintierklinik.uni-leipzig.de</span></a></span><span lang=EN-US style='font-size:9.0pt'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>