PlaneNode

from panda3d.core import PlaneNode
class PlaneNode

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

CECollision = 2
CEVisible = 1
CE_collision = 2
CE_visible = 1
__init__(*args, **kwargs)
clip_effect
getClassType()

C++ Interface: get_class_type()

getClipEffect()

C++ Interface: get_clip_effect(PlaneNode self)

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

*/

getPlane()

C++ Interface: get_plane(PlaneNode self)

/**
  • Returns the plane represented by the PlaneNode.

*/

getPriority()

C++ Interface: get_priority(PlaneNode self)

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

*/

getVizScale()

C++ Interface: get_viz_scale(PlaneNode self)

/**
  • Returns the size of the visual representation of the plane that is drawn if

  • the PlaneNode is shown.

*/

get_class_type()

C++ Interface: get_class_type()

get_clip_effect()

C++ Interface: get_clip_effect(PlaneNode self)

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

*/

get_plane()

C++ Interface: get_plane(PlaneNode self)

/**
  • Returns the plane represented by the PlaneNode.

*/

get_priority()

C++ Interface: get_priority(PlaneNode self)

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

*/

get_viz_scale()

C++ Interface: get_viz_scale(PlaneNode self)

/**
  • Returns the size of the visual representation of the plane that is drawn if

  • the PlaneNode is shown.

*/

plane
priority
setClipEffect()

C++ Interface: set_clip_effect(const PlaneNode self, int clip_effect)

/**
  • 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.

*/

setPlane()

C++ Interface: set_plane(const PlaneNode self, const LPlanef plane)

/**
  • Sets the particular plane represented by the PlaneNode.

*/

setPriority()

C++ Interface: set_priority(const PlaneNode self, int priority)

/**
  • 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().

*/

setVizScale()

C++ Interface: set_viz_scale(const PlaneNode self, float viz_scale)

/**
  • Specifies the size of the visual representation of the plane that is drawn

  • if the PlaneNode is shown.

*/

set_clip_effect()

C++ Interface: set_clip_effect(const PlaneNode self, int clip_effect)

/**
  • 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()

C++ Interface: set_plane(const PlaneNode self, const LPlanef plane)

/**
  • Sets the particular plane represented by the PlaneNode.

*/

set_priority()

C++ Interface: set_priority(const PlaneNode self, int priority)

/**
  • 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()

C++ Interface: set_viz_scale(const PlaneNode self, float viz_scale)

/**
  • Specifies the size of the visual representation of the plane that is drawn

  • if the PlaneNode is shown.

*/

viz_scale