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#

Returns a mesh constructed from this visual model if possible, else return None.

Returns:

Returns samson.SBMesh if it is possible to create it from this visual model, else returns None.

Return type:

samson.SBMesh