Main Page | Namespace List | Class List | Directories | File List | Namespace Members | Class Members | File Members

isphere_ui.cpp File Reference

#include <isphere_ui.h>
#include <vector>
#include <cmath>
#include <maya/MFnCamera.h>
#include <maya/MFnTransform.h>
#include <maya/MTypes.h>
#include <maya/MVector.h>
#include <maya/MMatrix.h>
#include <maya/MFloatMatrix.h>
#include <maya/MColor.h>
#include <isphere_geo.h>
#include <imath.h>
#include <isphere_shading.h>
#include <error_checker.h>

Defines

#define LEAD_COLOR   18
#define ACTIVE_COLOR   15
#define ACTIVE_AFFECTED_COLOR   8
#define DORMANT_COLOR   4
#define HILITE_COLOR   17

Functions

void renderBBox (MBoundingBox &bbox, MPoint &sphere)
 Render bounding box.
bool intersectSphere (const MPoint &ray_base, const MVector &ray_direction, const MPoint &sphere_center, const float &radius, MPoint &intersection)
 Ray-sphere intersection test.

Variables

double radius_internal = 1.0

Detailed Description


Function Documentation

bool @0::intersectSphere const MPoint &  ray_base,
const MVector &  ray_direction,
const MPoint &  sphere_center,
const float &  radius,
MPoint &  intersection
[static]
 

Ray-sphere intersection test.

Warning:
The 'w' component has to be zero for vectors and one for points
Returns:
true if an intersection exists, otherwise false
Parameters:
ray_base base / origin of ray
ray_direction direction of ray
sphere_center center of the sphere
radius radius of the sphere to intersect
intersection intersection point if exist

void @0::renderBBox MBoundingBox &  bbox,
MPoint &  sphere
[static]
 

Render bounding box.

Parameters:
bbox bounding box to draw


Variable Documentation

double radius_internal = 1.0 [static]
 

Parameters:
radius_internal helper for scaling


Generated on Sat Dec 31 18:07:49 2005 for ICaster by  doxygen 1.4.4