KiCad PCB EDA Suite
|
#include <writer.h>
Public Member Functions | |
bool | IsEmpty () |
uint32_t | GetOrAddUniqueDiffuseColor (const Graphic3d_Vec4 &aColor) |
uint32_t | GetOrAddUniqueSpecularColor (const Graphic3d_Vec4 &aColor) |
Public Attributes | |
std::vector< VECTOR3D > | coords |
std::vector< VECTOR3D > | normals |
std::vector< Graphic3d_Vec4 > | diffuse_colors |
List of all unique diffuse colors. | |
std::vector< Graphic3d_Vec4 > | specular_colors |
List of all unique specular colors. | |
std::unordered_map< Graphic3d_Vec4, uint32_t > | diffuse_colors_index_map |
Index map helps select the color index for a given vertex when creating the colorIndices. | |
std::unordered_map< Graphic3d_Vec4, uint32_t > | specular_colors_index_map |
Index map helps select the color index for a given vertex when creating the colorIndices. | |
std::vector< uint32_t > | coordIndices |
Coordinate indices, maps vertex positions to triangles. | |
std::vector< uint32_t > | normalIndices |
Coordinate indices, maps vertex normal positions to triangles. | |
std::vector< uint32_t > | diffuseColorIndices |
Coordinate indices, maps each vertex to a diffuse color. | |
std::vector< uint32_t > | specularColorIndices |
Coordinate indices, maps each vertex to a specular color. | |
Graphic3d_Vec4 | diffuse_color |
Diffuse color used if not using per-vertex color. | |
Graphic3d_Vec3 | specular_color |
Specular color used if not using per-vertex color. | |
std::string | name |
The name of the mesh, this will be visible in U3D viewers. | |
std::string | parentName |
Parent name (if any) to group the mesh under. | |
bool | perVertexColor |
|
inline |
Definition at line 141 of file writer.h.
References diffuse_colors, and diffuse_colors_index_map.
|
inline |
Definition at line 158 of file writer.h.
References specular_colors, and specular_colors_index_map.
|
inline |
Definition at line 136 of file writer.h.
References coordIndices, and coords.
std::vector<uint32_t> U3D::MESH::coordIndices |
Coordinate indices, maps vertex positions to triangles.
Definition at line 97 of file writer.h.
Referenced by U3D::WRITER::collectGeometryRecursive(), U3D::WRITER::getMeshContinuationBlock(), U3D::WRITER::getMeshDeclarationBlock(), and IsEmpty().
std::vector<VECTOR3D> U3D::MESH::coords |
Definition at line 72 of file writer.h.
Referenced by U3D::WRITER::collectGeometryRecursive(), U3D::WRITER::getMeshContinuationBlock(), U3D::WRITER::getMeshDeclarationBlock(), and IsEmpty().
Graphic3d_Vec4 U3D::MESH::diffuse_color |
std::vector<Graphic3d_Vec4> U3D::MESH::diffuse_colors |
List of all unique diffuse colors.
Definition at line 79 of file writer.h.
Referenced by U3D::WRITER::getMeshContinuationBlock(), U3D::WRITER::getMeshDeclarationBlock(), and GetOrAddUniqueDiffuseColor().
std::unordered_map<Graphic3d_Vec4, uint32_t> U3D::MESH::diffuse_colors_index_map |
Index map helps select the color index for a given vertex when creating the colorIndices.
Definition at line 88 of file writer.h.
Referenced by GetOrAddUniqueDiffuseColor().
std::vector<uint32_t> U3D::MESH::diffuseColorIndices |
Coordinate indices, maps each vertex to a diffuse color.
Definition at line 107 of file writer.h.
Referenced by U3D::WRITER::getMeshContinuationBlock().
std::string U3D::MESH::name |
The name of the mesh, this will be visible in U3D viewers.
Definition at line 127 of file writer.h.
Referenced by U3D::WRITER::getMeshName().
std::vector<uint32_t> U3D::MESH::normalIndices |
Coordinate indices, maps vertex normal positions to triangles.
Definition at line 102 of file writer.h.
Referenced by U3D::WRITER::collectGeometryRecursive(), and U3D::WRITER::getMeshContinuationBlock().
std::vector<VECTOR3D> U3D::MESH::normals |
Definition at line 74 of file writer.h.
Referenced by U3D::WRITER::collectGeometryRecursive(), U3D::WRITER::getMeshContinuationBlock(), and U3D::WRITER::getMeshDeclarationBlock().
std::string U3D::MESH::parentName |
Graphic3d_Vec3 U3D::MESH::specular_color |
std::vector<Graphic3d_Vec4> U3D::MESH::specular_colors |
List of all unique specular colors.
Definition at line 84 of file writer.h.
Referenced by U3D::WRITER::getMeshContinuationBlock(), U3D::WRITER::getMeshDeclarationBlock(), and GetOrAddUniqueSpecularColor().
std::unordered_map<Graphic3d_Vec4, uint32_t> U3D::MESH::specular_colors_index_map |
Index map helps select the color index for a given vertex when creating the colorIndices.
Definition at line 92 of file writer.h.
Referenced by GetOrAddUniqueSpecularColor().
std::vector<uint32_t> U3D::MESH::specularColorIndices |
Coordinate indices, maps each vertex to a specular color.
Definition at line 112 of file writer.h.
Referenced by U3D::WRITER::getMeshContinuationBlock().