OpenNurbs

Compiling OpenNurbs

Windows

  • Download Mingw, msys, and python as described here

  • Download Open Nurbs C++ from here

  • As discussed here make these changes:

1. In opennurbs_system.h ON_NO_WINDOWS must be defined like this:

#define ON_NO_WINDOWS

2. In opennurbs_uuid.h the lines:

#if defined(UUID_DEFINED)
typedef UUID ON_UUID;
#elif defined(GUID_DEFINED)
typedef GUID ON_UUID;
#else

Should instead be:

#if defined(UUID_DEFINED) && !defined(ON_COMPILER_GNU)
typedef UUID ON_UUID;
#elif defined(GUID_DEFINED) && !defined(ON_COMPILER_GNU)
typedef GUID ON_UUID;
#else
  • Run mingw and cd to the opennurbs directory; type make

Linux/Mac

  • We haven’t tested this yet; maybe just type make?

Python bindings

  • Coming soon…

OpenNurbs API