Show / Hide Table of Contents

Class PolyfaceMesh

Represents a polyface mesh EntityObject.

Inheritance
System.Object
DxfObject
EntityObject
PolyfaceMesh
Implements
IHasXData
System.ICloneable
Inherited Members
EntityObject.LayerChanged
EntityObject.OnLayerChangedEvent(Layer, Layer)
EntityObject.LinetypeChanged
EntityObject.OnLinetypeChangedEvent(Linetype, Linetype)
EntityObject.XDataAddAppReg
EntityObject.OnXDataAddAppRegEvent(ApplicationRegistry)
EntityObject.XDataRemoveAppReg
EntityObject.OnXDataRemoveAppRegEvent(ApplicationRegistry)
EntityObject.Reactors
EntityObject.Type
EntityObject.Color
EntityObject.Layer
EntityObject.Linetype
EntityObject.Lineweight
EntityObject.Transparency
EntityObject.LinetypeScale
EntityObject.IsVisible
EntityObject.Normal
EntityObject.Owner
EntityObject.XData
EntityObject.TransformBy(Matrix4)
EntityObject.ToString()
DxfObject.CodeName
DxfObject.Handle
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 PolyfaceMesh : EntityObject, IHasXData, ICloneable
Remarks

The maximum number of vertexes and faces that a PolyfaceMesh can have is short.MaxValue = 32767.

Constructors

| Improve this Doc View Source

PolyfaceMesh(IEnumerable<PolyfaceMeshVertex>, IEnumerable<PolyfaceMeshFace>)

Initializes a new instance of the PolyfaceMesh class.

Declaration
public PolyfaceMesh(IEnumerable<PolyfaceMeshVertex> vertexes, IEnumerable<PolyfaceMeshFace> faces)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<PolyfaceMeshVertex> vertexes

Polyface mesh PolyfaceMeshVertex list.

System.Collections.Generic.IEnumerable<PolyfaceMeshFace> faces

Polyface mesh PolyfaceMeshFace list.

Properties

| Improve this Doc View Source

Faces

Gets or sets the polyface mesh PolyfaceMeshFace.

Declaration
public IReadOnlyList<PolyfaceMeshFace> Faces { get; }
Property Value
Type Description
System.Collections.Generic.IReadOnlyList<PolyfaceMeshFace>
| Improve this Doc View Source

Vertexes

Gets or sets the polyface mesh PolyfaceMeshVertex.

Declaration
public IReadOnlyList<PolyfaceMeshVertex> Vertexes { get; }
Property Value
Type Description
System.Collections.Generic.IReadOnlyList<PolyfaceMeshVertex>

Methods

| Improve this Doc View Source

Clone()

Creates a new PolyfaceMesh that is a copy of the current instance.

Declaration
public override object Clone()
Returns
Type Description
System.Object

A new PolyfaceMesh that is a copy of this instance.

Overrides
EntityObject.Clone()
| Improve this Doc View Source

Explode()

Decompose the actual polyface mesh faces in Point (one vertex polyface mesh face), Line (two vertexes polyface mesh face) and Face3d (three or four vertexes polyface mesh face).

Declaration
public List<EntityObject> Explode()
Returns
Type Description
System.Collections.Generic.List<EntityObject>

A list of Face3d that made up the polyface mesh.

| Improve this Doc View Source

TransformBy(Matrix3, Vector3)

Moves, scales, and/or rotates the current entity given a 3x3 transformation matrix and a translation vector.

Declaration
public override void TransformBy(Matrix3 transformation, Vector3 translation)
Parameters
Type Name Description
Matrix3 transformation

Transformation matrix.

Vector3 translation

Translation vector.

Overrides
EntityObject.TransformBy(Matrix3, Vector3)
Remarks

Matrix3 adopts the convention of using column vectors to represent a transformation matrix.

Implements

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