[vtkusers] link between a cell and its normal
Prabhu Ramachandran
prabhu at aero.iitm.ernet.in
Tue May 21 07:30:30 EDT 2002
>>>>> "AG" == alexandre gouaillard <alexandre.gouaillard at insa-lyon.fr> writes:
AG> hi everyone, i m stuck in what seems to be a very basic
AG> question, and it's getting on my nerves.
AG> I'd like to get the normal (which is allready computed, I
AG> checked) of a specific cell of which I allready got the
AG> Id. Unfortunatly my knowledge of the normal mechanism in vtk
AG> is so poor I can't manage to get it.
AG> I got the cell ID, I managed to get all the normals through
AG> this (TCL code): set normals [[[$Name GetOutput] GetCellData]
AG> GetNormals]
AG> and then .... I don't know how to get my cell's normal out of
AG> the array.
AG> Does someone know how to do this ?
In VTK 4.x the normals should be a vtkFloatArray with 3 components.
So if you do a 'GetTuple3 id' after the GetNormals you should get your
desired normal.
prabhu
More information about the vtkusers
mailing list