Source typos fixes
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
@@ -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 );
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user