Add surface representation to atoms

m_add_surface(
  id,
  type,
  style = m_style_surface(),
  atomsel = m_sel(),
  allsel,
  focus,
  surfacecallback
)

Arguments

id

R3dmol id or a r3dmol object (the output from r3dmol())

type

Surface type ('VDW', 'MS', 'SAS', or 'SES')

style

Optional style specification for surface material (e.g. for different coloring scheme, etc).

atomsel

Show surface for atoms in this selection.

allsel

Use atoms in this selection to calculate surface; may be larger group than atomsel.

focus

Optionally begin rendering surface specified atoms.

surfacecallback

function to be called after setting the surface.

Value

R3dmol id or a r3dmol object (the output from r3dmol())