Navigation: Scripting Reference Manual > Functions & Subroutines > FacetedSurfHasVertexNormals

 

FacetedSurfHasVertexNormals

 

Contact Us: fredsupport@photonengr.com

 

Description

This function retrieves the flag that indicates whether a faceted surface has vertex normal data.

 

 

Syntax

hasNormals = FacetedSurfHasVertexNormals( fsNode )

 

 

Parameters

hasNormals (Boolean)

Returned boolean indicating whether the faceted surface has vertex normal data.

 

fsNode As Long

Node number of the faceted surface being queried.

 

 

Example

The following example queries a faceted surface for the flag indicating the presence of vertex normal data and then prints the returned value to the output window.

 

Sub Main

    Dim fsNode As Long

    Dim hasNormals As Boolean

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

    hasNormals = FacetedSurfHasVertexNormals( fsNode )

    Print GetFullName( fsNode ) & " has vertex normals: " & useNormals

 

End Sub

 

 

See Also

FacetedSurfCreateFromFile

FacetedSurfExportToObjFile

FacetedSurfGetUseVertexNormals

FacetedSurfSetFromFile

FacetedSurfSetUseVertexNormals

FacetedSurfaceGetFacetCount

 

 

 

 

 

 

Copyright © Photon Engineering, LLC