|
|
I try to create a tube by connecting cylinders over a spline. To avoid
unnecessary elements, I want to check if three points in line to avoid creation
of two cylinders when one is sufficient.
To do this, I need to calculate the normalized vector of P2-P1 and compare it
with that of P3-P3 using the functions given at
https://www.povray.org/documentation/view/3.6.1/459/
What is the most efficient way, as it is a continuous calculation, which may
enable me to increase the resolution (number of points).
Post a reply to this message
|
|