small fixes and tests in Fem
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
# include <strstream>
|
||||
# include <Bnd_Box.hxx>
|
||||
# include <BRepBndLib.hxx>
|
||||
# include <BRepAlgo_NormalProjection.hxx>
|
||||
#endif
|
||||
|
||||
#include <Base/Writer.h>
|
||||
@@ -60,6 +61,8 @@
|
||||
#include <StdMeshers_Quadrangle_2D.hxx>
|
||||
#include <StdMeshers_QuadraticMesh.hxx>
|
||||
|
||||
# include <TopoDS_Face.hxx>
|
||||
|
||||
//to simplify parsing input files we use the boost lib
|
||||
#include <boost/tokenizer.hpp>
|
||||
|
||||
@@ -393,6 +396,19 @@ std::set<long> FemMesh::getSurfaceNodes(long ElemId,short FaceId, float Angle) c
|
||||
return result;
|
||||
}
|
||||
|
||||
std::set<long> FemMesh::getSurfaceNodes(const TopoDS_Face &face)const
|
||||
{
|
||||
|
||||
std::set<long> result;
|
||||
const SMESHDS_Mesh* data = myMesh->GetMeshDS();
|
||||
|
||||
BRepAlgo_NormalProjection algo;
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void FemMesh::readNastran(const std::string &Filename)
|
||||
{
|
||||
|
||||
@@ -35,6 +35,7 @@ class SMESH_Gen;
|
||||
class SMESH_Mesh;
|
||||
class SMESH_Hypothesis;
|
||||
class TopoDS_Shape;
|
||||
class TopoDS_Face;
|
||||
|
||||
namespace Fem
|
||||
{
|
||||
@@ -81,7 +82,10 @@ public:
|
||||
|
||||
/** @name search and retraivel */
|
||||
//@{
|
||||
/// retriving by region growing
|
||||
std::set<long> getSurfaceNodes(long ElemId,short FaceId, float Angle=360)const;
|
||||
/// retrivinb by face
|
||||
std::set<long> getSurfaceNodes(const TopoDS_Face &face)const;
|
||||
//@}
|
||||
|
||||
/** @name Placement control */
|
||||
|
||||
Reference in New Issue
Block a user