KiCad PCB EDA Suite
Loading...
Searching...
No Matches
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.
 
SFVEC3Fm_Positions
 Vertex position array.
 
SFVEC3Fm_Normals
 Vertex normals array.
 
SFVEC2Fm_Texcoords
 Vertex texture coordinates array, can be NULL.
 
SFVEC3Fm_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 )
 

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 conversion facto UNITS3D_TO_UNITSPCB

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

Definition at line 76 of file c3dmodel.h.

Member Data Documentation

◆ m_Color

SFVEC3F* SMESH::m_Color

Vertex color array, can be NULL.

Definition at line 82 of file c3dmodel.h.

Referenced by RENDER_3D_RAYTRACE_BASE::addModels(), MODEL_3D::MODEL_3D(), and SGSHAPE::Prepare().

◆ m_FaceIdx

unsigned int* SMESH::m_FaceIdx

Triangle Face Indexes.

Definition at line 84 of file c3dmodel.h.

Referenced by RENDER_3D_RAYTRACE_BASE::addModels(), MODEL_3D::MODEL_3D(), and SGSHAPE::Prepare().

◆ m_FaceIdxSize

unsigned int SMESH::m_FaceIdxSize

Number of elements of the m_FaceIdx array.

Definition at line 83 of file c3dmodel.h.

Referenced by RENDER_3D_RAYTRACE_BASE::addModels(), MODEL_3D::MODEL_3D(), and SGSHAPE::Prepare().

◆ m_MaterialIdx

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 RENDER_3D_RAYTRACE_BASE::addModels(), MODEL_3D::MODEL_3D(), and SGSHAPE::Prepare().

◆ m_Normals

SFVEC3F* SMESH::m_Normals

Vertex normals array.

Definition at line 80 of file c3dmodel.h.

Referenced by RENDER_3D_RAYTRACE_BASE::addModels(), MODEL_3D::MODEL_3D(), and SGSHAPE::Prepare().

◆ m_Positions

SFVEC3F* SMESH::m_Positions

Vertex position array.

Definition at line 79 of file c3dmodel.h.

Referenced by RENDER_3D_RAYTRACE_BASE::addModels(), MODEL_3D::MODEL_3D(), and SGSHAPE::Prepare().

◆ m_Texcoords

SFVEC2F* SMESH::m_Texcoords

Vertex texture coordinates array, can be NULL.

Definition at line 81 of file c3dmodel.h.

Referenced by MODEL_3D::MODEL_3D().

◆ m_VertexSize

unsigned int SMESH::m_VertexSize

Number of vertex in the arrays.

Definition at line 78 of file c3dmodel.h.

Referenced by RENDER_3D_RAYTRACE_BASE::addModels(), MODEL_3D::MODEL_3D(), and SGSHAPE::Prepare().


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