Pipe create error

Hi @dale,

I used this code to create a pipe:
rhino-developer-samples/cpp/SampleCommands/cmdSamplePipe.cpp at 6 · mcneel/rhino-developer-samples · GitHub

But I have an error in this part “ON_SimpleArray<ON_Object*> results;
if (RhinoPipe(*curve, curve_params, radii, results, blend_type, cap_mode, fit_rail))”

Always my “results” variable is 0, and pipe is not create.

Hi @Luciano_Luiz_da_Silv,

Thanks, I’ve updated the sample.

cmdSamplePipe.cpp

– Dale

Hi @dale,

I used your code, but I have a problem, When I execute it in below part:

if (RhinoPipe(*curve, curve_params, radii, results, abstol, angtol, blend_type, cap_mode, fit_rail))
{

It is skipping this condition and does not execute the pipe

Hi @Luciano_Luiz_da_Silv,

What version of Rhino are you building for?

– Dale

7 and 8