Struct MeshEdge
A shared edge in a lattice mesh (spec §8.7.4.5.6). Defines connectivity between vertices in a lattice-form mesh.
Implements
Inherited Members
Namespace: DRIT.Pdf.Content
Assembly: DRIT.Pdf.dll
Syntax
public readonly struct MeshEdge : IEquatable<MeshEdge>
Constructors
MeshEdge(int, int)
Initializes a mesh edge.
Declaration
public MeshEdge(int v1, int v2)
Parameters
| Type | Name | Description |
|---|---|---|
| int | v1 | |
| int | v2 |
Properties
VertexIndex1
Gets the index of the first vertex.
Declaration
public int VertexIndex1 { get; }
Property Value
| Type | Description |
|---|---|
| int |
VertexIndex2
Gets the index of the second vertex.
Declaration
public int VertexIndex2 { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
Equals(MeshEdge)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(MeshEdge other)
Parameters
| Type | Name | Description |
|---|---|---|
| MeshEdge | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool | true if the current object is equal to the |
Equals(object?)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current instance. |
Returns
| Type | Description |
|---|---|
| bool | true if |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
ToString()
Returns the fully qualified type name of this instance.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | The fully qualified type name. |
Overrides
Operators
operator ==(MeshEdge, MeshEdge)
Equality operator.
Declaration
public static bool operator ==(MeshEdge a, MeshEdge b)
Parameters
| Type | Name | Description |
|---|---|---|
| MeshEdge | a | |
| MeshEdge | b |
Returns
| Type | Description |
|---|---|
| bool |
operator !=(MeshEdge, MeshEdge)
Inequality operator.
Declaration
public static bool operator !=(MeshEdge a, MeshEdge b)
Parameters
| Type | Name | Description |
|---|---|---|
| MeshEdge | a | |
| MeshEdge | b |
Returns
| Type | Description |
|---|---|
| bool |