Action:
|
Gets the intersection of a line with a plane.
|
|
Prototype:
|
int intersect_line_plane (
|
|
|
const SPAposition& line_point,// position on line
|
|
|
const SPAvector& line_vector,// direction of line
|
|
|
const SPAposition& plane_point,// position on
|
|
|
|
|
|
// plane
|
|
|
const SPAunit_vector&
|
|
// plane
|
|
|
|
plane_normal,
|
|
// normal
|
|
|
double& line_param,
|
|
// returns line
|
|
|
|
|
|
// parameter
|
|
|
SPAposition&
|
|
// returns
|
|
|
|
intersection_position
|
// intersection
|
|
|
);
|
|
Includes:
|
#include "kernel/acis.hxx"
|
|
#include "kernel/geomhusk/geom_utl.hxx"
|
|
#include "baseutil/vector/position.hxx"
|
|
#include "baseutil/vector/unitvec.hxx"
|
|
#include "baseutil/vector/vector.hxx"
|
|
Description:
|
This function returns 1 (if there is a normal intersection), -1 (if the line is parallel to the plane but is on the plane), or 0 (the line does not intersect the plane.
|
|
Library:
|
kernel
|
|
Filename:
|
kern/kernel/geomhusk/geom_utl.hxx
|
|
Effect:
|
Read-only
|