Suppose that I want a Cylinder
to start in some 3D point and to end in some other 3D point.
As far as I know, the way to do that, is to compute the Euclidian distance between the 2 points and to create a Cylinder with the same length. Then, the cylinder should be translated and rotated, such that it really starts at the start point and ends at the end point.
I get messed up with these transformation and do not succeed to place the Cylinder in its correct place.
Could you please share some code snippet of implementation of the function:
void createCylinder(Group group, double p1X, double p1Y, double p1Z,
double p2X, double p2Y, double p2Z)
Answering myself as I've found a solution.
Found a working nice snippet here: http://netzwerg.ch/blog/2015/03/22/javafx-3d-line/
Here is the code, it's simple: