Struct plane_split::Clipper

source ·
pub struct Clipper<A> { /* private fields */ }
Expand description

A helper object to clip polygons by a number of planes.

Implementations

Create a new clipper object.

Reset the clipper internals, but preserve the allocation.

Extract the clipping planes that define the frustum for a given transformation.

Add a clipping plane to the list. The plane will clip everything behind it, where the direction is set by the plane normal.

Clip specified polygon by the contained planes, return the fragmented polygons.

Clip the primitive with the frustum of the specified transformation, returning a sequence of polygons in the transformed space. Returns None if the transformation can’t be frustum clipped.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.