Skip to content

Commit c756c44

Browse files
authored
Merge pull request #145 from openfedem/issue-143
Fix missing mesh lines and reduced surface model
2 parents 2b7d0fe + e66d99f commit c756c44

4 files changed

Lines changed: 14 additions & 31 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# Open FEDEM Changelog
1010

11-
## [fedem-8.1.6] (2026-04-07)
11+
## [fedem-8.1.6] (2026-04-23)
1212

1313
### :rocket: Added
1414

@@ -18,6 +18,11 @@
1818
Also write relative distance in the three global axis directions
1919
when measuring distance between two picked points.
2020

21+
### :bug: Fixed
22+
23+
- Issue https://github.com/openfedem/fedem-gui/issues/143:
24+
The reduced surface and mesh lines visualization does not work (bug in R8.1.5 only).
25+
2126
## [fedem-8.1.5] (2026-03-13)
2227

2328
### :rocket: Added

‎fedem-mdb‎

‎src/vpmApp/vpmAppCmds/FapCreateSensorCmd.H‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ private:
3535
const std::vector<FFaViewItem*>&,
3636
const std::vector<FFaViewItem*>&);
3737

38-
FmEngine* myEngine;
39-
int myArg;
40-
4138
FapPermSelChangedReceiver<FapCreateSensorCmd> permSignalConnector;
4239
friend class FapPermSelChangedReceiver<FapCreateSensorCmd>;
40+
41+
FmEngine* myEngine;
42+
int myArg;
4343
};
4444

4545
#endif

‎src/vpmDisplay/FdFEGroupPartKit.C‎

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -216,19 +216,8 @@ void FdFEGroupPartKit::generateShapeIndexes()
216216

217217
SoIndexedShape* aShape = this->getShape(!myGroupPartData->isLineShape);
218218

219-
// Calculate needed storage from input
220-
221-
int nIndexEntries = 0;
222-
if (myGroupPartData->isIndexShape)
223-
for (const IntVec& shape : myGroupPartData->shapeIndexes)
224-
nIndexEntries += shape.size() + 1;
225-
else if (myGroupPartData->isLineShape)
226-
nIndexEntries = myGroupPartData->edgePointers.size()*3;
227-
else
228-
nIndexEntries = myGroupPartData->facePointers.size() + myGroupPartData->nVisiblePrimitiveVertexes;
229-
230219
// Set the face indexes into the shape node
231-
aShape->coordIndex.setNum(nIndexEntries);
220+
aShape->coordIndex.setNum(myGroupPartData->getNoVisibleVertices(true));
232221
myGroupPartData->getShapeIndexes(aShape->coordIndex.startEditing());
233222
aShape->coordIndex.finishEditing();
234223
}
@@ -419,10 +408,7 @@ void FdFEGroupPartKit::remapLookResults(ResultsFrame* frame, const FFaLegendMapp
419408
nColors = myGroupPartData->facePointers.size();
420409
break;
421410
case PR_FACE_VERTEX:
422-
if (myGroupPartData->isLineShape)
423-
nColors = myGroupPartData->edgePointers.size()*2;
424-
else
425-
nColors = myGroupPartData->nVisiblePrimitiveVertexes;
411+
nColors = myGroupPartData->getNoVisibleVertices();
426412
break;
427413
default:
428414
break;
@@ -514,16 +500,8 @@ float FdFEGroupPartKit::getResultFromMaterialIndex(unsigned int matIdx) const
514500
break;
515501

516502
case PR_FACE_VERTEX:
517-
if (myGroupPartData->isLineShape)
518-
{
519-
if (matIdx < myGroupPartData->edgePointers.size()*2)
520-
resIdx = matIdx;
521-
}
522-
else
523-
{
524-
if ((int)matIdx < myGroupPartData->nVisiblePrimitiveVertexes)
525-
resIdx = matIdx;
526-
}
503+
if (matIdx < myGroupPartData->getNoVisibleVertices())
504+
resIdx = matIdx;
527505
break;
528506

529507
default:

0 commit comments

Comments
 (0)