Tracing a Ray
Method Introduced:
The method wfcModel.WModel.ComputeRayIntersections returns a list of intersections between a ray and a model as a Selections object. The method finds intersections in both directions from the start point of the ray, and assigns each intersection a depth—the distance from the ray start point in the direction defined. The intersections in the reverse direction have a negative depth. The intersections are ordered from the negative depth to the positive depth. The input arguments are:
ApertureRadius—Specifies the aperture value in pixels. If you give a value less than –1.0, the value is taken from the Creo configuration file option pick_aperture_radius. If that option is not set, the function uses the default value of 7.0.
Ray—Specifies the ray. A ray is specified in terms of a start location and direction vector as a Ray object.
The method wfcModel.wfcModel.Ray_Create creates a data object that contains information related to the ray. Use the method wfcModel.Ray.SetPoint to set the starting point for the ray. The method wfcModel.Ray.GetPoint returns the starting point of the ray.
The method wfcModel.Ray.SetVector sets the direction vector for the ray. Use the method wfcModel.Ray.GetVector to get the direction vector.
Was this helpful?