Graphics v0.0.0
A simple abstraction layer for the modern graphics APIs.
载入中...
搜索中...
未找到
Primitive类 参考

基本网格生成器. 更多...

#include <Primitive.h>

静态 Public 成员函数

static std::optional< Meshmake_plane (unsigned int x, unsigned int z)
 生成平面.
 
static std::optional< Meshmake_capsule (unsigned int resolution, float height, float radius)
 生成立方体. 更多...
 
static std::optional< Meshmake_uv_sphere (unsigned int lat, unsigned int lon)
 生成包含 UV 坐标的球.
 
static Mesh make_ico_sphere (unsigned int resolution)
 生成 ICO 球.
 

详细描述

基本网格生成器.

成员函数说明

◆ make_capsule()

std::optional< Mesh > Primitive::make_capsule ( unsigned int  resolution,
float  height,
float  radius 
)
static

生成立方体.

生成胶囊体.

参数
resolution分辨率. 越高顶点数越多, 越接近胶囊体.
height高度.
radius半径.

该类的文档由以下文件生成: