Skip to contents

Useful when shapes are aligned along the x-axis (e.g. because of a bilateral symmetry) and when one wants to retain just the lower side.

Usage

coo_down(coo, slidegap = FALSE)

Arguments

coo

matrix of (x; y) coordinates or any Coo object.

slidegap

logical whether to apply coo_slidegap after coo_down

Value

a matrix of (x; y) coordinates or a Coo object (Out are returned as Opn)

Note

When shapes are "sliced" along the x-axis, it usually results on open curves and thus to huge/artefactual gaps between points neighboring this axis. This is usually solved with coo_slidegap. See examples there.

Also, when apply a coo_left/right/up/down on an Out object, you then obtain an Opn object, which is done automatically.

Examples

b <- coo_alignxax(bot[1])
coo_plot(b)
coo_draw(coo_down(b), border='red')