Efficient molecular modeling often relies on the ability to precisely control and query mesh elements in molecular visualization software. If you are working with SAMSON, the integrative molecular design platform, you will likely encounter its Node Specification Language (NSL). Among various aspects of NSL, the mesh attribute space stands out as an essential tool for managing mesh nodes.
What Are Mesh Attributes?
In SAMSON’s NSL, the mesh attribute space (with the short name me) is specifically designed to handle attributes associated with mesh nodes. This allows not only detailed control over the properties of mesh nodes but also the flexibility to query and interact with individual mesh elements while working on complex models.
Attributes within the mesh space are inherited from the general node attribute space. Below, we’ll dive into the most relevant attributes and their possible values, as they can save you time and reduce uncertainties when handling mesh elements in your projects.
Key Attributes and Their Usage
- hasMaterial (
hm): This boolean attribute indicates whether a mesh node has an associated material. Example:me.hmornot me.hm. - hidden (
h): Determines whether a mesh node is hidden. Using this attribute can help you easily exclude hidden nodes from specific operations. Example:me.h. - name (
n): A string attribute that allows you to query a mesh node’s name. Filtering nodes with specific identifiers becomes simple:me.n "A"orme.n "L*". - ownsMaterial (
om): Another boolean attribute signaling whether the mesh node owns material resources. Example:me.om. - selected: Indicates whether a mesh node is selected or not. While it doesn’t have a short name, it provides a straightforward way to work with selected elements:
me.selectedornot me.selected. - selectionFlag (
sf): A flag that can help track selection operations programmatically. Example:me.sf false. - visibilityFlag (
vf): Determines the visibility status of the mesh node. Example:me.vf. - visible (
v): A quick-check attribute to determine if a node is currently visible. Example:me.vornot me.v.
Practical Applications
For molecular modelers, these attributes become indispensable when navigating complex structures. For example, using hasMaterial to isolate nodes with specific surface properties or hidden to streamline visual presentations and focus only on visible elements can greatly accelerate workflows. The combination of these attributes allows you to customize and refine your modeling environment, improving both speed and accuracy.
Here is a summary table for quick reference:
| 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 | true, false |
me.selectednot me.selected |
|
| selectionFlag | sf |
true, false |
me.sfme.sf false |
| visibilityFlag | vf |
true, false |
me.vfme.vf false |
| visible | v |
true, false |
me.vnot me.v |
Learn More!
Understanding and using mesh attributes effectively can streamline your molecular modeling processes in SAMSON. Visit the official documentation for a comprehensive guide.
SAMSON and all SAMSON Extensions are free for non-commercial use. You can get SAMSON at https://www.samson-connect.net.
