Class Vertex
Describes a vertex of an Edge. A vertex is the start or endpoint of an edge.
It connects at least two edges but can belong to any number of edges.
Inheritance
System.Object
Vertex
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.Serialization.IDeserializationCallback
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: CADability.dll
Syntax
[Serializable]
public class Vertex : IComparable<Vertex>, IOctTreeInsertable, ISerializable, IDeserializationCallback, IJsonSerialize, IExportStep
Constructors
|
Improve this Doc
View Source
Vertex()
Declaration
|
Improve this Doc
View Source
Vertex(SerializationInfo, StreamingContext)
Declaration
protected Vertex(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
|
| System.Runtime.Serialization.StreamingContext |
context |
|
Properties
|
Improve this Doc
View Source
AllEdges
Declaration
public Set<Edge> AllEdges { get; }
Property Value
|
Improve this Doc
View Source
Edges
Gets the list of edges of this vertex
Declaration
public Edge[] Edges { get; }
Property Value
|
Improve this Doc
View Source
Faces
Declaration
public Face[] Faces { get; }
Property Value
|
Improve this Doc
View Source
InvolvedFaces
Declaration
public HashSet<Face> InvolvedFaces { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.HashSet<Face> |
|
|
Improve this Doc
View Source
Position
Gets the position of this vertex
Declaration
public GeoPoint Position { get; }
Property Value
Methods
|
Improve this Doc
View Source
ConditionalEdges(Predicate<Edge>)
Returns a list of all edges in this vertex that satisfy the provided condition.
Declaration
public List<Edge> ConditionalEdges(Predicate<Edge> pr)
Parameters
| Type |
Name |
Description |
| System.Predicate<Edge> |
pr |
The condition
|
Returns
| Type |
Description |
| System.Collections.Generic.List<Edge> |
Edges that satisfy the condition
|
|
Improve this Doc
View Source
ConditionalEdgesSet(Predicate<Edge>)
Declaration
public Set<Edge> ConditionalEdgesSet(Predicate<Edge> pr)
Parameters
| Type |
Name |
Description |
| System.Predicate<Edge> |
pr |
|
Returns
|
Improve this Doc
View Source
ConnectingEdges(Vertex, Vertex)
Declaration
public static IEnumerable<Edge> ConnectingEdges(Vertex v1, Vertex v2)
Parameters
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<Edge> |
|
|
Improve this Doc
View Source
EdgesOnFace(Face)
Declaration
public List<Edge> EdgesOnFace(Face onThisFace)
Parameters
| Type |
Name |
Description |
| Face |
onThisFace |
|
Returns
| Type |
Description |
| System.Collections.Generic.List<Edge> |
|
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| System.Object |
obj |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| System.Int32 |
|
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
GetPositionOnFace(Face)
Declaration
public GeoPoint2D GetPositionOnFace(Face fc)
Parameters
| Type |
Name |
Description |
| Face |
fc |
|
Returns
|
Improve this Doc
View Source
SingleConnectingEdge(Vertex, Vertex)
Declaration
public static Edge SingleConnectingEdge(Vertex v1, Vertex v2)
Parameters
Returns
Explicit Interface Implementations
|
Improve this Doc
View Source
IExportStep.Export(ExportStep, Boolean)
Declaration
int IExportStep.Export(ExportStep export, bool topLevel)
Parameters
| Type |
Name |
Description |
| ExportStep |
export |
|
| System.Boolean |
topLevel |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
IJsonSerialize.GetObjectData(IJsonWriteData)
Declaration
void IJsonSerialize.GetObjectData(IJsonWriteData data)
Parameters
|
Improve this Doc
View Source
IJsonSerialize.SetObjectData(IJsonReadData)
Declaration
void IJsonSerialize.SetObjectData(IJsonReadData data)
Parameters
|
Improve this Doc
View Source
IOctTreeInsertable.GetExtent(Double)
Declaration
BoundingCube IOctTreeInsertable.GetExtent(double precision)
Parameters
| Type |
Name |
Description |
| System.Double |
precision |
|
Returns
|
Improve this Doc
View Source
IOctTreeInsertable.HitTest(ref BoundingCube, Double)
Declaration
bool IOctTreeInsertable.HitTest(ref BoundingCube cube, double precision)
Parameters
| Type |
Name |
Description |
| BoundingCube |
cube |
|
| System.Double |
precision |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IOctTreeInsertable.HitTest(Projection, BoundingRect, Boolean)
Declaration
bool IOctTreeInsertable.HitTest(Projection projection, BoundingRect rect, bool onlyInside)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IOctTreeInsertable.HitTest(Projection.PickArea, Boolean)
Declaration
bool IOctTreeInsertable.HitTest(Projection.PickArea area, bool onlyInside)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IOctTreeInsertable.Position(GeoPoint, GeoVector, Double)
Declaration
double IOctTreeInsertable.Position(GeoPoint fromHere, GeoVector direction, double precision)
Parameters
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
IComparable<Vertex>.CompareTo(Vertex)
Declaration
int IComparable<Vertex>.CompareTo(Vertex other)
Parameters
| Type |
Name |
Description |
| Vertex |
other |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
IDeserializationCallback.OnDeserialization(Object)
Declaration
void IDeserializationCallback.OnDeserialization(object sender)
Parameters
| Type |
Name |
Description |
| System.Object |
sender |
|
|
Improve this Doc
View Source
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
Declaration
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
|
| System.Runtime.Serialization.StreamingContext |
context |
|
Implements
System.IComparable<T>
System.Runtime.Serialization.ISerializable
System.Runtime.Serialization.IDeserializationCallback