Breaks the large create_layer_items.cpp file into 2 smaller specialized files, to make changes in 3D shapes calculations more easy.
This commit is contained in:
parent
f4273b9e41
commit
5d08f1a0d9
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -562,6 +562,7 @@ void C3D_RENDER_OGL_LEGACY::reload( REPORTER *aStatusTextReporter )
|
||||||
|
|
||||||
m_triangles[layer_id] = layerTriangles;
|
m_triangles[layer_id] = layerTriangles;
|
||||||
|
|
||||||
|
// Load the 2D (X,Y axis) component of shapes
|
||||||
for( LIST_OBJECT2D::const_iterator itemOnLayer = listObject2d.begin();
|
for( LIST_OBJECT2D::const_iterator itemOnLayer = listObject2d.begin();
|
||||||
itemOnLayer != listObject2d.end();
|
itemOnLayer != listObject2d.end();
|
||||||
++itemOnLayer )
|
++itemOnLayer )
|
||||||
|
@ -608,6 +609,7 @@ void C3D_RENDER_OGL_LEGACY::reload( REPORTER *aStatusTextReporter )
|
||||||
|
|
||||||
const MAP_POLY &map_poly = m_settings.GetPolyMap();
|
const MAP_POLY &map_poly = m_settings.GetPolyMap();
|
||||||
|
|
||||||
|
// Load the vertical (Z axis) component of shapes
|
||||||
if( map_poly.find( layer_id ) != map_poly.end() )
|
if( map_poly.find( layer_id ) != map_poly.end() )
|
||||||
{
|
{
|
||||||
const SHAPE_POLY_SET *polyList = map_poly.at( layer_id );
|
const SHAPE_POLY_SET *polyList = map_poly.at( layer_id );
|
||||||
|
|
|
@ -47,6 +47,7 @@ set(3D-VIEWER_SRCS
|
||||||
../polygon/poly2tri/sweep/sweep_context.cc
|
../polygon/poly2tri/sweep/sweep_context.cc
|
||||||
3d_canvas/cinfo3d_visu.cpp
|
3d_canvas/cinfo3d_visu.cpp
|
||||||
3d_canvas/create_layer_items.cpp
|
3d_canvas/create_layer_items.cpp
|
||||||
|
3d_canvas/create_3Dgraphic_brd_items.cpp
|
||||||
3d_canvas/create_layer_poly.cpp
|
3d_canvas/create_layer_poly.cpp
|
||||||
3d_canvas/eda_3d_canvas.cpp
|
3d_canvas/eda_3d_canvas.cpp
|
||||||
3d_canvas/eda_3d_canvas_pivot.cpp
|
3d_canvas/eda_3d_canvas_pivot.cpp
|
||||||
|
|
Loading…
Reference in New Issue