public class VolumeConservation extends Object implements ExternalEnergy
Constructor and Description |
---|
VolumeConservation(DeformableMesh3D mesh,
double weight) |
Modifier and Type | Method and Description |
---|---|
double |
getEnergy(double[] pos) |
double |
getVolume() |
void |
setVolume(double v) |
void |
updateForces(double[] positions,
double[] fx,
double[] fy,
double[] fz) |
public VolumeConservation(DeformableMesh3D mesh, double weight)
public double getVolume()
public void setVolume(double v)
public void updateForces(double[] positions, double[] fx, double[] fy, double[] fz)
updateForces
in interface ExternalEnergy
public double getEnergy(double[] pos)
getEnergy
in interface ExternalEnergy
Copyright © 2013–2022 Francis Crick Institute. All rights reserved.