27 #ifndef _SMESH_CartesianParameters3D_HXX_
28 #define _SMESH_CartesianParameters3D_HXX_
33 #include "Utils_SALOME_Exception.hxx"
57 void SetGrid(std::vector<double>& xNodes,
int axis);
61 void GetGrid(std::vector<double>& xNodes,
int axis)
const;
71 void SetGridSpacing(std::vector<std::string>& spaceFunctions,
72 std::vector<double>& internalPoints,
75 void GetGridSpacing(std::vector<std::string>& spaceFunctions,
76 std::vector<double>& internalPoints,
77 const int axis)
const;
79 bool IsGridBySpacing(
const int axis)
const;
85 void SetFixedPoint(
const double p[3],
bool toUnset);
86 bool GetFixedPoint(
double p[3])
const;
96 static void ComputeCoordinates(
const double x0,
98 std::vector<std::string>& spaceFuns,
99 std::vector<double>& points,
100 std::vector<double>& coords,
101 const std::string& axis,
102 const double* xForced=0);
107 void GetCoordinates(std::vector<double>& xNodes,
108 std::vector<double>& yNodes,
109 std::vector<double>& zNodes,
110 const Bnd_Box& bndBox)
const;
115 void SetAxisDirs(
const double* the9DirComps);
120 static void ComputeOptimalAxesDirs(
const TopoDS_Shape& shape,
121 const bool isOrthogonal,
122 double dirCoords[9]);
128 void SetSizeThreshold(
const double threshold);
132 double GetSizeThreshold()
const;
139 void SetToAddEdges(
bool toAdd);
140 bool GetToAddEdges()
const;
145 void SetToConsiderInternalFaces(
bool toTreat);
151 void SetToUseThresholdForInternalFaces(
bool toUse);
157 void SetToCreateFaces(
bool toCreate);
164 bool IsDefined()
const;
169 virtual std::ostream &
SaveTo(std::ostream & save);
170 virtual std::istream &
LoadFrom(std::istream & load);
184 std::vector<double> _coords[3];
185 std::vector<std::string> _spaceFunctions[3];
186 std::vector<double> _internalPoints[3];
188 double _axisDirs [9];
189 double _fixedPoint[3];
#define STDMESHERS_EXPORT
Definition: SMESH_StdMeshers.hxx:38
virtual std::ostream & SaveTo(std::ostream &save)=0
virtual std::istream & LoadFrom(std::istream &load)=0
Definition: SMESH_Gen.hxx:68
Definition: SMESH_Hypothesis.hxx:48
virtual bool SetParametersByDefaults(const TDefaults &dflts, const SMESH_Mesh *theMesh=0)=0
Initialize my parameter values by default parameters.
virtual bool SetParametersByMesh(const SMESH_Mesh *theMesh, const TopoDS_Shape &theShape)=0
Initialize my parameter values by the mesh built on the geometry.
Definition: SMESH_Mesh.hxx:80
This hypothesis specifies.
Definition: StdMeshers_CartesianParameters3D.hxx:49
bool GetToConsiderInternalFaces() const
Definition: StdMeshers_CartesianParameters3D.hxx:146
bool _toConsiderInternalFaces
Definition: StdMeshers_CartesianParameters3D.hxx:193
bool GetToCreateFaces() const
Definition: StdMeshers_CartesianParameters3D.hxx:158
bool GetToUseThresholdForInternalFaces() const
Definition: StdMeshers_CartesianParameters3D.hxx:152
bool _toUseThresholdForInternalFaces
Definition: StdMeshers_CartesianParameters3D.hxx:194
bool _toAddEdges
Definition: StdMeshers_CartesianParameters3D.hxx:192
const double * GetAxisDirs() const
Definition: StdMeshers_CartesianParameters3D.hxx:116
double _sizeThreshold
Definition: StdMeshers_CartesianParameters3D.hxx:191
bool _toCreateFaces
Definition: StdMeshers_CartesianParameters3D.hxx:195