Euphoria
Classes | Typedefs | Enumerations | Functions
eu::core::geom Namespace Reference

Classes

struct  Builder
 A helper utility to create a Geom. More...
 
struct  Triangle
 A simple triangle face in a Builder. More...
 
struct  Vertex
 A single vertex referencing the shared data in the Builder. More...
 

Typedefs

using Index = u64
 A type alias for the index used in the Builder.
 
using Influence4 = std::array< std::size_t, 4 >
 

Enumerations

enum class  SideCount { SideCount::one_sided , SideCount::two_sided }
 An enum describing if a face is one or two-sided. More...
 
enum class  NormalsFacing { NormalsFacing::In , NormalsFacing::Out }
 The possible directions that normals can face. More...
 

Functions

Builder create_box (float x, float y, float z, NormalsFacing normals_facing, const Rgb &color=colors::white)
 Creates a box/cube mesh.
 
Builder create_xz_plane (float x, float z, bool invert, const Rgb &color=colors::white)
 
Builder create_xy_plane (float x, float y, SideCount two_sided, const Rgb &color=colors::white)
 
Builder create_uv_sphere (float diameter, int longitude_count, int latitude_count, NormalsFacing normals_facing, const Rgb &color=colors::white)
 Creates a UV sphere mesh.