Class PolyfaceMesh
Represents a polyface mesh EntityObject.
Inherited Members
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 SourcePolyfaceMesh(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 SourceFaces
Gets or sets the polyface mesh PolyfaceMeshFace.
Declaration
public IReadOnlyList<PolyfaceMeshFace> Faces { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IReadOnlyList<PolyfaceMeshFace> |
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 SourceClone()
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
| Improve this Doc View SourceExplode()
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. |
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
Remarks
Matrix3 adopts the convention of using column vectors to represent a transformation matrix.