#14 Allow length scaling of axes in unitcell mode

closed
nobody
None
5
2008-08-14
2007-08-03
pim
No

The setScale function implies that the axes protrude in 6 directions, and scales on all 6 end points. This works for molecular and window axes but not for the unitcell axes, therefore initShape returns in the unitcell case before setScale is called.

Putting unitcell scaling in setScale would require the conversion of lattice vertices to points, etc., and add unnecessary complication. Instead, a few lines are added to the unitcell part of initShape to do the scaling on the three crystal axes.

+ for (int i = 3; --i >= 0;) {
+ axisPoints[i].x *= viewer.getAxesScale()/2.0;
+ axisPoints[i].y *= viewer.getAxesScale()/2.0;
+ axisPoints[i].z *= viewer.getAxesScale()/2.0;
+ }

Discussion

  • pim

    pim - 2007-08-03

    scale unitcell axes patch

     
  • Bob Hanson

    Bob Hanson - 2008-08-14
    • status: open --> closed
     
  • Bob Hanson

    Bob Hanson - 2008-08-14

    Logged In: YES
    user_id=1082841
    Originator: NO

    implemented

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks