For molecular modelers working extensively with SAMSON, understanding the mesh attribute space in the Node Specification Language (NSL) can significantly streamline workflows that involve mesh nodes. This post provides an overview of the most relevant mesh-specific attributes, helping you harness their power for efficient molecular modeling.
Why focus on mesh attributes?
Mesh nodes in your molecular design work represent 3D geometries, making their attributes critical for controlling visibility, selection, and other properties. By mastering these, you can easily refine the visualization or configuration of specific structures, saving time and effort in molecular modeling tasks.
A closer look at key attributes
The mesh attributes belong to the me attribute space, which is exclusively associated with mesh nodes. Here’s a breakdown of commonly used attributes, their roles, and examples of how to use them effectively:
| Attribute name | Short name | Possible values | Examples |
|---|---|---|---|
| hasMaterial | hm |
true, false |
me.hmnot me.hm |
| hidden | h |
true, false |
me.hnot me.h |
| name | n |
strings in quotes | me.n "A"me.n "L*" |
| ownsMaterial | om |
true, false |
me.om |
| selected | (no short name) | true, false |
me.selectednot me.selected |
| selectionFlag | sf |
true, false |
me.sf falseme.sf |
| visibilityFlag | vf |
true, false |
me.vf falseme.vf |
| visible | v |
true, false |
me.vnot me.v |
Useful applications in molecular modeling
Knowing how to manipulate these attributes allows you to:
- Control visibility: Use
me.horme.vto show or hide specific mesh nodes in your molecular structures. - Refine selection: Selectively work on portions with
me.selectedor toggle selection states withme.sf. - Organize data: Identify mesh nodes by their names through
me.n, with support for string searches like “L*”. - Edit materials: Check and manage material ownership via the
me.hmandme.omattributes.
Start exploring these attributes
This knowledge of mesh attributes is a stepping stone to more efficient molecular modeling workflows in SAMSON. By combining these capabilities with your molecular designs, you’ll be able to better manage your simulation and visualization tasks.
For a comprehensive explanation of the mesh attributes and their full potential, explore the full documentation at https://documentation.samson-connect.net/users/latest/nsl/mesh/.
SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON today at https://www.samson-connect.net.
