ContourAdjuster

class ContourAdjuster(var contour: ShapeContour)(source)

Adjusts ShapeContour using an accessible interface.

ContourAdjuster

Constructors

Link copied to clipboard
constructor(contour: ShapeContour)

Types

Link copied to clipboard
data class Parameters(var selectInsertedEdges: Boolean = false, var selectInsertedVertices: Boolean = false, var clearSelectedEdges: Boolean = false, var clearSelectedVertices: Boolean = false)

Properties

Link copied to clipboard
var contour: ShapeContour
Link copied to clipboard

the selected edge

Link copied to clipboard
Link copied to clipboard

selected edge indices

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

the selected vertex

Link copied to clipboard

selected vertex indices

Link copied to clipboard

Functions

Link copied to clipboard
fun deselectVertex(index: Int)

deselect a vertex by index

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun selectEdge(index: Int)

select an edge by index

Link copied to clipboard
fun selectEdges(predicate: (Int) -> Boolean)

select multiple vertices using an index based predicate

fun selectEdges(predicate: (Int, ContourEdge) -> Boolean)

select multiple edges using an index-edge based predicate

fun selectEdges(vararg indices: Int)

select multiple edges by index

Link copied to clipboard
fun selectVertex(index: Int)

select a vertex by index

Link copied to clipboard
fun selectVertices(predicate: (Int) -> Boolean)

select multiple vertices using an index based predicate

fun selectVertices(predicate: (Int, ContourVertex) -> Boolean)

select multiple vertices using an index-vertex based predicate

fun selectVertices(vararg indices: Int)

select multiple vertices

Link copied to clipboard
fun ContourAdjuster.sub(t0: Double, t1: Double, updateSelection: Boolean = true)

Apply a sub to the subject contour

Link copied to clipboard