KiCad PCB EDA Suite
Loading...
Searching...
No Matches
create_3Dgraphic_brd_items.cpp File Reference

This file implements the creation of 2D graphic primitives of pcb items: pads, tracks, drawsegments, texts.... More...

Go to the source code of this file.

Macros

#define TO_3DU(x)   ( ( x ) * m_biuTo3Dunits )
 
#define TO_SFVEC2F(vec)   SFVEC2F( TO_3DU( vec.x ), TO_3DU( -vec.y ) )
 

Detailed Description

This file implements the creation of 2D graphic primitives of pcb items: pads, tracks, drawsegments, texts....

It is based on the function found in the files: board_items_to_polygon_shape_transform.cpp

Definition in file create_3Dgraphic_brd_items.cpp.

Macro Definition Documentation

◆ TO_3DU

#define TO_3DU (   x)    ( ( x ) * m_biuTo3Dunits )

Definition at line 59 of file create_3Dgraphic_brd_items.cpp.

◆ TO_SFVEC2F

#define TO_SFVEC2F (   vec)    SFVEC2F( TO_3DU( vec.x ), TO_3DU( -vec.y ) )

Definition at line 61 of file create_3Dgraphic_brd_items.cpp.