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
665f346a
Commit
665f346a
authored
Apr 27, 2015
by
unknown
Committed by
jean-pierre charras
Apr 27, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Arcs in modules and board were rendered incorrectly on vrml export (bug 1448192).
parent
3b9ebd22
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
export_vrml.cpp
pcbnew/exporters/export_vrml.cpp
+5
-5
No files found.
pcbnew/exporters/export_vrml.cpp
View file @
665f346a
...
...
@@ -569,7 +569,7 @@ static void export_vrml_arc( MODEL_VRML& aModel, LAYER_NUM layer,
centery
=
-
centery
;
arc_starty
=
-
arc_starty
;
if
(
!
vlayer
->
AddArc
(
centerx
,
centery
,
arc_startx
,
arc_starty
,
width
,
arc_angle
,
false
)
)
if
(
!
vlayer
->
AddArc
(
centerx
,
centery
,
arc_startx
,
arc_starty
,
width
,
-
arc_angle
,
false
)
)
throw
(
std
::
runtime_error
(
vlayer
->
GetError
()
)
);
}
...
...
@@ -592,10 +592,10 @@ static void export_vrml_drawsegment( MODEL_VRML& aModel, DRAWSEGMENT* drawseg )
{
case
S_ARC
:
export_vrml_arc
(
aModel
,
layer
,
(
double
)
drawseg
->
GetCenter
().
x
,
(
double
)
drawseg
->
GetCenter
().
y
,
(
double
)
drawseg
->
GetArcStart
().
x
,
(
double
)
drawseg
->
GetArcStart
().
y
,
(
double
)
drawseg
->
GetCenter
().
x
*
aModel
.
scale
,
(
double
)
drawseg
->
GetCenter
().
y
*
aModel
.
scale
,
(
double
)
drawseg
->
GetArcStart
().
x
*
aModel
.
scale
,
(
double
)
drawseg
->
GetArcStart
().
y
*
aModel
.
scale
,
w
,
drawseg
->
GetAngle
()
/
10
);
break
;
...
...
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