Function cavalier_contours_ffi::cavc_pline_create
source · #[no_mangle]
pub unsafe extern "C" fn cavc_pline_create(
vertexes: *const cavc_vertex,
n_vertexes: u32,
is_closed: u8,
pline: *mut *const cavc_pline
) -> i32
Expand description
Create a new polyline object.
vertexes
is an array of cavc_vertex to create the polyline with (may be null if n_vertexes
is 0).
n_vertexes
contains the number of vertexes in the array.
is_closed
sets the polyline to be closed if non-zero.
pline
is an out parameter to hold the created polyline.
§Safety
vertexes
may be null if n_vertexes
is 0 or must point to a valid contiguous buffer of
cavc_vertex with length of at least n_vertexes
.
pline
must point to a valid place in memory to be written.