[orx-shapes] Change default selection of adjustContour to select all
This commit is contained in:
@@ -32,12 +32,12 @@ class ContourAdjuster(var contour: ShapeContour) {
|
|||||||
/**
|
/**
|
||||||
* selected vertex indices
|
* selected vertex indices
|
||||||
*/
|
*/
|
||||||
var vertexSelection = listOf(0)
|
var vertexSelection = List(contour.segments.size + if (contour.closed) 1 else 0) { it }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* selected edge indices
|
* selected edge indices
|
||||||
*/
|
*/
|
||||||
var edgeSelection = listOf(0)
|
var edgeSelection = List(contour.segments.size) { it }
|
||||||
|
|
||||||
private var vertexWorkingSet = emptyList<Int>()
|
private var vertexWorkingSet = emptyList<Int>()
|
||||||
private var edgeWorkingSet = emptyList<Int>()
|
private var edgeWorkingSet = emptyList<Int>()
|
||||||
@@ -148,6 +148,8 @@ class ContourAdjuster(var contour: ShapeContour) {
|
|||||||
(0 until if (contour.closed) contour.segments.size else contour.segments.size + 1).filter(predicate)
|
(0 until if (contour.closed) contour.segments.size else contour.segments.size + 1).filter(predicate)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* select multiple vertices using an index-vertex based [predicate]
|
* select multiple vertices using an index-vertex based [predicate]
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user