Class DGraph3
Arbitrary-Topology 3D Graph. This is similar to DMesh3 but without faces.
Each vertex can be connected to an arbitrary number of edges.
Each vertex can have a 3-float color, and edge edge can have an integer GroupID
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class DGraph3 : DGraph
Constructors
DGraph3()
Declaration
DGraph3(DGraph3)
Declaration
public DGraph3(DGraph3 copy)
Parameters
Fields
InvalidVertex
Declaration
public static readonly Vector3d InvalidVertex
Field Value
Properties
CachedBounds
Declaration
public AxisAlignedBox3d CachedBounds { get; }
Property Value
HasVertexColors
Declaration
public bool HasVertexColors { get; }
Property Value
Methods
append_new_split_vertex(Int32, Int32)
Declaration
protected override int append_new_split_vertex(int a, int b)
Parameters
Returns
Overrides
AppendGraph(DGraph3, Int32)
Declaration
public void AppendGraph(DGraph3 graph, int gid = -1)
Parameters
AppendVertex(Vector3d)
Declaration
public int AppendVertex(Vector3d v)
Parameters
Returns
AppendVertex(Vector3d, Vector3f)
Declaration
public int AppendVertex(Vector3d v, Vector3f c)
Parameters
Returns
DiscardVertexColors()
Declaration
public void DiscardVertexColors()
EnableVertexColors(Vector3f)
Declaration
public void EnableVertexColors(Vector3f initial_color)
Parameters
Type |
Name |
Description |
Vector3f |
initial_color |
|
GetBounds()
Declaration
public AxisAlignedBox3d GetBounds()
Returns
GetEdgeCenter(Int32)
Declaration
public Vector3d GetEdgeCenter(int eID)
Parameters
Type |
Name |
Description |
Int32 |
eID |
|
Returns
GetEdgeSegment(Int32)
Declaration
public Segment3d GetEdgeSegment(int eID)
Parameters
Type |
Name |
Description |
Int32 |
eID |
|
Returns
GetEdgeV(Int32, ref Vector3d, ref Vector3d)
Declaration
public bool GetEdgeV(int eID, ref Vector3d a, ref Vector3d b)
Parameters
Returns
GetVertex(Int32)
Declaration
public Vector3d GetVertex(int vID)
Parameters
Type |
Name |
Description |
Int32 |
vID |
|
Returns
GetVertexColor(Int32)
Declaration
public Vector3f GetVertexColor(int vID)
Parameters
Type |
Name |
Description |
Int32 |
vID |
|
Returns
Segments()
Declaration
public IEnumerable<Segment3d> Segments()
Returns
SetVertex(Int32, Vector3d)
Declaration
public void SetVertex(int vID, Vector3d vNewPos)
Parameters
SetVertexColor(Int32, Vector3f)
Declaration
public void SetVertexColor(int vID, Vector3f vNewColor)
Parameters
subclass_validity_checks(Action<Boolean>)
Declaration
protected override void subclass_validity_checks(Action<bool> CheckOrFailF)
Parameters
Overrides
Vertices()
Declaration
public IEnumerable<Vector3d> Vertices()
Returns