public class StericMesh extends Object implements ExternalEnergy
Constructor and Description |
---|
StericMesh(DeformableMesh3D id,
DeformableMesh3D neighbor,
double weight) |
Modifier and Type | Method and Description |
---|---|
double |
getEnergy(double[] pos) |
double |
getNormal(Integer i,
double[] result)
Calculates the normal by averaging the normals of the connecting triangles.
|
void |
update() |
void |
updateForces(double[] positions,
double[] fx,
double[] fy,
double[] fz) |
public StericMesh(DeformableMesh3D id, DeformableMesh3D neighbor, double weight)
public void update()
public void updateForces(double[] positions, double[] fx, double[] fy, double[] fz)
updateForces
in interface ExternalEnergy
public double getNormal(Integer i, double[] result)
i
- node indexresult
- where the normal will be recorded.public double getEnergy(double[] pos)
getEnergy
in interface ExternalEnergy
Copyright © 2013–2022 Francis Crick Institute. All rights reserved.