Question

Offsetcurvegenerator Miter option


Badge +5

Hi all,

Does anyone know more about the Offsetcurvegenerator transformer? I've offset a 3D polyline using this transformer setting it to the Miter option using a large miter limit (shown below). I would have expected this to give me the same number of vertices in the offset line but it appears to have added new, somewhat random points to the offset line. Shown below in the blue highlight. Can anyone shed some light on why this is happening and how I can get around it?


2 replies

Userlevel 2
Badge +17

Hi @umapper1, I think such excess vertices are on a straight line theoretically. I guess that those vertices are just remaining for some reason on the implementation. If so, the Generalizer (Douglas algorithm) might help you to remove those vertices. Try setting very small value (e.g. 1e-12) to the Generalization Tolerance parameter.

Badge +5

Hi @umapper1, I think such excess vertices are on a straight line theoretically. I guess that those vertices are just remaining for some reason on the implementation. If so, the Generalizer (Douglas algorithm) might help you to remove those vertices. Try setting very small value (e.g. 1e-12) to the Generalization Tolerance parameter.

Thanks @takashi, I will give this a try.

Reply