I see. Maybe I am not using the lattest version of ITK, because I'm
tied to the one that I need for Slicer. I'll file the bug report as
soon as possible.<br><br>(Oh, and I just found a way to avoid the use of a Duplicator in my code, so I don't have that problem anymore)<br><br clear="all">Antonio Foncubierta<br>
<br><br><div class="gmail_quote">2009/2/5 Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Antonio,<br>
<br>
Looks like a bug. Please file a bug report following the procedure in:<br>
<a href="http://www.itk.org/Wiki/ITK_Procedure_for_Contributing_Bug_Fixes" target="_blank">http://www.itk.org/Wiki/ITK_Procedure_for_Contributing_Bug_Fixes</a><br>
<br>
Bill<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
On Wed, Feb 4, 2009 at 11:14 AM, Antonio Foncubierta<br>
<<a href="mailto:antonio.foncubierta@gmail.com">antonio.foncubierta@gmail.com</a>> wrote:<br>
> Hello,<br>
><br>
> I've been trying to use a Spatial Object Duplicator to get an exact copy of<br>
> some Spatial Objects. I've had no problems with ellipseSpatial Objects, but<br>
> when I try to duplicate a CylinderSpatialObject, I get the following Error<br>
> Message:<br>
><br>
> Could not create an instance of CylinderSpatialObject_3<br>
> The usual cause of this error is not registering the SpatialObject with<br>
> SpatialFactory<br>
> Currently registered Transforms:<br>
> "DTITubeSpatialObject_3"<br>
> "EllipseSpatialObject_3"<br>
> "GroupSpatialObject_3"<br>
><br>
> My code:<br>
><br>
> typename MovingSpatialObjectType::Pointer currentSO;<br>
> typedef itk::SpatialObjectDuplicator<MovingSpatialObjectType><br>
> DuplicatorType;<br>
> typename DuplicatorType::Pointer duplicator = DuplicatorType::New();<br>
><br>
> duplicator->SetInput(this->m_MovingSpatialObject);<br>
> duplicator->Update();<br>
><br>
> I just don't understand what I should do with the SpatialFactory to make<br>
> this work. What am I doing wrong?<br>
><br>
> Thank you<br>
><br>
><br>
> Antonio Foncubierta<br>
><br>
</div></div>> _______________________________________________<br>
> Insight-users mailing list<br>
> <a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>
> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
><br>
</blockquote></div><br>