[−][src]Function rgmsh::interface::occ::add_sphere
pub unsafe extern "C" fn add_sphere(
xc: f64,
yc: f64,
zc: f64,
radius: f64,
tag: i32,
angle1: f64,
angle2: f64,
angle3: f64,
ierr: *mut i32
) -> i32
Add a sphere of center (xc
, yc
, zc
) and radius r
. The optional
angle1
and angle2
arguments define the polar angle opening (from -Pi/2
to Pi/2). The optional angle3
argument defines the azimuthal opening
(from 0 to 2*Pi). If tag
is positive, set the tag explicitly; otherwise a
new tag is selected automatically. Return the tag of the sphere.