MCPcopy Create free account
hub / github.com/RenderKit/ospray / AddModel

Method AddModel

apps/ospTestSuite/test_fixture.cpp:59–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void Base::AddModel(cpp::GeometricModel model, affine3f xfm)
60{
61 model.commit();
62
63 cpp::Group group;
64 group.setParam("geometry", cpp::CopiedData(model));
65 group.commit();
66
67 cpp::Instance instance(group);
68 instance.setParam("transform", xfm);
69
70 AddInstance(instance);
71}
72
73void Base::AddModel(cpp::VolumetricModel model, affine3f xfm)
74{

Callers

nothing calls this directly

Calls 2

commitMethod · 0.45
setParamMethod · 0.45

Tested by

no test coverage detected