MCPcopy Create free account
hub / github.com/OpenPathGuidingLibrary/openpgl / pglFieldGetSceneBounds

Function pglFieldGetSceneBounds

openpgl/api/api.cpp:155–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155extern "C" OPENPGL_DLLEXPORT pgl_box3f pglFieldGetSceneBounds(PGLField field)
156{
157 auto *gField = (IGuidingField *)field;
158 openpgl::BBox sceneBounds = gField->getSceneBounds();
159 pgl_box3f bounds;
160 bounds.lower.x = sceneBounds.lower.x;
161 bounds.lower.y = sceneBounds.lower.y;
162 bounds.lower.z = sceneBounds.lower.z;
163
164 bounds.upper.x = sceneBounds.upper.x;
165 bounds.upper.y = sceneBounds.upper.y;
166 bounds.upper.z = sceneBounds.upper.z;
167
168 return bounds;
169}
170
171extern "C" OPENPGL_DLLEXPORT void pglFieldUpdate(PGLField field, PGLSampleStorage sampleStorage) OPENPGL_CATCH_BEGIN
172{

Callers 1

GetSceneBoundsMethod · 0.85

Calls 1

getSceneBoundsMethod · 0.80

Tested by

no test coverage detected