Navigation: Scripting Reference Manual > Functions & Subroutines > FacetedSurfSetFromFile

 

FacetedSurfSetFromFile

 

Contact Us: fredsupport@photonengr.com

 

Description

This function sets the data for a Faceted Surface using a file on disk, returning a flag indicating the success or failure of the update and reporting the info and error message strings.

 

 

Syntax

success = FacetedSurfSetFromFile( fsNode, fName, infoMsg, errMsg )

 

 

Parameters

success (Boolean)

Returned boolean indicating whether the faceted surface data was successfully applied from file.

 

fsNode As Long

Node number of the faceted surface whose data is being updated.

 

fName As String

Specifies the full path name to the file being used to set the faceted surface data.

 

infoMsg As String

This argument contains the info string after the function has been executed.

 

errMsg As String

This argument contains the error string after the function has been executed.

 

 

Example

This example sets the data for an existing faceted surface using a file on disk and then reports whether the execution was successful.

 

Sub Main

 

    Dim success As Boolean

    Dim fsNode As Long

    Dim fName As String, infoMsg As String, errMsg As String

    fName   = "C:\temp\facetedGeometryExport.obj"

    fsNode  = FindFullName( "Geometry.Elem 1.Faceted Surface Test" )

    success = FacetedSurfSetFromFile( fsNode, fName, infoMsg, errMsg )

    Print "Faceted surface data was updated from file?: " & success

 

 

End Sub

 

 

See Also

FacetedSurfCreateFromFile

FacetedSurfExportToObjFile

FacetedSurfGetUseVertexNormals

FacetedSurfGetHasVertexNormals

FacetedSurfSetUseVertexNormals

FacetedSurfaceGetFacetCount

 

 

 

 

 

 

Copyright © Photon Engineering, LLC