Nuke binary plugins 15.0.5
 
Loading...
Searching...
No Matches
DD::Image::ViewFrustum Class Reference

#include <ViewFrustum.h>

Public Member Functions

 ViewFrustum ()
 Default constructor.
 
 ViewFrustum (const CameraOp &camera)
 Constructor by camera.
 
 ViewFrustum (ViewerContext *ctx, const Box &rect)
 
void update (const CameraOp &camera)
 Update frustum plane in world coordinate according to camera data.
 
void update (const CameraOp &camera, const Matrix4 &m)
 Update frustum plane according to Matrix4 transformation.
 
const PlanegetPlane (FrustumPlane plane) const
 Get a frustum plane.
 
FrustumVisibility getVisibility (const PointList *plist) const
 Test the visibility of a polygon inside a list of coplanar vertices.
 
FrustumVisibility getVisibility (const Vector3 *points, const Primitive *prim, unsigned face) const
 Test the visibility a primitive face.
 

Detailed Description

View Frustum class. Define the camera view frustum with a list of planes. A plane is defined in world coordinate. It is used to determine polygon visibility.

Constructor & Destructor Documentation

◆ ViewFrustum()

DD::Image::ViewFrustum::ViewFrustum ( ViewerContext ctx,
const Box rect 
)

Construct a frustum using the 2D rectangle projected onto the camera's near and far clipping planes.

References DD::Image::Box::r(), DD::Image::Box::t(), DD::Image::ViewerContext::viewport(), DD::Image::Box::x(), and DD::Image::Box::y().



©2024 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.foundry.com