IGLClipPlane

Module: graphics

GPU clipping plane for OpenGL rendering. Plane equation: ax + by + cz + d = 0 where: normal = (a, b, c) d = plane offset World-space convention.

__post_init__

method
__post_init__(self)

normalize

method
normalize(self)
Normalize plane normal.

flip

method
flip(self)
Reverse clipping direction.

set_origin

method
set_origin(self, x, y, z)

set_normal

method
set_normal(self, x, y, z)

equation

property
equation(self)
Returns plane equation: (a, b, c, d) Plane form: ax + by + cz + d = 0

signed_distance

method
signed_distance(self, point)
Signed distance from point to plane.

move_along_normal

method
move_along_normal(self, distance)
Translate plane along its normal.

to_uniform

method
to_uniform(self)
Returns vec4 suitable for GLSL uniform.

__repr__

method
__repr__(self)