Function cavalier_contours_ffi::cavc_pline_get_vertex_data[][src]

#[no_mangle]
#[must_use]pub unsafe extern "C" fn cavc_pline_get_vertex_data(
    pline: *const cavc_pline,
    vertex_data: *mut cavc_vertex
) -> i32

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

You must use cavc_pline_get_vertex_count to ensure the buffer given has adequate length to be filled with all vertexes!

vertex_data should point to a buffer that can be filled with all pline vertexes.

Specific Error Codes

  • 1 = pline is null.