#include <K3dCutEdge.h>
Inheritance diagram for K3dCutEdge:
Public Member Functions | |
K3dCutEdge (K3dGameData *_pGameData) | |
~K3dCutEdge () | |
K3dLineObj * | CutEdge (K3dLineObj *_pEdge, K3dPlaneObj *_pPlane) |
Cut edge by plane and return new edge. | |
Private Attributes | |
K3dGameData * | m_pGameData |
Global game data, data centered game system. | |
K3dIntersection * | m_pIntersection |
Pointer to intersection calculation. |
Definition at line 40 of file K3dCutEdge.h.
K3dCutEdge::K3dCutEdge | ( | K3dGameData * | _pGameData | ) |
Definition at line 34 of file K3dCutEdge.cpp.
References K3dSceneData::GetIntersection(), m_pGameData, and m_pIntersection.
K3dCutEdge::~K3dCutEdge | ( | ) |
Definition at line 40 of file K3dCutEdge.cpp.
K3dLineObj * K3dCutEdge::CutEdge | ( | K3dLineObj * | _pEdge, | |
K3dPlaneObj * | _pPlane | |||
) |
Cut edge by plane and return new edge.
_pEdge | Input edge. After cutting this edge will be front of plane edge | |
_pPlane | Cutting plane |
K3dLineObj* | Returns new back of plane edge or returns NULL if doesn`t edge plane intersection |
Definition at line 48 of file K3dCutEdge.cpp.
References K3dLineBuild::CreateNewLineObj(), K3dRay::GetDirection(), K3dIntrLinePlane::GetIntrPoint(), K3dSceneData::GetLineBuild(), K3dRay::GetOrigin(), K3dIntrLinePlane::LinePlane(), m_pGameData, m_pIntersection, and K3dDistance::PointPlane().
Referenced by K3dCutPoly::Cut().
K3dGameData* K3dCutEdge::m_pGameData [private] |
Global game data, data centered game system.
Reimplemented in K3dCutPoly.
Definition at line 42 of file K3dCutEdge.h.
Referenced by CutEdge(), and K3dCutEdge().
K3dIntersection* K3dCutEdge::m_pIntersection [private] |
Pointer to intersection calculation.
Reimplemented in K3dCutPoly.
Definition at line 43 of file K3dCutEdge.h.
Referenced by CutEdge(), and K3dCutEdge().