Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
8306f4c6
Commit
8306f4c6
authored
Mar 08, 2013
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: fix bug in export vrml (bad Z position of 3D shapes). Very minor code cleaning.
parent
2ab86e74
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
10 deletions
+17
-10
build_version.cpp
common/build_version.cpp
+2
-2
wxPcbStruct.h
include/wxPcbStruct.h
+8
-1
install.nsi
packaging/windows/nsis/install.nsi
+2
-2
clean.cpp
pcbnew/clean.cpp
+2
-2
edit.cpp
pcbnew/edit.cpp
+1
-1
export_vrml.cpp
pcbnew/export_vrml.cpp
+2
-2
No files found.
common/build_version.cpp
View file @
8306f4c6
...
@@ -7,9 +7,9 @@
...
@@ -7,9 +7,9 @@
#ifndef KICAD_BUILD_VERSION
#ifndef KICAD_BUILD_VERSION
#if defined KICAD_GOST
#if defined KICAD_GOST
# define KICAD_BUILD_VERSION "(2013-mar-0
4
GOST)"
# define KICAD_BUILD_VERSION "(2013-mar-0
8
GOST)"
#else
#else
# define KICAD_BUILD_VERSION "(2013-mar-0
4
)"
# define KICAD_BUILD_VERSION "(2013-mar-0
8
)"
#endif
#endif
#endif
#endif
...
...
include/wxPcbStruct.h
View file @
8306f4c6
...
@@ -1544,7 +1544,14 @@ public:
...
@@ -1544,7 +1544,14 @@ public:
*/
*/
void
Show_1_Ratsnest
(
EDA_ITEM
*
item
,
wxDC
*
DC
);
void
Show_1_Ratsnest
(
EDA_ITEM
*
item
,
wxDC
*
DC
);
void
Clean_Pcb
(
wxDC
*
DC
);
/**
* Function Clean_Pcb
* Clean up the board (remove redundant vias, not connected tracks
* and merges collinear track segments)
* Install the cleanup dialog frame to know what should be cleaned
* and run the cleanup function
*/
void
Clean_Pcb
();
void
InstallFindFrame
();
void
InstallFindFrame
();
...
...
packaging/windows/nsis/install.nsi
View file @
8306f4c6
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
; General Product Description Definitions
; General Product Description Definitions
!define PRODUCT_NAME "KiCad"
!define PRODUCT_NAME "KiCad"
!define PRODUCT_VERSION "2013.03.0
6
"
!define PRODUCT_VERSION "2013.03.0
8
"
!define PRODUCT_WEB_SITE "http://iut-tice.ujf-grenoble.fr/kicad/"
!define PRODUCT_WEB_SITE "http://iut-tice.ujf-grenoble.fr/kicad/"
!define SOURCEFORGE_WEB_SITE "http://kicad.sourceforge.net/"
!define SOURCEFORGE_WEB_SITE "http://kicad.sourceforge.net/"
!define COMPANY_NAME ""
!define COMPANY_NAME ""
...
@@ -36,7 +36,7 @@ SetCompressor /final /solid lzma
...
@@ -36,7 +36,7 @@ SetCompressor /final /solid lzma
CRCCheck force
CRCCheck force
XPStyle on
XPStyle on
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "${PRODUCT_NAME}_stable-${PRODUCT_VERSION}-BZR398
6
_Win_full_version.exe"
OutFile "${PRODUCT_NAME}_stable-${PRODUCT_VERSION}-BZR398
9
_Win_full_version.exe"
InstallDir "$PROGRAMFILES\KiCad"
InstallDir "$PROGRAMFILES\KiCad"
ShowInstDetails hide
ShowInstDetails hide
ShowUnInstDetails hide
ShowUnInstDetails hide
...
...
pcbnew/clean.cpp
View file @
8306f4c6
...
@@ -106,9 +106,9 @@ private:
...
@@ -106,9 +106,9 @@ private:
TRACK
*
aCandidate
,
int
aEndType
);
TRACK
*
aCandidate
,
int
aEndType
);
};
};
/* Install the
track operation dialog frame
/* Install the
cleanup dialog frame to know what should be cleaned
*/
*/
void
PCB_EDIT_FRAME
::
Clean_Pcb
(
wxDC
*
DC
)
void
PCB_EDIT_FRAME
::
Clean_Pcb
()
{
{
DIALOG_CLEANING_OPTIONS
dlg
(
this
);
DIALOG_CLEANING_OPTIONS
dlg
(
this
);
...
...
pcbnew/edit.cpp
View file @
8306f4c6
...
@@ -1120,7 +1120,7 @@ void PCB_EDIT_FRAME::Process_Special_Functions( wxCommandEvent& event )
...
@@ -1120,7 +1120,7 @@ void PCB_EDIT_FRAME::Process_Special_Functions( wxCommandEvent& event )
break
;
break
;
case
ID_MENU_PCB_CLEAN
:
case
ID_MENU_PCB_CLEAN
:
Clean_Pcb
(
&
dc
);
Clean_Pcb
();
break
;
break
;
case
ID_MENU_PCB_SWAP_LAYERS
:
case
ID_MENU_PCB_SWAP_LAYERS
:
...
...
pcbnew/export_vrml.cpp
View file @
8306f4c6
...
@@ -347,7 +347,7 @@ static void compute_layer_Zs( BOARD* pcb ) //{{{
...
@@ -347,7 +347,7 @@ static void compute_layer_Zs( BOARD* pcb ) //{{{
/* To avoid rounding interference, we apply an epsilon to each
/* To avoid rounding interference, we apply an epsilon to each
* successive layer */
* successive layer */
const
double
epsilon_z
=
1
*
IU_PER_MILS
;
// That's 1 mils, about
1/50 mm
const
double
epsilon_z
=
0.02
*
IU_PER_MM
;
// That's
1/50 mm
layer_z
[
SOLDERPASTE_N_BACK
]
=
-
half_thickness
-
epsilon_z
*
4
;
layer_z
[
SOLDERPASTE_N_BACK
]
=
-
half_thickness
-
epsilon_z
*
4
;
layer_z
[
ADHESIVE_N_BACK
]
=
-
half_thickness
-
epsilon_z
*
3
;
layer_z
[
ADHESIVE_N_BACK
]
=
-
half_thickness
-
epsilon_z
*
3
;
layer_z
[
SILKSCREEN_N_BACK
]
=
-
half_thickness
-
epsilon_z
*
2
;
layer_z
[
SILKSCREEN_N_BACK
]
=
-
half_thickness
-
epsilon_z
*
2
;
...
@@ -1127,7 +1127,7 @@ static void export_vrml_module( BOARD* aPcb, MODULE* aModule,
...
@@ -1127,7 +1127,7 @@ static void export_vrml_module( BOARD* aPcb, MODULE* aModule,
fprintf
(
aOutputFile
,
" translation %g %g %g
\n
"
,
fprintf
(
aOutputFile
,
" translation %g %g %g
\n
"
,
(
offsetx
+
aModule
->
m_Pos
.
x
)
*
boardIU2WRML
,
(
offsetx
+
aModule
->
m_Pos
.
x
)
*
boardIU2WRML
,
-
(
offsety
+
aModule
->
m_Pos
.
y
)
*
boardIU2WRML
,
// Y axis is reversed in Pcbnew
-
(
offsety
+
aModule
->
m_Pos
.
y
)
*
boardIU2WRML
,
// Y axis is reversed in Pcbnew
offsetz
+
layer_z
[
aModule
->
GetLayer
()]
*
boardIU2WRML
);
(
offsetz
+
layer_z
[
aModule
->
GetLayer
()])
*
boardIU2WRML
);
fprintf
(
aOutputFile
,
" scale %g %g %g
\n
"
,
fprintf
(
aOutputFile
,
" scale %g %g %g
\n
"
,
vrmlm
->
m_MatScale
.
x
*
aVRMLModelsToBiu
,
vrmlm
->
m_MatScale
.
x
*
aVRMLModelsToBiu
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment