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

Function pglFieldSetSceneBounds

openpgl/api/api.cpp:146–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144OPENPGL_CATCH_END(0)
145
146extern "C" OPENPGL_DLLEXPORT void pglFieldSetSceneBounds(PGLField field, pgl_box3f bounds)
147{
148 auto *gField = (IGuidingField *)field;
149 openpgl::BBox sceneBounds;
150 sceneBounds.lower = openpgl::Vector3(bounds.lower.x, bounds.lower.y, bounds.lower.z);
151 sceneBounds.upper = openpgl::Vector3(bounds.upper.x, bounds.upper.y, bounds.upper.z);
152 gField->setSceneBounds(sceneBounds);
153}
154
155extern "C" OPENPGL_DLLEXPORT pgl_box3f pglFieldGetSceneBounds(PGLField field)
156{

Callers 1

SetSceneBoundsMethod · 0.85

Calls 2

Vector3Function · 0.85
setSceneBoundsMethod · 0.80

Tested by

no test coverage detected