The openNURBS Initiative provides CAD, CAM, CAE, and computer graphics software developers the tools to accurately transfer 3D geometry between applications.
The openNURBS Toolkit consists of C++ source code for a library that will read and write openNURBS 3D model files (.3dm). More than 400 software development teams and applications, including Rhinoceros®, exchange 3D models using the openNURBS file format. Additionally, the Toolkit provides NURBS evaluation tools and elementary geometric and 3D view manipulation tools as well as including source code for several example programs.
For more information, see "What is openNURBS?".
-
Clone this repository.
-
Open opennurbs_public.sln, select the platform and configuration, and rebuild all.
-
Create your C++ project that will use opennurbs.
-
In your project's stdafx.h, put the following lines:
// defining OPENNURBS_PUBLIC_INSTALL_DIR enables automatic linking using pragmas #define OPENNURBS_PUBLIC_INSTALL_DIR "<MY_INSTALLPATH>" // uncomment the next line if you want to use opennurbs as a DLL //#define OPENNURBS_IMPORTS #include "<MY_INSTALLPATH>/opennurbs_public.h"
Replace
<MY_INSTALLPATH>
with the full path where you installed opennurbs using forward slashes as directory separators.
Please see "Getting started" for more information about openNURBS including supported compilers, build instructions, and a description of the examples.
There's also a collection of example 3dm files available for testing.
For technical support, please head over to Discourse.