Function cavalier_contours_ffi::cavc_pline_get_vertex[][src]

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

Get a polyline vertex at a given index position.

position is is the index to get the vertex at. vertex used as out parameter to hold the vertex retrieved.

Specific Error Codes

  • 1 = pline is null.
  • 2 = position is out of bounds for the pline given.