<div dir="ltr">Hi All,<div>Once I generate the vtkpolydata, how do I assign any particular attributes (say of type scaler and named as "density") to the dataset.</div><div><br></div><div>I looked into the examples using vtkAssignAttribute (<a href="http://www.vtk.org/doc/nightly/html/classvtkAssignAttribute.html">http://www.vtk.org/doc/nightly/html/classvtkAssignAttribute.html</a>)</div><div><br></div><div>Can anyone please explain what does this statement means from the page :</div><div><br></div><div><pre class="" style="border:1px solid rgb(196,207,229);padding:4px 6px;margin:4px 8px 4px 2px;overflow:auto;word-wrap:break-word;line-height:18.375px;font-family:monospace,fixed;font-size:14.6999998092651px;color:rgb(0,0,0);background-color:rgb(251,252,253)">aa->Assign("foo", vtkDataSetAttributes::SCALARS,
vtkAssignAttribute::POINT_DATA);</pre></div><div><br></div><div>Once the point attributes are assigned, does it mean that each point data will contain the information of the attributes in the vtk (.vtp) file ?</div><div><br></div><div>Thanks much.</div><div><br></div><div>Chiranjib</div></div>