#include <convex_polygon_mesh.hpp>
A polygonal disk with arbitrary number of corners. Subdivided along each side to segments and radially to rings.
Definition at line 17 of file convex_polygon_mesh.hpp.
◆ convex_polygon_mesh_t() [1/3]
convex_polygon_mesh_t::convex_polygon_mesh_t |
( |
double | radius = 1.0, |
|
|
int | sides = 5, |
|
|
int | segments = 4, |
|
|
int | rings = 4 ) |
|
explicitnoexcept |
- Parameters
-
radius | The radius the enclosing circle. |
sides | The number of sides. Should be >= 3. If <3 an empty mesh is generated. |
segments | The number of segments per side. Should be >= 1. If zero an empty mesh is generated. |
rings | The number of radial segments. Should be >= 1. = yelds an empty mesh. |
Definition at line 235 of file convex_polygon_mesh.cpp.
◆ convex_polygon_mesh_t() [2/3]
convex_polygon_mesh_t::convex_polygon_mesh_t |
( |
const std::vector< gml::dvec2 > & | vertices, |
|
|
int | segments = 1, |
|
|
int | rings = 1 ) |
|
explicitnoexcept |
◆ convex_polygon_mesh_t() [3/3]
convex_polygon_mesh_t::convex_polygon_mesh_t |
( |
std::vector< gml::dvec3 > | vertices, |
|
|
int | segments = 1, |
|
|
int | rings = 1 ) |
|
explicitnoexcept |
- Parameters
-
vertices | The corner vertex coordinates. Should be coplanar and form a convex polygon. calculated as an avarage. |
Definition at line 245 of file convex_polygon_mesh.cpp.
◆ triangles()
convex_polygon_mesh_t::triangles_t convex_polygon_mesh_t::triangles |
( |
| ) |
const |
|
noexcept |
◆ vertices()
convex_polygon_mesh_t::vertices_t convex_polygon_mesh_t::vertices |
( |
| ) |
const |
|
noexcept |
The documentation for this class was generated from the following files: