Class MeshEdge
Represents an edge of a EntityObject entity.
Inheritance
Implements
Inherited Members
Namespace: netDxf.Entities
Assembly: CADability.dll
Syntax
public class MeshEdge : ICloneable
Constructors
| Improve this Doc View SourceMeshEdge(Int32, Int32)
Initializes a new instance of the MeshEdge class.
Declaration
public MeshEdge(int startVertexIndex, int endVertexIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | startVertexIndex | The edge start vertex index. |
| System.Int32 | endVertexIndex | The edge end vertex index. |
MeshEdge(Int32, Int32, Double)
Initializes a new instance of the MeshEdge class.
Declaration
public MeshEdge(int startVertexIndex, int endVertexIndex, double crease)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | startVertexIndex | The edge start vertex index. |
| System.Int32 | endVertexIndex | The edge end vertex index. |
| System.Double | crease | The highest smoothing level at which the crease is retained (default: 0.0). |
Properties
| Improve this Doc View SourceCrease
Get or set the highest smoothing level at which the crease is retained. If the smoothing level exceeds this value, the crease is also smoothed.
Declaration
public double Crease { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Remarks
Enter a value of 0 to remove an existing crease (no edge sharpening).
Enter a value of -1 (any negative number will be reset to -1) to specify that the crease is always retained, even if the object or sub-object is smoothed or refined.
EndVertexIndex
Gets or sets the edge end vertex index.
Declaration
public int EndVertexIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
StartVertexIndex
Gets or sets the edge start vertex index.
Declaration
public int StartVertexIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Remarks
This value must be positive represent the position of the vertex in the mesh vertex list.
Methods
| Improve this Doc View SourceClone()
Creates a new MeshEdge that is a copy of the current instance.
Declaration
public object Clone()
Returns
| Type | Description |
|---|---|
| System.Object | A new MeshEdge that is a copy of this instance. |
ToString()
Obtains a string that represents the mesh edge.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | A string text. |
Overrides
ToString(IFormatProvider)
Obtains a string that represents the mesh edge.
Declaration
public string ToString(IFormatProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IFormatProvider | provider | An IFormatProvider interface implementation that supplies culture-specific formatting information. |
Returns
| Type | Description |
|---|---|
| System.String | A string text. |