Skip to content
0
  • Recent
  • Tags
  • Popular
  • SAMSON Connect
  • Get SAMSON
  • Recent
  • Tags
  • Popular
  • SAMSON Connect
  • Get SAMSON
Collapse
SAMSON Forum
  1. Home
  2. Develop
  3. Modeling
  4. Applying rotations to my custom model

Applying rotations to my custom model

Scheduled Pinned Locked Moved Modeling
3 Posts 2 Posters 3.6k 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.
  • E
    E
    Elisa
    wrote on last edited by
    #1

    Dear all,

    Some elements of my custom model store local coordinate systems, which we need for some operations. Unfortunately I haven't found the way after using the Rotation editor, to apply the transformation to the basis. Is there a way to do this? If not I am thinking of creating my own rotation editor, would it be possible to extend the current rotation editor?

    Thanks and best regards,

    Elisa

    1 Reply Last reply
    0
    • StephaneS
      StephaneS
      Stephane
      wrote on last edited by
      #2

      Dear Elisa,

      the rotation editor only works on atoms. Does your custom model contain atoms? If yes, you might be able to connect to the model's structural signal and react to the ParticlePositionChanged event (see this tutorial for more information on signals: https://documentation.samson-connect.net/developers/latest/page_tutorial_center_of_mass.html). Then, you would deduce the change in the coordinate system by looking at the change of positions in the atoms. Note that this wouldn't work if there would be a non-rigid deformation applied by another editor.

      If your custom model does not contain any atom, yes you will have to develop an editor to rotate it, and extending the current rotation editor will not help (for 0.8.0, we're looking to expose the underlying controller, for this type of situations).

      Best,

      Stephane

      1 Reply Last reply
      0
      • E
        E
        Elisa
        wrote on last edited by
        #3

        Dear Stephane,

        Yes, we have atoms. The 0.8.0 solution will be the best long-term, as we are dealing with large systems and FPS drop a lot when translating or rotating, but for now I will check the ParticlePositionChanged event.

        Thanks!!

        Elisa

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Login or register to search.
        • First post
          Last post