shape_from_polygons: Convert polygons to shape

Description Usage Arguments Value See Also

Description

This function takes a list of polygons (i.e. matrices with two columns), and put some order in it. It classifies the polygons into outer or inner polygons, using find_inner_polygons. It also precomputes some quantities to fasten the subsequent computations.

Usage

1

Arguments

polygons

a list of matrices with two columns representing polygons (i.e. last row equals first row).

Value

A list containing the outer and inner polygons in separate lists; some precomputed quantities 'outer_polygons_ABC' and 'inner_polygons_ABC' and a list of vectors 'index_children' allowing to find in which of the outer polygons each inner polygon lies.

See Also

The function is used in create_target_from_word


pierrejacob/RShapeTarget documentation built on May 25, 2019, 6:07 a.m.