[Igarden-commit] Garden/source/LayoutDB SimplePath.cpp, 1.17, 1.17.2.1
Status: Beta
Brought to you by:
jlbedell
|
From: Jeffrey B. <jlb...@us...> - 2006-11-02 23:27:03
|
Update of /cvsroot/igarden/Garden/source/LayoutDB In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv20620 Modified Files: Tag: Release_branch_v1 SimplePath.cpp Log Message: Add z-axis Index: SimplePath.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/LayoutDB/SimplePath.cpp,v retrieving revision 1.17 retrieving revision 1.17.2.1 diff -C2 -d -r1.17 -r1.17.2.1 *** SimplePath.cpp 31 Oct 2005 02:50:20 -0000 1.17 --- SimplePath.cpp 2 Nov 2006 23:26:59 -0000 1.17.2.1 *************** *** 306,309 **** --- 306,310 ---- _anchorPoints[n].xOffset += offset.xOffset; _anchorPoints[n].yOffset += offset.yOffset; + _anchorPoints[n].zOffset += offset.zOffset; } } *************** *** 334,338 **** for(n = 0; n < count; n++) { ! stream->Read(sizeof(aPoint), &aPoint); AddAnchorPoint(aPoint); } --- 335,340 ---- for(n = 0; n < count; n++) { ! stream->Read(sizeof(double)*2, &aPoint); ! aPoint.zOffset = 0.0; AddAnchorPoint(aPoint); } *************** *** 341,345 **** for(n = 0; n < count; n++) { ! stream->Read(sizeof(aPoint), &aPoint); AddFixedItemPoint(aPoint); } --- 343,348 ---- for(n = 0; n < count; n++) { ! stream->Read(sizeof(double)*2, &aPoint); ! aPoint.zOffset = 0.0; AddFixedItemPoint(aPoint); } *************** *** 348,352 **** for(n = 0; n < count; n++) { ! stream->Read(sizeof(aPoint), &aPoint); AddElementPoint(aPoint); } --- 351,356 ---- for(n = 0; n < count; n++) { ! stream->Read(sizeof(double)*2, &aPoint); ! aPoint.zOffset = 0.0; AddElementPoint(aPoint); } *************** *** 832,838 **** --- 836,844 ---- destPoint.xOffset = pt.xOffset + deltaX; destPoint.yOffset = pt.yOffset + deltaY; + destPoint.zOffset = pt.zOffset; leftPoints->push_back(destPoint); destPoint.xOffset = pt.xOffset - deltaX; destPoint.yOffset = pt.yOffset - deltaY; + destPoint.zOffset = pt.zOffset; rightPoints->push_back(destPoint); } |