CellModules
MecaCell::Obj3D Struct Reference

3D object representation: contains the vertices, UV coordinates, normals and faces More...

#include <obj3D.hpp>

Public Types

enum  TriangleData { V , VT , VN }
 
using UV = std::array< double, 2 >
 
using triangle_t = std::array< size_t, 3 >
 

Public Attributes

std::vector< Vector3Dvertices
 
std::vector< UVuv
 
std::vector< Vector3Dnormals
 
std::vector< std::array< triangle_t, 3 > > faces
 

Detailed Description

3D object representation: contains the vertices, UV coordinates, normals and faces

Definition at line 19 of file obj3D.hpp.

Member Typedef Documentation

◆ triangle_t

using MecaCell::Obj3D::triangle_t = std::array<size_t, 3>

Definition at line 22 of file obj3D.hpp.

◆ UV

using MecaCell::Obj3D::UV = std::array<double, 2>

Definition at line 21 of file obj3D.hpp.

Member Enumeration Documentation

◆ TriangleData

Enumerator
VT 
VN 

Definition at line 20 of file obj3D.hpp.

Member Data Documentation

◆ faces

std::vector<std::array<triangle_t, 3> > MecaCell::Obj3D::faces

Definition at line 27 of file obj3D.hpp.

◆ normals

std::vector<Vector3D> MecaCell::Obj3D::normals

Definition at line 26 of file obj3D.hpp.

◆ uv

std::vector<UV> MecaCell::Obj3D::uv

Definition at line 25 of file obj3D.hpp.

◆ vertices

std::vector<Vector3D> MecaCell::Obj3D::vertices

Definition at line 24 of file obj3D.hpp.


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