- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I know using computePolysetVolume will find the volume of a mesh thats closed. But What if I need it for a mesh thats has open border?
{
float $bBox[] = `polyEvaluate -boundingBoxComponent`;
vector $bBoxMin = {$bBox[0], $bBox[1] ,$bBox[2]};
vector $bBoxMax = {$bBox[3], $bBox[4] ,$bBox[5]};
vector $subVector = $bBoxMax - $bBoxMin ;
float $volume = $subVector.x * $subVector.y * $subVector.z; //basic math for calculating volume length x width x height
print $volume;
}
This is my attempt. But failed badly. for some reason a smaller object yields are greater number with this code.
https://www.artstation.com/kelvintam
Solved! Go to Solution.