#include <triangle_mesh.hpp>
A triangular mesh on the xy -plane.
Definition at line 14 of file triangle_mesh.hpp.
◆ triangle_mesh_t() [1/2]
triangle_mesh_t::triangle_mesh_t |
( |
double | radius = 1.0, |
|
|
int | segments = 4 ) |
|
explicit |
Makes a regular triangle centered at origin.
- Parameters
-
radius | The radius of the containing circle. |
segments | The number of segments along each edge. Must be >= 1. |
Definition at line 108 of file triangle_mesh.cpp.
◆ triangle_mesh_t() [2/2]
triangle_mesh_t::triangle_mesh_t |
( |
const gml::dvec3 & | v0, |
|
|
const gml::dvec3 & | v1, |
|
|
const gml::dvec3 & | v2, |
|
|
int | segments = 4 ) |
- Parameters
-
v0,v1,v2 | The vertex positions of the triangle. |
segments | The number of segments along each edge. Must be >= 1. |
Definition at line 116 of file triangle_mesh.cpp.
◆ triangles()
◆ vertices()
The documentation for this class was generated from the following files:
- C:/Workspace/github/UnravelEngine/UnravelEngine/engine/engine/rendering/generator/triangle_mesh.hpp
- C:/Workspace/github/UnravelEngine/UnravelEngine/engine/engine/rendering/generator/triangle_mesh.cpp