SBVisualModel#

Visual models in SAMSON are used to help you visualize molecular systems.

Please refer to the Applying visual models section to learn how to apply visual models.

See also

Applying visual models

SAMSON SDK: SBMVisualModel

class samson.SBVisualModel#

Bases: SBModel

This class is the base class to describe a visual model.

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