[vtk-developers] vtkActor - BackfaceProperty
Goodwin Lawlor
goodwin.lawlor at ucd.ie
Sun Apr 20 14:48:19 EDT 2008
Damn - I thought this catch would fix a bug I've been seeing recently
(but it doesn't)... turning on the backface culling property of a
vtkVectorText object disables the rendering of /other/ vtkCaptionActor2D
actors in the scene. (eg). With
[anteActor GetProperty] BackfaceCullingOff
the "xLabel" reappears. Any ideas?
Thanks,
Goodwin
package require vtk
wm withdraw .
vtkCaptionActor2D xLabel
xLabel SetCaption X
xLabel SetAttachmentPoint 0 0 0
xLabel LeaderOff
xLabel BorderOff
xLabel SetPosition 0 0
[xLabel GetCaptionTextProperty] ShadowOff
vtkVectorText anteText
anteText SetText "A"
vtkPolyDataMapper anteMapper
anteMapper SetInput [anteText GetOutput]
vtkActor anteActor
anteActor SetMapper anteMapper
[anteActor GetProperty] SetColor 1 1 1
[anteActor GetProperty] BackfaceCullingOn
vtkRenderer ren
ren AddActor anteActor
ren AddActor xLabel
vtkRenderWindow renWin
renWin AddRenderer ren
vtkRenderWindowInteractor iren
iren SetRenderWindow renWin
iren Initialize
Philipp Hartl wrote:
> Hello,
>
> I've found a tedious copy&paste error in vtkactor.cxx
>
> <snip>
More information about the vtk-developers
mailing list