Source typos fixes

This commit is contained in:
luz.paz
2018-05-04 10:31:47 -04:00
committed by Yorik van Havre
parent b36816f4bb
commit 68c4b22315
8 changed files with 16 additions and 16 deletions

View File

@@ -103,7 +103,7 @@ public:
// Returned default bounding box if relevant is can't be used for some reason
static SbBox3f defaultBoundBox ();
// Returns a default marging factor (part of size )
// Returns a default margin factor (part of size )
static double marginFactor () { return 0.1; };
protected:

View File

@@ -85,10 +85,10 @@ void ViewProviderDatumLine::setExtents (Base::BoundBox3d bbox) {
// Add origin of the line to the box if it's not
bbox.Add ( Base::Vector3d (0, 0, 0) );
double marging = bbox.LengthZ () * marginFactor ();
double margin = bbox.LengthZ () * marginFactor ();
// Display the line
pCoords->point.setNum (2);
pCoords->point.set1Value(0, 0, 0, bbox.MaxZ + marging );
pCoords->point.set1Value(1, 0, 0, bbox.MinZ - marging );
pCoords->point.set1Value(0, 0, 0, bbox.MaxZ + margin );
pCoords->point.set1Value(1, 0, 0, bbox.MinZ - margin );
}

View File

@@ -107,14 +107,14 @@ void ViewProviderDatumPlane::setExtents (Base::BoundBox3d bbox) {
// Add origin of the plane to the box if it's not
bbox.Add ( Base::Vector3d (0, 0, 0) );
double marging = sqrt(bbox.LengthX ()*bbox.LengthY ()) * marginFactor ();
double margin = sqrt(bbox.LengthX ()*bbox.LengthY ()) * marginFactor ();
// Change the coordinates of the line
pCoords->point.setNum (4);
pCoords->point.set1Value(0, bbox.MaxX + marging, bbox.MaxY + marging, 0 );
pCoords->point.set1Value(1, bbox.MinX - marging, bbox.MaxY + marging, 0 );
pCoords->point.set1Value(2, bbox.MinX - marging, bbox.MinY - marging, 0 );
pCoords->point.set1Value(3, bbox.MaxX + marging, bbox.MinY - marging, 0 );
pCoords->point.set1Value(0, bbox.MaxX + margin, bbox.MaxY + margin, 0 );
pCoords->point.set1Value(1, bbox.MinX - margin, bbox.MaxY + margin, 0 );
pCoords->point.set1Value(2, bbox.MinX - margin, bbox.MinY - margin, 0 );
pCoords->point.set1Value(3, bbox.MaxX + margin, bbox.MinY - margin, 0 );
}