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

Method random_fill

Lattice/Scripting/ScriptAPI.cpp:143–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143int ScriptAPI::random_fill(const sol::object& regionObject, const sol::object& compositionObject, const sol::object& optionsObject) {
144 const std::unique_ptr<Generators::Region> region = parseRegion(regionObject);
145 return ::Generators::randomFill(simulation_, *region, parseComposition(compositionObject, false), parseRandomFillOptions(optionsObject));
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);

Callers

nothing calls this directly

Calls 1

randomFillFunction · 0.85

Tested by

no test coverage detected