SBVisualModel#
Visual models in SAMSON are document nodes that control how molecular systems are rendered in the viewport.
Please refer to the Applying visual models section to learn how to create and apply visual models from Python.
- class samson.SBVisualModel#
Bases:
SBModelBase class for visual models.
See also
- canCreateMesh(self: samson.SBVisualModel) bool#
Returns
Trueif the visual model can create a mesh.
- createMesh(self: samson.SBVisualModel) SBMVisualModelMesh#
Create a mesh representation of this visual model when possible.
- Returns:
Mesh created from this visual model, or
Nonewhen this visual model cannot create a mesh.- Return type:
samson.SBMesh or None