MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / computeRadiusOrDiameter

Method computeRadiusOrDiameter

source/MRMesh/MRRadiusMeasurementObject.cpp:86–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86float RadiusMeasurementObject::computeRadiusOrDiameter() const
87{
88 if ( !cachedValue_ )
89 cachedValue_ = getWorldRadiusAsVector().length() * ( getDrawAsDiameter() ? 2.f : 1.f );
90 return *cachedValue_;
91}
92
93std::vector<std::string> RadiusMeasurementObject::getInfoLines() const
94{

Callers 1

ImGuiMenu.cppFile · 0.80

Calls 2

getDrawAsDiameterFunction · 0.85
lengthMethod · 0.45

Tested by

no test coverage detected