public class MergeCandidate extends Object
Constructor and Description |
---|
MergeCandidate(ContiguousVoxelPath toKeep,
ContiguousVoxelPath toMerge,
Point3i toKeepPoint,
Point3i toMergePoint) |
Modifier and Type | Method and Description |
---|---|
MergeStrategy |
determineCost()
Merges
|
PathWithClosest |
getKeep() |
PathWithClosest |
getMerge() |
int |
merge()
Merges
|
void |
removeOrReplace(boolean keepLeft,
boolean mergeLeft,
boolean replace)
Chops of one-side of keep, and one-side of merge
|
MergeCandidate |
reverse() |
public MergeCandidate(ContiguousVoxelPath toKeep, ContiguousVoxelPath toMerge, Point3i toKeepPoint, Point3i toMergePoint)
public MergeStrategy determineCost()
public int merge()
public MergeCandidate reverse()
public void removeOrReplace(boolean keepLeft, boolean mergeLeft, boolean replace)
keepLeft
- if true, chops off the left-side of keep, if false rather the right-sidemergeLeft
- if true, chops off the left-side of merge, if false rather the right-sidereplace
- if true, replaces the points with a loop. if false, simply removes thempublic PathWithClosest getKeep()
public PathWithClosest getMerge()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.