mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-05 23:54:16 +05:00
Read group 2467
This commit is contained in:
parent
d922b42d34
commit
a636c1e101
@ -272,12 +272,10 @@ Driver_Mesh::Status DriverUNV_R_SMDS_Mesh::Perform()
|
|||||||
for(; anIter != aDataSet2417.end(); anIter++){
|
for(; anIter != aDataSet2417.end(); anIter++){
|
||||||
const TGroupId& aLabel = anIter->first;
|
const TGroupId& aLabel = anIter->first;
|
||||||
const TRecord& aRec = anIter->second;
|
const TRecord& aRec = anIter->second;
|
||||||
//SMDS_MeshGroup* aNewGroup = (SMDS_MeshGroup*) myGroup->AddSubGroup(SMDSAbs_Edge);
|
|
||||||
//myGroupNames.insert(TGroupNamesMap::value_type(aNewGroup, aRec.GroupName));
|
|
||||||
//myGroupId.insert(TGroupIdMap::value_type(aNewGroup, aLabel));
|
|
||||||
|
|
||||||
int aNodesNb = aRec.NodeList.size();
|
int aNodesNb = aRec.NodeList.size();
|
||||||
int aElementsNb = aRec.ElementList.size();
|
int aElementsNb = aRec.ElementList.size();
|
||||||
|
|
||||||
bool useSuffix = ((aNodesNb > 0) && (aElementsNb > 0));
|
bool useSuffix = ((aNodesNb > 0) && (aElementsNb > 0));
|
||||||
int i;
|
int i;
|
||||||
if (aNodesNb > 0) {
|
if (aNodesNb > 0) {
|
||||||
|
@ -145,6 +145,7 @@ bool UNV2412::IsBeam(int theFeDescriptorId){
|
|||||||
case 11: // edge with 2 nodes
|
case 11: // edge with 2 nodes
|
||||||
case 21:
|
case 21:
|
||||||
case 22: // edge with 3 nodes
|
case 22: // edge with 3 nodes
|
||||||
|
case 23: // curved beam
|
||||||
case 24:
|
case 24:
|
||||||
case 25:
|
case 25:
|
||||||
return true;
|
return true;
|
||||||
|
@ -9,14 +9,14 @@ using namespace UNV;
|
|||||||
using namespace UNV2417;
|
using namespace UNV2417;
|
||||||
|
|
||||||
#ifdef _DEBUG_
|
#ifdef _DEBUG_
|
||||||
static int MYDEBUG = 1;
|
static int MYDEBUG = 0;
|
||||||
#else
|
#else
|
||||||
static int MYDEBUG = 0;
|
static int MYDEBUG = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static string _group_labels[] = {"2417", "2429", "2430", "2432", "2435", "2452"};
|
static string _group_labels[] = {"2417", "2429", "2430", "2432", "2435", "2452", "2467"};
|
||||||
#define NBGROUP 6
|
#define NBGROUP 7
|
||||||
|
|
||||||
static string _label_dataset = "2429";
|
static string _label_dataset = "2429";
|
||||||
|
|
||||||
@ -70,7 +70,8 @@ void UNV2417::ReadGroup(const std::string& myGroupLabel, std::ifstream& in_strea
|
|||||||
in_stream>>aTmp;
|
in_stream>>aTmp;
|
||||||
in_stream>>n_nodes;
|
in_stream>>n_nodes;
|
||||||
|
|
||||||
in_stream>>aRec.GroupName;
|
std::getline(in_stream, aRec.GroupName, '\n'); // Finalise previous reading
|
||||||
|
std::getline(in_stream, aRec.GroupName, '\n');
|
||||||
|
|
||||||
int aElType;
|
int aElType;
|
||||||
int aElId;
|
int aElId;
|
||||||
@ -78,7 +79,7 @@ void UNV2417::ReadGroup(const std::string& myGroupLabel, std::ifstream& in_strea
|
|||||||
for(int j=0; j < n_nodes; j++){
|
for(int j=0; j < n_nodes; j++){
|
||||||
in_stream>>aElType;
|
in_stream>>aElType;
|
||||||
in_stream>>aElId;
|
in_stream>>aElId;
|
||||||
if ((myGroupLabel.compare("2435") == 0) || (myGroupLabel.compare("2452") == 0)) {
|
if ((myGroupLabel.compare("2435") == 0) || (myGroupLabel.compare("2452") == 0) || (myGroupLabel.compare("2467") == 0)) {
|
||||||
in_stream>>aTmp;
|
in_stream>>aTmp;
|
||||||
in_stream>>aTmp;
|
in_stream>>aTmp;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user