Question about RelativeCoincidentTopology*OffsetParameters

Hi everyone,
I’ve met a problem when trying to adjust two mesh display order. In the past I just use setRelativeCoincidentTopologyPolygonOffsetParameters and setRelativeCoincidentTopologyLineOffsetParameters to set the display order of two meshes on their mappers, but when I changed the display of the mesh to show its wireframe(using setEdgeVisibility on actor), the wireframe seems to be mixed up with the polygon rendering like this:
image

I’ve checked the default params to see the default param for polygon and line is 0 and -1, so I tried set new params to be -1 and -2 but it does not work, stlll the same as param -2 and -2. I have tried other sets but they all do not work as expected.
How should I set the offsets or other params to achieve this? Below is the current situation, if the right part, the mixed ups could be solved it will be ok.
image
Regards

You might want to check if the problem is due to “edges” or “lines”.
How about you add all those triangle edges as lines in your polydata to see if you still have the same problem. If so, maybe the edges are handled slightly differently than lines and therefore the parameters do not apply the same way.

Hello,

What have you set in the call to SetResolveCoincidentTopology()?

best,

PC

hi Paul,
It was set to 1 using mapper.setResolveCoincidentTopologyToPolygonOffset.

Hi Julien,
I tried to create a new seperated polydata using points and lines, and it worked as expected like this:

Then it might have to be something about “edges” and not “lines”.
You might want to check the mapper code to see what’s going on with edges rendering.