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;
72 for (uint
i = 0;
i <
circle.size(); ++
i) {
74 vertices.push_back(PointType(0,
p.x(),
p.y()));
75 edges.push_back(
i + first);
76 edges.push_back((
i + 1) %
circle.size() + first);
81 for (uint
i = 0;
i <
circle.size(); ++
i) {
83 vertices.push_back(PointType(
p.x(), 0,
p.y()));
84 edges.push_back(
i + first);
85 edges.push_back((
i + 1) %
circle.size() + first);
90 for (uint
i = 0;
i <
circle.size(); ++
i) {
92 vertices.push_back(PointType(
p.x(),
p.y(), 0));
93 edges.push_back(
i + first);
94 edges.push_back((
i + 1) %
circle.size() + first);
97 return std::make_pair(std::move(vertices), std::move(edges));
116 img(x, y) = 0xFFFFFFFF;
119 img(x, y) = 0xFF808080;
A class for representing and manipulating 2D images.
Definition image.h:48
A class representing a line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:41
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