Crate cavalier_contours_ffi[][src]

This module contains the C foreign function interface for cavalier_contours.

Structs

cavc_pline

Polyline object type.

cavc_point

Represents a basic 2D point holding x and y.

cavc_vertex

Represents a polyline vertex holding x, y, and bulge.

Functions

cavc_last_error_msg

Gets the last error message set as a null terminated c string.

cavc_last_error_report

Gets the last error report data set as a null terminated c string.

cavc_pline_add

Add a vertex to a polyline pline with x, y, and bulge.

cavc_pline_clear

Clears all of the vertexes of a polyline.

cavc_pline_create

Create a new polyline object.

cavc_pline_eval_area

Compute the signed area of a polyline.

cavc_pline_eval_path_length

Compute the path length of a polyline.

cavc_pline_eval_wn

Compute the winding number for a closed polyline relative to a point.

cavc_pline_f

Free an existing polyline object.

cavc_pline_get_is_closed

Get whether the polyline is closed or not.

cavc_pline_get_vertex

Get a polyline vertex at a given index position.

cavc_pline_get_vertex_count

Get the vertex count of a polyline.

cavc_pline_get_vertex_data

Fills the buffer given with the vertex data of a polyline.

cavc_pline_remove

Remove a vertex from a polyline at an index position.

cavc_pline_set_is_closed

Set whether the polyline is closed or not.

cavc_pline_set_vertex_data

Sets all of the vertexes of a polyline.