pub struct BSPNode { /* private fields */ }
Expand description

Represents a single node in the binary tree. The node constitutes of a splitting plane and children behind and in front of the plane.

A node can be double planar, which means that the partitioning plane contains two faces with opposite facing normals.

Implementations

Creates a new BSPNode and inserts it into nodes. Returns None if there were not faces to create a node from

Get the bspnode’s front.

Get the bspnode’s back.

Get the bspnode’s normal.

Get the bspnode’s origin.

Get the bspnode’s depth.

Clips a face by the BSP faces and returns several smaller faces

Get a reference to the bspnode’s faces.

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

Performs the conversion.

Performs the conversion.

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.