Changeset 76cf7f1 in git for src/model.cc


Ignore:
Timestamp:
04/09/19 02:27:11 (7 weeks ago)
Author:
Olly Betts <olly@…>
Branches:
master
Children:
7061908
Parents:
6363690
Message:

Fix rotated exports

When exporting to a format where we support rotation in the horizontal
plane (such as SVG), the rotation was incorrectly applied to cross
section data (except for the default rotation of zero).

Fixes #108, reported by Richard Knapp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/model.cc

    r6363690 r76cf7f1  
    55//
    66//  Copyright (C) 2000-2002,2005,2006 Mark R. Shinwell
    7 //  Copyright (C) 2001-2003,2004,2005,2006,2010,2011,2012,2013,2014,2015,2016,2018 Olly Betts
     7//  Copyright (C) 2001-2003,2004,2005,2006,2010,2011,2012,2013,2014,2015,2016,2018,2019 Olly Betts
    88//  Copyright (C) 2005 Martin Green
    99//
     
    651651            (void)cover_end;
    652652
    653             pt_v.set_right_bearing(deg(atan2(right.GetY(), right.GetX())));
     653            pt_v.set_right_bearing(deg(atan2(right.GetX(), right.GetY())));
    654654
    655655            ++segment;
Note: See TracChangeset for help on using the changeset viewer.