mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-20 03:16:10 +00:00
Corrected Inertia to the new interface
This commit is contained in:
parent
5f787309ea
commit
dddd6931f9
@ -184,10 +184,7 @@ bool FilterMeasurePlugin::applyFilter( const QString& filterName,MeshDocument& m
|
||||
if(filterName == "Compute Geometric Measures")
|
||||
{
|
||||
CMeshO &m=md.mm()->cm;
|
||||
tri::Inertia<CMeshO> I;
|
||||
I.Compute(m);
|
||||
|
||||
tri::UpdateBounding<CMeshO>::Box(m);
|
||||
tri::Inertia<CMeshO> I(m);
|
||||
float Area = tri::Stat<CMeshO>::ComputeMeshArea(m);
|
||||
float Volume = I.Mass();
|
||||
Log("Mesh Bounding Box Size %f %f %f", m.bbox.DimX(), m.bbox.DimY(), m.bbox.DimZ());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user