Show / Hide Table of Contents

Class MeshEdge

Represents an edge of a EntityObject entity.

Inheritance
System.Object
MeshEdge
Implements
System.ICloneable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: netDxf.Entities
Assembly: CADability.dll
Syntax
public class MeshEdge : ICloneable

Constructors

| Improve this Doc View Source

MeshEdge(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.

| Improve this Doc View Source

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 Source

Crease

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.

| Improve this Doc View Source

EndVertexIndex

Gets or sets the edge end vertex index.

Declaration
public int EndVertexIndex { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

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 Source

Clone()

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.

| Improve this Doc View Source

ToString()

Obtains a string that represents the mesh edge.

Declaration
public override string ToString()
Returns
Type Description
System.String

A string text.

Overrides
System.Object.ToString()
| Improve this Doc View Source

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.

Implements

System.ICloneable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX