public class SmoothingForce extends Object implements ExternalEnergy
Constructor and Description |
---|
SmoothingForce(DeformableMesh3D mesh,
double magnitude) |
Modifier and Type | Method and Description |
---|---|
double |
getEnergy(double[] pos) |
void |
updateForces(double[] positions,
double[] fx,
double[] fy,
double[] fz) |
public SmoothingForce(DeformableMesh3D mesh, double magnitude)
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.