Class LevelSets
Compute the level sets of a given function.
Inheritance
Namespace: Paramdigma.Core.Curves
Assembly: Paramdigma.Core.dll
Syntax
public static class LevelSets : object
Methods
| Improve this Doc View SourceComputeFaceGradient(String, MeshFace)
Compute the gradient on a given mesh face given some per-vertex values.
Declaration
public static Vector3d ComputeFaceGradient(string valueKey, MeshFace face)
Parameters
Type | Name | Description |
---|---|---|
System.String | valueKey | Key of the values in the vertex.UserData dictionary. |
MeshFace | face | Face to compute thee gradient. |
Returns
Type | Description |
---|---|
Vector3d | A vector representing the gradient on that mesh face. |
ComputeGradientField(String, Mesh)
Compute the gradient on a given mesh given some per-vertex values.
Declaration
public static List<Vector3d> ComputeGradientField(string valueKey, Mesh mesh)
Parameters
Type | Name | Description |
---|---|---|
System.String | valueKey | Key of the values in the vertex.UserData dictionary. |
Mesh | mesh | Mesh to compute the gradient. |
Returns
Type | Description |
---|---|
List<Vector3d> | A list containing all the gradient vectors per-face. |
ComputeLevels(String, List<Double>, Mesh, out List<List<Line>>)
Compute the level-sets for a mesh given a specified valueKey for the mesh vertex dictionary.
Declaration
public static void ComputeLevels(string valueKey, List<double> levels, Mesh mesh, out List<List<Line>> levelSets)
Parameters
Type | Name | Description |
---|---|---|
System.String | valueKey | Key of the value to be computed per vertex. |
List<System.Double> | levels | List of level values to be computed. |
Mesh | mesh | The mesh to compute the level-sets in. |
List<List<Line>> | levelSets | Resulting level sets. |
GetFaceLevel(String, Double, MeshFace, out Line)
Compute the level on a specified face.
Declaration
public static bool GetFaceLevel(string valueKey, double level, MeshFace face, out Line line)
Parameters
Type | Name | Description |
---|---|---|
System.String | valueKey | Key of the value to be computed per vertex. |
System.Double | level | Level value to be computed. |
MeshFace | face | Face to compute the level in. |
Line | line | Resulting level line on the face. |
Returns
Type | Description |
---|---|
System.Boolean | True if successful, false if not. |