Implement Edge Visual for Tet4 and Tet10

This commit is contained in:
jriegel
2013-02-24 14:31:23 +01:00
parent 3996229c36
commit 8cd425e5ef
7 changed files with 219 additions and 79 deletions

View File

@@ -69,7 +69,9 @@ target_link_libraries(Fem ${Fem_LIBS})
fc_target_copy_resource(Fem
${CMAKE_SOURCE_DIR}/src/Mod/Fem
${CMAKE_BINARY_DIR}/Mod/Fem
Init.py convert2TetGen.py)
Init.py
convert2TetGen.py
FemLib.py)
if(MSVC)
set_target_properties(Fem PROPERTIES SUFFIX ".pyd")

View File

@@ -68,23 +68,31 @@ using namespace Fem;
using namespace Base;
using namespace boost;
static int StatCount = 0;
TYPESYSTEM_SOURCE(Fem::FemMesh , Base::Persistence);
FemMesh::FemMesh()
{
Base::Console().Log("FemMesh::FemMesh():%p (id=%i)\n",this,StatCount);
myGen = new SMESH_Gen();
myMesh = myGen->CreateMesh(1,false);
// create a mesh allways with new StudyId to avoid overlapping destruction
myMesh = myGen->CreateMesh(StatCount++,false);
}
FemMesh::FemMesh(const FemMesh& mesh)
{
Base::Console().Log("FemMesh::FemMesh(mesh):%p (id=%i)\n",this,StatCount);
myGen = new SMESH_Gen();
myMesh = myGen->CreateMesh(1,false);
myMesh = myGen->CreateMesh(StatCount++,false);
copyMeshData(mesh);
}
FemMesh::~FemMesh()
{
Base::Console().Log("FemMesh::~FemMesh():%p\n",this);
TopoDS_Shape aNull;
myMesh->ShapeToMesh(aNull);
myMesh->Clear();

View File

@@ -38,7 +38,7 @@ PROPERTY_SOURCE(Fem::FemMeshObject, App::GeoFeature)
FemMeshObject::FemMeshObject()
{
ADD_PROPERTY_TYPE(FemMesh,(Fem::FemMesh()), "FEM Mesh",Prop_None,"FEM Mesh object");
ADD_PROPERTY_TYPE(FemMesh,(), "FEM Mesh",Prop_None,"FEM Mesh object");
}
FemMeshObject::~FemMeshObject()

View File

@@ -48,6 +48,8 @@ public:
void setValuePtr(FemMesh* mesh);
/// set the FemMesh shape
void setValue(const FemMesh&);
/// does nothing, for add property macro
void setValue(void){};
/// get the FemMesh shape
const FemMesh &getValue(void) const;
const Data::ComplexGeoData* getComplexData() const;