Skip to content

Replace Eigen::PlainObjectBase with Eigen::MatrixBase for input of ambient_occlusion#1752

Merged
jdumas merged 1 commit into
libigl:mainfrom
spyridon97:ambient-occlusion-parameters
Mar 14, 2021
Merged

Replace Eigen::PlainObjectBase with Eigen::MatrixBase for input of ambient_occlusion#1752
jdumas merged 1 commit into
libigl:mainfrom
spyridon97:ambient-occlusion-parameters

Conversation

@spyridon97

@spyridon97 spyridon97 commented Mar 14, 2021

Copy link
Copy Markdown
Contributor

As discussed #1750

Ambient occlusion should be able to have as input (like igl::per_vertex_normals) Eigen::MatrixBase matrices instead of Eigen::PlainObjectBase since the input is constant.

This would be useful to allow passing Eigen::Map objects to reduce memory duplication.

The change is as simple as replacing Eigen::PlainObjectBase with Eigen::MatrixBase for the input parameters

Checklist

@jdumas jdumas added this to the v3.0.0 milestone Mar 14, 2021
@jdumas jdumas changed the title Replace Eigen::PlainObjectBase with Eigen::MatrixBase for input of am… Replace Eigen::PlainObjectBase with Eigen::MatrixBase for input of ambient_occlusion Mar 14, 2021
@jdumas jdumas merged commit 3ff8460 into libigl:main Mar 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants