PlaneNode

from panda3d.core import PlaneNode
class PlaneNode

Bases:

Bases: PandaNode

A node that contains a plane. This is most often used as a clipping plane, but it can serve other purposes as well; whenever a plane is needed to be defined in some coordinate space in the world.

Inheritance diagram

Inheritance diagram of PlaneNode

enum ClipEffect
enumerator CE_visible = 1
enumerator CE_collision = 2
__init__(name: str, plane: LPlane)
property clip_effect int
Getter

Returns the clip_effect bits for this clip plane. See set_clip_effect().

Setter

Specifies the sort of things this plane will actually clip (when it is used as a clip plane). This is a bitmask union of ClipEffect values. If it includes CE_visible, then it will clip visible geometry; if it includes CE_collision, then it will clip collision polygons. If it includes neither bit, it will still affect culling, but objects will either be wholly behind the clipping plane, or wholly present.

static get_class_type() TypeHandle
get_clip_effect() int

Returns the clip_effect bits for this clip plane. See set_clip_effect().

get_plane() LPlane

Returns the plane represented by the PlaneNode.

get_priority() int

Returns the priority associated with this clip plane. See set_priority().

get_viz_scale() float

Returns the size of the visual representation of the plane that is drawn if the PlaneNode is shown.

property plane LPlane
Getter

Returns the plane represented by the PlaneNode.

Setter

Sets the particular plane represented by the PlaneNode.

property priority int
Getter

Returns the priority associated with this clip plane. See set_priority().

Setter

Changes the relative importance of this PlaneNode (when it is used as a clip plane) relative to the other clip planes that are applied simultaneously.

The priority number is used to decide which of the requested clip planes are to be activated when more clip planes are requested than the hardware will support. The highest-priority n planes are selected for rendering.

This is similar to TextureStage.set_priority().

set_clip_effect(clip_effect: int)

Specifies the sort of things this plane will actually clip (when it is used as a clip plane). This is a bitmask union of ClipEffect values. If it includes CE_visible, then it will clip visible geometry; if it includes CE_collision, then it will clip collision polygons. If it includes neither bit, it will still affect culling, but objects will either be wholly behind the clipping plane, or wholly present.

set_plane(plane: LPlane)

Sets the particular plane represented by the PlaneNode.

set_priority(priority: int)

Changes the relative importance of this PlaneNode (when it is used as a clip plane) relative to the other clip planes that are applied simultaneously.

The priority number is used to decide which of the requested clip planes are to be activated when more clip planes are requested than the hardware will support. The highest-priority n planes are selected for rendering.

This is similar to TextureStage.set_priority().

set_viz_scale(viz_scale: float)

Specifies the size of the visual representation of the plane that is drawn if the PlaneNode is shown.

property viz_scale float

Returns/Specifies the size of the visual representation of the plane that is drawn/drawn if */if the PlaneNode is shown.