# HG changeset patch # User Sebastien Jodogne # Date 1642183830 -3600 # Node ID ca89fec8c48f5c547c67d332c8890b5bc7c50387 # Parent ddaee6b96501da42dc58d7aafe112e91bfeaa0c6 test diff -r ddaee6b96501 -r ca89fec8c48f RenderingPlugin/Sources/Plugin.cpp --- a/RenderingPlugin/Sources/Plugin.cpp Fri Jan 14 19:04:05 2022 +0100 +++ b/RenderingPlugin/Sources/Plugin.cpp Fri Jan 14 19:10:30 2022 +0100 @@ -514,6 +514,19 @@ std::list< std::vector > p; accessor.GetRtStruct().GetStructurePoints(p, structureIndex, sopInstanceUid); + // curl 'http://localhost:8042/stone/rt-struct/54460695-ba3885ee-ddf61ac0-f028e31d-a6e474d9/numpy?structure=BODY&instance=0dd13003-9b1b2712-0fb44325-48c28c99-430d111b' + unsigned int count = 0; + for (std::list< std::vector >::const_iterator + it = p.begin(); it != p.end(); ++it) + { + printf("%d: ", count++); + for (size_t i = 0; i < it->size(); i++) + { + printf("(%.1f,%.1f,%.1f) ", (*it)[i][0], (*it)[i][1], (*it)[i][2]); + } + printf("\n"); + } + std::string s = "hello"; OrthancPluginAnswerBuffer(OrthancPlugins::GetGlobalContext(), output, s.c_str(), s.size(), "application/json"); }