Update volume boxRegionPoints.cpp

This commit is contained in:
PhasicFlow 2025-05-19 11:21:26 +03:30 committed by GitHub
parent 51c6f925d8
commit 0e4a041ffb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -13,7 +13,12 @@ boxRegionPoints::boxRegionPoints
:
regionPoints(dict, fieldsDataBase),
boxRegion_(dict.subDict("boxInfo")),
volume_((boxRegion_.maxPoint().x() - boxRegion_.minPoint().x()) * (boxRegion_.maxPoint().y() - boxRegion_.minPoint().y()) * (boxRegion_.maxPoint().z() - boxRegion_.minPoint().z())),
volume_
(
(boxRegion_.maxPoint().x() - boxRegion_.minPoint().x()) *
(boxRegion_.maxPoint().y() - boxRegion_.minPoint().y()) *
(boxRegion_.maxPoint().z() - boxRegion_.minPoint().z())
),
diameter_(pow(3 * volume_ / 4.0 / Pi, 1.0 / 3.0)),
selectedPoints_("selectedPoints")
{