Crate cavalier_contours_ffi
source ·Expand description
This module contains the C foreign function interface for cavalier_contours.
Structs§
- Opaque type that wraps a [StaticAABB2DIndex].
- Opaque type that wraps a Polyline.
- FFI representation of PlineBooleanOptions.
- FFI representation of PlineOffsetOptions.
- Opaque type that represents a list of cavc_pline.
- Represents a simple 2D point with x and y coordinate values.
- Represents a polyline vertex holding x, y, and bulge.
Functions§
- Free an existing cavc_aabbindex object.
- Wraps the [
StaticAABB2DIndex::bounds
] method (gets total extents of the aabb index). Writes NaNs if the index is empty. - Add a vertex to a polyline
pline
withx
,y
, andbulge
. - Wraps PlineSource::boolean_opt.
- Write default option values to a cavc_pline_boolean_o.
- Clears all of the vertexes of a polyline.
- Clones the polyline.
- Create a new polyline object.
- Wraps PlineSource::area.
- Wraps PlineSource::extents.
- Wraps PlineSource::path_length.
- Wraps PlineSource::winding_number.
- Free an existing cavc_pline object.
- Get whether the polyline is closed or not.
- Get a polyline vertex at a given index position.
- Get the vertex count of a polyline.
- Fills the buffer given with the vertex data of a polyline.
- Write default option values to a cavc_pline_parallel_offset_o.
- Remove a vertex from a polyline at an index position.
- Wraps PlineSource::remove_redundant but modifies in place rather than returning a result.
- Wraps PlineSource::remove_repeat_pos but modifies in place rather than returning a result.
- Reserve space for an
additional
number of vertexes in the cavc_pline. - Wraps PlineSourceMut::scale_mut.
- Set whether the polyline is closed or not.
- Set a polyline vertex at a given index position.
- Sets all of the vertexes of a polyline.
- Free an existing cavc_plinelist object and all cavc_pline owned by it.
- Get the number of polylines inside a cavc_plinelist.
- Get a polyline at the given index position in the cavc_plinelist.
- Efficiently release and return the last cavc_pline from a cavc_plinelist.
- Release and return a cavc_pline from a cavc_plinelist at a given index position.