public class CurvatureCalculator extends Object
Constructor and Description |
---|
CurvatureCalculator(DeformableMesh3D mesh) |
Modifier and Type | Method and Description |
---|---|
static double |
calculateAverageCurvature(DeformableMesh3D sharedFaces)
Calculates the average kappaH value for the whole mesh.
|
List<double[]> |
calculateCurvature()
Calculates the curvature and normal at each point.
|
double |
calculateCurvatureGradient(int i)
Can we calculate a gradient of curvatures.
|
static double[] |
calculateMeanCurvatureNormal(Node3D node,
List<Triangle3D> triangles) |
static double[] |
calculateMeanCurvatureNormalMixedArea(Node3D node,
List<Triangle3D> triangles)
This takes a node and calculates the relevant
|
static double[] |
calculateMeanNormal(Node3D node,
List<Triangle3D> triangles)
Calculates the normal
|
double |
calculateMixedArea(int index)
Overload for accessing mixed area via the index.
|
double |
calculateMixedArea(Node3D node) |
static double |
calculateMixedArea(Node3D node,
List<Triangle3D> triangles) |
List<double[]> |
createCurvatureHistogram() |
List<double[]> |
createCurvatureHistogram(List<double[]> curvatures) |
Set<Node3D> |
getNeighbors(Node3D node) |
double[] |
getNormal(int index)
Calculates the normal based on the mean normal.
|
static double[] |
getNormalAndCurvature(Node3D node,
List<Triangle3D> triangles) |
static void |
main(String[] args) |
void |
prepareMap() |
void |
setMaxCurvature(double m) |
void |
setMinCurvature(double i) |
public CurvatureCalculator(DeformableMesh3D mesh)
public void prepareMap()
public static double[] calculateMeanNormal(Node3D node, List<Triangle3D> triangles)
node
- triangles
- public double[] getNormal(int index)
index
- of node to find normal atpublic static double[] calculateMeanCurvatureNormalMixedArea(Node3D node, List<Triangle3D> triangles)
node
- triangles
- public static double[] calculateMeanCurvatureNormal(Node3D node, List<Triangle3D> triangles)
node
- triangles
- public double calculateMixedArea(Node3D node)
public double calculateCurvatureGradient(int i)
i
- public double calculateMixedArea(int index)
index
- index of node in mesh.public static double calculateMixedArea(Node3D node, List<Triangle3D> triangles)
public static double[] getNormalAndCurvature(Node3D node, List<Triangle3D> triangles)
public List<double[]> calculateCurvature()
public List<double[]> createCurvatureHistogram()
public void setMinCurvature(double i)
public void setMaxCurvature(double m)
public static void main(String[] args) throws IOException
IOException
public static double calculateAverageCurvature(DeformableMesh3D sharedFaces)
sharedFaces
- Copyright © 2013–2022 Francis Crick Institute. All rights reserved.