raytest_edge
List of: Functions
Subjects: Ray Testing
Contents: Intersectors

Action: Tests a ray against the given edge.

Prototype: hit* raytest_edge (


ray& this_ray, // ray


EDGE* this_edge // target edge


);

Includes: #include "kernel/acis.hxx"

#include "intersct/kerndata/raytest/raytest.hxx"

#include "kernel/kerndata/top/edge.hxx"

Description: The routine raytest fires a ray at a body and returns on the heap a list of hits or NULL if no hits are found. The heap contains the entity hit, the type of hit, and the parameter value at the hit. A value of zero for hits permitted means all hits are returned. Logicals allow shells or wires or both to be selected as targets for the ray. Only entities in the forward direction along the ray can be hit.


If the ray hits the interior of a face, the face is returned; if it hits an edge of a face (i.e., two adjacent faces), the edge is returned; and if it hits all faces adjacent at a vertex, the vertex is returned.

Limitations: A call to this routine may cause boxes to be computed and thus the model may change.

Library: intersct

Filename: intr/intersct/kerndata/raytest/raytest.hxx

Effect: Read-only
PDF/INTR/03FN.PDF
HTM/DATA/INTR/INTR/03FN/0045.HTM