Visual Computing Library
Loading...
Searching...
No Matches
vcl::CreateSphereArgs Struct Reference

The CreateSphereArgs structs contains a series of parameters to generate a sphere. More...

#include <vclib/algorithms/mesh/create/sphere.h>

Public Types

enum  CreateSphereMode { UV = 0 , NORMALIZED_CUBE , SPHERIFIED_CUBE , ICOSAHEDRON }
 

Public Attributes

CreateSphereMode mode = UV
 
uint parallels = 10
 
uint meridians = 20
 
uint divisions = 20
 

Detailed Description

The CreateSphereArgs structs contains a series of parameters to generate a sphere.

The main parameter is mode, an enumeration that indicates the method used to generate the sphere mesh. Its values can be: UV (default), NORMALIZED_CUBE, SPHERIFIED_CUBE and ICOSAHEDRON. Please refer to https://github.com/caosdoar/spheres for more details about the available modes.

Other arguments are:

  • parallels (default 10): used when mode == UV;
  • meridians (default 20): used when mode == UV;
  • divisions (default 20): used when mode == NORMALIZED_CUBE, SPHERIFIED_CUBE, ICOSAHEDRON

The documentation for this struct was generated from the following file: