CindyJS

Lists of Geometric Elements

Accessing the geometric elements of a Cinderella construction represents an important interface between CindyScript and a geometric construction. In particular, if for some reason the element names (i.e., labels) are unknown or varying, one needs a way to retrieve the geometric elements. This is done with operators that return lists of elements of a particular kind.

All points of the construction: allpoints()

All points incident to a geometric object: allpoints(‹geo›)

All lines of the construction: alllines()

All lines incident to a geometric object: alllines(‹geo›)

All segments of the construction: allsegments()

All segments incident to a geometric object: allsegments(‹geo›)

All circles of the construction: allcircles()

All circles incident to a geometric object: allcircles(‹geo›)

All conics of the construction: allconics()

All conics incident to a geometric object: allconics(‹geo›)

All masses of the construction: allmasses()

All masses incident to a geometric object: allmasses(‹geo›)

All springs of the construction: allsprings()

All springs incident to a geometric object: allsprings(‹geo›)

All elements of the construction: allelements()

All elements incident to a given one: allelements(‹geo›)

Please refer to the examples section for more on the use of these operators.