Class MeshIsoCurves
Inheritance
MeshIsoCurves
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class MeshIsoCurves
Constructors
MeshIsoCurves(DMesh3, Func<Vector3d, Double>)
Declaration
public MeshIsoCurves(DMesh3 mesh, Func<Vector3d, double> valueF)
Parameters
Fields
Graph
Declaration
Field Value
GraphEdges
Declaration
public DVector<MeshIsoCurves.GraphEdgeInfo> GraphEdges
Field Value
Mesh
Declaration
Field Value
PrecomputeVertexValues
If true, then we internally precompute vertex values.
THIS COMPUTATION IS MULTI-THREADED
Declaration
public bool PrecomputeVertexValues
Field Value
RootMode
Which rootfinding method will be used to converge on surface along edges
Declaration
public MeshIsoCurves.RootfindingModes RootMode
Field Value
RootModeSteps
number of iterations of rootfinding method (ignored for SingleLerp)
Declaration
Field Value
ValueF
Declaration
public Func<Vector3d, double> ValueF
Field Value
VertexValueF
Optional - provide value at vertex (which may be precomputed)
Declaration
public Func<int, double> VertexValueF
Field Value
WantGraphEdgeInfo
Declaration
public bool WantGraphEdgeInfo
Field Value
Methods
Compute()
Declaration
Compute(IEnumerable<Int32>)
Declaration
public void Compute(IEnumerable<int> Triangles)
Parameters
compute_full(IEnumerable<Int32>, Boolean)
Declaration
protected void compute_full(IEnumerable<int> Triangles, bool bIsFullMeshHint = false)
Parameters
ShouldReverseGraphEdge(Int32)
DGraph3 edges are not oriented, which means they cannot inherit orientation from mesh.
This function returns true if, for a given graph_eid, the vertex pair returned by
Graph.GetEdgeV(graph_eid) should be reversed to be consistent with mesh orientation.
Mainly inteded to be passed to DGraph3Util.ExtractCurves
Declaration
public bool ShouldReverseGraphEdge(int graph_eid)
Parameters
Type |
Name |
Description |
Int32 |
graph_eid |
|
Returns
SplitAtIsoCrossings(Double)
Split the mesh edges at the iso-crossings, unless edge is
shorter than min_len, or inserted point would be within min_len or vertex
[TODO] do we want to return any info here??
Declaration
public void SplitAtIsoCrossings(double min_len = 0)
Parameters
Type |
Name |
Description |
Double |
min_len |
|