Visual Computing Library  devel
Loading...
Searching...
No Matches
Core Create Algorithms

List core algorithms for creating generic objects. More...

Collaboration diagram for Core Create Algorithms:

Functions

Image vcl::createCheckBoardImage (uint imageSize, uint checkNum=8)
 Create a checkboard image.
 
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.
 

Detailed Description

List core algorithms for creating generic objects.

You can access these algorithms by including #include <vclib/algorithms/core/create.h>

Function Documentation

◆ createCheckBoardImage()

Image vcl::createCheckBoardImage ( uint  imageSize,
uint  checkNum = 8 
)
inline

Create a checkboard image.

Parameters
[in]imageSizethe size of the image.
[in]checkNumthe 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
ScalarTypethe type of scalar used for the 3D vertices.
UintTypethe type of integer used for the edge indices.
Parameters
[in]scalethe scale of the trackball.
[in]pointsPerCirclethe number of points per circle.
Returns
a pair of vectors containing the vertices and edges of the trackball.