Fix build errors on Windows, fix a couple of bugs

This commit is contained in:
wmayer 2012-06-08 18:02:35 +02:00
parent d5c7c1ea45
commit 3e5c374a9b
5 changed files with 10 additions and 5 deletions

View File

@ -272,6 +272,7 @@ template class PartExport FeaturePythonT<Part::Feature>;
}
// ----------------------------------------------------------------
#include <GProp_GProps.hxx>
#include <BRepGProp.hxx>
#include <gce_MakeLin.hxx>
@ -318,4 +319,3 @@ std::vector<Part::cutFaces> Part::findAllFacesCutBy(
return result;
}
// --------------------------------------------------------------------

View File

@ -128,6 +128,8 @@ struct cutFaces {
TopoDS_Face face;
double distsq;
};
PartExport
std::vector<cutFaces> findAllFacesCutBy(const TopoDS_Shape& shape,
const TopoDS_Shape& face, const gp_Dir& dir);

View File

@ -26,6 +26,7 @@
//# include <Bnd_Box.hxx>
//# include <gp_Pln.hxx>
# include <BRep_Builder.hxx>
# include <BRep_Tool.hxx>
# include <BRepBndLib.hxx>
# include <BRepPrimAPI_MakePrism.hxx>
# include <BRepBuilderAPI_Copy.hxx>
@ -178,7 +179,7 @@ App::DocumentObjectExecReturn *Pad::execute(void)
it_near = it;
upToFace = (std::string(Type.getValueAsString()) == "UpToLast" ? it_far->face : it_near->face);
} else {
if (FaceName.getValue() == "")
if (FaceName.isEmpty())
return new App::DocumentObjectExecReturn("Cannot extrude up to face: No face selected");
// Get active object, this is the object that the user referenced when he clicked on the face!

View File

@ -27,6 +27,7 @@
# include <gp_Dir.hxx>
# include <gp_Pln.hxx>
# include <BRep_Builder.hxx>
# include <BRep_Tool.hxx>
# include <BRepAdaptor_Surface.hxx>
# include <BRepBndLib.hxx>
# include <BRepPrimAPI_MakePrism.hxx>

View File

@ -338,10 +338,11 @@ CmdPartDesignGroove::CmdPartDesignGroove()
sAppModule = "PartDesign";
sGroup = QT_TR_NOOP("PartDesign");
sMenuText = QT_TR_NOOP("Groove");
sToolTipText = QT_TR_NOOP("Revolve a selected sketch");
sToolTipText = QT_TR_NOOP("Groove a selected sketch");
sWhatsThis = sToolTipText;
sStatusTip = sToolTipText;
sPixmap = "PartDesign_Groove";
//sPixmap = "PartDesign_Groove";
sPixmap = "PartDesign_Revolution";
}
void CmdPartDesignGroove::activated(int iMsg)