Support Forum

[Question] object rotation [Solved]


hello. Dear users and developers

I'm practicing rotating an object using Vs.
I compressed the vs file and the drawing file in the attached file.

If you open the file, a vs file was created to arrange Box objects along a three-dimensional line.
However, as shown in the video, the objects are arranged well in the xz plane, but as the angle rotates and goes from the 1st quadrant to the 4th quadrant, the shape is strange.

Am I missing a calculation method? I want to know how to set the angle values. I'd love to hear your thoughts on how to approach 3D rotation.

Attachments (3)

Type: image/jpeg
Downloaded 84 times
Size: 453,26 KiB
Type: image/gif
Downloaded 88 times
Size: 3,36 MiB
Type: application/zip
Downloaded 451 times
Size: 396,68 KiB

Show solution Hide solution

Your "flow chart" is very confusing!
I have chosen the following procedure:
1. determine 2D rotation angle (angle in XY plane)
2. calculate 3D angle (angle in rotated XZ plane)
3. rotate original object around Y-axis with 3D-angle
4. rotate result of 3. around Z-axis with 2D-angle
5. move result of 4. to start and end point

@Allplan
The calculation of the 3D angle of a vector should be possible in a node!
AngleXZ and AngleYZ are not helpful for this often to be solved task!
Better would be to have an Node, which get a AxisPlacement3D from Vector,
and transform the objects with this AxisPlacement3D directly or via Matrix3D.
That nodes would havee a great benefit for all visual scripting users...

Attachments (2)

Type: image/png
Downloaded 104 times
Size: 261,27 KiB
Type: application/zip
Downloaded 405 times
Size: 2,94 KiB

Your "flow chart" is very confusing!
I have chosen the following procedure:
1. determine 2D rotation angle (angle in XY plane)
2. calculate 3D angle (angle in rotated XZ plane)
3. rotate original object around Y-axis with 3D-angle
4. rotate result of 3. around Z-axis with 2D-angle
5. move result of 4. to start and end point

@Allplan
The calculation of the 3D angle of a vector should be possible in a node!
AngleXZ and AngleYZ are not helpful for this often to be solved task!
Better would be to have an Node, which get a AxisPlacement3D from Vector,
and transform the objects with this AxisPlacement3D directly or via Matrix3D.
That nodes would havee a great benefit for all visual scripting users...

Attachments (2)

Type: image/png
Downloaded 104 times
Size: 261,27 KiB
Type: application/zip
Downloaded 405 times
Size: 2,94 KiB

Thanks for your kind reply.
I am studying Visual Script and the answers on the forum are very helpful.
If Allplan has a more detailed explanation of each node, it seems to be more useful.
thank you


https://connect.allplan.com/ uses cookies  -  More information

Accept