Assembly import script & PartDesign Solid object

This commit is contained in:
jriegel
2013-01-02 20:44:09 +01:00
committed by Stefan Tröger
parent fca3b9dffb
commit fc7db6369c
6 changed files with 157 additions and 13 deletions

View File

@@ -30,6 +30,7 @@
#include <Base/Interpreter.h>
#include "FeaturePad.h"
#include "FeatureSolid.h"
#include "FeaturePocket.h"
#include "FeatureFillet.h"
#include "FeatureSketchBased.h"
@@ -75,6 +76,7 @@ PyMODINIT_FUNC init_PartDesign()
// This function is responsible for adding inherited slots from a type's base class.
PartDesign::Feature ::init();
PartDesign::Solid ::init();
PartDesign::DressUp ::init();
PartDesign::SketchBased ::init();
PartDesign::Subtractive ::init();

View File

@@ -31,6 +31,8 @@ set(PartDesign_LIBS
SET(Features_SRCS
Feature.cpp
Feature.h
FeatureSolid.cpp
FeatureSolid.h
Body.cpp
Body.h
)

View File

@@ -0,0 +1,44 @@
/***************************************************************************
* Copyright (c) 2011 Juergen Riegel <FreeCAD@juergen-riegel.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
#endif
#include "FeatureSolid.h"
namespace PartDesign {
PROPERTY_SOURCE(PartDesign::Solid,PartDesign::Feature)
Solid::Solid()
{
}
}

View File

@@ -0,0 +1,55 @@
/***************************************************************************
* Copyright (c) 2011 Juergen Riegel <FreeCAD@juergen-riegel.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/
#ifndef PARTDESIGN_FeatureSolid_H
#define PARTDESIGN_FeatureSolid_H
#include <App/PropertyStandard.h>
#include "Feature.h"
class gp_Pnt;
/// Base class of all additive features in PartDesign
namespace PartDesign
{
/** PartDesign feature
* Base class of all PartDesign features.
* This kind of features only produce solids or fail.
*/
class PartDesignExport Solid : public Feature
{
PROPERTY_HEADER(PartDesign::FeatureSolid);
public:
Solid();
protected:
};
} //namespace PartDesign
#endif // PARTDESIGN_Feature_H