KiCad PCB EDA Suite
Loading...
Searching...
No Matches
MODEL_ALIGN::REGION Struct Reference

#include <3d_model_align.h>

Public Attributes

std::vector< std::array< unsigned int, 2 > > sourceTriangles
 Mesh/triangle pairs, including reversed duplicates.
 
std::vector< glm::dvec3 > vertices
 Scaled model coordinates, millimetres.
 
std::vector< std::array< unsigned int, 3 > > triangles
 
unsigned int material = 0
 
double area = 0
 
glm::dvec3 centroid { 0.0 }
 
glm::dvec3 normal { 0.0 }
 
glm::dvec3 extents { 0.0 }
 Sorted PCA extents, largest first.
 
double normalMagnitude = 0
 
bool planar = false
 
bool twoSided = false
 

Detailed Description

Definition at line 19 of file 3d_model_align.h.

Member Data Documentation

◆ area

double MODEL_ALIGN::REGION::area = 0

Definition at line 25 of file 3d_model_align.h.

Referenced by MODEL_ALIGN::BuildRegions(), and MODEL_ALIGN::SolveAlignment().

◆ centroid

glm::dvec3 MODEL_ALIGN::REGION::centroid { 0.0 }

Definition at line 26 of file 3d_model_align.h.

Referenced by MODEL_ALIGN::SolveAlignment().

◆ extents

glm::dvec3 MODEL_ALIGN::REGION::extents { 0.0 }

Sorted PCA extents, largest first.

Definition at line 28 of file 3d_model_align.h.

Referenced by MODEL_ALIGN::SolveAlignment().

◆ material

unsigned int MODEL_ALIGN::REGION::material = 0

Definition at line 24 of file 3d_model_align.h.

Referenced by MODEL_ALIGN::BuildRegions().

◆ normal

glm::dvec3 MODEL_ALIGN::REGION::normal { 0.0 }

Definition at line 27 of file 3d_model_align.h.

Referenced by MODEL_ALIGN::SolveAlignment().

◆ normalMagnitude

double MODEL_ALIGN::REGION::normalMagnitude = 0

Definition at line 29 of file 3d_model_align.h.

Referenced by MODEL_ALIGN::SolveAlignment().

◆ planar

bool MODEL_ALIGN::REGION::planar = false

Definition at line 30 of file 3d_model_align.h.

Referenced by MODEL_ALIGN::SolveAlignment().

◆ sourceTriangles

std::vector<std::array<unsigned int, 2> > MODEL_ALIGN::REGION::sourceTriangles

Mesh/triangle pairs, including reversed duplicates.

Definition at line 21 of file 3d_model_align.h.

Referenced by MODEL_ALIGN::BuildRegions().

◆ triangles

std::vector<std::array<unsigned int, 3> > MODEL_ALIGN::REGION::triangles

◆ twoSided

bool MODEL_ALIGN::REGION::twoSided = false

Definition at line 31 of file 3d_model_align.h.

Referenced by MODEL_ALIGN::BuildRegions(), and MODEL_ALIGN::SolveAlignment().

◆ vertices

std::vector<glm::dvec3> MODEL_ALIGN::REGION::vertices

Scaled model coordinates, millimetres.

Definition at line 22 of file 3d_model_align.h.

Referenced by PANEL_PREVIEW_3D_MODEL::alignmentRegionTriangles(), MODEL_ALIGN::BuildRegions(), and MODEL_ALIGN::SolveAlignment().


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