Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Releases/free cad 0 15 #87

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
project(FreeCAD_trunk)
set(FREECAD_VERSION "0.14")
set(FREECAD_VERSION "0.15")

set(PACKAGE_NAME "FreeCAD")
set(PACKAGE_VERSION_MAJOR "0")
set(PACKAGE_VERSION_MINOR "14")
set(PACKAGE_VERSION_PATCH "3700")
set(PACKAGE_VERSION_MINOR "15")
set(PACKAGE_VERSION_PATCH "4664")
set(PACKAGE_VERSION "${PACKAGE_VERSION_MAJOR}.${PACKAGE_VERSION_MINOR}.${PACKAGE_VERSION_PATCH}")
set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")

Expand Down
5 changes: 2 additions & 3 deletions src/Gui/GuiApplicationNativeEventAware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,8 @@ void Gui::GUIApplicationNativeEventAware::initSpaceball(QMainWindow *window)

bool Gui::GUIApplicationNativeEventAware::processSpaceballEvent(QObject *object, QEvent *event)
{
// Maybe this causes the regression reported in #0001970. So to test it it will be commented out for now
//if (!activeWindow())
// return true;
if (!activeWindow())
return true;

QApplication::notify(object, event);
if (event->type() == Spaceball::MotionEvent::MotionEventType)
Expand Down
2 changes: 2 additions & 0 deletions src/Main/MainGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,12 @@ int main( int argc, char ** argv )
QFile::setDecodingFunction(myDecoderFunc);
// Make sure that we use '.' as decimal point. See also
// http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559846
putenv("LC_ALL=");
putenv("LC_NUMERIC=C");
putenv("PYTHONPATH=");
#elif defined(FC_OS_MACOSX)
(void)QLocale::system();
putenv("LC_ALL=");
putenv("LC_NUMERIC=C");
putenv("PYTHONPATH=");
#else
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Fem/MechanicalAnalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ def __init__(self,object):
# the categories are shown only if they are not empty.
self.form=FreeCADGui.PySideUic.loadUi(FreeCAD.getHomePath() + "Mod/Fem/MechanicalAnalysis.ui")
from platform import system
if system == 'Linux':
if system() == 'Linux':
self.CalculixBinary = 'ccx'
elif system == 'Windows':
elif system() == 'Windows':
self.CalculixBinary = FreeCAD.getHomePath() + 'bin/ccx.exe'
else:
self.CalculixBinary = 'ccx'
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Fem/MechanicalMaterial.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def chooseMat(self,index):
def fillMaterialCombo(self):
import glob,os
matmap = self.obj.Material
dirname = FreeCAD.ConfigGet("AppHomePath")+"data/Mod/Material/StandardMaterial"
dirname = FreeCAD.getResourceDir()+"/Mod/Material/StandardMaterial"
self.pathList = glob.glob(dirname + '/*.FCMat')
self.form.comboBox_MaterialsInDir.clear()
'''if(matmap.has_key('General_name')):
Expand Down
19 changes: 19 additions & 0 deletions src/Mod/Part/App/modelRefine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
#include <BRepAdaptor_Curve.hxx>
#include <TColgp_SequenceOfPnt.hxx>
#include <GeomAPI_ProjectPointOnSurf.hxx>
#include <Base/Console.h>
#include "modelRefine.h"

using namespace ModelRefine;
Expand Down Expand Up @@ -767,6 +768,8 @@ FaceTypedBSpline::FaceTypedBSpline() : FaceTypedBase(GeomAbs_BSplineSurface)

bool FaceTypedBSpline::isEqual(const TopoDS_Face &faceOne, const TopoDS_Face &faceTwo) const
{
try
{
Handle(Geom_BSplineSurface) surfaceOne = Handle(Geom_BSplineSurface)::DownCast(BRep_Tool::Surface(faceOne));
Handle(Geom_BSplineSurface) surfaceTwo = Handle(Geom_BSplineSurface)::DownCast(BRep_Tool::Surface(faceTwo));

Expand Down Expand Up @@ -849,6 +852,22 @@ bool FaceTypedBSpline::isEqual(const TopoDS_Face &faceOne, const TopoDS_Face &fa
if (vKnotSequenceOne.Value(indexV) != vKnotSequenceTwo.Value(indexV))
return false;
return true;
}
catch (Standard_Failure)
{
Handle(Standard_Failure) e = Standard_Failure::Caught();
std::ostringstream stream;
stream << "FaceTypedBSpline::isEqual: OCC Error: " << e->GetMessageString() << std::endl;
Base::Console().Message(stream.str().c_str());
}
catch (...)
{
std::ostringstream stream;
stream << "FaceTypedBSpline::isEqual: Unknown Error" << std::endl;
Base::Console().Message(stream.str().c_str());
}

return false;
}

GeomAbs_SurfaceType FaceTypedBSpline::getType() const
Expand Down
2 changes: 1 addition & 1 deletion src/Tools/makedist.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def main():
revision='%04d' % (info.count('\n'))

PACKAGE_NAME = 'freecad'
version = "0.14.%s" % (revision)
version = "0.15.%s" % (revision)

DIRNAME = "%(p)s-%(v)s" % {'p': PACKAGE_NAME, 'v': version}
TARNAME = DIRNAME + '.tar'
Expand Down