Skip to content

A simple C++ header for reading USD geoms into Eigen matrices for geometry processing & machine learning

License

Notifications You must be signed in to change notification settings

jerenchen/usdmat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A simple C++ header for reading USD mesh/point-based geoms as Eigen matrices, intended for libIGL, or as ML tensors.

Dependencies

Demo

NOTE: To build the demo, ensure USD has Alembic & HDF5 support.

git clone https://github.com/jerenchen/usdmat.git
cd usdmat/demo
mkdir build
cd build
# Replace `path-to-usd` & `path-to-eigen3` accordingly
cmake -DCMAKE_PREFIX_PATH="path-to-usd;path-to-eigen3" ..
make -j8

Once complete, run

./build/usdmat_demo

It will print out the dimensions of the matrices from the octopus example:

A: 31 x 282054
V: 94018 x 3, at A.row(0)
F: 188032 x 3

License

This source code is licensed under the BSD 3-Clause "New" or "Revised" License

About

A simple C++ header for reading USD geoms into Eigen matrices for geometry processing & machine learning

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages