Not sure where you're adding this code, but you cannot get the "whole"
data merely from the mapper. The input to the mapper will always only
be the geometry being rendered which will change with representation
type (for outline, the geometry being rendered is only the outline).

Utkarsh

On Sat, Sep 3, 2011 at 10:23 PM, 沈恩亚 <enya.shen2...@gmail.com> wrote:
> Dear all,
>
> I am trying to get the input of a mapper briefly as follows:
>
>     vtkMapper* mapper = actor->GetMapper();
>     vtkDataSet* input = mapper->GetInput();
>     int numPoints = input->GetNumberOfPoints();
>
> but faild.
>
> I found that the numPoints is A (such as 400) when the representation of a
> data is Outline, and B (such as 5500) when the representation of the same
> data is Surface.
>
> It seems that I only got part(s) of the whole data. What is wrong and how to
> get the whole data?
>
> Any advice would be appreciated!
>
> Thanks!
> _______________________________________________
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
_______________________________________________
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to