[vtkusers] VTK's possible bug when rendering?
jsl
jsantam.gm at gmail.com
Mon Oct 20 10:13:36 EDT 2008
Dear all,
I noticed an extrange rendering behaviour when loading a .OBJ model and
next applying a particular transform. This is the code:
...
...
// Load the 3D model
vtkOBJReader* model = vtkOBJReader::New();
model->SetFileName(model);
vtkTransformPolyDataFilter* TransformPolyDataFilter =
vtkTransformPolyDataFilter::New();
TransformPolyDataFilter->SetInput(model->GetOutput());
TransformPolyDataFilter->SetTransform(Transform);
TransformPolyDataFilter->Update();
// Set the 3D model mapper
vtkPolyDataMapper* geomMap = vtkPolyDataMapper::New();
geomMap->SetInputConnection(TransformPolyDataFilter->GetOutputPort());
// Set the 3D model actor
vtkActor* geomActor = vtkActor::New();
geomActor->SetMapper(geomMap);
geomActor->GetProperty()->SetColor(0.74, 0.52, 0.06);
...
...
However, as I've just said before, the rendering of the model is quite
suspicious.
I've attached one screenshot of the transformed 3D model. Please, Any advice
will be greatly appreciated.
Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081020/14aaca82/attachment.htm>
More information about the vtkusers
mailing list