geoclide.shapes module#

geoclide.shapes.get_intersect_dataset(shape_name, r, t=None, is_intersection=False, u=None, v=None, dpdu=None, dpdv=None, diag_calc=False)#

Create dataset containing the intersection test information

  • The intersect method return (when parameter ds_output = False) of all quadrics, Triangle and TriangleMesh classes gives directly the inputs of this function

Parameters:
shape_namestr

The shape class name

rRay

The ray(s) used for the intersection test

tfloat | 1-D ndarray | 2-D ndarray, optional

The t ray variable for its first intersection at the shape surface

is_intersectionbool | 1-D ndarray | 2-D ndarray, optional

If there is an intersection -> True, else False

ufloat | 1-D ndarray | 2-D ndarray, optional

The u coordinate of the parametric representation

vfloat | 1-D ndarray | 2-D ndarray, optional

The u coordinate of the parametric representation

dpdu1-D ndarray | 2-D ndarray, optional

The surface partial derivative of phit with respect to u

dpdv1-D ndarray | 2-D ndarray, optional

The surface partial derivative of phit with respect to v

diag_calbool, optional

This indicates whether a diagonal calculation has been performed

Returns:
outxr.Dataset

Look-up table with the intersection information