mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
add old wireframing behavior if not listing ids
This commit is contained in:
parent
6726cc378f
commit
ed5837202b
1 changed files with 9 additions and 1 deletions
10
src/plot.cpp
10
src/plot.cpp
|
|
@ -1109,7 +1109,15 @@ bool ProjectionPlot::trackstack_equivalent(
|
|||
const std::vector<TrackSegment>& track2) const
|
||||
{
|
||||
if (wireframe_ids_.empty()) {
|
||||
// TODO old version
|
||||
// Draw wireframe for all surfaces/cells/materials
|
||||
if (track1.size() != track2.size())
|
||||
return false;
|
||||
for (int i = 0; i < track1.size(); ++i) {
|
||||
if (track1[i].id != track2[i].id ||
|
||||
track1[i].surface != track2[i].surface) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
// This runs in O(nm) where n is the intersection stack size
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue