[Paraview] Fail to get the input of a mapper
utkarsh.ayachit at kitware.com
Tue Sep 6 09:02:17 EDT 2011
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).
On Sat, Sep 3, 2011 at 10:23 PM, 沈恩亚 <enya.shen2010 at 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!
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> Please keep messages on-topic and check the ParaView Wiki at:
> Follow this link to subscribe/unsubscribe:
More information about the ParaView