I’ve now moved all the direction computations to double precision (so I can match the same accuracy as in the data files), but even with that I still have two major problems :
- According to the data some short components (0.01 meters) have an orientation different of 90 degrees with the previous/next component, and their diameter is so big compared to their length (0.15 meters) that it should be physically impossible to fit. Here is a screenshot of what I’m talking about : (I’ve removed the liaisons between the cylinders so that you can better see the components) :
And here is a screenshot when I use my algorithm to reduce the overlapping between the cylinders (as you can see it’s still not enough to solve the collision problems) :
- Second problem : I know some components are meant to be deformed, but in this case it seems weird : the size of the component is multiplied by 10 (usually it’s 0.1 and it’s extended to 1), and also all the components seem to extend when they arrive at the same point.
7,2,-122.60000284,105.30006992,2221.99999931,0
…
9,1,-122.70001239,105.40006676,2223.00000000,0 ==> Time 9, there is more than 1 meter between the nodes 1 and 2
9,2,-122.70001286,105.40007063,2221.99999931,0
Here are two screenshots and a video to explain :
In this video you can see that each component arriving to the same point will be extended in the same way :



