Hi,
In OptiX 7.1.0 SDK sample optixHair (line 104 of optixHair.cpp):
buildInput.curveArray.flag = OPTIX_GEOMETRY_FLAG_NONE;
The docs say:
[…]unsigned int OptixBuildInputCurveArray::flag
Combination of OptixGeometryFlags describing the primitive behavior.[…]
https://raytracing-docs.nvidia.com/optix7/api/html/struct_optix_build_input_curve_array.html
Its clear, the sample is for demonstration only, but I did not find any information what type
of flags is set there. So is it safe to use it this way (I added no anyhit program there) :
buildInput.curveArray.flag = OPTIX_GEOMETRY_FLAG_DISABLE_ANYHIT;
Thank you.