SAMSON Forum
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • SAMSON Connect
    • Get SAMSON
    1. Home
    2. Develop
    3. Modeling
    Log in to post
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Most Views
    • Yassine

      Solved How to add new fields in the inspector for my custom class ?
      • Yassine

      5
      0
      Votes
      5
      Posts
      3544
      Views

      Yassine

      Awesome !

      Thank you guys, you rock !

      Yassine

    • H

      Solved Adding SBAtoms to SBGroupNode
      • Haichao

      4
      0
      Votes
      4
      Posts
      2819
      Views

      H

      Thanks, this solves my problem!

    • E

      Creating our own predicates
      • Elisa

      3
      0
      Votes
      3
      Posts
      2522
      Views

      E

      Thank you! Using the GetClass and GetElementUUID methods is enough for my purposes :)

    • E

      Sharing a child between two nodes
      • Elisa

      3
      0
      Votes
      3
      Posts
      2402
      Views

      E

      Thank you!
      I will try it with this.

      Yes, I meant SBStructuralGroup :)

    • H

      Solved visibility of elements in the visual model
      • Haichao

      5
      0
      Votes
      5
      Posts
      3458
      Views

      H

      This is already quite helpful, thank you!
      I will try and see if displayLineSweptSpheres solves the issue.
      I will post the solution when I've found it!
      Cheers,
      Haichao

    • L

      Get the position/index of an atom in the document view
      • Leonard

      3
      0
      Votes
      3
      Posts
      2602
      Views

      L

      Perfect thanks.

    • E

      Inheriting fields in the inspector class and vector fields
      • Elisa

      3
      1
      Votes
      3
      Posts
      2301
      Views

      E

      Dear Stephane,

      Thanks for the quick reply. I will add the position in three attributes for now. Looking forward to 0.8.0!

    • Laëtitia

      Get the atom xyz file coordinates
      • Laëtitia

      5
      0
      Votes
      5
      Posts
      3266
      Views

      Laëtitia

      oh you're right there is a 100 coefficient, it's giving me the coordinate in pm. Didn't think about that.
      thank you very much.

    • E

      Serialization/Unserialization issues
      • Elisa

      17
      1
      Votes
      17
      Posts
      7380
      Views

      E

      Hi,

      I think I found the problem. Some initialization functions in the constructor of my class were overriding the unserialization. I tried to make a quick fix but when I do static casts in the unserialize function, SAMSON is crashing, so I will modify my constructor and check, it will take a bit though.

      Thanks for your help!

    • E

      Applying rotations to my custom model
      • Elisa

      3
      0
      Votes
      3
      Posts
      2424
      Views

      E

      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

    • K

      How to do a carbon nanotube attached in a graphene sheet?
      • Kevin 3

      3
      0
      Votes
      3
      Posts
      2494
      Views

      DmitriyMarin

      Alternatively, you can do this without the Brenner interaction model but with the built-in minimization which uses the Universal Force Field (UFF) and the Add editor (shortcut: A) (it's Carbon by default).

      First, you will need to modify SAMSON preferences (Ctrl+K):
      -1- For the Add editor, disable the "Adjust hydrogens ..." option.
      0_1600418725406_Preferences-Add-no-adjust-H.png

      -2- For the Minimization, disable the "Warn me when hydrogens appear to be missing" warning to prevent it from poping-up on each new bond connection.
      0_1600418739623_Preferences-Minimize-no-H-warning.png

      Then you can apply the minimization: Home >Simulate > Minimize. Start connecting atoms in the nanotube and the graphene sheet using the Add editor (A) - to create a bond simply connect two atoms with this editor.

    • L

      Van der Waals Tutorial - Casting Shadows
      • Lauren

      4
      0
      Votes
      4
      Posts
      1405
      Views

      DmitriyMarin

      Dear @Lauren ,

      We have updated the Creating visualizations: Van der Waals visual model tutorial in our Developer Guide.

      You can also check out the code samples corresponding to this tutorial here: https://github.com/1A-OneAngstrom/SAMSON-Developer-Tutorials/tree/master/VanDerWaals. The code samples contain more optimized code and some additional functionality.

    • E

      Python bindings for my custom model
      • Elisa

      58
      1
      Votes
      58
      Posts
      26870
      Views

      DmitriyMarin

      To update the topic and for information:
      If you are looking for instructions on how to create Python bindings for your SAMSON Extension, please refer to the Developer Guide: Creation of Python Bindings for SAMSON Extensions.