This project is read-only.
1
Vote

MeshBuilder.AddTube not creating sections for all points

description

Thanks for all of the great work with this toolkit!

When using MeshBuilder.AddTube with the following points, the last section is not created/rendered

{0, 0, 0}
{0.125, 0.125, 0}
{0.125, 0.125, 0.1}
{-0.5, -0.5, 0.1}
{2.5, 2.5, 0.1}
{2.5, 2.5, -0.2}
{2.5, 2.5, 0.1}
MeshBuilder.AddTube(points, 0.1, 5, false);

When using MeshBuilder.AddTube with the following (almost identical) points, the last section IS created/rendered
{0, 0, 0}
{0.125, 0.125, 0}
{0.125, 0.125, 0.1}
{-0.5, -0.5, 0.1}
{2.5, 2.5, 0.1}
{2.5, 2.5, -0.2}
{2.5, 2.5, 0.10000001}

This seems to be related to problem Issue #10054. I have seen this problem with other paths and it seems as if the creation of tube sections stops once it encounters an exact point that has already been visited in a previous tube section. Please notice the last 3 coordinates in the examples.

Is there a workaround/fix for this?

Best Regards

comments