List core algorithms for creating generic objects.
More...
List core algorithms for creating generic objects.
You can access these algorithms by including #include <vclib/algorithms/core/create.h>
◆ createCheckBoardImage()
Image vcl::createCheckBoardImage |
( |
uint |
imageSize, |
|
|
uint |
checkNum = 8 |
|
) |
| |
|
inline |
Create a checkboard image.
- Parameters
-
[in] | imageSize | the size of the image. |
[in] | checkNum | the number of checks. |
- Returns
- the checkboard image.
◆ createTrackBall()
template<
typename ScalarType = float, std::integral UintType = uint16_t>
std::pair< std::vector< vcl::Point3< ScalarType > >, std::vector< UintType > > vcl::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 circles in the x, y, and z planes.
- Template Parameters
-
ScalarType | the type of scalar used for the 3D vertices. |
UintType | the type of integer used for the edge indices. |
- Parameters
-
[in] | scale | the scale of the trackball. |
[in] | pointsPerCircle | the number of points per circle. |
- Returns
- a pair of vectors containing the vertices and edges of the trackball.