Class PolyfaceMeshFace
Represents a polyface mesh face.
Implements
Inherited Members
Namespace: netDxf.Entities
Assembly: CADability.dll
Syntax
public class PolyfaceMeshFace : DxfObject, ICloneable
Remarks
The way the vertex indexes for a polyface mesh are defined follows the DXF documentation.
The values of the vertex indexes specify one of the previously defined vertexes by the index in the list plus one.
If the index is negative, the edge that begins with that vertex is invisible.
For example if the vertex index in the list is 0 the vertex index for the face will be 1, and
if the edge between the vertexes 0 and 1 is hidden the vertex index for the face will be -1.
The maximum number of vertexes per face is 4.
Constructors
| Improve this Doc View SourcePolyfaceMeshFace()
Initializes a new instance of the PolyfaceMeshFace class.
Declaration
public PolyfaceMeshFace()
Remarks
By default the face is made up of four vertexes.
PolyfaceMeshFace(IEnumerable<Int16>)
Initializes a new instance of the PolyfaceMeshFace class.
Declaration
public PolyfaceMeshFace(IEnumerable<short> vertexIndexes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<System.Int16> | vertexIndexes | Array of indexes to the vertex list of a polyface mesh that makes up the face. |
Properties
| Improve this Doc View SourceVertexIndexes
Gets the list of indexes to the vertex list of a polyface mesh that makes up the face.
Declaration
public List<short> VertexIndexes { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<System.Int16> |
Methods
| Improve this Doc View SourceClone()
Creates a new PolyfaceMeshFace that is a copy of the current instance.
Declaration
public object Clone()
Returns
| Type | Description |
|---|---|
| System.Object | A new PolyfaceMeshFace that is a copy of this instance. |
ToString()
Converts the value of this instance to its equivalent string representation.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | The string representation. |