EntitySurrogate.CreateMeshOrGhostEntity Method

Helper method to create a new Mesh or a new Ghost entity.
Protected Function CreateMeshOrGhostEntity( _ 
ByVal vertices As Point3D(), _ 
ByVal triangles As IndexTriangle(), _ 
ByVal orgEntityType As Type
) As Entity
This language is not supported or no code example is available.
protected Entity CreateMeshOrGhostEntity( 
Point3D[] vertices
IndexTriangle[] triangles
Type orgEntityType 
)
This language is not supported or no code example is available.

Parameters

vertices
Point3D[]

Vertices to generate the mesh.

triangles
IndexTriangle[]

Triangle to generate the mesh.

orgEntityType
Type

The original entity type stored in the Eyeshot file format. It's used only in case of Ghost entity creation.

Return Value

Entity

Returns a new Mesh when the CheckSurrogateData method return true, otherwise it returns a Ghost entity.

Remarks
 
Method used by some surrogates in conjunction with the ConvertToObject method when the contentType is contentType.Tessellation

.NET Framework

Supported in: 4.8

In this article

Definition