X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvMeshActor.cxx;h=1d6f19b2465cf680439c19a440b890c4cd96f4b2;hb=0ef2d6ae784a865d069ca5dc77b540f859011848;hp=04ea49d70e7648404654a231b750cea03eba29fd;hpb=3a823a03d4a2217e41e4dd3b05a8ea825bb762a5;p=clitk.git diff --git a/vv/vvMeshActor.cxx b/vv/vvMeshActor.cxx index 04ea49d..1d6f19b 100644 --- a/vv/vvMeshActor.cxx +++ b/vv/vvMeshActor.cxx @@ -66,7 +66,7 @@ void vvMeshActor::Init(vvMesh::Pointer mesh,int time_slice,vvImage::Pointer vf) #if VTK_MAJOR_VERSION <= 5 mMapper->SetInput(mMarching->GetOutput()); #else - mMapper->SetInputData(mMarching->GetOutput()); + mMapper->SetInputConnection(mMarching->GetOutputPort()); #endif //The following line allows to display the contour over the image //(http://www.nabble.com/What-happens-when-two-actors-are-at-the-same-depth--td23175458.html) @@ -77,6 +77,7 @@ void vvMeshActor::Init(vvMesh::Pointer mesh,int time_slice,vvImage::Pointer vf) mActor->GetProperty()->EdgeVisibilityOn(); mActor->GetProperty()->SetEdgeColor(mMesh->r,mMesh->g,mMesh->b); mActor->GetProperty()->SetLineWidth(2.); + mActor->GetProperty()->SetOpacity(0.995); //in order to get VTK to turn on the alpha-blending in OpenGL } void vvMeshActor::SetCutSlice(double slice)