MCPcopy Create free account
hub / github.com/ElectroZybr/LatticeLab / lattice_fill

Method lattice_fill

Lattice/Scripting/ScriptAPI.cpp:148–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148int ScriptAPI::lattice_fill(const sol::object& regionObject, const sol::object& compositionObject, const sol::object& optionsObject) {
149 const std::unique_ptr<Generators::Region> region = parseRegion(regionObject);
150 return ::Generators::latticeFill(simulation_, *region, parseComposition(compositionObject, true), parseLatticeFillOptions(optionsObject));
151}
152
153std::vector<::Generators::Compose> ScriptAPI::parseComposition(const sol::object& object, bool requireFraction) const {
154 if (!object.is<sol::table>()) {

Callers

nothing calls this directly

Calls 1

latticeFillFunction · 0.85

Tested by

no test coverage detected