MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / toThreeUUID

Function toThreeUUID

src/utilities/geometry/ThreeJS.cpp:196–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196std::string toThreeUUID(const std::string& uuid) {
197 // uuid.to_s.gsub('{','').gsub('}','')
198 if (uuid.size() > 2) {
199 if ((uuid[0] == '{') && (uuid[uuid.size() - 1] == '}')) {
200 return uuid.substr(1, uuid.size() - 2);
201 }
202 }
203 return uuid;
204}
205
206std::string fromThreeUUID(const std::string& uuid) {
207 if (uuid.size() > 2) {

Callers 4

updateUserDataFunction · 0.85
makeGeometriesFunction · 0.85
modelToThreeJSMethod · 0.85
makeThreeMaterialFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected