libnurbs++
Dear forumers!
I want to create a NURBS surface from a cloud of points, using the least squares method. As far as I am concerned, such capabilities are available in libnurbs++ library, which I downloaded from: http://libnurbs.sourceforge.net/old/index.shtml Even I managed to compile it, after some manipulations. I wanted to ask if anyone used this library to create and manipulate nurbs surfaces? Any help would be much appreciated! Thanks in advance! |
hello,
I have not tested by myself, but you may take a look at MeshLab. regards, olivier |
Hello,
I have used it in for creating surfaces from sample points. For visualization and further processing I convert the resulting data into OpenCASCADE data structures. Initially, I tried to do the job using OpenCASCADE interpolation functions, but nurbs++ work a lot better for this. Regards, Hannes |
Many thanks for quick reply!
Hannes, this is exactly what I intend to do, but I have got some problems just at the beginning during compilation of the library (I have gcc 4.4.3). The error message is the following: Code:
d_surface.cpp:29: error: explicit instantiation of 'class BasicList<PLib::InterPoint<double, 2> >' in namespace 'PLib' (which does not enclose namespace '::') Code:
/home/pakuc/libnurbs/lib/libnurbsd.so: undefined reference to `BasicList<PLib::InterPoint<double, 2> >::add(PLib::InterPoint<double, 2> const&)' |
Hello Pawel,
If I remember right, I didn't compile it myself but installed a *.deb-Package from the "cae-team" ppa. I guess, it was this: https://launchpad.net/~cae-team/+archive/ppa Regards, Hannes |
1 Attachment(s)
Hello Pawel,
you may also try this patch for nurbs++. It makes gcc version 4.6.2 on OpenSUSE happy. All is based on the Zip file found here: http://libnurbs.sourceforge.net/old/index.shtml * copy libnurbs++-3.0.11.patch.gz to the nurbs++ source directory * gunzip it * apply patch ( in terminal ) patch -p0 < libnurbs++-3.0.11.patch * rebuild nurbs++ via make Good luck ! |
Thanks for help!
I have successfully installed the libnurbs++ from ppa archive and it works fine :-). |
Dear All,
What now I intend to do is to visualize the geometry, created by libnurbs++. I know there is an openGL extension to that library. I have encountered a problem when compiling a sample program topengl (which is provided with the libnurbs++ library), which uses some functions from rnubsGL.h file. The error message is the following: Code:
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O0 -fdefault-inline -ggdb3 -DFULLDEBUG -DNoRepository -ftemplate-depth-40 -I/usr/include/nurbs++ -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPDebug/my_topengl_v01.o -L/opt/openfoam171/lib/linux64GccDPDebug \ |
All times are GMT -4. The time now is 11:14. |