Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to rotate a mesh having a rotation matrix?
Forum Updated to NodeBB v4.3 + New Features

How to rotate a mesh having a rotation matrix?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 177 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gibser
    wrote on last edited by
    #1

    Hello everyone. This is my second post here, I have recently been using the Qt framework and it's my first time working with 3D graphics.
    How can I rotate a mesh having a 3x3 rotation matrix?
    I am using Qt for Python and C ++, I haven't used QML yet.

    Thanks in advance!

    1 Reply Last reply
    0
    • gde23G Offline
      gde23G Offline
      gde23
      wrote on last edited by gde23
      #2

      You just need to multiply each point of the mesh with the matrix.
      Let R be your rotation matrix and P your point, then P_rot = R * P will be the point in the rotated coordinate system.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved