Part: fix typos in source function names and variables

Found via `codespell`
This commit is contained in:
luz paz
2020-08-16 07:01:13 -04:00
committed by wwmayer
parent f56825c79f
commit 71cf0e64f3
2 changed files with 7 additions and 7 deletions

View File

@@ -367,7 +367,7 @@ void PartGui::DlgProjectionOnSurface::store_current_selected_parts(std::vector<S
std::string parentName = aPart->getNameInDocument();
auto currentShape = aPart->Shape.getShape().getSubShape(itName->c_str());
transform_shape_to_global_postion(currentShape, aPart);
transform_shape_to_global_position(currentShape, aPart);
currentShapeStore.inputShape = currentShape;
currentShapeStore.partName = *itName;
@@ -378,7 +378,7 @@ void PartGui::DlgProjectionOnSurface::store_current_selected_parts(std::vector<S
}
else
{
transform_shape_to_global_postion(currentShapeStore.inputShape,currentShapeStore.partFeature);
transform_shape_to_global_position(currentShapeStore.inputShape,currentShapeStore.partFeature);
auto store = store_part_in_vector(currentShapeStore, iStoreVec);
higlight_object(aPart, aPart->Shape.getName(), store, iColor);
}
@@ -918,12 +918,12 @@ void PartGui::DlgProjectionOnSurface::set_xyz_dir_spinbox(QDoubleSpinBox* icurre
icurrentSpinBox->setValue(newVal);
}
void PartGui::DlgProjectionOnSurface::transform_shape_to_global_postion(TopoDS_Shape& ioShape, Part::Feature* iPart)
void PartGui::DlgProjectionOnSurface::transform_shape_to_global_position(TopoDS_Shape& ioShape, Part::Feature* iPart)
{
auto currentPos = iPart->Placement.getValue().getPosition();
auto currentRotation = iPart->Placement.getValue().getRotation();
auto globalPlacement = iPart->globalPlacement();
auto globalPostion = globalPlacement.getPosition();
auto globalPosition = globalPlacement.getPosition();
auto globalRotation = globalPlacement.getRotation();
if (currentRotation != globalRotation)
@@ -939,10 +939,10 @@ void PartGui::DlgProjectionOnSurface::transform_shape_to_global_postion(TopoDS_S
ioShape = BRepBuilderAPI_Transform(ioShape, aAngleTransform, true).Shape();
}
if (currentPos != globalPostion)
if (currentPos != globalPosition)
{
gp_Trsf aPosTransform;
aPosTransform.SetTranslation(gp_Pnt(currentPos.x, currentPos.y, currentPos.z), gp_Pnt(globalPostion.x, globalPostion.y, globalPostion.z));
aPosTransform.SetTranslation(gp_Pnt(currentPos.x, currentPos.y, currentPos.z), gp_Pnt(globalPosition.x, globalPosition.y, globalPosition.z));
ioShape = BRepBuilderAPI_Transform(ioShape, aPosTransform, true).Shape();
}
}

View File

@@ -116,7 +116,7 @@ private:
void create_face_extrude(std::vector<SShapeStore>& iCurrentShape);
void store_wire_in_vector(const SShapeStore& iCurrentShape, const TopoDS_Shape& iParentShape, std::vector<SShapeStore>& iStoreVec, const unsigned int iColor);
void set_xyz_dir_spinbox(QDoubleSpinBox* icurrentSpinBox);
void transform_shape_to_global_postion(TopoDS_Shape& ioShape, Part::Feature* iPart);
void transform_shape_to_global_position(TopoDS_Shape& ioShape, Part::Feature* iPart);
private:
/** Checks if the given document is about to be closed */