Arcs in modules and board were rendered incorrectly on vrml export (bug 1448192).
This commit is contained in:
parent
3b9ebd2270
commit
665f346a03
|
@ -569,7 +569,7 @@ static void export_vrml_arc( MODEL_VRML& aModel, LAYER_NUM layer,
|
||||||
centery = -centery;
|
centery = -centery;
|
||||||
arc_starty = -arc_starty;
|
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() ) );
|
throw( std::runtime_error( vlayer->GetError() ) );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -592,10 +592,10 @@ static void export_vrml_drawsegment( MODEL_VRML& aModel, DRAWSEGMENT* drawseg )
|
||||||
{
|
{
|
||||||
case S_ARC:
|
case S_ARC:
|
||||||
export_vrml_arc( aModel, layer,
|
export_vrml_arc( aModel, layer,
|
||||||
(double) drawseg->GetCenter().x,
|
(double) drawseg->GetCenter().x * aModel.scale,
|
||||||
(double) drawseg->GetCenter().y,
|
(double) drawseg->GetCenter().y * aModel.scale,
|
||||||
(double) drawseg->GetArcStart().x,
|
(double) drawseg->GetArcStart().x * aModel.scale,
|
||||||
(double) drawseg->GetArcStart().y,
|
(double) drawseg->GetArcStart().y * aModel.scale,
|
||||||
w, drawseg->GetAngle() / 10 );
|
w, drawseg->GetAngle() / 10 );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue