Blender
V3.3
|
#include <SilhouetteGeomEngine.h>
Static Public Member Functions | |
static SilhouetteGeomEngine * | getInstance () |
static void | setViewpoint (const Vec3r &ivp) |
static void | setTransform (const real iModelViewMatrix[4][4], const real iProjectionMatrix[4][4], const int iViewport[4], real iFocal) |
static void | setFrustum (real iZNear, real iZFar) |
static void | retrieveViewport (int viewport[4]) |
static void | ProjectSilhouette (std::vector< SVertex * > &ioVertices) |
static void | ProjectSilhouette (SVertex *ioVertex) |
static real | ImageToWorldParameter (FEdge *fe, real t) |
static Vec3r | WorldToImage (const Vec3r &M) |
static Vec3r | CameraToImage (const Vec3r &M) |
Definition at line 28 of file SilhouetteGeomEngine.h.
From camera to image
Definition at line 285 of file SilhouetteGeomEngine.cpp.
References Freestyle::GeomUtils::fromCameraToRetina(), Freestyle::GeomUtils::fromRetinaToImage(), and M.
|
inlinestatic |
retrieves an instance on the singleton
Definition at line 58 of file SilhouetteGeomEngine.h.
References NULL.
transforms the parameter t defining a 2D intersection for edge fe in order to obtain the parameter giving the corresponding 3D intersection. Returns the 3D parameter fe The edge t The parameter for the 2D intersection.
Definition at line 135 of file SilhouetteGeomEngine.cpp.
References beta(), fabs(), Freestyle::GeomUtils::fromCameraToRetina(), Freestyle::GeomUtils::fromImageToRetina(), Freestyle::GeomUtils::fromRetinaToImage(), Freestyle::GeomUtils::fromWorldToCamera(), G, G_DEBUG_FREESTYLE, sqrt(), T, and t.
Referenced by Freestyle::ViewMapBuilder::ComputeSweepLineIntersections(), and Freestyle::CurvePoint::normal().
|
static |
Projects the silhouette in camera coordinates This method modifies the ioEdges passed as argument. ioVertices The vertices to project. It is modified during the operation.
Definition at line 127 of file SilhouetteGeomEngine.cpp.
References Freestyle::GeomUtils::fromWorldToImage(), Freestyle::SVertex::point3D(), and Freestyle::SVertex::setPoint2D().
|
static |
Definition at line 111 of file SilhouetteGeomEngine.cpp.
Referenced by Freestyle::ViewMapBuilder::ComputeRayCastingVisibility().
Sets the current znear and zfar
Definition at line 105 of file SilhouetteGeomEngine.cpp.
Referenced by Freestyle::ViewMapBuilder::setFrustum().
|
static |
Sets the current transformation iModelViewMatrix The 4x4 model view matrix, in column major order (openGL like). iProjection matrix The 4x4 projection matrix, in column major order (openGL like). iViewport The viewport. 4 real array: origin.x, origin.y, width, length iFocal The focal length
Definition at line 64 of file SilhouetteGeomEngine.cpp.
Referenced by Freestyle::ViewMapBuilder::setTransform().
Sets the current viewpoint
Definition at line 67 of file SilhouetteGeomEngine.h.
Referenced by Freestyle::ViewMapBuilder::setViewpoint().
From world to image
Definition at line 278 of file SilhouetteGeomEngine.cpp.
References Freestyle::GeomUtils::fromWorldToImage(), and M.