-
Notifications
You must be signed in to change notification settings - Fork 632
Basic OpenVDB read support #2010
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
3c423d7
[OpenVDB] Add build system support.
b549a2f
[OpenVDB] Add reader support
dd6c060
[OpenVDB] cell-centered lookup
2448871
[CMake] Expose OPENVDB_LOCATION & TBB_LOCATION as CMake cached variables
7780703
[OpenVDB] Remove unneccessary rpath
80acb80
[OpenVDB] Add test
a0fd188
[OpenVDB] Swap out FindTBB with one from USD & don't add VDB & TBB in…
837e4fc
[Travis] Add openvdb to OS X testing
f71e1b6
[OpenVDB] Don't use blosc compression in tests
803ece5
Fix builds on OSX
lgritz ae4afea
Additional cleanup from LG
lgritz b1bf9e9
Fixes per Roman's comments
lgritz 8559cef
Fixes per Roman's comments
lgritz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# - Find OPENVDB library | ||
# Find the native OPENVDB includes and library | ||
# This module defines | ||
# OPENVDB_INCLUDE_DIRS, where to find openvdb.h, Set when | ||
# OPENVDB_INCLUDE_DIR is found. | ||
# OPENVDB_LIBRARIES, libraries to link against to use OPENVDB. | ||
# OPENVDB_ROOT_DIR, The base directory to search for OPENVDB. | ||
# This can also be an environment variable. | ||
# OPENVDB_FOUND, If false, do not try to use OPENVDB. | ||
# | ||
# also defined, but not for general use are | ||
# OPENVDB_LIBRARY, where to find the OPENVDB library. | ||
|
||
#============================================================================= | ||
# Copyright 2015 Blender Foundation. | ||
# | ||
# Distributed under the OSI-approved BSD License (the "License"); | ||
# see accompanying file Copyright.txt for details. | ||
# | ||
# This software is distributed WITHOUT ANY WARRANTY; without even the | ||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
# See the License for more information. | ||
#============================================================================= | ||
|
||
# If OPENVDB_ROOT_DIR was defined in the environment, use it. | ||
IF(NOT OPENVDB_ROOT_DIR AND NOT $ENV{OPENVDB_ROOT_DIR} STREQUAL "") | ||
SET(OPENVDB_ROOT_DIR $ENV{OPENVDB_ROOT_DIR}) | ||
ENDIF() | ||
|
||
SET(_openvdb_SEARCH_DIRS | ||
${OPENVDB_ROOT_DIR} | ||
/usr/local | ||
/sw # Fink | ||
/opt/local # DarwinPorts | ||
/opt/openvdb | ||
/opt/lib/openvdb | ||
) | ||
|
||
FIND_PATH(OPENVDB_INCLUDE_DIR | ||
NAMES | ||
openvdb/openvdb.h | ||
HINTS | ||
${_openvdb_SEARCH_DIRS} | ||
PATH_SUFFIXES | ||
include | ||
) | ||
|
||
FIND_LIBRARY(OPENVDB_LIBRARY | ||
NAMES | ||
openvdb | ||
HINTS | ||
${_openvdb_SEARCH_DIRS} | ||
PATH_SUFFIXES | ||
lib64 lib | ||
) | ||
|
||
# handle the QUIETLY and REQUIRED arguments and set OPENVDB_FOUND to TRUE if | ||
# all listed variables are TRUE | ||
INCLUDE(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OPENVDB DEFAULT_MSG | ||
OPENVDB_LIBRARY OPENVDB_INCLUDE_DIR) | ||
|
||
IF(OPENVDB_FOUND) | ||
SET(OPENVDB_LIBRARIES ${OPENVDB_LIBRARY}) | ||
SET(OPENVDB_INCLUDE_DIRS ${OPENVDB_INCLUDE_DIR}) | ||
ENDIF(OPENVDB_FOUND) | ||
|
||
MARK_AS_ADVANCED( | ||
OPENVDB_INCLUDE_DIR | ||
OPENVDB_LIBRARY | ||
) | ||
|
||
UNSET(_openvdb_SEARCH_DIRS) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.