User Tools

Site Tools


hyperfun:lib_torus

Primitive: Torus with X-axis

Definition: {r_0}^2-(x-x_0)^2-(y-y_0)^2-(z-z_0)^2-R^2+2*R*sqrt{(z-z_0)^2+(y-y_0)^2}

Call: hfTorusX(x,center,R,r0);

Parameters:

x - point coordinates array

center - center array

R - radius of revolution

r0 - disk radius

Test file: torus.hf

Primitive: Torus with Y-axis

Definition: {r_0}^2-(x-x_0)^2-(y-y_0)^2-(z-z_0)^2-R^2+2*R*sqrt{(z-z_0)^2+(x-x_0)^2}

Call: hfTorusY(x,center,R,r0);

Parameters:

x - point coordinates array

center - center array

R - radius of revolution

r0 - disk radius

Test file: torus.hf

Primitive: Torus with Z-axis

Definition: {r_0}^2-(x-x_0)^2-(y-y_0)^2-(z-z_0)^2-R^2+2*R*sqrt{(x-x_0)^2+(y-y_0)^2}

Call: hfTorusZ(x,center,R,r0);

Parameters:

x - point coordinates array

center - center array

R - radius of revolution

r0 - disk radius

Test file: torus.hf

hyperfun/lib_torus.txt ยท Last modified: 2020/12/31 10:49 (external edit)