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: SBModel

Base class for visual models.

canCreateMesh(self: samson.SBVisualModel) bool#

Returns True if 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 None when this visual model cannot create a mesh.

Return type:

samson.SBMesh or None