Support Forum

[Frage] object rotation [Gelöst]

Schlagworte:

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.

Anhänge (3)

Typ: image/jpeg
84-mal heruntergeladen
Größe: 453,26 KiB
Typ: image/gif
88-mal heruntergeladen
Größe: 3,36 MiB
Typ: application/zip
483-mal heruntergeladen
Größe: 396,68 KiB

Lösung anzeigen Lösung verbergen

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...

Anhänge (2)

Typ: image/png
104-mal heruntergeladen
Größe: 261,27 KiB
Typ: application/zip
433-mal heruntergeladen
Größe: 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...

Anhänge (2)

Typ: image/png
104-mal heruntergeladen
Größe: 261,27 KiB
Typ: application/zip
433-mal heruntergeladen
Größe: 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


Verwendung von Cookies:
Um die Webseite optimal gestalten und fortlaufend verbessern zu können, verwendet Allplan Cookies.
Durch die weitere Nutzung der Webseite erklären Sie sich mit der Verwendung von Cookies einverstanden.  -  Mehr Informationen

Schließen