MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / MaximumExtent

Function MaximumExtent

samples/luxcoreui/luxcoreapp.cpp:102–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102static int MaximumExtent(const float pMin[3], const float pMax[3]) {
103 const float diagX = pMax[0] - pMin[0];
104 const float diagY = pMax[1] - pMin[1];
105 const float diagZ = pMax[2] - pMin[2];
106 if (diagX > diagY && diagX > diagZ)
107 return 0;
108 else if (diagY > diagZ)
109 return 1;
110 else
111 return 2;
112}
113void LuxCoreApp::UpdateMoveStep() {
114 float pMin[3], pMax[3];
115 config->GetScene().GetBBox(pMin, pMax);

Callers 1

UpdateMoveStepMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected