Mesher.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef MESHPART_MESHER_H
00024 #define MESHPART_MESHER_H
00025
00026 class TopoDS_Shape;
00027
00028 namespace Mesh { class MeshObject; }
00029 namespace MeshPart {
00030
00031 class Mesher
00032 {
00033 public:
00034 Mesher(const TopoDS_Shape&);
00035 ~Mesher();
00036
00037 void setMaxLength(float s)
00038 { maxLength = s; }
00039 float getMaxLength() const
00040 { return maxLength; }
00041 void setMaxArea(float s)
00042 { maxArea = s; }
00043 float getMaxArea() const
00044 { return maxArea; }
00045 void setLocalLength(float s)
00046 { localLength = s; }
00047 float getLocalLength() const
00048 { return localLength; }
00049 void setDeflection(float s)
00050 { deflection = s; }
00051 float getDeflection() const
00052 { return deflection; }
00053 void setRegular(bool s)
00054 { regular = s; }
00055 bool isRegular() const
00056 { return regular; }
00057
00058 Mesh::MeshObject* createMesh() const;
00059
00060 private:
00061 const TopoDS_Shape& shape;
00062 float maxLength;
00063 float maxArea;
00064 float localLength;
00065 float deflection;
00066 bool regular;
00067 };
00068
00069 }
00070
00071 #endif // MESHPART_MESHER_H