Tachyon (current)  Current Main Branch
Public Member Functions | Data Fields
TriangleMesh Struct Reference

#include <TachyonOptiX.h>

Public Member Functions

void addCube (const float3 &center, const float3 &s)
 

Data Fields

std::vector< float3 PINALLOCS(float3) > vertices
 
std::vector< int3 PINALLOCS(int3) > indices
 
std::vector< float3 PINALLOCS(float3) > normals
 
std::vector< uint4 PINALLOCS(uint4) > packednormals
 
std::vector< float3 PINALLOCS(float3) > vertcolors3f
 
std::vector< uchar4 PINALLOCS(uchar4) > vertcolors4u
 
std::vector< float3 PINALLOCS(float3) > primcolors3f
 
std::vector< float2 PINALLOCS(float2) > tex2d
 
std::vector< float3 PINALLOCS(float3) > tex3d
 
float3 uniform_color
 
int materialindex
 

Detailed Description

Definition at line 285 of file TachyonOptiX.h.

Member Function Documentation

◆ addCube()

void TriangleMesh::addCube ( const float3 &  center,
const float3 &  s 
)
inline

Definition at line 298 of file TachyonOptiX.h.

References indices, make_float3(), and vertices.

Field Documentation

◆ indices

std::vector<int3 PINALLOCS(int3) > TriangleMesh::indices

Definition at line 287 of file TachyonOptiX.h.

Referenced by addCube(), gen_chart(), gen_floor(), gen_teximg(), and gen_trimesh().

◆ materialindex

int TriangleMesh::materialindex

Definition at line 296 of file TachyonOptiX.h.

Referenced by TachyonOptiX::add_trimesh().

◆ normals

std::vector<float3 PINALLOCS(float3) > TriangleMesh::normals

Definition at line 288 of file TachyonOptiX.h.

Referenced by main().

◆ packednormals

std::vector<uint4 PINALLOCS(uint4) > TriangleMesh::packednormals

Definition at line 289 of file TachyonOptiX.h.

◆ primcolors3f

std::vector<float3 PINALLOCS(float3) > TriangleMesh::primcolors3f

Definition at line 292 of file TachyonOptiX.h.

◆ tex2d

std::vector<float2 PINALLOCS(float2) > TriangleMesh::tex2d

Definition at line 293 of file TachyonOptiX.h.

Referenced by gen_teximg(), and main().

◆ tex3d

std::vector<float3 PINALLOCS(float3) > TriangleMesh::tex3d

Definition at line 294 of file TachyonOptiX.h.

◆ uniform_color

float3 TriangleMesh::uniform_color

Definition at line 295 of file TachyonOptiX.h.

Referenced by main().

◆ vertcolors3f

std::vector<float3 PINALLOCS(float3) > TriangleMesh::vertcolors3f

Definition at line 290 of file TachyonOptiX.h.

Referenced by gen_chart(), gen_floor(), and gen_trimesh().

◆ vertcolors4u

std::vector<uchar4 PINALLOCS(uchar4) > TriangleMesh::vertcolors4u

Definition at line 291 of file TachyonOptiX.h.

◆ vertices

std::vector<float3 PINALLOCS(float3) > TriangleMesh::vertices

Definition at line 286 of file TachyonOptiX.h.

Referenced by addCube(), gen_chart(), gen_floor(), gen_teximg(), gen_trimesh(), and main().


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