hit
List of: Classes
Subjects: Ray Testing
Contents: Intersectors

Purpose: Represents an intersection of a ray with a face, edge, or vertex.

Derivation: hit : ACIS_OBJECT : -

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

Description: This class represents an intersection of a ray with a face, edge, or vertex. Two types of hits can occur: a hit through a face, edge, or vertex where the ray coincides with the entity hit at an isolated point; and a hit along a (flat or ruled surface) face or (straight) edge, where the ray coincides with a finite region of the entity hit (when the parameter value is set to a value corresponding to a point within the coincident region of the ray).

References: BASE SPAparameter

KERN ENTITY

Data: public ENTITY* entity_hit;

The face, edge, or vertex that is hit.


public curve_surf_rel ray_surf_rel;

An enumerated type that describes the relationship between the ray and the surface in one half neighborhood of the intersection.


public hit* next;

The next hit in a chain of hits.


public hit_type type_of_hit;

The type of hit, which can be either through a face edge or vertex (hit_thru) or along a face or edge (hit_along).


public SPAparameter ray_param;

If the type of hit is the through type, this provides the parameter value on the ray.

Constructor: public: hit::hit (


ENTITY*, // initialize entity hit


hit_type, // initialize the type of




// hit


double, // initialize the ray




// parameter


curve_surf_rel // initialize the ray



= curve_unknown, // surface relation


hit* // initialize the next



= NULL // pointer


);


C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.



Methods: public: void hit::debug (


FILE* // file name



= debug_file_ptr


) const;


Outputs information about the debug to the printer or to the specified file.




Related Fncs: debug_hit_list, enquire_hit_list, merge_hits, raytest, raytest_body, raytest_edge, raytest_face, raytest_lump, raytest_shell, raytest_vertex, raytest_wire, ray_ellipse_edge, ray_intcurve_edge, ray_straight_edge
PDF/INTR/04CL.PDF
HTM/DATA/INTR/INTR/04CL/0007.HTM