Show / Hide Table of Contents

Class PolyfaceMeshFace

Represents a polyface mesh face.

Inheritance
System.Object
DxfObject
PolyfaceMeshFace
Implements
System.ICloneable
Inherited Members
DxfObject.CodeName
DxfObject.Handle
DxfObject.Owner
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 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 Source

PolyfaceMeshFace()

Initializes a new instance of the PolyfaceMeshFace class.

Declaration
public PolyfaceMeshFace()
Remarks

By default the face is made up of four vertexes.

| Improve this Doc View Source

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 Source

VertexIndexes

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 Source

Clone()

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.

| Improve this Doc View Source

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.

Overrides
DxfObject.ToString()

Implements

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