Struct PointSet

Struct Documentation

struct PointSet

Public Functions

bool empty() const

Checks if points is empty.

size_t size() const

Count of points.

void push_back(Point point)

Append new Point to points list.

std::string toJson(int space = 0) const

convert PointSet to JSON String

Return

JSON String

Parameters
  • [in] space: If space > 0; then JSON string will be formatted accordingly

Public Members

std::vector<Point> points

Array of 2D/3D/4D Points to represent [[x,y,z,w]+].

Public Static Functions

static PointSet fromJson(const std::string &json)

create Model from JSON String

3D Example:

[[70,172,86],[105,161,180],[125,147,164],[56,174,124],[91,119,143],[77,219,120]]
Parameters
  • [in] json: JSON String

Return

PointSet object