OpenSubdiv Petite OpenSubdiv Logo

A selective Rust wrapper for Pixar’s OpenSubdiv library.

Versions

For now crate versions reflect code maturity on the Rust side. They are not in any way related to the OpenSubdiv version that is wrapped.

Features

There are several features to gate the resp. build flags when OpenSubdiv is built.

Almost all of them are not yet implemented.

OpenMP Support on macOS

OpenMP detection is broken on the CMake side on macOS. There are a bunch of issues open in the CMake tracker. I added some comments here.

A workaround is likely possible. PRs welcome. If you need to make a fix on the OpenSubdiv side, Pixar will probably also welcome a PR.

Limitations

The original library does make use of C++ templates in quite a few places. The wrapper has specializations that cover the most common use cases.

C++ factory classes have been collapsed into the new() method of the resp. struct that mirrors the class the C++ factory was building.

API Changes From C++

Many methods have slightly different names on the Rust side.

Renaming was done considering these constraints: