It seems like mistake. ratio renamed to width.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-07-16 19:55:37 +03:00
parent 85e90504ef
commit 968996da86
3 changed files with 5 additions and 5 deletions

View File

@ -488,7 +488,7 @@ void DRW_Vport::parseCode(int code, dxfReader *reader){
height = reader->getDouble(); height = reader->getDouble();
break; break;
case 41: case 41:
ratio = reader->getDouble(); width = reader->getDouble();
break; break;
case 42: case 42:
lensHeight = reader->getDouble(); lensHeight = reader->getDouble();

View File

@ -466,7 +466,7 @@ public:
viewDir(), viewDir(),
viewTarget(), viewTarget(),
height(), height(),
ratio(), width(),
lensHeight(), lensHeight(),
frontClip(), frontClip(),
backClip(), backClip(),
@ -492,7 +492,7 @@ public:
center.y = -0.16; center.y = -0.16;
viewDir.z = 1; viewDir.z = 1;
height = 5.13732; height = 5.13732;
ratio = 2.4426877; width = 2.4426877;
lensHeight = 50; lensHeight = 50;
frontClip = backClip = snapAngle = twistAngle = 0.0; frontClip = backClip = snapAngle = twistAngle = 0.0;
viewMode = snap = grid = snapStyle = snapIsopair = 0; viewMode = snap = grid = snapStyle = snapIsopair = 0;
@ -516,7 +516,7 @@ public:
DRW_Coord viewDir; /*!< view direction from target point, code 16, 26 & 36 */ DRW_Coord viewDir; /*!< view direction from target point, code 16, 26 & 36 */
DRW_Coord viewTarget; /*!< view target point, code 17, 27 & 37 */ DRW_Coord viewTarget; /*!< view target point, code 17, 27 & 37 */
double height; /*!< view height, code 40 */ double height; /*!< view height, code 40 */
double ratio; /*!< viewport aspect ratio, code 41 */ double width; /*!< view width, code 41 */
double lensHeight; /*!< lens height, code 42 */ double lensHeight; /*!< lens height, code 42 */
double frontClip; /*!< front clipping plane, code 43 */ double frontClip; /*!< front clipping plane, code 43 */
double backClip; /*!< back clipping plane, code 44 */ double backClip; /*!< back clipping plane, code 44 */

View File

@ -358,7 +358,7 @@ bool dxfRW::writeVport(DRW_Vport *ent){
writer->writeDouble(27, ent->viewTarget.z); writer->writeDouble(27, ent->viewTarget.z);
writer->writeDouble(37, ent->viewTarget.z); writer->writeDouble(37, ent->viewTarget.z);
writer->writeDouble(40, ent->height); writer->writeDouble(40, ent->height);
writer->writeDouble(41, ent->ratio); writer->writeDouble(41, ent->width);
writer->writeDouble(42, ent->lensHeight); writer->writeDouble(42, ent->lensHeight);
writer->writeDouble(43, ent->frontClip); writer->writeDouble(43, ent->frontClip);
writer->writeDouble(44, ent->backClip); writer->writeDouble(44, ent->backClip);