sghr / iGeo

iGeo: Computational Design and 3D Modeling Library for Processing
http://igeo.jp
GNU Lesser General Public License v3.0
146 stars 34 forks source link

ILoft/ISurface control points #15

Open liuzmm opened 9 years ago

liuzmm commented 9 years ago

I have five ICurves and I'm using them to generate a surface with ILoft. The surface I get isn't able to approximate the curves as I need, it seems like a Rhino Loose Loft, so I was wondering if it's possible to get the same result of Rhino Normal Loft, with the surface passing through the curves in their exact position. I tried also to use ICurve control points to create an ISurface with a bidimensional array IVec [][], but I get the same result. Is there a way to generate the surface that I need? I tried to increase the degree in both the methods, but the best surface I'm able to draw was with degree 2 in both directions. Another doubt is if there is a function to adjust curve seam. Thanks in advance for your kind help!

sghr commented 8 years ago

The current implementation of loft simply use control points of input curves as control points of generated surface. To have lofted surface follow the input curves, something similar to NURBS curve definition by edit points not by control points needs to happen. Currently iGeo stays simple and doesn't have those algorithms.