Skip to main content

computeTrianglePlaneSide

computeTrianglePlaneSide(plane_normal_x, plane_normal_y, plane_normal_z, plane_constant, ax, ay, az, bx, by, bz, cx, cy, cz) ⇒ number

Produces a numeric result to indicate which side of the plane the triangle is on between +3 and -3, +3 means that all vertices ave above the plane, -3 means all vertices are below the plane, values in between indicate that plane cuts throught the triangle

Kind: global function

ParamType
plane_normal_xnumber
plane_normal_ynumber
plane_normal_znumber
plane_constantnumber
axnumber
aynumber
aznumber
bxnumber
bynumber
bznumber
cxnumber
cynumber
cznumber