17 lua_writestring(
"bond:\n Arguments:\n i [number]\n j [number]\n Bond i and j.\n");
23 const std::string
msg =
"bond expects two atom indices as argument.\n";
37 const std::string
msg =
"bond atom index larger than atom count.\n";
44 if (
s.find(
i) !=
s.cend())
66 lua_writestring(
"unbond:\n Arguments:\n i [number]\n j [number]\n Unbond i and j.\n");
72 const std::string
msg =
"unbond expects two atom indices as argument.\n";
86 const std::string
msg =
"unbond atom index larger than atom count.\n";
92 if (
s.find(
j) !=
s.cend())
98 if (
s.find(
i) !=
s.cend())
glm::vec< L, float, glm::qualifier::highp > vec
Definition commandLine.h:214
Interop for a number in Lua.
Definition LuaNumber.h:11
void read(lua_State *lua, int index)
Read the number from stack index index.
Definition LuaNumber.h:26
bool elementsUpdated
Definition visualisationState.h:135
std::map< uint64_t, std::set< uint64_t > > bonds
Definition visualisationState.h:118
uint64_t atomCount
Definition visualisationState.h:128
int lua_unbond(lua_State *lua)
Lua binding to unbond 2 Atoms.
Definition bonds.h:62
int lua_bond(lua_State *lua)
Lua binding to bond 2 Atoms.
Definition bonds.h:13