Skip to content

Commit

Permalink
Merge pull request #135 from blobfish/rebaseMaster
Browse files Browse the repository at this point in the history
PartDesignNext rebased on master
  • Loading branch information
wwmayer committed Apr 13, 2016
2 parents 07e9c5c + 483e64f commit 081b86c
Show file tree
Hide file tree
Showing 648 changed files with 94,743 additions and 7,412 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -62,7 +62,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGXX)
include(cMake/ConfigureChecks.cmake)
configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
add_definitions(-DHAVE_CONFIG_H)
set(CMAKE_CXX_FLAGS "-Wall -Wno-deprecated -Wno-write-strings ${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "-Wall -Wno-deprecated -Wno-write-strings -std=c++11 ${CMAKE_CXX_FLAGS}")
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
# get linker errors as soon as possible and not at runtime e.g. for modules
if(UNIX)
Expand Down
3 changes: 3 additions & 0 deletions FCMasterMerge.kdev4
@@ -0,0 +1,3 @@
[Project]
Manager=KDevCMakeManager
Name=FCMasterMerge
Binary file added data/tests/Jt/Engine/2_Cylinder_Engine.jt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
403 changes: 403 additions & 0 deletions data/tests/Jt/Engine/2_Cylinder_Engine1_Internals.plmxml

Large diffs are not rendered by default.

161 changes: 161 additions & 0 deletions data/tests/Jt/Engine/2_Cylinder_Engine2_Externals.plmxml

Large diffs are not rendered by default.

511 changes: 511 additions & 0 deletions data/tests/Jt/Engine/2_Cylinder_Engine3.plmxml

Large diffs are not rendered by default.

511 changes: 511 additions & 0 deletions data/tests/Jt/Engine/2_Cylinder_Engine3.xml

Large diffs are not rendered by default.

511 changes: 511 additions & 0 deletions data/tests/Jt/Engine/2_Cylinder_Engine3_Exploded.plmxml

Large diffs are not rendered by default.

Binary file modified data/tests/PadTest.fcstd
Binary file not shown.
Binary file modified data/tests/PocketTest.fcstd
Binary file not shown.
1,519 changes: 1,519 additions & 0 deletions data/tests/Step/as1-ac-214_small.stp

Large diffs are not rendered by default.

Expand Up @@ -157,6 +157,9 @@ Driver_Mesh::Status DriverSTL_R_SMDS_Mesh::Perform()

// static methods

#pragma warning(push)
#pragma warning(disable : 4805)

static Standard_Real readFloat(OSD_File& theFile)
{
union {
Expand All @@ -176,6 +179,7 @@ static Standard_Real readFloat(OSD_File& theFile)

return u.f;
}
#pragma warning(pop)

static SMDS_MeshNode* addNode(const gp_Pnt& P,
DriverSTL_DataMapOfPntNodePtr& uniqnodes,
Expand Down
15 changes: 13 additions & 2 deletions src/App/Application.cpp
Expand Up @@ -94,7 +94,11 @@
#include "Annotation.h"
#include "MeasureDistance.h"
#include "Placement.h"
#include "Plane.h"
#include "GeoFeatureGroup.h"
#include "OriginGroup.h"
#include "Part.h"
#include "OriginFeature.h"
#include "Origin.h"
#include "MaterialObject.h"
#include "Expression.h"

Expand Down Expand Up @@ -1128,7 +1132,14 @@ void Application::initTypes(void)
App ::MaterialObject ::init();
App ::MaterialObjectPython ::init();
App ::Placement ::init();
App ::OriginFeature ::init();
App ::Plane ::init();
App ::Line ::init();
App ::GeoFeatureGroup ::init();
App ::GeoFeatureGroupPython ::init();
App ::OriginGroup ::init();
App ::Part ::init();
App ::Origin ::init();

// Expression classes
App ::Expression ::init();
Expand Down Expand Up @@ -1334,7 +1345,7 @@ void Application::processFiles(const std::list<std::string>& files)
Base::Interpreter().runFile(file.filePath().c_str(), true);
}
else if (file.hasExtension("py")) {
try {
try{
Base::Interpreter().loadModule(file.fileNamePure().c_str());
}
catch(const PyException&) {
Expand Down
27 changes: 25 additions & 2 deletions src/App/CMakeLists.txt
Expand Up @@ -33,6 +33,11 @@ set(FreeCADApp_LIBS
generate_from_xml(DocumentPy)
generate_from_xml(DocumentObjectPy)
generate_from_xml(DocumentObjectGroupPy)
generate_from_xml(GeoFeaturePy)
generate_from_xml(GeoFeatureGroupPy)
generate_from_xml(OriginGroupPy)
generate_from_xml(PartPy)

generate_from_xml(ComplexGeoDataPy)
generate_from_xml(PropertyContainerPy)
generate_from_xml(MaterialPy)
Expand All @@ -43,6 +48,10 @@ generate_from_py(FreeCADTest TestScript.h)
SET(FreeCADApp_XML_SRCS
DocumentObjectGroupPy.xml
DocumentObjectPy.xml
GeoFeaturePy.xml
GeoFeatureGroupPy.xml
OriginGroupPy.xml
PartPy.xml
DocumentPy.xml
PropertyContainerPy.xml
ComplexGeoDataPy.xml
Expand All @@ -58,6 +67,7 @@ SET(Document_CPP_SRCS
DocumentObjectFileIncluded.cpp
DocumentObjectGroup.cpp
DocumentObjectGroupPyImp.cpp
GeoFeaturePyImp.cpp
DocumentObjectPyImp.cpp
DocumentObserver.cpp
DocumentObserverPython.cpp
Expand All @@ -66,10 +76,18 @@ SET(Document_CPP_SRCS
FeaturePython.cpp
FeatureTest.cpp
GeoFeature.cpp
GeoFeatureGroupPyImp.cpp
GeoFeatureGroup.cpp
OriginGroupPyImp.cpp
OriginGroup.cpp
PartPyImp.cpp
Part.cpp
Origin.cpp
Path.cpp
InventorObject.cpp
MeasureDistance.cpp
Placement.cpp
Plane.cpp
OriginFeature.cpp
Range.cpp
Transactions.cpp
VRMLObject.cpp
Expand All @@ -93,10 +111,15 @@ SET(Document_HPP_SRCS
FeaturePythonPyImp.inl
FeatureTest.h
GeoFeature.h
GeoFeatureGroup.h
OriginGroup.h
Part.h
Origin.h
Path.h
InventorObject.h
MeasureDistance.h
Placement.h
Plane.h
OriginFeature.h
Range.h
Transactions.h
VRMLObject.h
Expand Down

0 comments on commit 081b86c

Please sign in to comment.