thenlevy / ensnano

ENSnano, a 3D graphical application for DNA nanostructures.
GNU General Public License v3.0
49 stars 6 forks source link

Orthographic projection and flexible grid #36

Open dfajita opened 1 year ago

dfajita commented 1 year ago

Hello! I am new to ENSnano. I've just started working on a structural design following the tutorial, but I am already impressed by the potential of ENSnano. ENSnano fits my demand! I look forward to your ongoing development.

The first feature I want is Orthographic projection. This feature would be useful for periodic and precise placement of DNA Helix. The other feature is a grid for more flexible helix placement. For example, I want to slightly deform a nanotube into an ellipse, but I don't know how to do it. One way might be to have a number of grids with only one helix placed, and then arrange them in the desired overall shape. However, if you have a better existing solution, I would appreciate it if you could let me know.

thenlevy commented 1 year ago

Hello, At the moment there is unfortunately no way to use a grid to position helices in an elliptic shape. The only way to arrange helices in an elliptic shape would be to directly edit the coordinates of the helices in the .ens file.

dfajita commented 1 year ago

Thanks for getting back so quickly.

directly edit the coordinates of the helices in the .ens file.

This advice is extremely useful! If I can override the coordinates in the .ens file without any inconsistencies, I can accurately fine-tune the geometry with a simple script. Is this the coordinate that can be rewritten? I will give it a try! Thanks!



"position": {
        "x": -5.714864,
        "y": -6.8322754,
        "z": 4.188162
      },
thenlevy commented 1 year ago

If you do that, you also need to remove the "grid_position" field, or to give it a null value

dfajita commented 1 year ago

Many thanks for your comment, which is very helpful!