KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sg_node.cpp File Reference
#include <algorithm>
#include <cmath>
#include <cstring>
#include <iostream>
#include <sstream>
#include <wx/log.h>
#include "3d_cache/sg/sg_node.h"
#include "plugins/3dapi/c3dmodel.h"

Go to the source code of this file.

Functions

static void getNodeName (S3D::SGTYPES nodeType, std::string &aName)
 

Variables

static const std::string node_names [S3D::SGTYPE_END+1]
 
static unsigned int node_counts [S3D::SGTYPE_END] = { 1, 1, 1, 1, 1, 1, 1, 1, 1 }
 

Function Documentation

◆ getNodeName()

static void getNodeName ( S3D::SGTYPES  nodeType,
std::string &  aName 
)
static

Definition at line 59 of file sg_node.cpp.

References node_counts, node_names, and S3D::SGTYPE_END.

Referenced by SGNODE::GetName(), and SGNODE::SetName().

Variable Documentation

◆ node_counts

unsigned int node_counts[S3D::SGTYPE_END] = { 1, 1, 1, 1, 1, 1, 1, 1, 1 }
static

Definition at line 50 of file sg_node.cpp.

Referenced by getNodeName(), and SGNODE::ResetNodeIndex().

◆ node_names

const std::string node_names[S3D::SGTYPE_END+1]
static
Initial value:
= {
"TXFM",
"APP",
"COL",
"COLIDX",
"FACE",
"COORD",
"COORDIDX",
"NORM",
"SHAPE",
"INVALID"
}

Definition at line 36 of file sg_node.cpp.

Referenced by getNodeName(), SGNODE::GetNodeTypeName(), and S3D::GetNodeTypeName().