[vtkusers] Convert vtkActor to vtkPolyData

agatte agatakrason at gmail.com
Sun Mar 2 10:42:50 EST 2014


1) refLower = vtkPolyData::SafeDownCast(
actorLower->GetMapper()->GetInputAsDataSet());
    I received an exception concering  :
    Unhandled exception at 0x0f0fb5e1 (vtkFiltering.dll) : 0xC0000005:
Access violation reading location 0x00000034.


2) I tried :  actorLower->GetMapper()->GetInputAsDataSet()->Print(
std::cout);
    It doesn't compiled.
    error C2664: 'vtkPolyData::SafeDownCast' : cannot convert parameter 1
from 'void' to 'vtkObjectBase *'




2014-03-02 16:01 GMT+01:00 Cory Quammen-2 [via VTK] <
ml-node+s1045678n5726153h92 at n5.nabble.com>:

> What does
>
> actorLower->GetMapper()->GetInputAsDataSet()->Print(std::cout);
>
> report?
>
> On Sun, Mar 2, 2014 at 9:52 AM, agatte <[hidden email]<http://user/SendEmail.jtp?type=node&node=5726153&i=0>>
> wrote:
>
> > Thanks for quick reply Cory.
> >
> > I tried it but it doesn't work ...
> >
> >
> >
> > --
> > View this message in context:
> http://vtk.1045678.n5.nabble.com/Convert-vtkActor-to-vtkPolyData-tp5726148p5726152.html
> > Sent from the VTK - Users mailing list archive at Nabble.com.
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://vtk.1045678.n5.nabble.com/Convert-vtkActor-to-vtkPolyData-tp5726148p5726153.html
>  To unsubscribe from Convert vtkActor to vtkPolyData, click here<http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5726148&code=YWdhdGFrcmFzb25AZ21haWwuY29tfDU3MjYxNDh8LTIxODgyMDQwNQ==>
> .
> NAML<http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://vtk.1045678.n5.nabble.com/Convert-vtkActor-to-vtkPolyData-tp5726148p5726154.html
Sent from the VTK - Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140302/0240aa18/attachment.html>


More information about the vtkusers mailing list