Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

[V8i VBA] Matrix3D and multiple rotations

$
0
0

In an existing project that I have posted about previously I can insert cells at known coordinates and calculate a rotation on the XY plane  so the cells are perpendicular to a target linear element (B-spline, complex shape etc..) I am currently using Matrix3dFromAxisAndRotationAngle where Z=2 and to date my target element has also been planar to the XY plane however I would now like to cater for situations where the target element is non-planar. I created a simple test using the existing code where the target element is line drawn parallel to the X axis and increasing its Z-value on the XZ plane. The cells are still inserted exactly as when the target element is planar. I'm just unsure how perform the 2nd rotation around the normal vector i.e.

  • can the rotation matrix be constructed to include both rotations (obviously using an alternative method instead of Matrix3dFromAxisAndRotationAngleor,
  • do I keep what I have and perform the 2nd rotation as an additional step?

Viewing all articles
Browse latest Browse all 7260

Trending Articles