KiCad PCB EDA Suite
SMESH Struct Reference

Per-vertex normal/color/texcoors structure. More...

#include <c3dmodel.h>

Public Attributes

unsigned int m_VertexSize
 Number of vertex in the arrays. More...
 
SFVEC3Fm_Positions
 Vertex position array. More...
 
SFVEC3Fm_Normals
 Vertex normals array. More...
 
SFVEC2Fm_Texcoords
 Vertex texture coordinates array, can be NULL. More...
 
SFVEC3Fm_Color
 Vertex color array, can be NULL. More...
 
unsigned int m_FaceIdxSize
 Number of elements of the m_FaceIdx array. More...
 
unsigned int * m_FaceIdx
 Triangle Face Indexes. More...
 
unsigned int m_MaterialIdx
 Material Index to be used in this mesh (must be < m_MaterialsSize ) More...
 

Detailed Description

Per-vertex normal/color/texcoors structure.

CONDITIONS: m_Positions size == m_Normals size == m_Texcoords size == m_Color size m_Texcoords can be NULL, textures will not be applied in that case m_Color can be NULL, it will use the m_Diffuse color for every triangle any m_FaceIdx must be an index of a the element lists m_MaterialIdx must be an existent material index stored in the parent model SCALES: m_Positions units are in mm, example: 0.1 unit == 0.1 mm 1.0 unit == 1.0 mm 10.0 unit == 10.0 mm

To convert this units to pcbunits, use the convertion facto UNITS3D_TO_UNITSPCB

m_Normals, m_Color and m_Texcoords are beween 0.0f and 1.0f

Definition at line 76 of file c3dmodel.h.

Member Data Documentation

SFVEC3F* SMESH::m_Color

Vertex color array, can be NULL.

Definition at line 82 of file c3dmodel.h.

Referenced by C3D_RENDER_RAYTRACING::add_3D_models(), C_OGL_3DMODEL::C_OGL_3DMODEL(), S3D::FREE_SMESH(), and SGSHAPE::Prepare().

unsigned int* SMESH::m_FaceIdx

Triangle Face Indexes.

Definition at line 84 of file c3dmodel.h.

Referenced by C3D_RENDER_RAYTRACING::add_3D_models(), C_OGL_3DMODEL::C_OGL_3DMODEL(), S3D::FREE_SMESH(), and SGSHAPE::Prepare().

unsigned int SMESH::m_FaceIdxSize

Number of elements of the m_FaceIdx array.

Definition at line 83 of file c3dmodel.h.

Referenced by C3D_RENDER_RAYTRACING::add_3D_models(), C_OGL_3DMODEL::C_OGL_3DMODEL(), S3D::FREE_SMESH(), and SGSHAPE::Prepare().

unsigned int SMESH::m_MaterialIdx

Material Index to be used in this mesh (must be < m_MaterialsSize )

Definition at line 85 of file c3dmodel.h.

Referenced by C3D_RENDER_RAYTRACING::add_3D_models(), C_OGL_3DMODEL::C_OGL_3DMODEL(), S3D::FREE_SMESH(), and SGSHAPE::Prepare().

SFVEC3F* SMESH::m_Normals

Vertex normals array.

Definition at line 80 of file c3dmodel.h.

Referenced by C3D_RENDER_RAYTRACING::add_3D_models(), C_OGL_3DMODEL::C_OGL_3DMODEL(), S3D::FREE_SMESH(), and SGSHAPE::Prepare().

SFVEC3F* SMESH::m_Positions

Vertex position array.

Definition at line 79 of file c3dmodel.h.

Referenced by C3D_RENDER_RAYTRACING::add_3D_models(), C_OGL_3DMODEL::C_OGL_3DMODEL(), S3D::FREE_SMESH(), and SGSHAPE::Prepare().

SFVEC2F* SMESH::m_Texcoords

Vertex texture coordinates array, can be NULL.

Definition at line 81 of file c3dmodel.h.

Referenced by C_OGL_3DMODEL::C_OGL_3DMODEL(), and S3D::FREE_SMESH().

unsigned int SMESH::m_VertexSize

Number of vertex in the arrays.

Definition at line 78 of file c3dmodel.h.

Referenced by C3D_RENDER_RAYTRACING::add_3D_models(), C_OGL_3DMODEL::C_OGL_3DMODEL(), S3D::FREE_SMESH(), and SGSHAPE::Prepare().


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