Mesh lines display discontinuity

I use VTK8.2 to render one FEA mode,I render the mode and element-edges in two vtkActor. But, when I move the camera, the mesh line may display discontinuity.Here is the picture.
Bug

I try to use FXAA,but not improve;

       renderer->UseFXAAOn();

    // configure the FXAA antialiasing
    vtkSmartPointer<vtkFXAAOptions> fxaaOptions = renderer->GetFXAAOptions();
    fxaaOptions->SetSubpixelBlendLimit(1 / 2.0);
    //fxaaOptions->SetSubpixelContrastThreshold(1/2.0);
    //fxaaOptions->SetRelativeContrastThreshold(0.125);
    //fxaaOptions->SetHardContrastThreshold(0.045);
    //fxaaOptions->SetSubpixelBlendLimit(0.75);
    //fxaaOptions->SetSubpixelContrastThreshold(0.25);
    //fxaaOptions->SetUseHighQualityEndpoints(true);
    //fxaaOptions->SetEndpointSearchIterations(12);

I also try to use code:

        vtkPolyDataMapper::SetResolveCoincidentTopologyToPolygonOffset();
        vtkPolyDataMapper::SetResolveCoincidentTopologyPolygonOffsetFaces(0);
        vtkMapper::SetResolveCoincidentTopologyPolygonOffsetParameters(2, 2);
        vtkMapper::SetResolveCoincidentTopologyLineOffsetParameters(1, 1);

and ,set the mapper of mesh line:

        meshMapper->SetRelativeCoincidentTopologyLineOffsetParameters(0, -6600);
        meshMapper->SetRelativeCoincidentTopologyPolygonOffsetParameters(0, -6600);

but still not improve;

Hello,

Have you tried MSAA?

best,

PC

Yes,T also try the MASS.

And?

All these methond are independent

I have solve these problem ;
It is necessary to first set up;
vtkPolyDataMapper::SetResolveCoincidentTopologyToPolygonOffset();

1 Like