public class MeshProperties extends Object
| Constructor and Description |
|---|
MeshProperties() |
| Modifier and Type | Method and Description |
|---|---|
static void |
calculateMinMaxPoint(List mesh,
org.jogamp.vecmath.Point3d min,
org.jogamp.vecmath.Point3d max) |
static double |
compute(List p,
org.jogamp.vecmath.Point3d cm,
double[][] inertia)
Returns the mass.
|
public static double compute(List p, org.jogamp.vecmath.Point3d cm, double[][] inertia)
p - List of vertices (Point3fs).cm - contains the center of gravity after the calculationinertia - contains the inertia matrix after the calculation.public static void calculateMinMaxPoint(List mesh, org.jogamp.vecmath.Point3d min, org.jogamp.vecmath.Point3d max)
Copyright © 2010–2025 Fiji. All rights reserved.