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


JSON String

  • [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:

  • [in] json: JSON String


PointSet object