1
/***************************************************************************
2
* Copyright (c) 2006 Werner Mayer <werner.wm.mayer@gmx.de> *
4
* This file is part of the FreeCAD CAx development system. *
6
* This library is free software; you can redistribute it and/or *
7
* modify it under the terms of the GNU Library General Public *
8
* License as published by the Free Software Foundation; either *
9
* version 2 of the License, or (at your option) any later version. *
11
* This library is distributed in the hope that it will be useful, *
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14
* GNU Library General Public License for more details. *
16
* You should have received a copy of the GNU Library General Public *
17
* License along with this library; see the file COPYING.LIB. If not, *
18
* write to the Free Software Foundation, Inc., 59 Temple Place, *
19
* Suite 330, Boston, MA 02111-1307, USA *
21
***************************************************************************/
24
#ifndef FEATURE_MESH_SOLID_H
25
#define FEATURE_MESH_SOLID_H
27
#include "MeshFeature.h"
29
#include <App/PropertyStandard.h>
30
#include <App/PropertyLinks.h>
36
* @author Werner Mayer
38
class Sphere : public Mesh::Feature
40
PROPERTY_HEADER(Mesh::Sphere);
1
/***************************************************************************
2
* Copyright (c) 2006 Werner Mayer <wmayer[at]users.sourceforge.net> *
4
* This file is part of the FreeCAD CAx development system. *
6
* This library is free software; you can redistribute it and/or *
7
* modify it under the terms of the GNU Library General Public *
8
* License as published by the Free Software Foundation; either *
9
* version 2 of the License, or (at your option) any later version. *
11
* This library is distributed in the hope that it will be useful, *
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14
* GNU Library General Public License for more details. *
16
* You should have received a copy of the GNU Library General Public *
17
* License along with this library; see the file COPYING.LIB. If not, *
18
* write to the Free Software Foundation, Inc., 59 Temple Place, *
19
* Suite 330, Boston, MA 02111-1307, USA *
21
***************************************************************************/
24
#ifndef FEATURE_MESH_SOLID_H
25
#define FEATURE_MESH_SOLID_H
27
#include "MeshFeature.h"
29
#include <App/PropertyStandard.h>
30
#include <App/PropertyLinks.h>
36
* @author Werner Mayer
38
class Sphere : public Mesh::Feature
40
PROPERTY_HEADER(Mesh::Sphere);
45
45
App::PropertyFloatConstraint Radius;
46
App::PropertyIntegerConstraint Sampling;
48
/** @name methods override Feature */
50
/// recalculate the Feature
51
App::DocumentObjectExecReturn *execute(void);
52
short mustExecute() const;
46
App::PropertyIntegerConstraint Sampling;
48
/** @name methods override Feature */
50
/// recalculate the Feature
51
App::DocumentObjectExecReturn *execute(void);
52
short mustExecute() const;
56
56
// -------------------------------------------------------------