Gui: Add 3 point lighting
This commit is contained in:
@@ -1253,7 +1253,7 @@ bool InventorLoader::isValid() const
|
||||
|
||||
namespace Base
|
||||
{
|
||||
BaseExport Vector3f to_vector(std::string str)
|
||||
BaseExport Vector3f stringToVector(std::string str)
|
||||
{
|
||||
std::string_view view = str;
|
||||
if (!boost::starts_with(view, "(") || !boost::ends_with(str, ")")) {
|
||||
@@ -1282,4 +1282,9 @@ BaseExport Vector3f to_vector(std::string str)
|
||||
return vec;
|
||||
}
|
||||
|
||||
BaseExport std::string vectorToString(Vector3f vec)
|
||||
{
|
||||
return fmt::format("({},{},{})", vec.x, vec.y, vec.z);
|
||||
}
|
||||
|
||||
} // namespace Base
|
||||
|
||||
@@ -845,7 +845,14 @@ private:
|
||||
* If it fails then a std::exception is thrown.
|
||||
* Supported type names are float or double
|
||||
*/
|
||||
BaseExport Base::Vector3f to_vector(std::string);
|
||||
BaseExport Base::Vector3f stringToVector(std::string);
|
||||
|
||||
/*!
|
||||
* Expects a string of the form "(x,y,z)" and creates a vector from it.
|
||||
* If it fails then a std::exception is thrown.
|
||||
* Supported type names are float or double
|
||||
*/
|
||||
BaseExport std::string vectorToString(Vector3f);
|
||||
|
||||
} // namespace Base
|
||||
|
||||
|
||||
Reference in New Issue
Block a user