| 
    KiCad PCB EDA Suite
    
   | 
 
Per-vertex normal/color/texcoors structure. More...
#include <c3dmodel.h>
Public Attributes | |
| unsigned int | m_VertexSize | 
| Number of vertex in the arrays.   | |
| SFVEC3F * | m_Positions | 
| Vertex position array.   | |
| SFVEC3F * | m_Normals | 
| Vertex normals array.   | |
| SFVEC2F * | m_Texcoords | 
| Vertex texture coordinates array, can be NULL.   | |
| SFVEC3F * | m_Color | 
| Vertex color array, can be NULL.   | |
| unsigned int | m_FaceIdxSize | 
| Number of elements of the m_FaceIdx array.   | |
| unsigned int * | m_FaceIdx | 
| Triangle Face Indexes.   | |
| unsigned int | m_MaterialIdx | 
| Material Index to be used in this mesh (must be < m_MaterialsSize )   | |
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 conversion factor UNITS3D_TO_UNITSPCB.
m_Normals, m_Color and m_Texcoords are between 0.0f and 1.0f.
Definition at line 80 of file c3dmodel.h.
| SFVEC3F* SMESH::m_Color | 
Vertex color array, can be NULL.
Definition at line 86 of file c3dmodel.h.
Referenced by RENDER_3D_RAYTRACE_BASE::addModels(), MODEL_3D::MODEL_3D(), and SGSHAPE::Prepare().
| unsigned int* SMESH::m_FaceIdx | 
Triangle Face Indexes.
Definition at line 88 of file c3dmodel.h.
Referenced by RENDER_3D_RAYTRACE_BASE::addModels(), MODEL_3D::MODEL_3D(), and SGSHAPE::Prepare().
| unsigned int SMESH::m_FaceIdxSize | 
Number of elements of the m_FaceIdx array.
Definition at line 87 of file c3dmodel.h.
Referenced by RENDER_3D_RAYTRACE_BASE::addModels(), MODEL_3D::MODEL_3D(), and SGSHAPE::Prepare().
| unsigned int SMESH::m_MaterialIdx | 
Material Index to be used in this mesh (must be < m_MaterialsSize )
Definition at line 89 of file c3dmodel.h.
Referenced by RENDER_3D_RAYTRACE_BASE::addModels(), MODEL_3D::MODEL_3D(), and SGSHAPE::Prepare().
| SFVEC3F* SMESH::m_Normals | 
Vertex normals array.
Definition at line 84 of file c3dmodel.h.
Referenced by RENDER_3D_RAYTRACE_BASE::addModels(), MODEL_3D::MODEL_3D(), and SGSHAPE::Prepare().
| SFVEC3F* SMESH::m_Positions | 
Vertex position array.
Definition at line 83 of file c3dmodel.h.
Referenced by RENDER_3D_RAYTRACE_BASE::addModels(), MODEL_3D::MODEL_3D(), and SGSHAPE::Prepare().
| SFVEC2F* SMESH::m_Texcoords | 
Vertex texture coordinates array, can be NULL.
Definition at line 85 of file c3dmodel.h.
Referenced by MODEL_3D::MODEL_3D().
| unsigned int SMESH::m_VertexSize | 
Number of vertex in the arrays.
Definition at line 82 of file c3dmodel.h.
Referenced by RENDER_3D_RAYTRACE_BASE::addModels(), MODEL_3D::MODEL_3D(), and SGSHAPE::Prepare().