Implement Edge Visual for Tet4 and Tet10
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user