Part: Make 3rd party libraries into PCH
This commit is contained in:
committed by
abdullahtahiriyo
parent
43bdef67d6
commit
a56658489b
@@ -481,7 +481,7 @@ private:
|
||||
#else
|
||||
Part::ImportStep *pcFeature = (Part::ImportStep *)pcDoc->addObject("Part::ImportStep",file.fileNamePure().c_str());
|
||||
pcFeature->FileName.setValue(Name);
|
||||
#endif
|
||||
#endif
|
||||
pcDoc->recompute();
|
||||
}
|
||||
#if 1
|
||||
@@ -534,7 +534,7 @@ private:
|
||||
// add Import feature
|
||||
Part::ImportStep *pcFeature = (Part::ImportStep *)pcDoc->addObject("Part::ImportStep",file.fileNamePure().c_str());
|
||||
pcFeature->FileName.setValue(Name);
|
||||
#endif
|
||||
#endif
|
||||
pcDoc->recompute();
|
||||
}
|
||||
#if 1
|
||||
@@ -611,7 +611,7 @@ private:
|
||||
if (!PyArg_ParseTuple(args.ptr(), "O!|s", &(TopoShapePy::Type), &pcObj, &name))
|
||||
throw Py::Exception();
|
||||
|
||||
App::Document *pcDoc = App::GetApplication().getActiveDocument();
|
||||
App::Document *pcDoc = App::GetApplication().getActiveDocument();
|
||||
if (!pcDoc)
|
||||
pcDoc = App::GetApplication().newDocument();
|
||||
TopoShapePy* pShape = static_cast<TopoShapePy*>(pcObj);
|
||||
@@ -631,7 +631,7 @@ private:
|
||||
BRep_Builder builder;
|
||||
TopoDS_Compound Comp;
|
||||
builder.MakeCompound(Comp);
|
||||
|
||||
|
||||
try {
|
||||
Py::Sequence list(pcObj);
|
||||
for (Py::Sequence::iterator it = list.begin(); it != list.end(); ++it) {
|
||||
@@ -660,7 +660,7 @@ private:
|
||||
TopoDS_Shell shell;
|
||||
//BRepOffsetAPI_Sewing mkShell;
|
||||
builder.MakeShell(shell);
|
||||
|
||||
|
||||
try {
|
||||
Py::Sequence list(obj);
|
||||
for (Py::Sequence::iterator it = list.begin(); it != list.end(); ++it) {
|
||||
@@ -1046,7 +1046,7 @@ private:
|
||||
error = "Line through identic points";
|
||||
break;
|
||||
}
|
||||
// Error
|
||||
// Error
|
||||
if (error) {
|
||||
throw Py::Exception(PartExceptionOCCError, error);
|
||||
}
|
||||
@@ -1670,7 +1670,7 @@ private:
|
||||
}
|
||||
else {
|
||||
PyErr_Clear();
|
||||
if (PyArg_ParseTuple(args.ptr(), "Osd|d", &intext,
|
||||
if (PyArg_ParseTuple(args.ptr(), "Osd|d", &intext,
|
||||
&fontspec,
|
||||
&height,
|
||||
&track)) {
|
||||
|
||||
Reference in New Issue
Block a user