Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Serialization Namespace / EntitySurrogate Class / CreateMeshOrGhostEntity Method
Vertices to generate the mesh.
Triangle to generate the mesh.
The original entity type stored in the Eyeshot file format. It's used only in case of Ghost entity creation.

In This Topic
    CreateMeshOrGhostEntity Method
    In This Topic
    Helper method to create a new devDept.Eyeshot.Entities.LinearPath or a new devDept.Eyeshot.Entities.Ghost entity.
    Syntax
    'Declaration
     
    Protected Function CreateMeshOrGhostEntity( _
       ByVal vertices() As Point3D, _
       ByVal triangles() As IndexTriangle, _
       ByVal orgEntityType As Type _
    ) As Entity
    protected Entity CreateMeshOrGhostEntity( 
       Point3D[] vertices,
       IndexTriangle[] triangles,
       Type orgEntityType
    )

    Parameters

    vertices
    Vertices to generate the mesh.
    triangles
    Triangle to generate the mesh.
    orgEntityType
    The original entity type stored in the Eyeshot file format. It's used only in case of Ghost entity creation.

    Return Value

    Returns a new devDept.Eyeshot.Entities.Mesh when the CheckSurrogateData method return true, otherwise it returns a devDept.Eyeshot.Entities.Ghost entity.
    Remarks
    Method used by some surrogates in conjunction with the ConvertToObject method when the contentType is contentType.Tessellation
    See Also