+ rename methods in Vector3 class
+ add convenience methods Cross and Dot to Vector3 class + fix bug in DistanceToLineSegment in Vector3 class
This commit is contained in:
@@ -164,7 +164,7 @@ App::DocumentObjectExecReturn *DrawViewSection::execute(void)
|
||||
// Project each bounding box point onto projection plane and find larges u,v values
|
||||
|
||||
Base::Vector3d pnt = (*it);
|
||||
pnt.ProjToPlane(plnPnt, plnNorm);
|
||||
pnt.ProjectToPlane(plnPnt, plnNorm);
|
||||
|
||||
uMax = std::max(uMax, std::abs(plnPnt[0] - pnt[0]));
|
||||
vMax = std::max(vMax, std::abs(plnPnt[1] - pnt[1]));
|
||||
|
||||
@@ -1190,8 +1190,8 @@ void QGIViewDimension::draw()
|
||||
|
||||
Base::Vector3d avg = (norm1 + norm2) / 2.;
|
||||
|
||||
norm1 = norm1.ProjToLine(avg, norm1);
|
||||
norm2 = norm2.ProjToLine(avg, norm2);
|
||||
norm1 = norm1.ProjectToLine(avg, norm1);
|
||||
norm2 = norm2.ProjectToLine(avg, norm2);
|
||||
|
||||
ar1->setPos(ar1Pos.x,ar1Pos.y );
|
||||
ar2->setPos(ar2Pos.x,ar2Pos.y );
|
||||
|
||||
Reference in New Issue
Block a user