KiCad PCB EDA Suite
Loading...
Searching...
No Matches
exporter_vrml.cpp File Reference
#include <exception>
#include <fstream>
#include <iomanip>
#include <vector>
#include <wx/dir.h>
#include <wx/msgdlg.h>
#include <wx/wfstream.h>
#include <wx/zstream.h>
#include "3d_cache/3d_cache.h"
#include "3d_cache/3d_info.h"
#include "board.h"
#include "board_design_settings.h"
#include <fp_lib_table.h>
#include "footprint.h"
#include "pad.h"
#include "pcb_text.h"
#include "pcb_track.h"
#include <project_pcb.h>
#include <core/arraydim.h>
#include <filename_resolver.h>
#include "plugins/3dapi/ifsg_all.h"
#include "streamwrapper.h"
#include "vrml_layer.h"
#include "pcb_edit_frame.h"
#include <convert_basic_shapes_to_polygon.h>
#include <geometry/geometry_utils.h>
#include <macros.h>
#include <exporter_vrml.h>

Go to the source code of this file.

Macros

#define ERR_APPROX_MAX_MM   0.005
 
#define ADD_COLOR(list, r, g, b, a, name)    list.emplace_back( r/255.0, g/255.0, b/255.0, a, name )
 

Functions

static void build_quat (double x, double y, double z, double a, double q[4])
 
static void from_quat (double q[4], double rot[4])
 
static void compose_quat (double q1[4], double q2[4], double qr[4])
 

Variables

static bool g_ColorsLoaded = false
 

Macro Definition Documentation

◆ ADD_COLOR

#define ADD_COLOR (   list,
  r,
  g,
  b,
  a,
  name 
)     list.emplace_back( r/255.0, g/255.0, b/255.0, a, name )

◆ ERR_APPROX_MAX_MM

#define ERR_APPROX_MAX_MM   0.005

Definition at line 83 of file exporter_vrml.cpp.

Function Documentation

◆ build_quat()

static void build_quat ( double  x,
double  y,
double  z,
double  a,
double  q[4] 
)
static

Definition at line 953 of file exporter_vrml.cpp.

Referenced by EXPORTER_PCB_VRML::ExportVrmlFootprint().

◆ compose_quat()

static void compose_quat ( double  q1[4],
double  q2[4],
double  qr[4] 
)
static

Definition at line 975 of file exporter_vrml.cpp.

Referenced by EXPORTER_PCB_VRML::ExportVrmlFootprint().

◆ from_quat()

static void from_quat ( double  q[4],
double  rot[4] 
)
static

Definition at line 965 of file exporter_vrml.cpp.

Referenced by EXPORTER_PCB_VRML::ExportVrmlFootprint().

Variable Documentation

◆ g_ColorsLoaded

bool g_ColorsLoaded = false
static

Definition at line 98 of file exporter_vrml.cpp.