55#include "DGtal/base/Common.h"
56#include "DGtal/helpers/StdDefs.h"
57#include "DGtal/io/viewers/PolyscopeViewer.h"
73 const std::string& name,
size_t index,
75 void* polyscopeStructure
77 std::cout <<
"Item name: " << name << std::endl;
81int main(
int argc,
char** argv )
88 K.init( p1, p2,
true );
100 viewer.
draw(surfel1,
"Surfel 1");
101 viewer.
draw(surfel2,
"Surfel 2");
81int main(
int argc,
char** argv ) {
…}
std::string draw(const Point &p, const std::string &uname="Point_{i}")
static const constexpr Sign NEG
SignedKhalimskyCell< dim, Integer > SCell
static const constexpr Sign POS
void setCallback(typename Display3D< Space, KSpace >::Callback *callback) override
void show() override
Starts the event loop and display of elements.
Z3i this namespace gathers the standard of types for 3D imagery.
KhalimskySpaceND< 3, Integer > KSpace
DGtal is the top-level namespace which contains all DGtal functions and types.
A general callback for the viewer to give control to the user.
Data required to display an object.
void OnClick(const std::string &name, size_t index, const DisplayData< MyViewer::RealPoint > &data, void *polyscopeStructure)
unsigned int index(DGtal::uint32_t n, unsigned int b)
MyViewer::Callback Callback
PolyscopeViewer< Space, KSpace > MyViewer