Skip to content

Limit various level set only operations in generically templated tools - #2342

Open
Idclip wants to merge 1 commit into
AcademySoftwareFoundation:masterfrom
Idclip:levelset_ops_on_float_grids
Open

Idclip wants to merge 1 commit into
AcademySoftwareFoundation:masterfrom
Idclip:levelset_ops_on_float_grids

Conversation

@Idclip

@Idclip Idclip commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

No description provided.

…s to available floating point grid types

Signed-off-by: Nick Avramoussis <4256455+Idclip@users.noreply.github.com>
@Idclip
Idclip requested a review from jmlait September 17, 2026 03:58
@Idclip
Idclip requested a review from kmuseth as a code owner September 17, 2026 03:58
MulAdd<GridT>(bMult).process(*bGrid, tempGrid);
openvdb::tools::csgDifference(*resultGrid, *tempGrid, /*prune*/true,
/*prunedgen*/self->evalInt("prunedegenerate", 0, self->getTime()));
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jmlait the combine sop is the only one I'm unsure about - these all compile and do something for non float types. I don't know if there's an early exit elsewhere in the sop for non floats or if Houdini today does process all non bool types for the csg ops?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A cursory glance looks like it's only checking the metadata - so, in theory, you could have two int or even two vector grids in Houdini, change their metadata to levelset (I assume it's possible to hack that) and get an output from the sop

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.

1 participant