Function gmshModelOccAddCone

Source
pub unsafe extern "C" fn gmshModelOccAddCone(
    x: f64,
    y: f64,
    z: f64,
    dx: f64,
    dy: f64,
    dz: f64,
    r1: f64,
    r2: f64,
    tag: c_int,
    angle: f64,
    ierr: *mut c_int,
) -> c_int
Expand description

Add a cone, defined by the center (x, y, z) of its first circular face, the 3 components of the vector (dx, dy, dz) defining its axis and the two radii r1 and r2 of the faces (these radii can be zero). If tag is positive, set the tag explicitly; otherwise a new tag is selected automatically. angle defines the optional angular opening (from 0 to 2*Pi). Return the tag of the cone.