how to extend a BSpline and NURBS surface

Need help, or want to share a macro? Post here!
silent_missile
Posts: 16
Joined: Mon Jul 29, 2019 11:07 pm

how to extend a BSpline and NURBS surface

Postby silent_missile » Fri Nov 29, 2019 5:22 am

here I have some requirement to extend the BSpline and NURBS surface

I use help function to check the Part.BSplineCurve and Part.BSplineSurface

but I can't find extend function in these two classes

in OpenCASCADE src/GeomLib/GeomLib.h

there is a function GeomLib::ExtendCurveToPoint, but I can't find it in FreeCAD

can anybody help me?
wmayer
Site Admin
Posts: 15483
Joined: Thu Feb 19, 2009 10:32 am

Re: how to extend a BSpline and NURBS surface

Postby wmayer » Fri Nov 29, 2019 10:05 am

There once was a discussion in the German sub-forum: https://forum.freecadweb.org/viewtopic.php?f=13&t=32599

And if you switch to the Surface wb you will find a function to extend a surface.
silent_missile
Posts: 16
Joined: Mon Jul 29, 2019 11:07 pm

Re: how to extend a BSpline and NURBS surface

Postby silent_missile » Fri Nov 29, 2019 11:49 am

thank you wmayer

I find the function in surface workbench, but it can't satisfy my requirement

the operation can't set extension ratio, so I can't adjust the parameter

and the operation can't be logged by the console, so I can't call it in script

so it can't satisfy my requirement, it's not sufficient