~cern-kicad/kicad/kicad-pns-tom

« back to all changes in this revision

Viewing changes to 3d-viewer/info3d_visu.h

All: use CPOLYGONS_LIST, a typedef of  std::vector<CPolyPt> to handle a Corners  Polygons List. 
This is a starting point of some code enhancements relative to polygons in Pcbew and 3D viewer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
     */
124
124
    int GetLayerZcoordBIU( int aLayerId )
125
125
    {
126
 
        return KiROUND( m_LayerZcoord[aLayerId] / m_BiuTo3Dunits );
 
126
        return (int) (m_LayerZcoord[aLayerId] / m_BiuTo3Dunits );
127
127
    }
128
128
 
129
129
    /**
137
137
    int GetCopperThicknessBIU() const
138
138
    {
139
139
        return m_DrawFlags[FL_USE_COPPER_THICKNESS] ?
140
 
            KiROUND( m_CopperThickness / m_BiuTo3Dunits )
 
140
            (int) (m_CopperThickness / m_BiuTo3Dunits )
141
141
            : 0;
142
142
    }
143
143
 
147
147
     */
148
148
    int GetEpoxyThicknessBIU() const
149
149
    {
150
 
        return KiROUND( m_EpoxyThickness / m_BiuTo3Dunits );
 
150
        return (int) (m_EpoxyThickness / m_BiuTo3Dunits );
151
151
    }
152
152
 
153
153
    /**
160
160
    int GetNonCopperLayerThicknessBIU() const
161
161
    {
162
162
        return  m_DrawFlags[FL_USE_COPPER_THICKNESS] ?
163
 
            KiROUND( m_NonCopperLayerThickness / m_BiuTo3Dunits )
 
163
            (int) (m_NonCopperLayerThickness / m_BiuTo3Dunits )
164
164
            : 0;
165
165
    }
166
166