SAMSON Forum
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • SAMSON Connect
    • Get SAMSON

    Applying rotations to my custom model

    Modeling
    2
    3
    2411
    Loading More Posts
    • 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
      Elisa last edited by

      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 Reply Quote 0
      • Stephane
        Stephane last edited by

        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 Reply Quote 0
        • E
          Elisa last edited by

          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 Reply Quote 0
          • First post
            Last post