23#ifndef VCL_ALGORITHMS_CORE_CREATE_H
24#define VCL_ALGORITHMS_CORE_CREATE_H
26#include "polygon/create.h"
28#include <vclib/space/core.h>
56template<
typename ScalarType =
float, std::
integral U
intType = u
int16_t>
57std::pair<std::vector<vcl::Point3<ScalarType>>, std::vector<UintType>>
62 std::vector<PointType> vertices;
63 std::vector<UintType> edges;
74 vertices.push_back(PointType(0,
p.x(),
p.y()));
75 edges.push_back(
i + first);
83 vertices.push_back(PointType(
p.x(), 0,
p.y()));
84 edges.push_back(
i + first);
92 vertices.push_back(PointType(
p.x(),
p.y(), 0));
93 edges.push_back(
i + first);
97 return std::make_pair(std::move(vertices), std::move(edges));
116 img(x, y) = 0xFFFFFFFF;
119 img(x, y) = 0xFF808080;
A class representing a box in N-dimensional space.
Definition box.h:46
PointT size() const
Computes the size of the box.
Definition box.h:267
The Image class stores an Image in 4 bytes RGBA format.
Definition image.h:44
Image createCheckBoardImage(uint imageSize, uint checkNum=8)
Create a checkboard image.
Definition create.h:109
std::pair< std::vector< vcl::Point3< ScalarType > >, std::vector< UintType > > createTrackBall(ScalarType scale=1.0, uint pointsPerCircle=64)
Returns a pair of vectors containing the vertices and edges of a 3D Trackball, composed of three circ...
Definition create.h:58